Forum Discussion

AdamKeever1's avatar
AdamKeever1
Qrew Commander
5 years ago

API to Update Multiple Choice Options

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
------------------------------
  • 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
    ------------------------------
    • AdamKeever1's avatar
      AdamKeever1
      Qrew Commander
      This is great for one field at at time, but do you have any suggestions on how to do this for many fields in one pass?

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