Syndai Docs

Cancel an app's background task

POST
/api/v1/external/coding/customers/{customer_id}/apps/{publication_id}/tasks/{operation_id}/cancel

Asks one of the app's background task runs to stop (owner or admin). Always the run as it now stands: cancel_requested while its machine stops, canceled once it has (at once for a queued run), or its finished status unchanged. Nothing is charged for a run that never started; a stopped run is charged for the time it ran.

Authorization

CustomerApiKey
headerAuthorizationBearer <API Key>

Customer API key sent as a bearer token

Path Parameters

customer_id*string
Formatuuid
publication_id*string
Formatuuid
operation_id*string
Formatuuid

Response Body

Request fulfilled, document follows

application/json
  1. response
cost_usd?number|null
created_at*string
Formatdate-time
ended_at?|null
error_code?string|null
member?|null
operation_id*string
status*string
task*string
Example Request
curl -X POST 'https://api.syndai.ai/api/v1/external/coding/customers/497f6eca-6276-4993-bfeb-53cbbbba6f08/apps/497f6eca-6276-4993-bfeb-53cbbbba6f08/tasks/497f6eca-6276-4993-bfeb-53cbbbba6f08/cancel'
Example Response
{  "cost_usd": 0,  "created_at": "2019-08-24T14:15:22Z",  "ended_at": "2019-08-24T14:15:22Z",  "error_code": "string",  "member": {    "id": "string",    "name": "string"  },  "operation_id": "string",  "status": "string",  "task": "string"}
Was this page helpful?