talonic_data_policy_run
Apply a data policy's published version to a completed structuring run and start it; answers 202 with the new run. Follow it on GET /v1/resolutions/{id} and read its rows on GET /v1/resolutions/{id}/results. 409 not_published when the policy has no published version (publish it first). USE WHEN the user wants a run's values normalised by the policy. Needs runs:write and an Admin of the workspace (else 403 insufficient_role).
How an agent uses it
- Not for: a preview on one record (talonic_data_policy_preview).
Availability
Listed when your role can see the workspace's data policies. Being listed only means the tool is visible: Talonic checks your role again on every call.
Behaviour and cost
- Not read-only. It can add to or change workspace data.
Parameters
| Parameter | Type | Description |
|---|---|---|
| data_policy_id * | string | The data policy id (from GET /v1/data-policies) |
| source_run_id * | string | The completed structuring run to apply the policy to |
| user_schema_id | string | Write against another schema than the source run's |
Example
Tool input
{
"data_policy_id": "<data_policy_id>",
"source_run_id": "<source_run_id>"
}Errors
A failed call comes back as a tool error with the HTTP status and a message that says what to change. Troubleshooting lists the common ones.