Update user roles in merchant

Update the roles assigned to a user in a specific merchant. Requires MERCHANT_SETTINGS_ASSIGN_ROLE_TO_USER permission.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

organizationIdstringRequired
Organization identifier
merchantIdstringRequired
Merchant identifier

Request

This endpoint expects an object.
userIdstringRequired
User ID
rolesIdslist of stringsRequired
Array of role IDs to assign to the user

Response

User roles updated successfully
successboolean
Whether the operation was successful
messagestring
Optional message providing more details about the operation

Errors

400
Update User Roles Request Bad Request Error
401
Update User Roles Request Unauthorized Error
403
Update User Roles Request Forbidden Error
404
Update User Roles Request Not Found Error