# ai.newnal.illi.artwork.excludeOccurrence

> Root/main admin cancels an unsent occurrence before the one-hour lock. No automatic substitute.

- Kind: procedure
- Authority: artwork.illi.newnal.ai
- Lexicon: 1
- Published by [illi-service.newnal.id](https://lexicon.garden/identity/did:plc:uztm7bi2ce42dez3uu3qafro), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:uztm7bi2ce42dez3uu3qafro/ai.newnal.illi.artwork.excludeOccurrence)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:uztm7bi2ce42dez3uu3qafro/ai.newnal.illi.artwork.excludeOccurrence/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:uztm7bi2ce42dez3uu3qafro/ai.newnal.illi.artwork.excludeOccurrence/analytics)

## Procedure (`ai.newnal.illi.artwork.excludeOccurrence`)

Type: procedure · POST

### Input (application/json)

- `expectedRevision` (integer, required)
  - Constraints: minimum: 1
- `homeId` (string · tid, required)
- `occurrenceId` (string, required)
  - Constraints: maxLength: 64
- `requestKey` (string, required)
  - Constraints: minLength: 1, maxLength: 64

### Output (application/json)

- `occurrence` (ref, required)
  - Reference: `ai.newnal.illi.artwork.defs#occurrenceView`

### Errors

- `NotMember`: No description in schema.
- `HomeNotFound`: No description in schema.
- `NotAdmin`: No description in schema.
- `ArtworkNotFound`: No description in schema.
- `ArtworkChanged`: No description in schema.
- `ArtworkLocked`: No description in schema.
- `ArtworkCancelled`: No description in schema.
- `ArtworkNotEditable`: No description in schema.
- `RequestConflict`: No description in schema.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Root/main admin cancels an unsent occurrence before the one-hour lock. No automatic substitute.",
      "errors": [
        {
          "name": "NotMember"
        },
        {
          "name": "HomeNotFound"
        },
        {
          "name": "NotAdmin"
        },
        {
          "name": "ArtworkNotFound"
        },
        {
          "name": "ArtworkChanged"
        },
        {
          "name": "ArtworkLocked"
        },
        {
          "name": "ArtworkCancelled"
        },
        {
          "name": "ArtworkNotEditable"
        },
        {
          "name": "RequestConflict"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "expectedRevision": {
              "minimum": 1,
              "type": "integer"
            },
            "homeId": {
              "format": "tid",
              "type": "string"
            },
            "occurrenceId": {
              "maxLength": 64,
              "type": "string"
            },
            "requestKey": {
              "maxLength": 64,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9._:-]+$",
              "type": "string"
            }
          },
          "required": [
            "homeId",
            "occurrenceId",
            "expectedRevision",
            "requestKey"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "occurrence": {
              "ref": "ai.newnal.illi.artwork.defs#occurrenceView",
              "type": "ref"
            }
          },
          "required": [
            "occurrence"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "ai.newnal.illi.artwork.excludeOccurrence",
  "lexicon": 1
}
```
