# us.off-the-clock.admin.evaluateFeed

> Published by [off-the-clock.us](https://lexicon.garden/identity/did:plc:tevv7zpavtjtsvqrrwwipobt)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:tevv7zpavtjtsvqrrwwipobt/us.off-the-clock.admin.evaluateFeed)
- [Documentation](https://lexicon.garden/lexicon/did:plc:tevv7zpavtjtsvqrrwwipobt/us.off-the-clock.admin.evaluateFeed/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:tevv7zpavtjtsvqrrwwipobt/us.off-the-clock.admin.evaluateFeed/examples)

## Definitions

### `us.off-the-clock.admin.evaluateFeed`

**Type**: `procedure`

Dry-runs a feed configuration over the newest candidates in a pair's content space, without publishing it. The AppView asks the feed generator under its own service auth. Effective admins, the community identity and the pair's own admins.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `configuration` | `unknown` | Yes | A JSON Logic expression, an object. |
| `limit` | `integer` | No |  |
| `spaces` | `array` | Yes |  |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `failures` | `integer` | Yes | Candidates whose evaluation failed. |
| `firstError` | `string` | No |  |
| `records` | `array` | Yes |  |

#### Errors

- **NotAdmin**
- **InvalidConfiguration**
- **FeedUnavailable**

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Dry-runs a feed configuration over the newest candidates in a pair's content space, without publishing it. The AppView asks the feed generator under its own service auth. Effective admins, the community identity and the pair's own admins.",
      "errors": [
        {
          "name": "NotAdmin"
        },
        {
          "name": "InvalidConfiguration"
        },
        {
          "name": "FeedUnavailable"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "configuration": {
              "description": "A JSON Logic expression, an object.",
              "type": "unknown"
            },
            "limit": {
              "default": 200,
              "maximum": 200,
              "minimum": 1,
              "type": "integer"
            },
            "spaces": {
              "items": {
                "description": "<space-type>/<space-id>: a pair's content space",
                "maxLength": 512,
                "type": "string"
              },
              "type": "array"
            }
          },
          "required": [
            "spaces",
            "configuration"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "failures": {
              "description": "Candidates whose evaluation failed.",
              "type": "integer"
            },
            "firstError": {
              "type": "string"
            },
            "records": {
              "items": {
                "ref": "us.off-the-clock.admin.defs#record",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "records",
            "failures"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "us.off-the-clock.admin.evaluateFeed",
  "lexicon": 1
}
```
