PATCH
/
organizations
/
{org_id}
/
members
/
{user_id}
/
role
curl --request PATCH \
  --url https://api.diversion.dev/v0/organizations/{org_id}/members/{user_id}/role \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "role": "READ"
}'
{
  "member": {
    "id": "member_123456",
    "user_id": "user_123456",
    "organization_id": "org_123456",
    "role": "READ"
  },
  "user": {
    "image": "<string>",
    "email": "jsmith@example.com",
    "full_name": "<string>",
    "id": "<string>",
    "name": "<string>",
    "tier": "EDUCATION"
  }
}

Authorizations

Authorization
string
header
required

This API uses OAuth 2 with the implicit grant flow

Path Parameters

org_id
string
required

An ID of an organization

user_id
string
required

A user's ID

Minimum length: 3
Example:

"Google_1192874509253"

Body

application/json

Response

200
application/json

Role updated successfully

The response is of type object.