Set_member_role
PUT
Set a member role with manage-users permission. The last owner cannot be demoted.
bearerAuthheader
AuthorizationBearer <token>user_id*stringapplication/json- body
The role to assign. The last owner cannot be demoted.
role*organization.OrganizationRoleOrganization membership role.
Value in
"owner""member""guest"Success
response?nullapplication/jsoncurl -X PUT 'https://api.spiraldb.dev/api/organizations/members/string/role' \ -H 'Content-Type: application/json' \ -d '{ "role": "owner"}'null