# social.grain.admin.addRepos

> Start tracking repos, and backfill 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.addRepos)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:e7rftrdyz5e2rw4y6ocszew2/social.grain.admin.addRepos/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:e7rftrdyz5e2rw4y6ocszew2/social.grain.admin.addRepos/analytics)

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

Type: procedure · POST

### Input (application/json)

- `dids` (array, required)
  - Constraints: minLength: 1, maxLength: 100
  - `items` (string · did)

### Output (application/json)

- `added` (integer, required)

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Start tracking repos, and backfill them. Requires an admin session.",
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "dids": {
              "items": {
                "format": "did",
                "type": "string"
              },
              "maxLength": 100,
              "minLength": 1,
              "type": "array"
            }
          },
          "required": [
            "dids"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "added": {
              "type": "integer"
            }
          },
          "required": [
            "added"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "social.grain.admin.addRepos",
  "lexicon": 1
}
```
