POST
/
streaming
/
ai
/
tasks
/
{task_id}
/
cancel
curl --request POST \
  --url https://api.gcore.com/streaming/ai/tasks/{task_id}/cancel \
  --header 'APIKey: <api-key>'
{
  "result": "Task has been cancelled successfully."
}

Authorizations

APIKey
string
header
required

API key for authentication.

Path Parameters

task_id
string
required

ID of the task to be cancelled

Response

202
application/json

Accepted. AI-task has been cancelled successfully

The response is of type object.