Create a custom_field
Changed onCreate a new custom field. book_id is accepted for backwards compatibility but ignored.
Request
- Base URLhttps://api.slant.app
- URLhttps://api.slant.app/v1/custom_fields
- AuthHTTP bearer
Headers
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"
],
"select_option_colors": {
"Option 1": "blue",
"Option 2": "green"
}
}
}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"
]
}
}Changes
- breaking
removed the enum value
cross_referenceof the request property - warning
removed the request property
/ - warning
added the new
Businessenum value to theresponse property for the response status - warning
added the new
FinancialAccountenum value to theresponse property for the response status - warning
added the new
InsurancePolicyenum value to theresponse property for the response status - warning
added the new
Trustenum value to theresponse property for the response status - warning
added the new
rich_textenum value to theresponse property for the response status - warning
added the new
urlenum value to theresponse property for the response status - warning
added the new
user_referenceenum value to theresponse property for the response status - info
added the new optional request property
/ - info
the request property
became optional - info
added the new
Businessenum value to the request property - info
added the new
FinancialAccountenum value to the request property - info
added the new
InsurancePolicyenum value to the request property - info
added the new
Trustenum value to the request property - info
added the new
rich_textenum value to the request property - info
added the new
urlenum value to the request property - info
added the media type
application/jsonfor the response with the status - info
added the non-success response with the status
- info
added the optional property
to the response with the status - info
added the optional property
/to the response with the status - info
removed the
invalid_jsonenum value from theresponse property for the response status - info
response property
detaillist-of-types was narrowed by removing typesarrayfrom media typeapplication/jsonof response400
- breaking