PublishPipelineDefinition flips a draft pipeline to `published` and starts accepting enrollments. Schema is re-validated against the full ruleset before the flip.
POST/api/v1/crm/pipelines/:id/publish
Errors:
- NOT_FOUND: pipeline does not exist (ErrPipelineNotFound).
- FAILED_PRECONDITION: pipeline is not in draft status (ErrPipelineNotDraft); pipeline is already published (ErrPipelineAlreadyPublished); a referenced form is no longer published (ErrPipelineFormNotPublished).
- INVALID_ARGUMENT: a contact-subject stage has no
contact_stage_id(ErrPipelineContactStageMissing) or one outside the organization (ErrPipelineContactStageUnknown).
Request
Responses
- 200
- default
A successful response.
An unexpected error response.