v1
latestOpenAPI 3.0.12026-07-268028223.9 KBCustom Fields
Create a custom_field
Create a new custom field. book_id is accepted for backwards compatibility but ignored.
post/v1/custom_fields
Headers
Idempotency-Keystring
Unique key to ensure idempotent request handling. If a request with the same key was already processed, the original response will be returned.
Request body
Example request
{
"book_id": "abc123xyz",
"field_key": "pageport_lead_source",
"display_name": "Lead Source",
"entity_type": "Household",
"field_type": "text",
"options": {
"select_options": [
"Option 1",
"Option 2",
"Option 3"
],
"cross_reference_allowed_target_types": [
"Household",
"Contact"
]
}
}Response
custom_field created
Example response
{
"id": "abc123xyz",
"field_key": "pageport_lead_source",
"display_name": "Lead Source",
"entity_type": "Household",
"field_type": "text",
"options": {
"select_options": [
"Option 1",
"Option 2"
],
"cross_reference_allowed_target_types": [
"Household",
"Contact"
]
}
}