ServicesOrganizationsHTTP APIMembers

Set_member_role

PUT
/api/organizations/members/{user_id}/role

Set a member role with manage-users permission. The last owner cannot be demoted.

Authorization

bearerAuth
headerAuthorizationBearer <token>

Path Parameters

user_id*string

Request Body

application/json
  1. body

The role to assign. The last owner cannot be demoted.

role*organization.OrganizationRole

Organization membership role.

Value in"owner""member""guest"

Response Body

Success

response?nullapplication/json
curl -X PUT 'https://api.spiraldb.dev/api/organizations/members/string/role' \  -H 'Content-Type: application/json' \  -d '{  "role": "owner"}'
null