talonic_data_policy_publish
Publish a data policy's latest checked version and make it the one runs use. Send expected_version (the version you read): if the policy changed since, the answer is 409 revision_conflict; read again before retrying. A script rule with a syntax error is a 400 POLICY_SCRIPT_SYNTAX_ERROR naming the line. USE WHEN the user wants runs to use the current version. Confirm with the user first. Needs specs:write and an Admin of the workspace (else 403 insufficient_role).
How an agent uses it
- Not for: checking without publishing (talonic_data_policy_check).
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) |
| expected_version | integer | The version you read Range: 1 to 9007199254740991. |
Example
{
"data_policy_id": "<data_policy_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.