cURL
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" } }
Update the role of an existing organization member
This API uses OAuth 2 with the implicit grant flow
An ID of an organization
A user's ID
3
"Google_1192874509253"
Role updated successfully
The response is of type object.
object