# app.thesocialwire.appview.enrollSources

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

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:qy5pluw2bsuq2x6albsgkvx3/app.thesocialwire.appview.enrollSources)
- [Documentation](https://lexicon.garden/lexicon/did:plc:qy5pluw2bsuq2x6albsgkvx3/app.thesocialwire.appview.enrollSources/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:qy5pluw2bsuq2x6albsgkvx3/app.thesocialwire.appview.enrollSources/examples)

## Definitions

### `app.thesocialwire.appview.enrollSources`

**Type**: `procedure`

Enroll AT Protocol authors or Skyreader feed URLs for projection.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `feedUrls` | `array` | No |  |
| `authorDids` | `array` | No |  |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `indexed` | `integer` | Yes |  |

#### Errors

- **InvalidRequest**
- **UpstreamUnavailable**

## Raw Schema

```json
{
  "id": "app.thesocialwire.appview.enrollSources",
  "defs": {
    "main": {
      "type": "procedure",
      "input": {
        "schema": {
          "type": "object",
          "properties": {
            "feedUrls": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uri"
              },
              "maxLength": 1000
            },
            "authorDids": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "did"
              },
              "maxLength": 1000
            }
          }
        },
        "encoding": "application/json"
      },
      "errors": [
        {
          "name": "InvalidRequest"
        },
        {
          "name": "UpstreamUnavailable"
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "indexed"
          ],
          "properties": {
            "indexed": {
              "type": "integer",
              "minimum": 0
            }
          }
        },
        "encoding": "application/json"
      },
      "description": "Enroll AT Protocol authors or Skyreader feed URLs for projection."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
