Update user roles in merchant

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

Path parameters

organizationIdstringRequired
Organization identifier
merchantIdstringRequired
Merchant identifier

Headers

AuthorizationstringRequired

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

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 or null
Optional message providing more details about the operation

Errors