absenceRegions

Sets users for an absence region.

Changed on

Sets the users assigned to an absence region. A user can belong to only one region, so assigning a user here removes any previous assignment. An empty user list removes all assignments.

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

post/absenceregions/users/assign

Request

  • Base URL: https://api.awork.com/api/v1
  • URL: https://api.awork.com/api/v1/absenceregions/users/assign
  • Auth: HTTP bearer

Request body

userIdsstring[] required

The list of userIds to assign to that region. Providing an empty list of user ids will remove all users from the absence region.

regionIdstring uuid required

The id of the region to assign the users to.

Response

No Content

object required

Changes

    • warning

      deleted the header request parameter Authorization

    • info

      the endpoint scheme security oauth2 was added to the API

    • info

      api operation id PostAbsenceRegionsUsersAssign removed and replaced with absenceRegions_PostAbsenceRegionsUsersAssign