This mutation allows the update of the user organization role.
Sample Mutation
Update the organization's role to User.
mutation{
updateUserOrgRole(userID:"e1836faf-3c5c-4470-9096-24c6c4f4d400" orgID:"7b32be5b-bd48-428b-b079-f83016516dbf" role:"User"){
id
userId
}
}
Sample Response
{
"data": {
"updateUserOrgRole": {
"id": "811acc14-6546-45c4-bf5e-95e10826f711",
"userId": "e1836faf-3c5c-4470-9096-24c6c4f4d400"
}
}
}
Result

Arguments
Name | Type | Description | Required |
---|---|---|---|
userID | UUID | The user ID. | Yes |
orgID | UUID | The organization ID. | Yes |
role | String | The role of the user organization. | Yes |
Returns
Name | Type | Description |
---|---|---|
UserOrganization | Object | Contains all the information from UserOrganization such as ID, user ID, the name of the user etc. |
Example
Create an update of a role from an organization: