app.bivri.feed.updateArtworkV2

Edit an artwork the authenticated member owns. Only the fields present in the request change; the rest of the record is preserved as it stands at the member's PDS.

Details · procedure
Kindprocedure
Authorityfeed.bivri.app
Indexed
cid bafyreihawcarf73fzqyx54tud77h742ky4uqgqeaqzg3ebjy3epnxlujzy

Checks

Valid
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "errors": [
        {
          "description": "The authenticated member has not confirmed age and accepted the Terms and Privacy Policy.",
          "name": "ConsentRequired"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "nullable": [
            "description",
            "tags",
            "labels",
            "langs"
          ],
          "properties": {
            "description": {
              "description": "Replacement description. Send null to clear it; omit the field to leave it unchanged.",
              "maxGraphemes": 300,
              "maxLength": 3000,
              "type": "string"
            },
            "labels": {
              "description": "Replacement self-label values. Send null to clear them; omit the field to leave them unchanged.",
              "refs": [
                "com.atproto.label.defs#selfLabels"
              ],
              "type": "union"
            },
            "langs": {
              "description": "Replacement languages. Send null to clear them; omit the field to leave them unchanged.",
              "items": {
                "format": "language",
                "type": "string"
              },
              "maxLength": 3,
              "type": "array"
            },
            "media": {
              "description": "Replacement images, in display order. Omit the field to leave them unchanged; the artwork cannot be left without any, and the items together may not exceed 200MB — a total this schema cannot express.",
              "items": {
                "ref": "app.bivri.feed.artworkV2#mediaItem",
                "type": "ref"
              },
              "maxLength": 50,
              "minLength": 1,
              "type": "array"
            },
            "tags": {
              "description": "Replacement set of tags. Send null to clear them; omit the field to leave them unchanged.",
              "items": {
                "maxGraphemes": 64,
                "maxLength": 640,
                "minLength": 1,
                "type": "string"
              },
              "maxLength": 8,
              "type": "array"
            },
            "title": {
              "description": "Replacement title. Omit the field to leave it unchanged; the artwork cannot be left without one.",
              "maxGraphemes": 50,
              "maxLength": 500,
              "minLength": 1,
              "type": "string"
            },
            "uri": {
              "description": "AT URI of the app.bivri.feed.artworkV2 record to edit. It must live in the authenticated member's own repository.",
              "format": "at-uri",
              "type": "string"
            }
          },
          "required": [
            "uri"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "cid": {
              "description": "CID the edited record now carries.",
              "format": "cid",
              "type": "string"
            },
            "uri": {
              "description": "AT URI of the edited artwork record.",
              "format": "at-uri",
              "type": "string"
            }
          },
          "required": [
            "uri",
            "cid"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "description": "Edit an artwork the authenticated member owns. Only the fields present in the request change; the rest of the record is preserved as it stands at the member's PDS.",
  "id": "app.bivri.feed.updateArtworkV2",
  "lexicon": 1
}