POST
/api/v1/config/document-types
Register a new Document_Type. Associates a schema, model, and optional TTL with a named type.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| name | string | Yes | Unique Document_Type name |
| masterSchema | string | Yes | Schema reference to validate documents against |
| model | string | Yes | Document model — "closed" in Increment 1 |
| ttl | number | "infinite" | No | Time-to-live in seconds. Default: instance TTL |
Response
201 Created
400 Bad Request
409 Conflict (name exists)
{
"name": "temperature-readings",
"masterSchema": "temperature-sensor-v1",
"model": "closed",
"ttl": 3600,
"channels": [],
"createdAt": "2026-07-17T10:00:00.000Z",
"updatedAt": "2026-07-17T10:00:00.000Z"
}