# at.anypub.prepare

> Stateless Standard.site preparation. Does not accept authentication credentials or perform PDS writes.

- Kind: procedure
- Authority: anypub.at
- Lexicon: 1
- Published by [samclemente.me](https://lexicon.garden/identity/did:plc:qy5pluw2bsuq2x6albsgkvx3), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:qy5pluw2bsuq2x6albsgkvx3/at.anypub.prepare)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:qy5pluw2bsuq2x6albsgkvx3/at.anypub.prepare/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:qy5pluw2bsuq2x6albsgkvx3/at.anypub.prepare/analytics)

## Procedure (`at.anypub.prepare`)

Type: procedure · POST

### Input (application/json)

- `blob` (unknown)
- `clearFields` (array)
  - `items` (string)
- `content` (unknown)
- `host` (string)
- `input` (unknown)
- `native` (unknown)
- `operation` (string, required)
  - Constraints: enum: document | publication | article | offload | replaceOffload | live | wrapper
- `prepared` (unknown)
- `previous` (unknown)
- `reference` (unknown)
- `site` (string)
- `text` (string)
- `timestamp` (string)

### Output (application/json)

- `content` (unknown)
- `native` (unknown)
- `prepared` (unknown)
- `record` (unknown)

### Errors

- `InvalidRequest`: No description in schema.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Stateless Standard.site preparation. Does not accept authentication credentials or perform PDS writes.",
      "errors": [
        {
          "name": "InvalidRequest"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "blob": {
              "type": "unknown"
            },
            "clearFields": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "content": {
              "type": "unknown"
            },
            "host": {
              "type": "string"
            },
            "input": {
              "type": "unknown"
            },
            "native": {
              "type": "unknown"
            },
            "operation": {
              "enum": [
                "document",
                "publication",
                "article",
                "offload",
                "replaceOffload",
                "live",
                "wrapper"
              ],
              "type": "string"
            },
            "prepared": {
              "type": "unknown"
            },
            "previous": {
              "type": "unknown"
            },
            "reference": {
              "type": "unknown"
            },
            "site": {
              "type": "string"
            },
            "text": {
              "type": "string"
            },
            "timestamp": {
              "type": "string"
            }
          },
          "required": [
            "operation"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "content": {
              "type": "unknown"
            },
            "native": {
              "type": "unknown"
            },
            "prepared": {
              "type": "unknown"
            },
            "record": {
              "type": "unknown"
            }
          },
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "at.anypub.prepare",
  "lexicon": 1
}
```
