roleUpdate

Update a role. The roleUpdate mutation in Bunny's GraphQL API, with its input attributes, return type and an example request.

Scope required: security:write

For a complete list of input attributes see the RoleAttributes type

mutation roleUpdate ($id: ID!, $attributes: RoleAttributes!) {
  roleUpdate (id: $id, attributes: $attributes) {
      errors
      role {
        id
        name
      }
  }
}

ArgumentsLink to Arguments section

{
  "id": "456123",
  "attributes": {
    "name": "",
    "scopes": [
      ""
    ]
  }
}
Name Type Description
id ID  
attributes RoleAttributes  

ResponseLink to Response section

Name Type Description
errors List (String)  
role Role