customFieldCreate
Create a custom field definition. The customFieldCreate 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 customFieldCreate ($attributes: CustomFieldAttributes!) {
customFieldCreate (attributes: $attributes) {
customField {
createdAt
fieldType
formColumn
graphqlFieldName
id
label
name
parentObject
position
required
size
updatedAt
}
errors
}
}
ArgumentsLink to Arguments section
{
"attributes": {
"label": "",
"name": "",
"fieldType": "",
"parentObject": "",
"position": 123,
"size": "",
"required": true
}
}
| Name | Type | Description |
|---|---|---|
| attributes | CustomFieldAttributes |
ResponseLink to Response section
| Name | Type | Description |
|---|---|---|
| customField | CustomField | |
| errors | List (String) |