roleCreate

Create a role. The roleCreate 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 roleCreate ($attributes: RoleAttributes!) {
  roleCreate (attributes: $attributes) {
      errors
      role {
        id
        name
      }
  }
}

ArgumentsLink to Arguments section

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

ResponseLink to Response section

Name Type Description
errors List (String)  
role Role