Update example
- Last Updated: March 6, 2025
- 2 minute read
- Hybrid Data Pipeline
- Version 4.6
- Documentation
To update a record, use a POST request
with the custom X-HTTP-Method header. Supply the
primary key in the resource URL and the property value(s) for the column(s) to update in
the body. The following screen shows a request in Postman to update an account name from
Hot Diggity Dog to Hot
Diggity Dogs in a Salesforce data store. To formulate the request:
- The
Content-Typeheader value isapplication/atom+xml. - The custom header
X-HTTP-Methodvalue isMERGE. - The URL includes:
- The service root,
<myserver>:<port>/api/odata. - The Data Source
definition name,
sfds. - The plural entity name,
ACCOUNTSfollowed by the primary key, 001i000001mDKrJAAW (which is cut off in the screen shot).
- The service root,
- The body includes:
- The value of the
entryelement and structure of them:propertyelement were copied from the response of a GET request that fetched a single account record. - A value of
Hot Diggity Dogsfor theSYS_NAMEproperty .
- The value of the

The Status value

204 No Content shown in the screen above indicates that
the name was successfully updated. A fetch of the record confirms the update to Hot
Diggity Dogs as shown below:
For more information on updating, see HTTP POST and MERGE (update)