# ai.newnal.illi.media.updateItem

> Published by [illi-service.newnal.id](https://lexicon.garden/identity/did:plc:uztm7bi2ce42dez3uu3qafro)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:uztm7bi2ce42dez3uu3qafro/ai.newnal.illi.media.updateItem)
- [Documentation](https://lexicon.garden/lexicon/did:plc:uztm7bi2ce42dez3uu3qafro/ai.newnal.illi.media.updateItem/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:uztm7bi2ce42dez3uu3qafro/ai.newnal.illi.media.updateItem/examples)

## Definitions

### `ai.newnal.illi.media.updateItem`

**Type**: `procedure`

The author edits caption, takenAt (sets takenAtSource manual) or albumHidden; putRecord with the merged record.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `albumHidden` | `boolean` | No |  |
| `caption` | `string` | No |  |
| `takenAt` | `string` (datetime) | No |  |
| `uri` | `string` (at-uri) | Yes |  |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `item` | `ref` → `ai.newnal.illi.media.defs#itemView` | Yes |  |

#### Errors

- **NotAuthor**
- **NotFound**
- **PdsUnavailable**

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "The author edits caption, takenAt (sets takenAtSource manual) or albumHidden; putRecord with the merged record.",
      "errors": [
        {
          "name": "NotAuthor"
        },
        {
          "name": "NotFound"
        },
        {
          "name": "PdsUnavailable"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "albumHidden": {
              "type": "boolean"
            },
            "caption": {
              "maxLength": 500,
              "type": "string"
            },
            "takenAt": {
              "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
}
```
