Reference Data
Retrieves a specific reference dataset by ID, including its data rows and headers (up to the configured limit).
Requires the 'View structures' permission on all domains associated with the dataset.
Reference dataset ID
Reference dataset retrieved
Unauthorized
Forbidden
Internal Server Error
GET /api/reference_data/{id} HTTP/1.1
Accept: */*
{
"data": {
"domain_ids": [
101
],
"headers": [
"code",
"name"
],
"id": 321,
"inserted_at": "2026-06-10T10:00:00Z",
"name": "countries",
"row_count": 249,
"rows": [
[
"ES",
"Spain"
],
[
"FR",
"France"
],
[
"DE",
"Germany"
]
],
"updated_at": "2026-06-10T10:00:00Z"
}
}Updates an existing reference dataset with a new file, name, or domain assignments. Only provided fields are updated. The dataset remains available during the update process.
Only administrators can update reference datasets.
Reference dataset ID
CSV file content
Domain IDs to associate with the dataset
Dataset name
Reference dataset updated
Unauthorized
Forbidden
Unprocessable Entity
Internal Server Error
PUT /api/reference_data/{id} HTTP/1.1
Content-Type: multipart/form-data
Accept: */*
Content-Length: 100
{
"dataset": "updated_reference_data.csv",
"domain_ids": [
1,
3
],
"name": "Updated Customer Status Dataset"
}{
"data": {
"domain_ids": [
101,
102
],
"id": 321,
"name": "countries_updated",
"row_count": 250
}
}Permanently deletes a reference dataset by its ID. The dataset is immediately removed from the database, including all associated data rows and metadata.
Only administrators can delete reference datasets.
Reference dataset ID
Reference dataset deleted
No content
Unauthorized
Forbidden
Internal Server Error
DELETE /api/reference_data/{id} HTTP/1.1
Accept: */*
No content
Updates an existing reference dataset with a new file, name, or domain assignments. Only provided fields are updated. The dataset remains available during the update process.
Only administrators can update reference datasets.
Reference dataset ID
CSV file content
Domain IDs to associate with the dataset
Dataset name
Reference dataset updated
Unauthorized
Forbidden
Unprocessable Entity
Internal Server Error
PATCH /api/reference_data/{id} HTTP/1.1
Content-Type: multipart/form-data
Accept: */*
Content-Length: 100
{
"dataset": "updated_reference_data.csv",
"domain_ids": [
1,
3
],
"name": "Updated Customer Status Dataset"
}{
"data": {
"domain_ids": [
101,
102
],
"id": 321,
"name": "countries_updated",
"row_count": 250
}
}Returns a list of reference datasets visible to the current user. The response includes dataset metadata (name, domain IDs, row count) but not the actual data rows.
Requires the 'View structures' permission. The list is automatically filtered to include only datasets belonging to domains the user has access to. Administrators and service accounts see all datasets.
Reference datasets retrieved
Unauthorized
Forbidden
Internal Server Error
GET /api/reference_data HTTP/1.1
Accept: */*
{
"data": [
{
"domain_ids": [
101
],
"id": 321,
"name": "countries",
"row_count": 249
},
{
"domain_ids": [
101,
102
],
"id": 322,
"name": "regions",
"row_count": 50
}
]
}Creates a new reference dataset from an uploaded CSV file and associated metadata.
Only administrators can create reference datasets.
If the CSV format is invalid or required fields are missing, the endpoint returns 422 Unprocessable Entity.
CSV file content
Domain IDs to associate with the dataset
Dataset name
Reference dataset created
Unauthorized
Forbidden
Unprocessable Entity
Internal Server Error
POST /api/reference_data HTTP/1.1
Content-Type: multipart/form-data
Accept: */*
Content-Length: 84
{
"dataset": "reference_data.csv",
"domain_ids": [
1,
2
],
"name": "Customer Status Dataset"
}{
"data": {
"domain_ids": [
101
],
"id": 321,
"name": "countries",
"row_count": 249
}
}Downloads a reference dataset as a CSV file attachment. The response is a downloadable CSV file with the filename ref_data_<id>.csv. The file is generated on-the-fly from the stored dataset. The download stream is memory-efficient for large datasets.
*Requires the 'View structures' permission on all domains associated with the dataset.
Reference dataset ID
CSV file
Unauthorized
Forbidden
Internal Server Error
GET /api/reference_data/{reference_data_id}/csv HTTP/1.1
Accept: */*
binaryLast updated