Example UDF creation
Using POST/v1/collaterals/properties/add
will generate a user defined field on the collaterals object. Below are a list of commonly used field types and JSON bodies which will give a 200 response.
Standard text field
{
"id": 0,
"name": "Text Field",
"dataFieldInputFormat": "text",
"dataFieldFormatString": "textLength200"
}
Date (this gives day/month/year formatting)
{
"name": "Date Field",
"dataFieldInputFormat": "date",
}
Dropdown
{
"name": "Dropdown Field",
"dataFieldInputFormat": "dropdown",
"dataFieldFormatString": "textLength200",
"options": [
{ "label":"option 1" },
{ "label":"option 2" }
]
}
Updated 7 months ago