# app.thesocialwire.socialDraft.putManifest

> Owner-only private draft storage. Authentication required; disabled storage returns Unavailable. Never publishes attachments or exposes public URLs.

- Kind: procedure
- Authority: socialDraft.thesocialwire.app
- 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/app.thesocialwire.socialDraft.putManifest)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:qy5pluw2bsuq2x6albsgkvx3/app.thesocialwire.socialDraft.putManifest/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:qy5pluw2bsuq2x6albsgkvx3/app.thesocialwire.socialDraft.putManifest/analytics)

## Procedure (`app.thesocialwire.socialDraft.putManifest`)

Type: procedure · POST

### Input (application/json)

- `attachments` (array, required)
  - Constraints: maxLength: 800
  - `items` (ref)
    - Reference: `app.thesocialwire.socialDraft.defs#manifestRef`
- `draftId` (string, required): AT Protocol TID identifying the draft.
  - Constraints: minLength: 13, maxLength: 13
- `expectedRevision` (integer, required)
  - Constraints: minimum: 0

### Output (application/json)

- `schema` (ref)
  - Reference: `app.thesocialwire.socialDraft.defs#manifest`

### Errors

- `InvalidRequest`: No description in schema.
- `NotFound`: No description in schema.
- `Conflict`: No description in schema.
- `Quota`: No description in schema.
- `UploadPending`: No description in schema.
- `Unavailable`: No description in schema.
- `Unauthorized`: No description in schema.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Owner-only private draft storage. Authentication required; disabled storage returns Unavailable. Never publishes attachments or exposes public URLs.",
      "errors": [
        {
          "name": "InvalidRequest"
        },
        {
          "name": "NotFound"
        },
        {
          "name": "Conflict"
        },
        {
          "name": "Quota"
        },
        {
          "name": "UploadPending"
        },
        {
          "name": "Unavailable"
        },
        {
          "name": "Unauthorized"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "attachments": {
              "items": {
                "ref": "app.thesocialwire.socialDraft.defs#manifestRef",
                "type": "ref"
              },
              "maxLength": 800,
              "type": "array"
            },
            "draftId": {
              "description": "AT Protocol TID identifying the draft.",
              "maxLength": 13,
              "minLength": 13,
              "type": "string"
            },
            "expectedRevision": {
              "minimum": 0,
              "type": "integer"
            }
          },
          "required": [
            "draftId",
            "expectedRevision",
            "attachments"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "ref": "app.thesocialwire.socialDraft.defs#manifest",
          "type": "ref"
        }
      },
      "type": "procedure"
    }
  },
  "id": "app.thesocialwire.socialDraft.putManifest",
  "lexicon": 1
}
```
