Delete a task

/tasks/{task_id}

For general information on the API, including formatting, parameters, and pagination, please see the API Overview.

This call deletes the specified task. The task is referred to by its ID, which you can obtain by making the call to list all tasks you can access.

https://cavatica-api.sbgenomics.com/v2/tasks/{task_id}

👍

Deleting tasks

Note that you can only delete draft tasks, not running tasks.

Request

Example request

DELETE /v2/tasks/f0b89de2-45b6-789c-12b3-05b832c576c6 HTTP/1.1
Host: cavatica-api.sbgenomics.com
X-SBG-Auth-Token: 3259c50e1ac5426ea8f1273259740f74
curl  -s -H "X-SBG-Auth-Token: 6282d5e2121d43e7900e9d52b15845e7" -H "content-type: application/json" -X DELETE "https://cavatica-api.sbgenomics.com/v2/tasks/f0b89de2-45b6-789c-12b3-05b832c576c6"

Header Fields

NameDescription
X-SBG-Auth-Token
required
Your CAVATICA authentication token.

Path parameters

NameDescription
task_id
required
The ID of the task you are deleting. See the API Overview section on specifying tasks for details.

Query parameters

NameData typeDescription
fieldsstringSelector specifying a subset of fields to include in the response.

Response

See a list of CAVATICA-specific response codes that may be contained in the body of the response.


Language