Skip to content

Instantly share code, notes, and snippets.

@ryanbrainard
Last active August 29, 2015 13:57
Show Gist options
  • Save ryanbrainard/9765354 to your computer and use it in GitHub Desktop.
Save ryanbrainard/9765354 to your computer and use it in GitHub Desktop.
Example of using `_HttpMethod=PATCH` query param with clients that do not support `PATCH`.
> POST /services/data/v29.0/sobjects/Component__c/a1IV0000000MN90MAG?_HttpMethod=PATCH HTTP/1.1
> User-Agent: curl/7.24.0 (x86_64-apple-darwin12.0) libcurl/7.24.0 OpenSSL/0.9.8y zlib/1.2.5
> Host: cs12.salesforce.com
> Accept: */*
> X-PrettyPrint: 1
> Authorization: Bearer REDACTED
> Content-Type: application/json
> Content-Length: 20
>
* upload completely sent off: 20 out of 20 bytes
< HTTP/1.1 204 No Content
< Date: Tue, 25 Mar 2014 16:14:40 GMT
< Sforce-Limit-Info: api-usage=36/1040000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment