Last updated 11 months ago
Get all tasks for a project
Tasks
Get task with id
Task
Delete a task in a project
Successful Task deletion
const response = await fetch('https://www.taskade.com/api/v1/projects/{projectId}/tasks', { method: 'GET', headers: {}, }); const data = await response.json();
{ "ok": true, "items": [ { "id": "123e4567-e89b-12d3-a456-426614174000", "text": "text", "parentId": "123e4567-e89b-12d3-a456-426614174000", "completed": false } ] }
const response = await fetch('https://www.taskade.com/api/v1/projects/{projectId}/tasks/{taskId}', { method: 'GET', headers: {}, }); const data = await response.json();
{ "ok": false, "item": { "id": "123e4567-e89b-12d3-a456-426614174000", "text": "text", "parentId": "123e4567-e89b-12d3-a456-426614174000", "completed": false } }
const response = await fetch('https://www.taskade.com/api/v1/projects/{projectId}/tasks/{taskId}', { method: 'DELETE', headers: {}, }); const data = await response.json();
{ "ok": true, "item": { "id": "123e4567-e89b-12d3-a456-426614174000", "text": "text", "parentId": "123e4567-e89b-12d3-a456-426614174000", "completed": false } }