Computed Fields
Operations related to Computed Fields, the plugins that manage dynamic fields within the Datamart schema, automatically calculating values based on complex logic (e.g., Lifetime Value computed from transaction data).
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/computed_fields/{computed_field_id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok",
"data": {
"created_by": "text",
"version_id": "text",
"version_value": "text",
"artifact_id": "text",
"id": "text",
"plugin_id": "text",
"archived": false,
"name": "text",
"description": "text",
"technical_name": "text",
"organisation_id": "text",
"cache_max_duration": 0,
"filter_graphql_query": "text",
"datamart_id": "text",
"last_periodic_evaluation_ts": 0,
"created_ts": 0,
"group_id": "text",
"status": "INITIAL"
}
}false000Success !
Error response
Error response
Error response
Error response
Error response
Error response
PUT /v1/computed_fields/{computed_field_id} HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 247
{
"version_id": "text",
"archived": false,
"name": "text",
"description": "text",
"technical_name": "text",
"organisation_id": "text",
"cache_max_duration": 0,
"filter_graphql_query": "text",
"datamart_id": "text",
"last_periodic_evaluation_ts": 0,
"status": "INITIAL"
}{
"status": "ok",
"data": {
"created_by": "text",
"version_id": "text",
"version_value": "text",
"artifact_id": "text",
"id": "text",
"plugin_id": "text",
"archived": false,
"name": "text",
"description": "text",
"technical_name": "text",
"organisation_id": "text",
"cache_max_duration": 0,
"filter_graphql_query": "text",
"datamart_id": "text",
"last_periodic_evaluation_ts": 0,
"created_ts": 0,
"group_id": "text",
"status": "INITIAL"
}
}Success response
Error response
Error response
Error response
Error response
Error response
Error response
DELETE /v1/computed_fields/{computed_field_id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok"
}Id of the organisation owning the computed fields
Id of the datamart owning the computed fields
ID of the plugin version
Name
Offset from which the search will be performed
Maximum number of results
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/computed_fields HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"count": 1,
"max_results": 1,
"first_result": 1,
"total": 1,
"data": [
{
"created_by": "text",
"version_id": "text",
"version_value": "text",
"artifact_id": "text",
"id": "text",
"plugin_id": "text",
"archived": false,
"name": "text",
"description": "text",
"technical_name": "text",
"organisation_id": "text",
"cache_max_duration": 0,
"filter_graphql_query": "text",
"datamart_id": "text",
"last_periodic_evaluation_ts": 0,
"created_ts": 0,
"group_id": "text",
"status": "INITIAL"
}
],
"status": "ok"
}false000Success !
Error response
Error response
Error response
Error response
Error response
Error response
POST /v1/computed_fields HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 247
{
"version_id": "text",
"archived": false,
"name": "text",
"description": "text",
"technical_name": "text",
"organisation_id": "text",
"cache_max_duration": 0,
"filter_graphql_query": "text",
"datamart_id": "text",
"last_periodic_evaluation_ts": 0,
"status": "INITIAL"
}{
"status": "ok",
"data": {
"created_by": "text",
"version_id": "text",
"version_value": "text",
"artifact_id": "text",
"id": "text",
"plugin_id": "text",
"archived": false,
"name": "text",
"description": "text",
"technical_name": "text",
"organisation_id": "text",
"cache_max_duration": 0,
"filter_graphql_query": "text",
"datamart_id": "text",
"last_periodic_evaluation_ts": 0,
"created_ts": 0,
"group_id": "text",
"status": "INITIAL"
}
}Test build result for a given state
raw json
Success !
Error response
Error response
Error response
Error response
Error response
Error response
POST /v1/datamarts/{datamart_id}/user_points/{user_point_id}/computed_fields/{computed_field_id}/tests/build_result HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 12
{
"state": {}
}{
"status": "ok",
"data": {
"state": {},
"result": {},
"user_point_id": "123e4567-e89b-12d3-a456-426614174000",
"execution_time": 0,
"message": "text",
"status": "text"
}
}Call on_update route of the given computed field plugin with the related body
raw json
Success !
Error response
Error response
Error response
Error response
Error response
Error response
POST /v1/datamarts/{datamart_id}/user_points/{user_point_id}/computed_fields/{computed_field_id}/tests/on_update HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 82
{
"update": {
"data_type": "USER_ACTIVITY",
"operation": "UPSERT",
"data": {}
},
"state": {}
}{
"status": "ok",
"data": {
"previous_state": {},
"event": {},
"user_point_id": "123e4567-e89b-12d3-a456-426614174000",
"status": "text",
"next_state": {},
"message": "text",
"execution_time": 0
}
}Success !
Error response
Error response
Error response
Error response
Error response
Error response
POST /v1/computed_fields/{computed_field_id}/actions HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 16
{
"type": "PAUSE"
}{
"status": "ok",
"data": {
"created_by": "text",
"version_id": "text",
"version_value": "text",
"artifact_id": "text",
"id": "text",
"plugin_id": "text",
"archived": false,
"name": "text",
"description": "text",
"technical_name": "text",
"organisation_id": "text",
"cache_max_duration": 0,
"filter_graphql_query": "text",
"datamart_id": "text",
"last_periodic_evaluation_ts": 0,
"created_ts": 0,
"group_id": "text",
"status": "INITIAL"
}
}Last updated
Was this helpful?