Agent Versions
Promote the canary and end the rollout
Makes the canary version's config the agent's live config and clears the release. The canary is pinned by version, so an edit that landed mid-rollout is not promoted in its place — it stays an unreleased draft in the version history.
When the release carries a promotion_gate, the eval it names must have a run that finished completed with passed: true and was pinned to the canary version (agent_version); otherwise the call is a 409 and the rollout is left running untouched. The run that cleared the gate is recorded as eval_run_id on the version that goes live.
post/v1/projects/{project_id}/agents/{agent_id}/release/promote
Request
- Base URL: https://api.naturali.ai
- URL: https://api.naturali.ai/v1/projects/{project_id}/agents/{agent_id}/release/promote
- Auth: one of:
- HTTP bearer
- OAuth 2 (authorization code, authorization URL https://api.naturali.ai/authorize, token URL https://api.naturali.ai/token, scopes: mcp:access)
Path parameters
agent_idstring required
Example:agent_V1StGXR8Z5jdHi6B
Agent public ID
Response
The agent, now serving the promoted config
Example response
{
"id": "agent_V1StGXR8Z5jdHi6B",
"tool_bindings": [
{
"tool_id": "tool_V1StGXR8Z5jdHi6B"
}
],
"knowledge_config": {
"tags": {
"team": "finance",
"env": "prod"
}
},
"max_output_tokens": 1024,
"reasoning": {
"effort": "low"
},
"version": 3,
"active_release": {
"stable_version": 3,
"canary_version": 4,
"canary_percent": 20,
"promotion_gate": "eval_V1StGXR8Z5jdHi6B"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.