Updates the role for the specified user ID.
Admin assignment: Only users with role admin can assign the admin role. Non-admin users receive 403 Forbidden when attempting to assign admin.
Last admin protection: The last remaining admin cannot be demoted; at least one admin must always exist.
Documentation Index
Fetch the complete documentation index at: https://docs.crypto.westminister.tech/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
User ID (UUID).
User role. Master merchants use vendor with no parent_vendor_id. Sub-merchants use subvendor with parent_vendor_id set.
admin can only be assigned via PUT /api/v1/auth/user/id/{id}/role by an existing admin.
customer, vendor, subvendor, user, admin "customer"
Role updated