customFieldUpdate

Update a custom field definition. The customFieldUpdate mutation in Bunny's GraphQL API, with its input attributes, return type and an example request.

Scope required: admin:write

For a complete list of input attributes see the CustomFieldAttributes type

mutation customFieldUpdate ($id: ID!, $attributes: CustomFieldAttributes!) {
  customFieldUpdate (id: $id, attributes: $attributes) {
      customField {
        createdAt
        fieldType
        formColumn
        graphqlFieldName
        id
        label
        name
        parentObject
        position
        required
        size
        updatedAt
      }
      errors
  }
}

ArgumentsLink to Arguments section

{
  "id": "456123",
  "attributes": {
    "label": "",
    "name": "",
    "fieldType": "",
    "parentObject": "",
    "position": 123,
    "size": "",
    "required": true
  }
}
Name Type Description
id ID  
attributes CustomFieldAttributes  

ResponseLink to Response section

Name Type Description
customField CustomField  
errors List (String)