Assigns or unassigns users to/from an absence region.

A user can be assigned to only one absence region. If a user is already assigned to an absence region, they will be removed from the previous one and assigned to the new one. Providing an empty list of user ids will remove all users from the absence region. <Check title="Required Permissions" icon="key">The user must be an admin or have `user-planning-data:write` permissions.</Check>

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

The model to assign or unassign users to/from an absence region.

userIdslist of stringsRequired
The list of userIds to assign to that region. Providing an empty list of user ids will remove all users from the absence region.
regionIdstringRequiredformat: "uuid"
The id of the region to assign the users to.

Response

No Content

Errors