edit items

edit items

Mr Bean has more questions than answers ....

Could I please have some advice on why  preferred_vendor is not updated ....

itemEdit= {
    "sku" : newRec ,
    "name": name ,
    "preferred_vendor": supplier, // not working
    "custom_fields" : [{"index" : 4,"value" : bay }]
  };

  var url = ' https://books.zoho.com/api/v3/items/' + encodeURIComponent( itemID) + '?authtoken=' + token+'&JSONString='+encodeURIComponent(JSON.stringify( itemEdit));