Documents

Set the options of a database select property

PUT
/documents/{document_id}/properties/{property_id}/options

Set the options of a select property of a live-database document, e.g. the status columns of a board (Backlog, Todo, In Progress, Done). options is the complete new list in display order: an item with the id of an existing option renames, recolors or moves it, an item without id adds an option, and an existing option left out is removed. Names are required and unique (ignoring case); a property the board groups by takes at most 6 options, any other select at most 50. An option a row still uses cannot be removed: move those rows first. documents.database_read shows the properties with their current options and ids.

Authorization

bearerApiKey
AuthorizationBearer <token>

Create a scoped API key in the Adlass settings.

In: header

Path Parameters

document_id*string

Resource identifier: document_id.

Formatuuid
property_id*string

Resource identifier: property_id.

Length1 <= length <= 64

Header Parameters

X-Request-Id?string

Optional correlation identifier.

Lengthlength <= 128
Idempotency-Key?string

A unique key for this intended write; the body field idempotency_key is accepted instead. One of the two is required. Reuse it only for an identical retry.

Length1 <= length <= 200

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X PUT "https://example.com/documents/123e4567-e89b-42d3-a456-426614174000/properties/example/options" \  -H "Idempotency-Key: 123e4567-e89b-42d3-a456-426614174000" \  -H "Content-Type: application/json" \  -d '{    "options": [      {        "name": "Customer documents"      }    ]  }'
{  "document_id": "123e4567-e89b-42d3-a456-426614174000",  "content_hash": "3f786850e387550fdab836ed7e6dc881de23001b",  "changed": false,  "property_id": "example",  "options": [    {}  ]}