Enrollments

Exit with reason manual and your label

POST
/v1/enrollments/{id}/exit

Authorization

projectKey
headerAuthorizationBearer <token>

A project API key (sk_live_…) with read, enroll or admin scope.

Path Parameters

id*string
Length1 <= length <= 128

Request Body

application/json
  1. body
reason?string
Lengthlength <= 40
label?string
Lengthlength <= 120

Response Body

Default Response

application/json
  1. response
success*true
Value intrue
data*
meta*
curl -X POST 'http://localhost:8080/v1/enrollments/string/exit' \  -H 'Content-Type: application/json' \  -d '{}'
{  "success": true,  "data": {    "id": "string",    "projectId": "string",    "sequenceId": "string",    "versionId": "string",    "contactId": "string",    "senderId": "string",    "enrolledBy": "string",    "enrolledByKind": "string",    "mode": "string",    "status": "active",    "currentNodeId": "string",    "nextRunAt": "2019-08-24T14:15:22Z",    "ownerRunId": "string",    "waiting": {      "runId": "string",      "events": {        "property1": "string",        "property2": "string"      },      "onTimeout": "string"    },    "pausedUntil": "2019-08-24T14:15:22Z",    "pauseReason": "string",    "exitReason": "string",    "exitSignalId": "string",    "repliedAt": "2019-08-24T14:15:22Z",    "repliedChannel": "string",    "meetingBookedAt": "2019-08-24T14:15:22Z",    "meetingChannel": "string",    "touchCount": -9007199254740991,    "lastTouchAt": "2019-08-24T14:15:22Z",    "seq": -9007199254740991,    "enrolledAt": "2019-08-24T14:15:22Z",    "finishedAt": "2019-08-24T14:15:22Z",    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z"  },  "meta": {    "request_id": "string"  }}