Overview
The update method modifies an existing record by its unique ID. You can provide values for any attributes you want to update in the request body. Attributes not included in the request will remain unchanged. If the record doesn’t exist, the API will return a 404 error. This method will not create a new record. If you want to create a record if it doesn’t exist, use the upsert method instead.This method will overwrite existing values on the record, which may be
undesirable. If you want a safer alternative, use the upsert method
and pass
defaults
instead.Examples
Update a company
Update a company
This updates specific fields on a company record:This updates only the
status
and description
fields on the company. All
other fields remain unchanged.Update a person
Update a person
This updates a person’s job title and associated company:In this case, we knew the exact ID of the company we wanted to link this
person to, but you could also use a nested
match
or upsert if desired.Update a custom record
Update a custom record
This updates fields on a custom object record:
Usage
Authorizations
Body
application/json
Request body for updating a record.
The attribute values to update in the record.