Tasks

Cancel an open task; the step takes no_answer

POST
/v1/tasks/{id}/cancel

Authorization

projectKey
headerAuthorizationBearer <token>

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

Path Parameters

id*string
Length1 <= length <= 128

Response Body

Default Response

application/json
  1. response
success*true
Value intrue
data*
meta*
curl -X POST 'http://localhost:8080/v1/tasks/string/cancel'
{  "success": true,  "data": {    "id": "string",    "projectId": "string",    "enrollmentId": "string",    "runId": "string",    "senderId": "string",    "contactId": "string",    "kind": "string",    "title": "string",    "body": "string",    "link": "string",    "dueAt": "2019-08-24T14:15:22Z",    "expiresAt": "2019-08-24T14:15:22Z",    "status": "string",    "outcome": "string",    "note": "string",    "connectedOutcomes": [      "string"    ],    "branchesByOutcome": {      "property1": "string",      "property2": "string"    },    "onCompleted": "string",    "onExpired": "string",    "dialer": true,    "autoComplete": true,    "dialerPushedAt": "2019-08-24T14:15:22Z",    "completeOnOpen": "string",    "openedAt": "2019-08-24T14:15:22Z",    "completedAt": "2019-08-24T14:15:22Z",    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z"  },  "meta": {    "request_id": "string"  }}