Skip to content
Registry StackDocsLatest

Field schema

GET
/v1/datasets/{dataset_id}/entities/{entity}/schema
curl --request GET \
--url https://data.example.test/v1/datasets/example/entities/example/schema \
--header 'Authorization: Bearer <token>'

Returns the household field schema in a JSON-friendly form: field names, types, concept URIs, codelists, units, and language tags. Useful for codegen and validation.

dataset_id
required
string

Dataset identifier

entity
required
string

Entity name

Successful response

Media typeapplication/json
object
dataset_id
string
entity
string
fields
Array<object>
object
primary_key
string
relationships
Array<object>
object
Examplegenerated
{
"dataset_id": "example",
"entity": "example",
"fields": [
{}
],
"primary_key": "example",
"relationships": [
{}
]
}

Missing or invalid bearer credential.

Media typeapplication/problem+json

RFC 9457 Problem Details, returned for every non-2xx response.

object
code
required
string
detail
required
string
request_id
required
string
status
required
integer format: int32
title
required
string
type
required
string format: uri
key
additional properties
any
Example
{
"code": "auth.missing_credential",
"detail": "no credential provided in Authorization or x-api-key header",
"request_id": "01ARZ3NDEKTSV4RRFFQ69G5FAV",
"status": 401,
"title": "Missing credential",
"type": "https://registry-relay.dev/problems/auth/missing_credential"
}

Authenticated principal lacks the scope required for this operation.

Media typeapplication/problem+json

RFC 9457 Problem Details, returned for every non-2xx response.

object
code
required
string
detail
required
string
request_id
required
string
status
required
integer format: int32
title
required
string
type
required
string format: uri
key
additional properties
any
Example
{
"code": "auth.missing_credential",
"detail": "no credential provided in Authorization or x-api-key header",
"request_id": "01ARZ3NDEKTSV4RRFFQ69G5FAV",
"status": 401,
"title": "Missing credential",
"type": "https://registry-relay.dev/problems/auth/missing_credential"
}

Problem Details error response.

Media typeapplication/problem+json

RFC 9457 Problem Details, returned for every non-2xx response.

object
code
required
string
detail
required
string
request_id
required
string
status
required
integer format: int32
title
required
string
type
required
string format: uri
key
additional properties
any
Example
{
"code": "auth.missing_credential",
"detail": "no credential provided in Authorization or x-api-key header",
"request_id": "01ARZ3NDEKTSV4RRFFQ69G5FAV",
"status": 401,
"title": "Missing credential",
"type": "https://registry-relay.dev/problems/auth/missing_credential"
}