custom fields
Update custom field
Update a custom field definition. The field type cannot be changed after creation.
AuthorizationBearer <token>
API key authentication - use your Zernio API key as a Bearer token
In: header
Path Parameters
fieldIdstring
name?string
options?array<string>
Response Body
application/json
application/json
application/json
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.customfields.updateCustomField({ path: { fieldId: 'field_abc123', }, body: { name: 'Example', options: [ 'string', ], },});console.log(data);{
"success": true,
"field": {
"id": "string",
"name": "string",
"slug": "string",
"type": "string",
"options": [
"string"
]
}
}{
"error": "Unauthorized"
}{
"error": "Not found"
}