absenceRegions

Sets the current user's absence region.

Changed on

Sets the current user's absence region. A user can have only one region; assigning a new region replaces the previous one. A null region id removes the current assignment.

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

post/absenceregions/me/assign

Request

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

Request body

regionIdstring uuid nullable

The id of the region to assign the users to. If null, removes the user from any absence region.

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 PostMeAbsenceRegionsAssign removed and replaced with absenceRegions_PostMeAbsenceRegionsAssign