Archives or unarchives the task list with the specified id.

POST
Archives or unarchives the task list with the specified id. An archived task list still exists but is not editable anymore.

Path parameters

projectIdstringRequired
The id of the project the task list is related to.
taskListIdstringRequired
Id of the task list which will be archived.

Request

This endpoint expects an object.
isArchivedbooleanRequired
Flags the entity as archived.
taskOperationstringOptional
The operation for tasks which are not yet done. The operation is required if you set a list to archived. Can be: task-to-done: Set tasks to 'Done' or the first status of type 'done'. task-remove: Remove tasks from this task list. task-move: Move tasks to another list. task-delete: Deletes the non done tasks.
taskListIdstringOptional
The id of the task list where all non done tasks should moved to. Only necessary if TaskOperation is set to 'task-move'.
deleteTimeTrackingsbooleanOptional
Set to true to delete also the related time trackings of all non done tasks. Only necessary if TaskOperation is set to 'task-delete'.

Response

This endpoint returns an object
namestring
The name of the list.
orderdoubleOptional
The order of the list.
idstringOptional
The id of the task list.
isArchivedbooleanOptional
Whether the task list has been archived.
createdOndatetimeOptional
The date this task list was created.
createdBystringOptional
The id of the user who created this task list.
updatedOndatetimeOptional
The date this task list was last modified.
updatedBystringOptional
The id of the user who last modified this task list.