Access control
Assign role
Set a member's role in the current organization.
/organizations/members/{user_id}/roleSet a member’s role in the current organization. role is the identifier, such as admin or finance-ops, not role_id.
There is no unassign, so assign a different role to take one away. Invites from the dashboard only offer built-in roles, so assign a custom role with this endpoint after the person joins. The call fails if it would remove the last admin.
Send Authorization: Bearer with a token for the current organization. On Blnk Cloud the host is https://api.cloud.blnkfinance.com.
Header
Authorizationstring
Bearer token for the current organization.
Path
user_idstring
Id of the member from List team members.
Body
rolestring
Identifier of the role, such as admin or finance-ops. Do not send role_id.
Response
A 200 response returns a confirmation message.
messagestring
Member role updated successfully.