Skip to navigation

Custom field created

Custom field was created. The body carries its full state.

Headers

X-Crehana-Event-IdstringRequired

Event id. The same event keeps it on every attempt: deduplicate by it.

X-Crehana-Delivery-AttemptintegerRequired>=1
Attempt number, starting at 1.
X-Crehana-TimestampintegerRequired

Unix time (seconds) used in the signature.

X-Crehana-SignaturestringRequired

t=<timestamp>,v1=<hex HMAC-SHA256 of "<t>.<raw body>">. During a secret rotation it carries one v1 per active secret.

Payload

The payload of this webhook request is an object.
centralized_organization_idintegerRequired
Organization id in Crehana.
custom_field_idintegerRequired

Custom field id (same as custom_fields[].id in user events)

event"custom_field.created"Required
Event type.
event_idstringRequired

Stable event id, also sent in X-Crehana-Event-Id.

is_activebooleanRequired
False once the field was deactivated
is_mandatoryboolean or nullRequired
Whether the field is mandatory
namestring or nullRequired
Field name
occurred_atdatetimeRequired

When it happened (UTC).

optionslist of objectsRequired

Active options; empty for free-text fields

organization_slugstring or nullRequired

Current organization slug (informative).

typestring or nullRequired

Field type as stored in centralized: text, number, date or multiple

Response

200
200 confirms the delivery. Answer within 10 seconds.
201
201 confirms the delivery. Answer within 10 seconds.
202
202 confirms the delivery. Answer within 10 seconds.
204
204 confirms the delivery. Answer within 10 seconds.