Update an artwork image
Updates an image's editable fields (alt text). Requires a first-party session.
Updates an image's editable fields (alt text). Requires a first-party session.
Authorization
bearerAuth artworks:updateA gallery API key, sent as Authorization: Bearer gpk_… (or the x-api-key header).
In: header
Scope: artworks:update
Path Parameters
The artwork id.
The image id.
Header Parameters
Optional. Send a unique key per logical operation to make retries safe: a retry with the same key replays the stored success for 14 days instead of re-running the write. Reusing a key with a different body returns 400.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Update an artwork image's editable fields.
Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
{ "id": "string", "artwork_id": "string", "storage_path": "string", "url": "string", "alt_text": "string", "kind": "artwork", "width": -9007199254740991, "height": -9007199254740991, "position": -9007199254740991, "created_at": "string"}{ "type": "../dictionary", "title": "string", "status": 0, "detail": "string", "code": "invalid_request", "retry": "permanent", "details": null}{ "type": "../dictionary", "title": "string", "status": 0, "detail": "string", "code": "invalid_request", "retry": "permanent", "details": null}{ "type": "../dictionary", "title": "string", "status": 0, "detail": "string", "code": "invalid_request", "retry": "permanent", "details": null}{ "type": "../dictionary", "title": "string", "status": 0, "detail": "string", "code": "invalid_request", "retry": "permanent", "details": null}{ "type": "../dictionary", "title": "string", "status": 0, "detail": "string", "code": "invalid_request", "retry": "permanent", "details": null}{ "type": "../dictionary", "title": "string", "status": 0, "detail": "string", "code": "invalid_request", "retry": "permanent", "details": null}Reorder an artwork's images POST
Sets each image's position from its index in the supplied order. Ids not on the artwork are ignored. Requires a first-party session.
Mint a signed image upload URL POST
Returns a one-time signed target for uploading an image directly to Storage. The server derives the gallery-scoped object key; the client then uploads the bytes and registers the object via POST /images. Requires a first-party session.