Skip to main content

Update a subtask list

Use this endpoint to update a subtask list. Pass only the parameters you want to change; any parameters you omit remain unchanged.

Parameters

name
string
Name of the subtask list.
expand
array
Array of relationships to expand. Supported values: task, subtasks.

Returns

Returns the subtask list object if the update succeeded. Throws an error if update parameters are invalid.

put
/api/tasks/{taskId}/subtask-lists/{subtaskListId}
curl -X PUT https://{workspace}.kitchen.co/api/tasks/{taskId}/subtask-lists/{subtaskListId} \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'X-Requested-With: XMLHttpRequest' \
-H 'Authorization: Bearer {API_KEY}'
Response
{
"id": "tskl_9bbcb52099a37312fbff58c8",
"name": "Updated checklist name",
"task": "tsk_9bbcb52099a37312fbff58c8",
"subtasks": [
"tsk_9f82b648c61222c4086850c2"
],
"createdAt": "2024-03-21T07:52:35+00:00",
"updatedAt": "2024-03-21T08:00:00+00:00"
}