custom fields
Set custom field value
Set or overwrite a custom field value on a contact. The value type must match the field definition.
AuthorizationBearer <token>
API key authentication - use your Zernio API key as a Bearer token
In: header
Path Parameters
contactIdstring
slugstring
valueunknown
Field value (type depends on field definition)
Response Body
application/json
application/json
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.customfields.setContactFieldValue({ path: { contactId: 'contact_abc123', slug: 'string', }, body: { value: {}, },});console.log(data);Empty
{
"error": "Unauthorized"
}{
"error": "Not found"
}