Documents

Set the id property of a database

PUT
/documents/{document_id}/id-property

Add an id property to a live-database document (a key such as N1APP-621 the server assigns to every row, like a Jira issue key) or change its name, prefix or next number. The first call numbers the existing rows: a row whose title starts with PREFIX- keeps n (keep_title_numbers), the others get numbers after the highest one in creation order, and new rows continue from there. Numbers are never reused or changed; a new prefix only changes how keys are shown. strip_title_prefix removes the PREFIX- the titles carried.

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

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/id-property" \  -H "Idempotency-Key: 123e4567-e89b-42d3-a456-426614174000" \  -H "Content-Type: application/json" \  -d '{    "prefix": "example"  }'
{  "document_id": "123e4567-e89b-42d3-a456-426614174000",  "content_hash": "3f786850e387550fdab836ed7e6dc881de23001b",  "changed": false,  "property_id": "example",  "prefix": "adl_live_a1",  "next_number": 0,  "assigned": 0,  "conflicts": [    {}  ]}