# net.atpix.gallery.updatePhoto

> Published by [lexicon.atpix.net](https://lexicon.garden/identity/did:plc:x4crpdfko2d7xrcd5eovpwex)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:x4crpdfko2d7xrcd5eovpwex/net.atpix.gallery.updatePhoto)
- [Documentation](https://lexicon.garden/lexicon/did:plc:x4crpdfko2d7xrcd5eovpwex/net.atpix.gallery.updatePhoto/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:x4crpdfko2d7xrcd5eovpwex/net.atpix.gallery.updatePhoto/examples)

## Definitions

### `net.atpix.gallery.updatePhoto`

**Type**: `procedure`

Update photo metadata. Does not replace image blob.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `uri` | `string` (at-uri) | Yes |  |
| `title` | `string` | No |  |
| `caption` | `string` | No |  |
| `license` | `string` (uri) | No |  |
| `keywords` | `array` | No |  |
| `albumUris` | `array` | No |  |
| `inLanguage` | `string` | No |  |
| `contributor` | `string` (did) | No |  |
| `description` | `string` | No |  |
| `copyrightHolder` | `string` (did) | No |  |
| `locationCreated` | `ref` → `net.atpix.gallery.defs#geoPlace` | No |  |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `cid` | `string` (cid) | Yes |  |
| `uri` | `string` (at-uri) | Yes |  |

## Raw Schema

```json
{
  "id": "net.atpix.gallery.updatePhoto",
  "defs": {
    "main": {
      "type": "procedure",
      "input": {
        "schema": {
          "type": "object",
          "required": [
            "uri"
          ],
          "properties": {
            "uri": {
              "type": "string",
              "format": "at-uri"
            },
            "title": {
              "type": "string",
              "maxLength": 500
            },
            "caption": {
              "type": "string",
              "maxLength": 2000
            },
            "license": {
              "type": "string",
              "format": "uri"
            },
            "keywords": {
              "type": "array",
              "items": {
                "type": "string",
                "maxLength": 64
              },
              "maxLength": 50
            },
            "albumUris": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "at-uri"
              },
              "maxLength": 100
            },
            "inLanguage": {
              "type": "string",
              "maxLength": 35
            },
            "contributor": {
              "type": "string",
              "format": "did"
            },
            "description": {
              "type": "string",
              "maxLength": 5000
            },
            "copyrightHolder": {
              "type": "string",
              "format": "did"
            },
            "locationCreated": {
              "ref": "net.atpix.gallery.defs#geoPlace",
              "type": "ref"
            }
          }
        },
        "encoding": "application/json"
      },
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "uri",
            "cid"
          ],
          "properties": {
            "cid": {
              "type": "string",
              "format": "cid"
            },
            "uri": {
              "type": "string",
              "format": "at-uri"
            }
          }
        },
        "encoding": "application/json"
      },
      "description": "Update photo metadata. Does not replace image blob."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
