In your first example, you appear to have formatted the value as a string instead of as an integer.
Instead of this:
"additional_fields": {
"11": "1"
}
Try this:
"additional_fields": {
"11": 1
}
Or possibly* this:
"additional_fields": {
"11": 0
}
* 0 is the first item in the list; 1 is the second item.
Hi @Ian ,
Both string and integers are being accepted.
In mycase some how the values of the drop down are 20 and 21 and NOT 0/1.
So when i set 20 or 21 as the value of the field it is accepted. I was able to get these values by querying the user additional fields api.
do you know how these values are numbered? im thinking if you delete an option and add again the number gets augmented.
For example: first time when you are creating Yes/No options they take 0 and 1 values. Later if i delete the options and recreate it takes 2 and 3. is my understanding correct? otherwise i dont see a reason why the values are 20/21 in my case.
Hi @Ian ,
Both string and integers are being accepted.
In mycase some how the values of the drop down are 20 and 21 and NOT 0/1.
So when i set 20 or 21 as the value of the field it is accepted. I was able to get these values by querying the user additional fields api.
do you know how these values are numbered? im thinking if you delete an option and add again the number gets augmented.
For example: first time when you are creating Yes/No options they take 0 and 1 values. Later if i delete the options and recreate it takes 2 and 3. is my understanding correct? otherwise i dont see a reason why the values are 20/21 in my case.
It’s not uncommon for your reasoning to hold true, those values have to stay unique and typically just increment always, seems to make sense. Always end up using the field api to look up the details like you said.