How to update a cascading select list?

Hello all,
I have an issue while updating “Select List (cascading)” field option content.
Request method is “PUT”
Request payload:
{"options": [{"id": "15047", "value": "web-analysis management"}]}

Response:
{"errorMessages":["An option value must be unique in its field and a cascading option value must be unique in its option."],"errors":{}}

Could you help me?

Someone, to help me?

hello @DavidSEGUELA

You haven’t said which REST API endpoint you’re using, but assuming it’s the v3 Update custom field options (context) endpoint, then that error means exactly what it says. You are trying to change a value or option and giving it the same name (value) of an existing value or option at the same level.

Each value or option must be unique at that level:

  • Value one
    • Option one
    • Option two
  • Value one ← ERROR!! Conflicts with an existing value
    • Option one
    • Option two
  • Value two
    • Option one
    • Option one ← ERROR!! Conflicts with an existing option within this value

I’d like to replicate custom field options (cascading select) from another context. Now Get Custom Field Options doesn’t return the cascading list. It just returns the whole list of options as an array. Which we can’t logically reorder for the Post function.

Any help is appreciated.

Thanks