timeEntries

Updates multiple time entries using the operation.

Changed on

Updates multiple time entries using the operation. Each requested change is reported separately. <Check title="Required Permissions" icon="key">The user must have permission to access the requested time entries.</Check>

post/timeentries/batch/{operation}

Request

  • Base URL: https://api.awork.com/api/v1
  • URL: https://api.awork.com/api/v1/timeentries/batch/{operation}
  • Auth: HTTP bearer

Path parameters

operationstring required

The batch operation type.

Request body

timeEntryIdsstring[] required

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

newTypeOfWorkIdstring uuid nullable

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

isBillableboolean nullable

Set the billable flag for time entries. Required for operation 'setIsBillable'.

isBilledboolean nullable

Set the billed flag for time entries. Required for operation 'setIsBilled'.

requireAllTimeEntriesboolean

Whether the operation must leave every requested time entry unchanged when any entry cannot be updated.

newUserIdstring uuid nullable

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

newProjectIdstring uuid nullable

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

newTaskIdstring uuid nullable

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

Response

Multi-Status

Changes

    • warning

      deleted the header request parameter Authorization

    • info

      the endpoint scheme security oauth2 was added to the API

    • info

      api operation id PostTimeEntriesBatchByOperation removed and replaced with timeEntries_PostTimeEntriesBatchByOperation