{
"id": "app.bivri.feed.updateArtwork",
"defs": {
"main": {
"type": "procedure",
"input": {
"schema": {
"type": "object",
"nullable": [
"description",
"tags",
"labels",
"langs"
],
"required": [
"uri"
],
"properties": {
"uri": {
"type": "string",
"format": "at-uri",
"description": "AT URI of the app.bivri.feed.artwork record to edit. It must live in the authenticated member's own repository."
},
"tags": {
"type": "array",
"items": {
"type": "string",
"maxLength": 640,
"minLength": 1,
"maxGraphemes": 64
},
"maxLength": 8,
"description": "Replacement set of tags. Send null to clear them; omit the field to leave them unchanged."
},
"langs": {
"type": "array",
"items": {
"type": "string",
"format": "language"
},
"maxLength": 3,
"description": "Replacement languages. Send null to clear them; omit the field to leave them unchanged."
},
"media": {
"type": "array",
"items": {
"ref": "app.bivri.feed.artwork#mediaItem",
"type": "ref"
},
"maxLength": 50,
"minLength": 1,
"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."
},
"title": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Replacement title. Omit the field to leave it unchanged; the artwork cannot be left without one.",
"maxGraphemes": 50
},
"labels": {
"refs": [
"com.atproto.label.defs#selfLabels"
],
"type": "union",
"description": "Replacement self-label values. Send null to clear them; omit the field to leave them unchanged."
},
"description": {
"type": "string",
"maxLength": 3000,
"description": "Replacement description. Send null to clear it; omit the field to leave it unchanged.",
"maxGraphemes": 300
}
}
},
"encoding": "application/json"
},
"output": {
"schema": {
"type": "object",
"required": [
"uri",
"cid"
],
"properties": {
"cid": {
"type": "string",
"format": "cid",
"description": "CID the edited record now carries."
},
"uri": {
"type": "string",
"format": "at-uri",
"description": "AT URI of the edited artwork record."
}
}
},
"encoding": "application/json"
}
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1,
"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."
}