curl https://na1.Host.com/services/data/v20.0/sobjects/Account/ -H "Authorization: Bearer token -H "Content-Type: application/json" -d "@newaccount.json" -X PATCH
{ "Name" : "Express Logistics and Transport" }
using (WebClient client = new WebClient()) { client.Headers.Add("Authorization", "Bearer " + token.access_token); client.Headers.Add("Content-Type", "application/json"); NameValueCollection reqparm = new NameValueCollection(); reqparm.Add("Name", "This Is Test Data"); byte[] responsebytes = client.UploadValues(token.instance_url + "/services/data/v20.0/sobjects/Account/", "PATCH", reqparm); string responsebody = Encoding.UTF8.GetString(responsebytes); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)