Skip to main content
POST
/
streaming
/
ai
/
tasks
/
{task_id}
/
cancel
Python
from gcore import Gcore

client = Gcore(
    api_key="My API Key",
)
response = client.streaming.ai_tasks.cancel(
    "task_id",
)
print(response.result)
{
  "result": "Task has been cancelled successfully."
}

Authorizations

Authorization
string
header
required

Path Parameters

task_id
string
required

Response

result
string