PublishFlow activates a draft flow.
POST/api/v1/voice/flows/:id/publish
Makes the flow available to handle calls. Validates the flow before publishing.
Parameters
- id: Required, flow to publish
Prerequisites
- Flow must be in draft status
- Flow must pass validation
Side Effects
- Sets status to published
- Records published_at and published_by
- Increments version number
Errors
- NOT_FOUND: Flow does not exist
- FAILED_PRECONDITION: Flow not in draft status or invalid
- PERMISSION_DENIED: Caller lacks voice:flow:publish permission
Request
Responses
- 200
- default
A successful response.
An unexpected error response.