# social.grain.admin.resyncRepos

> Fetch repos again from their PDS and reindex them. Requires an admin session.

- Kind: procedure
- Authority: admin.grain.social
- Lexicon: 1
- Published by [grain.social](https://lexicon.garden/identity/did:plc:e7rftrdyz5e2rw4y6ocszew2), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:e7rftrdyz5e2rw4y6ocszew2/social.grain.admin.resyncRepos)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:e7rftrdyz5e2rw4y6ocszew2/social.grain.admin.resyncRepos/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:e7rftrdyz5e2rw4y6ocszew2/social.grain.admin.resyncRepos/analytics)

## Procedure (`social.grain.admin.resyncRepos`)

Type: procedure · POST

### Input (application/json)

- `dids` (array): The repos to resync; every active one when left out.
  - Constraints: maxLength: 100
  - `items` (string · did)

### Output (application/json)

- `resyncing` (integer, required)

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Fetch repos again from their PDS and reindex them. Requires an admin session.",
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "dids": {
              "description": "The repos to resync; every active one when left out.",
              "items": {
                "format": "did",
                "type": "string"
              },
              "maxLength": 100,
              "type": "array"
            }
          },
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "resyncing": {
              "type": "integer"
            }
          },
          "required": [
            "resyncing"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "social.grain.admin.resyncRepos",
  "lexicon": 1
}
```
