LiveRecoverVYG Developer Docs
CDP REST APIAPI Reference

Update Profile

Set, overwrite, or remove custom properties on one of your brand's profiles.

PATCH /cdp/profiles/{id} sets, overwrites, or removes custom properties on ONE profile. Writes are applied through the rule-processed updateProperties event, so merges, segment recalculation, and identify rules stay consistent. Reserved and tenant-isolation property keys (segments, systemProperties, scope, shopDomain, mergeIdentifier, …) are rejected — you can only write your own custom properties.

Every write is bound to your brand's shop scope. See Tenant Isolation & Scope.

Query parameters

ParameterTypeRequiredDefaultDescription
profileIdstringYesPath parameter ({id}) — the Unomi profile id to update. (Not a query parameter.)
addstringNoBody field — a { key: value } map of properties to set only if currently missing.
updatestringNoBody field — a { key: value } map of properties to overwrite.
deletestring[]NoBody field — an array of property names to remove.

Response

The 200 response body:

FieldTypeDescription
profileIdstring
appliedobject
applied.addedstring[]
applied.updatedstring[]
applied.deletedstring[]
status'accepted'
scopestringYour brand's resolved shop domain.

Errors

All errors share the standard envelope { "error": string, "error_description": string }.

StatusCodeWhen
400bad_requestThe body is not valid JSON, or no add/update/delete was supplied.
400invalid_propertyA reserved or malformed property key was written.
401unauthorizedMissing or invalid API credential.
403forbiddenNo connected Shopify integration resolves a scope for the brand.
404not_foundNo such profile in your brand scope (missing or out-of-scope).
405method_not_allowedThe request used a method other than PATCH.
500internal_errorAn unexpected error prevented the write.

On this page