Assign/remove users to an absence region.

PUT

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 have user-planning-data:write permissions.

Request

This endpoint expects an object.
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.

regionIdstringRequired

The id of the region to assign the users to.