Skip to main content

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_type is not "deal" (ErrPipelineSubjectMismatch); the deal already has an open run for this pipeline (ErrPipelineAlreadyEnrolled).

Request

Responses

A successful response.