workspaceAbsences

Returns workspace absences.

Changed on

Returns workspace absences. Gets all workspace absences.

<Check title="Required Permissions" icon="key">The user must be an admin or have user-planning-data:write permissions.</Check>

get/workspaceabsences

Request

  • Base URL: https://api.awork.com/api/v1
  • URL: https://api.awork.com/api/v1/workspaceabsences
  • Auth: HTTP bearer

Query parameters

pageinteger

Page number for pagination

pageSizeinteger

Number of items per page

orderbystring

The properties to order by

filterbystring

The filter expression to filter by

Response

OK

idstring uuid

The id of the entity.

createdOnstring date-time

The date this entity was created.

createdBystring uuid

The id of the user who created this entity.

updatedOnstring date-time

The date this entity was last modified.

updatedBystring uuid

The id of the user who last modified this entity.

startOnstring date-time

The start time of the workspace absence.

endOnstring date-time

The end time of the workspace absence.

descriptionstring nullable

The description of the absence.

regionIdstring uuid nullable

The (optional) regionId of the workspace absence. If null, the absence is global for the entire workspace. Otherwise, it will be applied only to the users of the region.

regionstring nullable

The name of the region of the workspace absence. Null if the absence is global for the entire workspace.

isReadOnlyboolean

If it's true it means that this Absence is read-only and cannot be edited/deleted by the user.

isHalfDayOnStartboolean

If it's true and it's a single day absence means that the absence is for the first half of the workday. If it's a multi day absence it started on the second half of the first day of the absence period.

isHalfDayOnEndboolean

If it's true and it's a single day absence means that the absence is for the second half of the workday. If it's a multi day absence it ended on the first half of the last day of the absence period.

Changes

    • warning

      deleted the header request parameter Authorization

    • info

      the endpoint scheme security oauth2 was added to the API

    • info

      api operation id GetWorkspaceAbsences removed and replaced with workspaceAbsences_GetWorkspaceAbsences