Edits multiple time entries using the specified operation.

POST

The user is only allowed to edit time entries they have permissions for. Returns MultiStatus. Includes the list of successfully changed, not found, unauthorized, and invalid time entry ids. Returns BadRequest if the validation of the form fails, f.e. the new type of work cannot be found.

Supported Operations: delete: Deletes all time entries. Only admins can delete already billed time entries. setTypeOfWork: Changes the type of work for a list of time entries. TODO: check if only admins should be able to change for billed. setIsBillable: Changes the billability for a list of time entries. Already billed time entries can only be changed to being unbillable by admins. In this case, the IsBilled flag is also set to false. setIsBilled: Changes the billing status for a list of time entries. Only admins can change the billing status back to unbilled for already billed time entries. setProject: Changes the project for a list of time entries. Only admins can change the project for already billed time entries. Setting the project unsets the previous project and task. setTask: Changes the task for a list of time entries. Only admins can change the task for already billed time entries. Setting the task automatically sets the project if that task is a project task. setUser: Changes the user for a list of time entries. Only admins can change the user for already billed time entries.

Required Permissions: Any authenticated user.

Path parameters

operationstringRequired

The name of the operation to execute on the given time entries. Valid values are: delete, setTypeOfWork, setIsBillable, setIsBilled, setProject, setTask, setUser.

Request

This endpoint expects an object.
timeEntryIdslist of stringsRequired

The list of time entry ids to perform the batch operation on.

newTypeOfWorkIdstringOptional

The id of the new type of work. Required for operation ‘setTypeOfWork’.

isBillablebooleanOptional

Set the billable flag for time entries. Required for operation ‘setIsBillable’.

isBilledbooleanOptional

Set the billed flag for time entries. Required for operation ‘setIsBilled’.

newUserIdstringOptional

The id of the new user to assign the time entries to. Required for operation ‘setUser’.

newProjectIdstringOptional

The id of the new project to assign the time entries to. Required for operation ‘setProject’.

newTaskIdstringOptional

The id of the new task to assign the time entries to. Required for operation ‘setTask’.

Response

OK

okobjectOptional
notFoundobjectOptional
unauthorizedobjectOptional
badRequestobjectOptional