I am using sitecore rest api
, I am able to create item, also populate Content item values (for Field type Single-line) with PoSt method.
Content field values are being in passed in body of rest client post request. ( ex: body{“fieldname”:”value”})
Similarly, with create item call, I am trying to populate the value for multilist field value. tried two different ways to do that: first - same as described above (pass the value as string) and second by passing itemId( the one to shown as selected value) as string value.
First approach ( passing the value): result is: the item is created and in multilist field, the selected values , shows the value passed in api appears, however it also shows error and in left side of multilist, all the values present. same result. For second approach, but shows different error in selected value side of the box
Maybe I need to make two calls to achieve this, one call to create item and one to update item.
Trying to find if I can do both in one call and populate multilist field value as well properly.
[![Error Screenshot updated][1]][1]
Updated post with - Error screenshot
Updated post for Media items creation - sorry for combining two questions
Query 2)
Sitecore REST API media item- Resource was not found
Updated . Posted the media item creation in new thread, so that I can close initially query (Multilist) as resolved .