Gallery Platform API
Reference

Set a record's custom-field values

Sets (or clears, with `value: null`) one or more custom-field values on the record. Returns the resulting field map.

PATCH
/gallery/resource-fields/values/{owner_type}/{owner_id}

Sets (or clears, with value: null) one or more custom-field values on the record. Returns the resulting field map.

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

owner_type*string
owner_id*string

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.

Set custom-field values on a resource record.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

{  "custom_fields": {    "property1": null,    "property2": null  }}