Update custom fields

When updating custom fields, it is advisable to distinguish between the two main types: regular and dropdown.

Updating a regular custom field is intuitive and follows the same principles as creating one.

For the dropdown type, there are two crucial fields that should be reviewed:

  • isMultiSelect: This field applies only to the dropdown field type. It indicates whether multiple selections are permitted in the dropdown.
  • dropdownOptions: This field is used to update or add options to the dropdown. To retain the existing options, the entire list of values must be provided. If you want to add new options, please specify only the value (the ID will be automatically generated upon creation).

πŸ“˜

Did you know ?

A new endpoint has been introduced for dropdown-type custom fields, making it easier to add or remove options.

Payload example for updating dropdown custom field type request (option 1 and option 2 are defined already)

"customFields": [
    {
      "isMultiSelect": true,
      "dropdownOptions": [
        {
          "id": 1,
          "value": "option 1"
        },
        {
          "id": 2,
          "value": "option 2"
        },
        {
          "value": "option 3" //This is the new option
        }
      ],
      "id": 1232134 //The ID of the custom field
    }
  ]