Update role, payment types, and/or delegation settings for an active employee. All fields in the request body are optional.
The role to assign to the user. Must belong to the same business.
The payment types the user can transact with.
[ "cards" ]
Whether the user is out of office. When true, both start and end dates are required.
First day of the out-of-office period (inclusive).
Last day of the out-of-office period (inclusive). Must be on or after the start date.
The user ID to delegate approvals to while out of office. Must belong to the same business and have no overlapping out-of-office period.
Replaces the user's full set of expense assistants with these user IDs. A user can have at most 3 expense assistants. Each ID must belong to the same business, must be a different user (a user cannot be their own expense assistant), and must not be repeated. Expense assistants cannot be chained. A user who is themselves an expense assistant cannot be given assistants, and a user who already has assistants cannot be assigned as one. Omit this field to leave the current assistants unchanged, or send an empty array to remove them all.
[ 456, 789 ]
curl -i -X PATCH \
'https://public.letsweel.com/v1/businesses/123/users/{user_id}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"role_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"payment_types": [
"cards"
],
"out_of_office_mode": true,
"out_of_office_start_date": "2026-06-01",
"out_of_office_end_date": "2026-06-15",
"delegate_approver": 789,
"expense_delegate": [
456,
789
]
}'OK
The date and time when the user was created in UTC.
The date and time when the user was last updated in UTC.
The payment types the user can transact with.
[ "cards" ]
First day of the out-of-office period (inclusive).
Last day of the out-of-office period (inclusive).
The user ID to delegate approvals to while out of office.
{ "id": 123, "first_name": "John", "last_name": "Doe", "name": "John Doe", "email": "john.doe@example.com", "role": "Team Member", "role_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "is_deleted": false, "created": "2024-01-01T00:00:00Z", "updated": "2024-01-01T00:00:00Z", "payment_types": [ "cards" ], "out_of_office_mode": true, "out_of_office_start_date": "2026-06-01", "out_of_office_end_date": "2026-06-15", "delegate_approver": 789, "expense_delegate": [ 456, 789 ] }