viewCreate

Create a view. The viewCreate mutation in Bunny's GraphQL API, with its input attributes, return type and an example request.

Scope required: standard:write

For a complete list of input attributes see the ViewAttributes type

mutation viewCreate ($attributes: ViewAttributes!) {
  viewCreate (attributes: $attributes) {
      errors
      view {
        columns
        conditions
        id
        isDefault
        name
        obj
        pinned
        sortBy
        sortOrder
        userId
      }
  }
}

ArgumentsLink to Arguments section

{
  "attributes": {
    "name": "",
    "obj": "",
    "conditions": "",
    "columns": "",
    "isDefault": true,
    "pinned": true,
    "sortBy": "",
    "sortOrder": ""
  }
}
Name Type Description
attributes ViewAttributes  

ResponseLink to Response section

Name Type Description
errors List (String)  
view View