Implementations
Retrieves rule implementations filtered by rule business concept or active status.
Filter by rule business concept ID
Filter by rule active status (true/false)
Implementations response
Unauthorized
Forbidden
Unprocessable Entity
Internal Server Error
GET /api/rule_implementations HTTP/1.1
Accept: */*
{
"data": [
{
"id": 1,
"implementation_key": "imp_123",
"rule_id": 10,
"status": "published",
"version": 1
}
]
}Creates a new rule implementation, either cloned or based on the provided rule data.
Implementation response
Unauthorized
Forbidden
Unprocessable Entity
Internal Server Error
POST /api/rule_implementations HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 119
{
"rule_implementation": {
"goal": 100,
"implementation_key": "new_imp",
"minimum": 50,
"result_type": "percentage",
"rule_id": 1
}
}{
"id": 1,
"implementation_status": "active",
"rule_id": 11
}Links a data structure to the specified implementation.
Implementation ID
ID of the data structure to link
Link type (e.g., 'dataset', 'population')
Structure link response
Unauthorized
Forbidden
Not found
Unprocessable Entity
Internal Server Error
POST /api/rule_implementations/{implementation_id}/data_structures HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 40
{
"data_structure_id": 1,
"type": "dataset"
}{
"data": {
"data_structure_id": 5,
"id": 1,
"implementation_id": 10,
"type": "dataset"
}
}Uploads implementations data from a CSV file.
Auto-publish flag (true/false)
CSV file with implementations
Language code (e.g., 'en', 'es')
Upload response
Unauthorized
Forbidden
Unprocessable Entity
Internal Server Error
POST /api/rule_implementations/upload HTTP/1.1
Content-Type: multipart/form-data
Accept: */*
Content-Length: 69
{
"auto_publish": "false",
"implementations": "file content",
"lang": "en"
}{
"data": {
"errors": [],
"ids": [
1,
2
]
}
}Retrieves available implementation filter values based on the provided search criteria.
Filter response
Unauthorized
Internal Server Error
POST /api/rule_implementation_filters/search HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 48
{
"filters": {
"implementation_status": [
"active"
]
}
}{
"filters": {
"implementation_status": [
{
"count": 1,
"key": "active"
}
]
}
}Searches rule implementations based on filter criteria and pagination.
Page number
Page size
Page number
0Page size
20Filter by status (e.g., 'deleted')
Implementation search response
Scroll ID for pagination
Unauthorized
Forbidden
Internal Server Error
POST /api/rule_implementations/search HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 90
{
"filters": {
"implementation_status": [
"active"
]
},
"must": {
"rule_id": 123
},
"page": 0,
"size": 20
}{
"filters": {
"implementation_status": [
{
"count": 1,
"key": "active"
}
]
},
"implementations": [
{
"id": 88,
"implementation_status": "active",
"rule_id": 11
}
],
"scroll_id": null
}Searches implementations by rule ID using the provided search criteria.
Page number
0Page size
20Filter by status (e.g., 'deleted')
Implementation search response
Scroll ID for pagination
Unauthorized
Forbidden
Internal Server Error
POST /api/rules/rule_implementations HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 90
{
"filters": {
"implementation_status": [
"active"
]
},
"must": {
"rule_id": 123
},
"page": 0,
"size": 20
}{
"filters": {
"implementation_status": [
{
"count": 1,
"key": "active"
}
]
},
"implementations": [
{
"id": 88,
"implementation_status": "active",
"rule_id": 11
}
],
"scroll_id": null
}Retrieves details for the specified rule implementation.
Implementation ID
Implementation response
Unauthorized
Forbidden
Internal Server Error
GET /api/rule_implementations/{id} HTTP/1.1
Accept: */*
{
"_actions": {
"autoPublish": {
"href": "/api/rule_implementations/upload",
"method": "POST"
},
"clone": {
"method": "POST"
},
"delete": {
"method": "POST"
},
"link_concept": {
"method": "POST"
},
"link_structure": {
"method": "POST"
},
"restore": {
"method": "POST"
},
"view_approval_pending_concept": {
"method": "POST"
},
"view_draft_concept": {
"method": "POST"
},
"view_published_concept": {
"method": "POST"
}
},
"data": {
"df_content": {
"field": "value"
},
"executable": true,
"goal": 100,
"id": 1,
"implementation_key": "imp_123",
"inserted_at": "2026-06-10T10:00:00Z",
"minimum": 50,
"result_type": "percentage",
"rule_id": 10,
"status": "published",
"updated_at": "2026-06-10T10:00:00Z",
"version": 1
}
}Updates the specified rule implementation with the provided payload.
Implementation ID
Implementation response
Unauthorized
Forbidden
Not found
Unprocessable Entity
Internal Server Error
PUT /api/rule_implementations/{id} HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 56
{
"rule_implementation": {
"goal": 90,
"status": "published"
}
}{
"id": 1,
"implementation_status": "active",
"rule_id": 11
}Deletes the specified rule implementation.
Implementation ID
No content
No content
Unauthorized
Forbidden
Internal Server Error
DELETE /api/rule_implementations/{id} HTTP/1.1
Accept: */*
No content
Updates the specified rule implementation with the provided payload.
Implementation ID
Implementation response
Unauthorized
Forbidden
Not found
Unprocessable Entity
Internal Server Error
PATCH /api/rule_implementations/{id} HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 56
{
"rule_implementation": {
"goal": 90,
"status": "published"
}
}{
"id": 1,
"implementation_status": "active",
"rule_id": 11
}Downloads implementations matching the provided filters as an XLSX file.
Page number
Page size
Implementation status filter
Header labels
Content labels
Language
XLSX file
binary contentNo content - no implementations found
Unauthorized
Internal Server Error
POST /api/rule_implementations/xlsx/download HTTP/1.1
Accept: */*
binary contentTriggers a full reindex of implementations.
Accepted
No content
Unauthorized
Forbidden
Internal Server Error
GET /api/rule_implementations/search/reindex_all HTTP/1.1
Accept: */*
No content
Removes the link between the specified implementation and data structure.
Implementation structure ID
No content
No content
Unauthorized
Forbidden
Internal Server Error
DELETE /api/rule_implementations/data_structures/{id} HTTP/1.1
Accept: */*
No content
Uploads implementations from an XLSX file and enqueues processing.
Language
Auto publish implementations
Auto-publish flag (true/false)
XLSX file with implementations
Language code (e.g., 'en', 'es')
Upload response
Job ID for tracking upload progress
Unauthorized
Forbidden
Internal Server Error
POST /api/rule_implementations/xlsx/upload HTTP/1.1
Content-Type: multipart/form-data
Accept: */*
Content-Length: 69
{
"auto_publish": "false",
"implementations": "file_content",
"lang": "en"
}{
"job_id": 123
}Creates a result for the specified implementation.
Implementation key
Result response
Unauthorized
Forbidden
Not found
Unprocessable Entity
Internal Server Error
POST /api/rule_implementations/{implementation_id}/results HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 65
{
"rule_result": {
"errors": 2,
"params": {
"foo": "bar"
},
"records": 100
}
}{
"data": {
"id": 1,
"params": {
"foo": "bar"
},
"result": "98.00"
}
}Last updated