API Docs
Team Management
Update Team Member Role

Update Team Member Role

Mutation to modify the role of an existing team member

Example

mutation updateTeamMemberRole {
  updateTeamMemberRole(input: { newRole: AUDITOR, inProfileId: 10 }) {
    clientMutationId
    teamMember {
      profileId
      role
      firstName
      lastName
      email
    }
  }
}

Response

{
  "data": {
    "updateTeamMemberRole": {
      "clientMutationId": null,
      "teamMember": {
        "profileId": 10,
        "role": "AUDITOR",
        "firstName": "Firstname",
        "lastName": "Lastname",
        "email": "[email protected]"
      }
    }
  }
}

Arguments

Roles: OWNER, ADMIN, AUDITOR, TECHNICIAN, ACCOUNTING
  • inProfileId (Int)