Change a call flow’s name, description or draft
Needs the routing:write scope. About scopes
Saves what is sent. draft replaces the draft document whole (it is not published until POST /call-flows/{id}/publish); its issues come back with the flow and do not block the save. With ifVersion, a change based on an older version is refused (409 version_conflict). Archived flows cannot be changed (422 flow_archived).
keyAuthorizationBearer <traki_account_…>id*stringuuidapplication/json- body
name?string2 <= length <= 80description?|nulldraft?The whole draft document, as GET /call-flows/{id} gives it.
ifVersion?stringThe version the change is based on. When the record has changed since, the change is refused with 409 version_conflict.
^\d{1,16}$Success
application/json- response
id*stringuuidcode*stringname*stringdescription*string|nullcampaignId*|nullstatus*stringpublishedVersion*|nullpublishedAt*string|nulllatestVersion*integer-9007199254740991 <= value <= 9007199254740991draftRevision*integer-9007199254740991 <= value <= 9007199254740991version*stringcreatedAt*stringupdatedAt*stringdraft*The draft document: the same JSON the portal’s flow builder edits (schema 1).
draftChanged*booleanWhether the draft differs from the published version.
issues*array<>curl -X PATCH 'https://api.traki.io/v1/account/call-flows/497f6eca-6276-4993-bfeb-53cbbbba6f08' \ -H "Authorization: Bearer $TRAKI_KEY" \ -H 'Content-Type: application/json' \ -d '{}'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "code": "string", "name": "string", "description": "string", "campaignId": "13f8bf6d-dc27-4a04-bffe-6e5b13c19ddf", "status": "string", "publishedVersion": -9007199254740991, "publishedAt": "string", "latestVersion": -9007199254740991, "draftRevision": -9007199254740991, "version": "string", "createdAt": "string", "updatedAt": "string", "draft": { "property1": null, "property2": null }, "draftChanged": true, "issues": [ { "code": "string", "severity": "string", "message": "string", "nodeId": "string" } ]}One call flow, with its draft GET
Previous Page
Publish a call flow’s draft POST
Publishes the draft as the flow’s next version; the campaign’s calls run it from then on. The draft is checked again first (422 flow_not_ready, with the issues), a draft equal to the published version is refused (422 flow_unchanged), and a flow on no campaign cannot be published (422 flow_unassigned). With `ifVersion`, a flow changed since is refused (409 version_conflict).