Skip to main content
Question

API to Update Multiple Choice Options

  • February 3, 2021
  • 0 replies
  • 30 views

AdamKeever1
Forum|alt.badge.img+2
Does anyone know how to update the options list in a multiple choice field using API? The sample request given on the RESTful JSON API Guide does not include the options list.

I tried using
{"#options": "OK"}​

but get Status Code: 400:

{
  "message": "Bad request",
  "description": "extraneous key [#options] is not permitted"
}


------------------------------
Adam Keever
------------------------------
This topic has been closed for replies.

AdamKeever1
Forum|alt.badge.img+2
  • Author
  • Registered
  • February 3, 2021
FYI, I looked under field types at the "create schema" for multiple choice and tried this based on the sample data given:

 {"properties": {
   "choices": [
      "OK",
      "NOK",
      "N/A"
    ]}
 }

and it worked.

------------------------------
Adam Keever
------------------------------