POST
/api/v1/schemas
Register a new JSON Schema (Draft 7). Use identityKind annotations on properties to define D-Id extraction fields.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| ref | string | Yes | Unique schema reference identifier |
| schema | object | Yes | JSON Schema Draft 7 object |
Response
201 Created
400 Bad Request
409 Conflict (ref exists)
{
"ref": "temperature-sensor-v1",
"version": 1
}
Note: Properties annotated with
"identityKind": "primary-key" or "parent-key" define the D-Id extraction strategy for documents validated against this schema.