EnrollDeal starts a new pipeline run with the given deal as the subject. The pipeline must be `published` with `subject_type = 'deal'`.
POST/api/v1/crm/deals/:dealId/pipeline-runs
Errors:
- UNAUTHENTICATED: missing auth context.
- NOT_FOUND: deal does not exist (ErrDealNotFound); pipeline does not exist (ErrPipelineNotFound).
- FAILED_PRECONDITION: pipeline is not published
(ErrPipelineNotPublished); pipeline
subject_typeis not "deal" (ErrPipelineSubjectMismatch); the deal already has an open run for this pipeline (ErrPipelineAlreadyEnrolled).
Request
Responses
- 200
- default
A successful response.
An unexpected error response.