bots.publish
Make the draft the live version.
Reference
POST/api/v1/workflows/{workflow_id}/publish
- Auth
- API key in
X-API-Key - Content
- none
- Returns
- 200 · any
Publish the current draft version of a workflow. Drafts are allowed to be incomplete (so the editor can save mid-edit), but a published version is what runtime executes -- so this goes through ``publish_gate.publish_draft``: the full DTO + graph + trigger-conflict checks, the acceptable-use screen (which warns here and never refuses), and the audit row. The Publish button on a card a bot proposed in a thread goes through the same gate.
Arguments
| Argument | In | Type | Required | Description |
|---|---|---|---|---|
workflow_id | path | integer | required |
Example request
curl -X POST "https://api.decibyl.ai/api/v1/workflows/<workflow_id>/publish" \
-H "X-API-Key: dcb_your_key"Response
{}Errors
| Status | When |
|---|---|
404 | Not found |
422 | Validation Error |