We have a single option field in the Products app, I want to get all options from this field Via API. What I need to do is checking the option is exists in that field, if not I want to create that option to this field via API. Is there any way to do this?
If you have the Field’s ID, you can check GET (choose the type) /organizationFields and for single-option fields you’ll see the value options under
Thanks for that.
Suppose if the option I want to add is not there, can i create an option to that single-option field directly via API itself?
Yes you can, but you would insert the value of the option you would like to add and an ID would be auto-generated for it.