Getting access, Developing, Testing
Dropdown fields return an array of custom_field_options
which specify the name, value and order of the list of dropdown options.
Understand the following behavior when updating a dropdown field:
id
along with name
and value
.id
along with name
and value
.custom_field_options
array relative to the other options.curl https://{subdomain}.zendesk.com/api/v2/user_fields/{user_field_id}.json \
-H "Content-Type: application/json" -X PUT \
-d '{"user_field": {"custom_field_options": [{"id": 124, "name": "Option 2", "value": "option_2"}, {"id": 123, "name": "Option 1", "value": "option_1"}, {"id": 125, "name": "Option 2", "value": "option_3"}]}}' \
-v -u {email_address}:{password}