Custom Fields
Last updated
Last updated
Custom Fields are represented as JSON objects with the following properties
Name | Type | Description |
---|---|---|
Config is represented as a JSON object with the following properties. It will hold different properties for different types of custom Fields.
Name | Type | Description |
---|---|---|
GET
https://api.clearfeed.app/v1/rest/custom-fields
Get all custom fields in an account
POST
https://api.clearfeed.app/v1/rest/custom-fields
Create a custom field to use them in forms.
Example request body:
PUT
https://api.clearfeed.app/v1/rest/custom-fields/:id
Update an existing custom field.
Important: Once created, a custom field's type cannot be modified. However, you can:
For
select
andmulti_select
fields: add, remove, or modify the available optionsFor
text
fields: adjust the character limit
Example request body:
DELETE
https://api.clearfeed.app/v1/rest/custom-fields/:id
Delete a custom field.
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
type
literal
Must be exactly: 'text'
max_length
number
Optional. Maximum number of characters allowed in the text field. Defaults 255
single_line
boolean
Optional. If true, the text field will be displayed as a single-line text field in various user interfaces. If false it will be displayed as a multi-line text field. Default value:
type
literal
Must be exactly: 'date'
type
literal
Must be exactly: 'number'
name*
string
Name of the custom field
type*
enum
Type of the custom field. Must be one of: select
, multi_select
, text
, date
, number
config
object
Config object for the custom field. Required structure depends on the field type. See Config Object for type-specific details.
id*
integer
The ID of the custom field to update
name*
string
Name of the custom field
type*
enum
Type of the custom field. Must be one of: select
, multi_select
, text
, date
, number
config
object
Configuration object for the custom field. Required structure depends on the field type. See Config Object for type-specific details.
id*
integer
The ID of the custom field to delete
id
integer
The ID of the custom field.
name
string
The name of the custom field.
version
string
Version of current data, increments each time we update the custom field object.
type
enum
Denotes the type of the custom field.
config
object
Details about the object can be found here.
created_at
string
The creation timestamp of the request
updated_at
string
The update timestamp of the request
type
literal
Must be exactly: 'select'
options
object array
Array of selection options with the following structure:
The order of elements in the array determines the sequence in which they are displayed across various user interfaces.
last_option_id
number
Represents the highest ID number used for options.
type
literal
Must be exactly: 'multi_select'
options
object array
Array of selection options with the following structure:
The order of elements in the array determines the sequence in which they are displayed across various user interfaces.
last_option_id
number
Represents the highest ID number used for options.
Type | Description |
---|---|
Property | Type | Description |
---|---|---|
Property | Type | Description |
---|---|---|
select
A custom field that allows a single selection from predefined options.
multi_select
A custom field that supports multiple selections from a list of predefined options.
text
A custom field for entering freeform text input.
date
A custom field for selecting a specific date.
number
A custom field for entering numerical values.
id
string
Unique identifier for the option
value
string
Display text for the option
id
string
Unique identifier for the option
value
string
Display text for the option