Set an AI agent's call variables
set_agent_variablesReplace an AI agent's whole call variables config, as PUT /v1/agents/{agent_id}/variables does. It is checked and republished at once, so the next call uses it; nothing is stored on a refusal. Send base_revision from get_agent_variables to be refused, rather than overwrite, when the agent changed since. A refused config returns error.body.issues, each with a code and where it points.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| config | Yes | An agent's call variables, SMS templates and caller lookup. Exported from config_schema.py (the API's copy; tests pin the two equal) for the dashboard and the docs. tests/fixtures/call_variables/config_cases.json is the accept/reject contract. | |
| agent_id | Yes | ||
| base_revision | No | The revision this edit was based on. When sent and stale, the write is refused with 409 revision_conflict. Omit for last-write-wins. | |
| organization_id | No | Optional. Defaults to the authenticated workspace; when supplied it must be that workspace's id. |