Sets users for an absence region.

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>

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

400
Bad Request Error
404
Not Found Error