Update Custom Field By Id
PUT/custom-fields/:id
Update Custom Field By Id
Only supports Custom Objects and Company (Business) today. Will be extended to other Standard Objects in the future.
Request
API Version
v3- application/json
- Body
- Example (auto)
Bodyrequired
Location Id
Field name
Description of the field
Placeholder text for the field
Whether the field should be shown in forms
Options for the field. Important: Providing options will completely replace the existing options array. You must include all existing options alongside any new options you wish to add. Removal of options is not supported through this update. Applicable only for SINGLE_OPTIONS, MULTIPLE_OPTIONS, RADIO, CHECKBOX, TEXTBOX_LIST types.
Allowed file formats for uploads. Options include: .pdf, .docx, .doc, .jpg, .jpeg, .png, .gif, .csv, .xlsx, .xls, all
.pdf.docx.doc.jpg.jpeg.png.gif.csv.xlsx.xlsallMaximum file limit for uploads. Applicable only for fields with a data type of FILE_UPLOAD.
{
"locationId": "ve9EPM428h8vShlRW1KT",
"name": "Name",
"description": "string",
"placeholder": "string",
"showInForms": true,
"options": [
{
"key": "string",
"label": "string",
"url": "string"
}
],
"acceptedFormats": ".pdf",
"maxFileLimit": 2
}
Successful response
- application/json
- Schema
- Example (auto)
Schema
{
"field": {
"locationId": "ve9EPM428h8vShlRW1KT",
"name": "Name",
"description": "string",
"placeholder": "string",
"showInForms": true,
"options": [
{
"key": "string",
"label": "string",
"url": "string"
}
],
"acceptedFormats": ".pdf",
"id": "string",
"objectKey": "custom_object.pet",
"dataType": "TEXT",
"parentId": "3v34PM428h8vShlRW1KT",
"fieldKey": "custom_object.pet.name",
"allowCustomOption": true,
"maxFileLimit": 2,
"dateAdded": "2024-07-29T15:51:28.071Z",
"dateUpdated": "2024-07-29T15:51:28.071Z"
}
}