Upsert Entity Record
POST/api/v1/entity-records/upsert
Update the record matching match_field and match_value, or create it when nothing matches. Requires scope crm:write. Unknown fields are rejected. A refused save returns its own status code with a refused status in the body.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 409
- 422
- 429
- 500
- 503
Success
A refused save with a refused status in the body, or an invalid Idempotency-Key.
The Bearer personal token is missing, malformed, inactive, expired, revoked, or CIDR-blocked. Personal-token 401 responses include the Bearer challenge. Temporary validation outages return 503 instead.
Response Headers
Authorization denial, or a refused save with a refused status in the body.
Unique upsert is not enabled for this caller, or the upsert was refused.
A refused save with a refused status in the body, or an Idempotency-Key conflict.
Canonical public API error envelope for failed requests.
Rate limit exceeded
Response Headers
Active public API plan applied to the request. Free and Kickstarter are blocked before rate buckets are consumed.
Rate-limit bucket used for the request. List-style POST endpoints are counted as reads; mutation endpoints are counted as writes.
Maximum number of requests allowed for the active bucket in the current one-second rate-limit window.
Maximum read requests allowed per second for the active plan. Pro is 100; Unlimited is 500.
Maximum write requests allowed per second for the active plan. Pro is 25; Unlimited is 125.
Number of requests remaining for the active bucket in the current one-second rate-limit window.
Unix timestamp, in seconds, when the current rate-limit window resets.
HTTP date when the current limit resets. Present on 429 responses.
An unexpected server error occurred. The failure is masked; retry the request or contact support with the request ID.
Personal access token validation is temporarily unavailable.