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": {
"id": "<string>",
"image": "<string>",
"email": "[email protected]",
"full_name": "<string>",
"name": "<string>",
"tier": "EDUCATION"
}
}Update the role of an existing organization member
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": {
"id": "<string>",
"image": "<string>",
"email": "[email protected]",
"full_name": "<string>",
"name": "<string>",
"tier": "EDUCATION"
}
}This API uses OAuth 2 with the implicit grant flow
An ID of an organization
A user's ID
3"Google_1192874509253"
The new role for the member
READ, WRITE, ADMIN, OWNER Role updated successfully
Show child attributes
Unique identifier for the organization member
"member_123456"
ID of the user who is a member of the organization
"user_123456"
ID of the organization
"org_123456"
READ, WRITE, ADMIN, OWNER User details
Show child attributes
URL of the user image. If updating the image, could be a base64 encoded image.
524288The tier of the user
EDUCATION, INDIE, PROFESSIONAL, ENTERPRISE, UNKNOWN