set_production_release
Promote a release to production, or clear the production pointer. Production is what run_workflow executes when called with target="production" — external callers keep running the frozen version while you iterate on the draft.
Parameters#
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
workflow_id | string | yes | The draft workflow id (agent_…) | |
release_id | string | null | no | null | The release to promote (release_…), or null to clear production (the workflow then has no production version) |
Returns#
json
{
"workflow_id": "agent_abc",
"production_release_id": "release_def",
"previous_production_release_id": "release_abc"
}Errors#
error_type | When |
|---|---|
auth_error | Missing / invalid API key |
not_found | Workflow / release id doesn’t exist or is outside your org |
See also#
list_releases— find the release id to promotedelete_release— requires the release not be production