Create a custom field definition
Create a new custom field definition.
Required Fields:
name- Field nametype- DOCUMENT or CONTACTinputType- Input type (TEXT, NUMBER, DATE, CHECKBOX, SELECT, TEXTAREA)
Optional Fields:
defaultValue- Default value for the fieldrequired- Whether field is required (default: false)options- For SELECT type, comma-separated options
Documentation Index
Fetch the complete documentation index at: https://docs.sajn.se/llms.txt
Use this file to discover all available pages before exploring further.
Headers
Bearer token for API authentication
Body
Body
Create custom field request
Custom field name (required)
1Field type: DOCUMENT or CONTACT (required)
DOCUMENT, CONTACT Input type (required): TEXT, NUMBER, DATE, CHECKBOX, SELECT, TEXTAREA, EMAIL, PHONE, or URL
TEXT, NUMBER, DATE, EMAIL, PHONE, URL, BOOLEAN, SELECT, JSON, TEXTAREA Whether this field is required (default: false)
Default value for this field
Comma-separated options for SELECT type fields
Response
200
Unique custom field identifier
Custom field name
Field type: DOCUMENT or CONTACT
DOCUMENT, CONTACT Input type: TEXT, NUMBER, DATE, CHECKBOX, SELECT, TEXTAREA, EMAIL, PHONE, or URL
TEXT, NUMBER, DATE, EMAIL, PHONE, URL, BOOLEAN, SELECT, JSON, TEXTAREA Default value for this field
Whether this field is required
Comma-separated options for SELECT type fields
Date and time when custom field was created
Date and time when custom field was last updated

