Create a data definition
Define one thing Agents should capture. kind: attribute (a property of the subject), assessment (a judgement about a conversation; yes/no ones feed the assessment_results_daily report), category (a classification) or metric (a measured number with a unit). subject: contact or conversation. valueType: text, number, boolean, date or option (with its options). Give a unique key, a name, optional instructions telling the Agent how to decide, and the agentIds that collect it. Fails with KEY_IN_USE when a draft or active definition already has the key.
- Scope:
raiz:definitions:write - Credentials: an API key, a client-credentials token or a person's access token
- Effect: writes; not idempotent: check the outcome before you retry
- Limits: request body up to 32 KB, response up to 1 MB
- CLI:
arbol raiz definitions create· MCP tool:raiz_definitions_create
POST
https://api.getarbol.com/v1/raiz/definitionsAuthorization
Request body JSON required
Returns
200
Successful operation.
404
NOT_FOUND: The requested operation does not exist.RESOURCE_NOT_FOUND: The requested resource does not exist in this organization.
409
DEFINITION_RETIRED: The definition is retired and can no longer change.DEFINITION_TYPE_LOCKED: The value type and subject of a definition cannot change once it has facts. Retire it and create a new one instead.KEY_IN_USE: Another active resource in this organization already uses this key.VERSION_CONFLICT: The resource changed after it was read. Read it again and retry with the new version.
422
DEFINITION_OPTIONS_INVALID: Only a definition whose value type is option has options; it needs at least one, and option keys must be unique.
502
OUTCOME_UNKNOWN: The operation may have been applied; check its result before repeating it.
503
UPSTREAM_UNAVAILABLE: The upstream service could not complete the request.INTEGRATIONS_UNAVAILABLE: The organization's integrations cannot be read right now. Try again shortly.