cURL
curl --request PATCH \ --url https://api.example.com/users/{user}/units/{unit} \ --header 'Content-Type: application/json' \ --data ' { "unit": 123, "userTypes": [ 123 ], "department": 123, "overwrite": true } '
Updates an existing unit membership for the user (e.g. department, user types, or move to another unit).
User ID
Unit ID of the membership to update
Unit ID to move the membership to
User type IDs
Department ID within the unit, or null to clear
Whether to overwrite existing user types (default: true)
Unit membership updated