Delete a task

/tasks/{task_id}

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://api.sb.biodatacatalyst.nhlbi.nih.gov/v2/tasks/{task_id}

👍

Deleting tasks

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

Request

Example request

DELETE /v2/tasks/bd5e95d9-12b3-789c-45b6-34d8696571a9 HTTP/1.1
Host: api.sb.biodatacatalyst.nhlbi.nih.gov
X-SBG-Auth-Token: 3259c50e1ac5426ea8f1273259740f74
curl  -s -H "X-SBG-Auth-Token: 6282d5e2121d43e7900e9d52b15845e7" -H "content-type: application/json" -X DELETE "https://api.sb.biodatacatalyst.nhlbi.nih.gov/v2/tasks/bd5e95d9-12b3-789c-45b6-34d8696571a9"

Header Fields

NameDescription
X-SBG-Auth-Token
required
You 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.

Response

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

HTTP/1.1 204 No Content
Date: Tue, 29 Mar 2016 15:47:44 GMT
Connection: close