addRole

Adds a new role to a PB Cycle member. After a new role is added to a member, the member will inherit the rights an permissions of that role. This mutation will return an error if specified party id is not a member of the PB Cycle .To revert the change you'll need to call the removeRole mutation.### Rights and permissions Only admins have permission to add roles to a member.

Possible errors#

In case of error you could receive any of next errors:

ErrorCodeDescription
Error adding this roleAGGER6055Is not a member of this PB Cycle or role has beenassigned previously to this member.
addRole(
input: AddRoleInput!
): AddRolePayload

Arguments#

input (AddRoleInput!)#

Parameters for AddRole

Type#

AddRolePayload#

Autogenerated return type of AddRole