Archives or restores the specified task list. An archived task list remains available but cannot be edited.
Authentication
AuthorizationBearerSend your token in the Authorization: Bearer <token> header. See Authentication for API keys and OAuth.
Path parameters
projectIdstringRequiredThe id of the project.
taskListIdstringRequiredThe id of the task list.
Request body Required
The archived Task List form.
application/json
isArchivedbooleanOptionalFlags the entity as archived.
taskOperationstring or nullOptionalThe 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.
taskListIdstring or nullOptionalThe id of the task list where all non done tasks should moved to. Only necessary if TaskOperation is set to 'task-move'.
deleteTimeTrackingsboolean or nullOptionalSet to true to delete also the related time trackings of all non done tasks. Only necessary if TaskOperation is set to 'task-delete'.
Responses
200 OK
application/json
idstringOptionalThe id of the task list.
createdOnstringOptionalThe date this task list was created.
createdBystringOptionalThe id of the user who created this task list.
updatedOnstringOptionalThe date this task list was last modified.
updatedBystringOptionalThe id of the user who last modified this task list.
namestring or nullOptionalThe name of the list.
ordernumber or nullOptionalThe order of the list.
plannedDurationinteger or nullOptionalThe planned duration for this task list, in seconds.
totalPlannedDurationinteger or nullOptionalThe total planned duration for this task list, including all primary tasks (parent tasks which have this tacklist as PrimaryTaskListId), in seconds. Calculated: sum PlannedDuration of primary tasks in list Archived task lists are not included in the calculation.
totalPlannedDurationWithHierarchyinteger or nullOptionalThe total planned duration for this task list, including all primary tasks (parent tasks which have this task list as PrimaryTaskListId), in seconds. Calculated: max(PlannedDuration, sum TotalPlannedDurationWithHierarchy of primary tasks in list) Archived task lists are not included in the calculation.
isArchivedbooleanOptionalWhether the task list has been archived.
isHiddenForConnectUsersbooleanOptionalTrue if the task in this list will be not visible for external workspace users. False otherwise.
trackedDurationintegerOptionalThe total duration of time trackings for tasks in this task list, in seconds. Includes both billable and non-billable time trackings. Backend-calculated property. When hierarchy feature flag is enabled: only tasks with PrimaryTaskListId == this list. When hierarchy feature flag is disabled: all tasks associated with this list.
400 Bad Request
application/json
codestringRequired1 The error code.
descriptionstringRequired1 The description of the error.
linkstringRequired1 The link to the API documentation page.
detailsarray of string or nullOptionalA list of details describing the error.
validationErrorsarray of object or nullOptionalIf a validation error occurred, this contains the validation errors for each property.
Show 2 properties
propertystring or nullOptionalThe name of the property that failed validation.
messagestring or nullOptionalThe reason why this property failed validation.
traceIdstring or nullOptionalThe request trace id for tracking the request.
401 Unauthorized
application/json
codestringRequired1 The error code.
descriptionstringRequired1 The description of the error.
linkstringRequired1 The link to the API documentation page.
detailsarray of string or nullOptionalA list of details describing the error.
validationErrorsarray of object or nullOptionalIf a validation error occurred, this contains the validation errors for each property.
Show 2 properties
propertystring or nullOptionalThe name of the property that failed validation.
messagestring or nullOptionalThe reason why this property failed validation.
traceIdstring or nullOptionalThe request trace id for tracking the request.
404 Not Found
application/json
codestringRequired1 The error code.
descriptionstringRequired1 The description of the error.
linkstringRequired1 The link to the API documentation page.
detailsarray of string or nullOptionalA list of details describing the error.
validationErrorsarray of object or nullOptionalIf a validation error occurred, this contains the validation errors for each property.
Show 2 properties
propertystring or nullOptionalThe name of the property that failed validation.
messagestring or nullOptionalThe reason why this property failed validation.
traceIdstring or nullOptionalThe request trace id for tracking the request.