PATCH
/api/admin/companies/{id}/roleUpdate an account authorization role
Updates an account's authorization role between admin, company, and user. Supply role to promote or demote the account identified by id.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
idstringrequired
The unique identifier of the account whose authorization role you want to update.
The authorization role to assign to the account.
rolestringrequired
The account's authorization role: admin, company, or user.
200Returns a success flag and a message confirming that the role was updated.
messagestringoptional
successbooleanoptional
Error handling
The role field is required and must be one of admin, company, or user. The id path parameter identifies the account whose role you are changing.