update items with api

update items with api

Hi guys,

I've tried ...

myarray=
      {
        "sku" : newRec,
        "name": name+" "+newRec,
        "reorder_level": reorder,
        "vendor": supplier,
        "custom_fields": [
            {
                "index": 1,
                "value": "On Order"
            }
        ]      
      }

Which fails when the custom_fields is included, fine otherwise !
There is no example using custom fields in the api help (that I can find)

Can you help with the correct syntax please :-)