Records

Create a saved view

POST
/records/types/{record_type_id}/views

Create a saved grid view (filter, sort, visible fields, widths, grouping); personal views are only visible to their owner. visible_field_ids holds field ids (not keys) and its ORDER is the column order, left to right; the field's position in the schema only orders the columns when the list is empty (then every active field is shown). The title field is always drawn first by the web app wherever it appears in the list, and ids of fields that are no longer active are skipped. config.balance (with groups.levels led by a reference field and a period on the balance date) turns the view into an account sheet (kind ledger; the older kind ledger with config.ledger is still accepted): heads with records.rows.aggregate (view_key, period), the rows of one account with records.rows.query (view_key, group, period).

Authorization

bearerApiKey
AuthorizationBearer <token>

Create a scoped API key in the Adlass settings.

In: header

Path Parameters

record_type_id*string

Resource identifier: record_type_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 POST "https://example.com/records/types/123e4567-e89b-42d3-a456-426614174000/views" \  -H "Idempotency-Key: 123e4567-e89b-42d3-a456-426614174000" \  -H "Content-Type: application/json" \  -d '{    "key": "summary",    "name": "Customer documents"  }'
{}