# rsvp.atmo.notifyOfUpdate

> Published by [atmo.rsvp](https://lexicon.garden/identity/did:plc:b63bmauox6z5rbibwrhxrdnw)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:b63bmauox6z5rbibwrhxrdnw/rsvp.atmo.notifyOfUpdate)
- [Documentation](https://lexicon.garden/lexicon/did:plc:b63bmauox6z5rbibwrhxrdnw/rsvp.atmo.notifyOfUpdate/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:b63bmauox6z5rbibwrhxrdnw/rsvp.atmo.notifyOfUpdate/examples)

## Definitions

### `rsvp.atmo.notifyOfUpdate`

**Type**: `procedure`

Notify of a record change for immediate indexing. Fetches the record from the user's PDS and indexes (or deletes) it.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `uri` | `string` (at-uri) | No | Single AT URI to fetch and index |
| `uris` | `array` | No | Batch of AT URIs to fetch and index (max 25) |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `errors` | `array` | No | Errors for individual URIs that could not be processed |
| `deleted` | `integer` | Yes | Number of records deleted (not found on PDS) |
| `indexed` | `integer` | Yes | Number of records created or updated |

## Raw Schema

```json
{
  "id": "rsvp.atmo.notifyOfUpdate",
  "defs": {
    "main": {
      "type": "procedure",
      "input": {
        "schema": {
          "type": "object",
          "properties": {
            "uri": {
              "type": "string",
              "format": "at-uri",
              "description": "Single AT URI to fetch and index"
            },
            "uris": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "at-uri"
              },
              "maxLength": 25,
              "description": "Batch of AT URIs to fetch and index (max 25)"
            }
          }
        },
        "encoding": "application/json"
      },
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "indexed",
            "deleted"
          ],
          "properties": {
            "errors": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "description": "Errors for individual URIs that could not be processed"
            },
            "deleted": {
              "type": "integer",
              "description": "Number of records deleted (not found on PDS)"
            },
            "indexed": {
              "type": "integer",
              "description": "Number of records created or updated"
            }
          }
        },
        "encoding": "application/json"
      },
      "description": "Notify of a record change for immediate indexing. Fetches the record from the user's PDS and indexes (or deletes) it."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
