# ai.newnal.illi.media.updateItem

> Only the uploader updates people, note and the manual capture time. takenAt sets a capture time with an offset; clearTakenAt true clears the correction; sending both, or takenAt null, is InvalidRequest; omitting both keeps it. Works already composed keep their composition; the saved values reach the media service for later works. AI fields cannot be edited.

- Kind: procedure
- Authority: media.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.media.updateItem)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:uztm7bi2ce42dez3uu3qafro/ai.newnal.illi.media.updateItem/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:uztm7bi2ce42dez3uu3qafro/ai.newnal.illi.media.updateItem/analytics)

## Procedure (`ai.newnal.illi.media.updateItem`)

Type: procedure · POST

### Input (application/json)

- `clearTakenAt` (boolean): True clears the manual capture-time correction. Must not be combined with takenAt.
- `note` (string)
  - Constraints: maxLength: 3000, maxGraphemes: 300
- `people` (array)
  - Constraints: maxLength: 20
  - `items` (ref)
    - Reference: `ai.newnal.illi.family.mediaItem#person`
- `takenAt` (string · datetime): Manual capture time with offset. Omitted retains the correction.
- `uri` (string · at-uri, required)

### Output (application/json)

- `item` (ref, required)
  - Reference: `ai.newnal.illi.media.defs#itemView`

### Errors

- `NotAuthor`: No description in schema.
- `NotFound`: No description in schema.
- `PdsUnavailable`: No description in schema.
- `InvalidRequest`: No description in schema.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Only the uploader updates people, note and the manual capture time. takenAt sets a capture time with an offset; clearTakenAt true clears the correction; sending both, or takenAt null, is InvalidRequest; omitting both keeps it. Works already composed keep their composition; the saved values reach the media service for later works. AI fields cannot be edited.",
      "errors": [
        {
          "name": "NotAuthor"
        },
        {
          "name": "NotFound"
        },
        {
          "name": "PdsUnavailable"
        },
        {
          "name": "InvalidRequest"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "clearTakenAt": {
              "description": "True clears the manual capture-time correction. Must not be combined with takenAt.",
              "type": "boolean"
            },
            "note": {
              "maxGraphemes": 300,
              "maxLength": 3000,
              "type": "string"
            },
            "people": {
              "items": {
                "ref": "ai.newnal.illi.family.mediaItem#person",
                "type": "ref"
              },
              "maxLength": 20,
              "type": "array"
            },
            "takenAt": {
              "description": "Manual capture time with offset. Omitted retains the correction.",
              "format": "datetime",
              "type": "string"
            },
            "uri": {
              "format": "at-uri",
              "type": "string"
            }
          },
          "required": [
            "uri"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "item": {
              "ref": "ai.newnal.illi.media.defs#itemView",
              "type": "ref"
            }
          },
          "required": [
            "item"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "ai.newnal.illi.media.updateItem",
  "lexicon": 1
}
```
