# com.getorbyt.video.reserveAutoDelete

> Published by [getorbyt.com](https://lexicon.garden/identity/did:plc:2xrqztnmzlckb3xfuuukupso)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:2xrqztnmzlckb3xfuuukupso/com.getorbyt.video.reserveAutoDelete)
- [Documentation](https://lexicon.garden/lexicon/did:plc:2xrqztnmzlckb3xfuuukupso/com.getorbyt.video.reserveAutoDelete/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:2xrqztnmzlckb3xfuuukupso/com.getorbyt.video.reserveAutoDelete/examples)

## Definitions

### `com.getorbyt.video.reserveAutoDelete`

**Type**: `procedure`

Reserve or confirm auto-deletion before a create-only video publication. Requires a server-backed Orbyt gateway session. Repeating a reservation preserves its deadline.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `delaySeconds` | `integer` | Yes |  |
| `transaction` | `string` | Yes | JSON-encoded com.atproto.repo.applyWrites create-only input. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `enabled` | `boolean` | Yes |  |
| `expiresAt` | `string` (datetime) | No |  |
| `pauseToken` | `string` | Yes | Only authorizes pausing this session; persists for offline sign-out replay. |
| `post` | `string` (at-uri) | Yes |  |
| `sessionId` | `string` | Yes |  |
| `status` | `string` | Yes |  |

#### Errors

- **InvalidRequest**
- **GatewaySignInRequired**

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Reserve or confirm auto-deletion before a create-only video publication. Requires a server-backed Orbyt gateway session. Repeating a reservation preserves its deadline.",
      "errors": [
        {
          "name": "InvalidRequest"
        },
        {
          "name": "GatewaySignInRequired"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "delaySeconds": {
              "enum": [
                900,
                3600,
                21600,
                43200,
                86400
              ],
              "type": "integer"
            },
            "transaction": {
              "description": "JSON-encoded com.atproto.repo.applyWrites create-only input.",
              "maxLength": 100000,
              "type": "string"
            }
          },
          "required": [
            "delaySeconds",
            "transaction"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "enabled": {
              "type": "boolean"
            },
            "expiresAt": {
              "format": "datetime",
              "type": "string"
            },
            "pauseToken": {
              "description": "Only authorizes pausing this session; persists for offline sign-out replay.",
              "type": "string"
            },
            "post": {
              "format": "at-uri",
              "type": "string"
            },
            "sessionId": {
              "type": "string"
            },
            "status": {
              "knownValues": [
                "reserved",
                "scheduled",
                "paused",
                "needs_authorization",
                "conflict",
                "deleted"
              ],
              "type": "string"
            }
          },
          "required": [
            "post",
            "status",
            "enabled",
            "sessionId",
            "pauseToken"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "com.getorbyt.video.reserveAutoDelete",
  "lexicon": 1
}
```
