Gallery Platform API
Reference

Update an artist image

Updates an image's editable fields (alt text, kind). Requires a first-party session.

PATCH
/gallery/artists/{id}/images/{imageId}

Updates an image's editable fields (alt text, kind). Requires a first-party session.

Authorization

bearerAuth artists:update
AuthorizationBearer <token>

A gallery API key, sent as Authorization: Bearer gpk_… (or the x-api-key header).

In: header

Scope: artists:update

Path Parameters

id*string

The artist id.

imageId*string

The image id.

Header Parameters

Idempotency-Key?string

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 artist 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",  "artist_id": "string",  "storage_path": "string",  "url": "string",  "alt_text": "string",  "kind": "headshot",  "position": -9007199254740991,  "created_at": "string"}