# lol.dids.manage.reindex

> Published by [ngerakines.me](https://lexicon.garden/identity/did:plc:cbkjy5n7bk3ax2wplmtjofq2)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:cbkjy5n7bk3ax2wplmtjofq2/lol.dids.manage.reindex)
- [Documentation](https://lexicon.garden/lexicon/did:plc:cbkjy5n7bk3ax2wplmtjofq2/lol.dids.manage.reindex/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:cbkjy5n7bk3ax2wplmtjofq2/lol.dids.manage.reindex/examples)

## Definitions

### `lol.dids.manage.reindex`

**Type**: `procedure`

Re-read the record from its repository and re-run the pipeline. Recovers from a missed firehose event or a transient blob-fetch failure. For a space-form URI it re-pulls the authority's repo, which needs a live credential. Rate-limited.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `uri` | `string` (at-uri) | Yes | The record to reindex, public or space form. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `jobId` | `string` | Yes |  |

#### Errors

- **RecordNotFound**: Bard knows no record at that URI.
- **NoLiveCredential**: The URI names a space and bard holds no live credential for it.
- **RateLimitExceeded**: Too many reindex requests.
- **NotOwner**: The caller is not the repo the URI names, nor the authority of the space it names.
- **SpaceNotFound**: The URI is in the space form and names a space bard does not serve, or one the caller cannot be placed in. One answer for both, so membership is not an oracle.

## Raw Schema

```json
{
  "id": "lol.dids.manage.reindex",
  "defs": {
    "main": {
      "type": "procedure",
      "input": {
        "schema": {
          "type": "object",
          "required": [
            "uri"
          ],
          "properties": {
            "uri": {
              "type": "string",
              "format": "at-uri",
              "description": "The record to reindex, public or space form."
            }
          }
        },
        "encoding": "application/json"
      },
      "errors": [
        {
          "name": "RecordNotFound",
          "description": "Bard knows no record at that URI."
        },
        {
          "name": "NoLiveCredential",
          "description": "The URI names a space and bard holds no live credential for it."
        },
        {
          "name": "RateLimitExceeded",
          "description": "Too many reindex requests."
        },
        {
          "name": "NotOwner",
          "description": "The caller is not the repo the URI names, nor the authority of the space it names."
        },
        {
          "name": "SpaceNotFound",
          "description": "The URI is in the space form and names a space bard does not serve, or one the caller cannot be placed in. One answer for both, so membership is not an oracle."
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "jobId"
          ],
          "properties": {
            "jobId": {
              "type": "string"
            }
          }
        },
        "encoding": "application/json"
      },
      "description": "Re-read the record from its repository and re-run the pipeline. Recovers from a missed firehose event or a transient blob-fetch failure. For a space-form URI it re-pulls the authority's repo, which needs a live credential. Rate-limited."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
