v1

latestOpenAPI 3.1.02026-08-066984441.1 MB
tasks

Edits multiple tasks using the specified operation.

Returns MultiStatus including the list of successful and failed tasks.

         Supported Operations:
         <ul>&gt;
         <li>movetoproject: Moves all tasks to a new project.</li><li>movetotasklist: Moves all tasks to a new task list inside the same project.</li><li>moveundertask: Moves every selected task (and their subtasks) under the specified parent task, validating project boundaries.</li><li>setdates: Sets the due and optionally start date for all tasks.</li><li>adjustdates: Offsets start and due dates by the specified number of days while respecting the user's timezone.</li><li>addtags: Adds a list of tags to all tasks in the list that don't already have the tag.</li><li>delete: Deletes all tasks. Optional including time trackings.</li><li>changetypeofwork: Changes the type of work for a list of tasks. Optionally also for the related timetrackings.</li><li>assignusers: Assigns a list of users to a list of tasks.</li><li>unassignusers: Unassigns a list of users from a list of tasks. If the UserIds are not provided, all users are unassigned.</li><li>setprio: Sets the prio flag for a list of tasks.</li><li>changetaskstatus: Sets the task status for a list of tasks.</li><li>copy: Creates copies of all specified tasks (including subtasks) and reorders them to maintain hierarchy.</li><li>plannerbatch: Multiple operations to a single task. Used in the planner.</li></ul><Check title="Required Permissions" icon="key">The user must have `write` permissions on all tasks as well as related entities modified by the operation.</Check>
post/tasks/batch/{operation}

Path parameters

operationstring required

The operation to perform on all tasks.

Headers

Authorizationstring required

Bearer authentication

Request body

taskIdsstring[] required

The list of task ids to perform the batch operation on.

newTaskListIdstring uuid nullable

The id of the new task list. Needed if operation is 'movetotasklist'. Optional if operation is 'movetoproject'.

removeFromCurrentListboolean nullable

Whether to remove the task from all its current task lists. Optional for operation 'movetotasklist'.

newProjectIdstring uuid nullable

The id of the new project to move the tasks to. Needed if operation is 'movetoproject'.

newParentTaskIdstring uuid nullable

The id of the task that will be the new parent of the selected tasks. Needed if operation is 'moveundertask'.

newTaskStatusIdstring uuid nullable

Deprecated for 'movetoproject': use TaskStatusMapping instead. The id of the new task status id to change the tasks to. Needed if operation is 'movetoproject' or 'changetaskstatus'.

newDueDatestring date-time nullable

The new due date for the tasks. Optional for operation 'setdates'. If not set, due and start date will be removed.

newStartDatestring date-time nullable

The new start date for the tasks. Optional for operation 'setdates'. Only gets used when NewDueDate is set.

removeDueDateboolean nullable

Whether to remove the due date. Required for operation 'setdates'.

removeStartDateboolean nullable

Whether to remove the start date. Required for operation 'setdates'.

deleteTimeTrackingsboolean nullable

Whether to delete the timetrackings of each task when deleting tasks. Optional for operation 'delete'.

newTypeOfWorkIdstring uuid nullable

The new type of work id for the tasks. Required if operation is 'changetypeofwork'.

changeTimeEntriesboolean nullable

Whether to change the type of work of the timeentries for each task aswell. Optional for operation 'changetypeofwork'.

userIdsstring[] nullable

Depending on the batch operation, it can be either the ids of the user to assign ('assignusers', required) or the ids of the user to remove ('unassignusers', optional, if not provided unassigns all users).

removeOldAssignmentsboolean nullable

Whether to replace or add user assignments to a task that has users already assigned. Optional for operation 'assignusers'.

isPrioboolean nullable

Whether to set the tasks to be prio or not. Required for operation 'setprio'.

daysOffsetnumber double nullable

In case of an adjust date operation, define the number (positive or negative) of days that will be added/subtracted to the task dates. It can be a decimal number (fraction of day)

adjustSuccessorsboolean nullable

If set to true, it will adjust the dates of successor tasks as well.

adjustSubtasksboolean nullable

If set to true, it will adjust the dates of subtasks of selected tasks. If set to false, it will only adjust the dates of the selected tasks.

Response

Multi-Status