Cancel an app's background task
POST
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.
CustomerApiKeyheader
AuthorizationBearer <API Key>Customer API key sent as a bearer token
customer_id*stringFormat
uuidpublication_id*stringFormat
uuidoperation_id*stringFormat
uuidRequest fulfilled, document follows
application/json- response
cost_usd?number|nullcreated_at*stringFormat
date-timeended_at?|nullerror_code?string|nullmember?|nulloperation_id*stringstatus*stringtask*stringcurl -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"}