Skip to main content
PATCH
cURL

Overview

Update a record by ID. Put the attributes you want to change inside data. Supplied values replace existing values, while omitted attributes retain their values. To fill only missing values, use Upsert record with update_if_empty.

Examples

Set UNIFY_API_KEY to your API key.
Replace the example IDs with records from your workspace.
Update the person’s title and company together. This example references the company by record ID:
A successful response contains the updated record in data. If the target record does not exist, the API returns 404.
For a custom object, use its API name in the URL and its attribute API names in data. For example, a product_user object with a plan attribute could use:
The attribute and any referenced select option must already exist.

Authorizations

x-api-key
string
header
required

Path Parameters

object_name
string
required

The API name of an object, e.g. company, person, opportunity, or a custom object's API name.

record_id
string
required

Query Parameters

validation_mode
enum<string>

Validation mode for request data.

  • strict: Reject requests if any attribute is invalid or unrecognized.
  • ignore_invalid: Ignore unknown attributes and omit invalid values for optional attributes. Reject requests with an invalid body structure or invalid required attributes.
Available options:
strict,
ignore_invalid

Body

application/json

Request body for updating a record.

data
object
required

The attribute values to update. Omitted attributes retain their existing values.

Response

Response for a successful update operation.

Response for a successful update operation.

status
enum<string>
required
Available options:
success
data
object
required