Gallery Platform API
Reference

Discard an artist's draft

Drops the pending draft, reverting the working copy to the last saved state. The saved artist is unchanged.

POST
/gallery/artists/{id}/discard

Drops the pending draft, reverting the working copy to the last saved state. The saved artist is unchanged.

Authorization

bearerAuth artists:delete
AuthorizationBearer <token>

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

In: header

Scope: artists:delete

Path Parameters

id*string

The artist 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.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

{  "id": "string",  "name": "string",  "sort_name": "string",  "nationality": "string",  "birth_year": -9007199254740991,  "death_year": -9007199254740991,  "biography": "string",  "website_url": "string",  "pronouns": "string",  "birthplace": "string",  "based_in": "string",  "statement": "string",  "cv_url": "string",  "socials": {    "property1": "string",    "property2": "string"  },  "public_email": "string",  "public_phone": "string",  "visibility": "private",  "metadata": {    "property1": "string",    "property2": "string"  },  "created_at": "string",  "updated_at": "string",  "save_state": "new"}