Assign/remove users to an absence region.
Only an admin or a user with UserPlanningData(write) permissions can assign/remove any user to an absence region. A user can be assigned to only one absence region. As such, if a user is already assigned to an absence region, he 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.
Required Permissions
The user must be an admin or haveuser-planning-data:write
permissions.Headers
Authorization
Bearer authentication of the form Bearer <token>, where token is your auth token.
Request
This endpoint expects an object.
userIds
The list of userIds to assign to that region. Providing an empty list of user ids will remove all users from the absence region.
regionId
The id of the region to assign the users to.
Response
No Content