Gallery Platform API
Reference

Replace a preset's authored prose

Replaces the preset's prose for one document kind and locale. Whole-set: a slot you send is a value (an empty string renders a deliberate blank), and a slot you omit is deleted and inherits again. Requires the gallery:write scope (key) or editor membership (user).

PUT
/gallery/document-presets/{id}/content

Replaces the preset's prose for one document kind and locale. Whole-set: a slot you send is a value (an empty string renders a deliberate blank), and a slot you omit is deleted and inherits again. Requires the gallery:write scope (key) or editor membership (user).

Authorization

bearerAuth gallery:update
AuthorizationBearer <token>

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

In: header

Scope: gallery:update

Path Parameters

id*string

The document preset 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.

Replaces a preset's prose for one document kind and locale. Whole-set: omitting a slot removes it.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

{  "data": [    {      "slot_id": "string",      "locale": "string",      "body": "string",      "updated_at": "string"    }  ]}