Set the options of a database select property
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 Create a scoped API key in the Adlass settings.
In: header
Path Parameters
Resource identifier: document_id.
uuidResource identifier: property_id.
1 <= length <= 64Header Parameters
Optional correlation identifier.
length <= 128A 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.
1 <= length <= 200Request 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": [ {} ]}