Mutation
Set User Role
Use the API to set user roles
Overview
The setUserRole
mutation allows for the updating of a user’s role within a team.
Arguments
The unique identifier of the user.
Usage Example
To set a user’s role, provide the user’s ID and the desired role as arguments to the mutation. Here’s an example of how this mutation could be used:
Error Codes
List of possible error codes that may be returned by the setUserRole
mutation. Full list of error codes can be found here.