Tasks
Complete with an outcome; wakes the waiting step
POST
projectKeyheader
AuthorizationBearer <token>A project API key (sk_live_…) with read, enroll or admin scope.
id*stringLength
1 <= length <= 128application/json- body
outcome*stringLength
1 <= length <= 32note?stringLength
length <= 4000Default Response
application/json- response
success*trueValue in
truedata*meta*curl -X POST 'http://localhost:8080/v1/tasks/string/complete' \ -H 'Content-Type: application/json' \ -d '{ "outcome": "string"}'{ "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" }}