# customFieldUpdate

Update a custom field definition

**Scope required:** admin:write

For a complete list of input attributes see the [CustomFieldAttributes](https://docs.bunny.com/developer/api-reference/types/customfieldattributes) type

```graphql
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
  }
}
```

## Arguments

```json
{
  "id": "456123",
  "attributes": {
    "label": "",
    "name": "",
    "fieldType": "",
    "parentObject": "",
    "position": 123,
    "size": "",
    "required": true
  }
}
```

| Name       | Type                                                                                                | Description |
| ---------- | --------------------------------------------------------------------------------------------------- | ----------- |
| id         | ID                                                                                                  |             |
| attributes | [CustomFieldAttributes](https://docs.bunny.com/developer/api-reference/types/customfieldattributes) |             |

## Response

| Name        | Type                                                                            | Description |
| ----------- | ------------------------------------------------------------------------------- | ----------- |
| customField | [CustomField](https://docs.bunny.com/developer/api-reference/types/customfield) |             |
| errors      | List (String)                                                                   |             |
