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