AnsweredAssumed Answered

How to update dropdown with API

Question asked by Erik Hallin on May 4, 2017

Hello,

How do I go about updating a dropdown-list using the REST API?

The code I use looks like this:

dropdownVals = requests.put("https://kravtest.sugaropencloud.eu/rest/v10/EGBS7_Artiklar/158053bc-30cd-11e7-9519-06b245f0b883"
,headers={"oauth-token": token}
,json={'name':'New name', 'produktgrupp_c ':'Kött' }

)


produktgrupp_c is my dropdown list and "Kött" i a valid option in the dropdown.

What is wrong?

Outcomes