Example JSON Pointers based on schema object
JSON Pointer | Resolves to |
---|---|
"/title" | "Example schema" |
"/properties/person/properties/name/properties/fullName" | (Returns a reference to the fullName field, provided by a core field group.) |
"/properties/_{TENANT_ID}/properties/loyaltyLevel" | (Returns a reference to the loyaltyLevel field, provided by a custom field group.) |
"/properties/_{TENANT_ID}/properties/loyaltyLevel/enum" | ["platinum", "gold", "silver", "bronze"] |
"/properties/_{TENANT_ID}/properties/loyaltyLevel/enum/0" | "platinum" |
xdm:sourceProperty
and xdm:destinationProperty
attributes of Experience Data Model (XDM) descriptors, any properties
keys must be excluded from the JSON Pointer string. See the Schema Registry API developer guide sub-guide on descriptors for more information.JSON Patch
There are many PATCH operations for Experience Platform APIs that accept JSON Patch objects for their request payloads. JSON Patch is a standardized format (RFC 6902) for describing changes to a JSON document. It allows you to define partial updates to JSON without needing to send the entire document in a request body.
Example JSON Patch object
{
"op": "remove",
"path": "/foo"
}
-
op
: The type of patch operation. While JSON Patch supports several different operation types, not all PATCH operations in Experience Platform APIs are compatible with every operation type. Available operation types are:add
remove
replace
copy
move
test
-
path
: The part of the JSON structure to be updated, identified using JSON Pointer notation.
Depending on the operation type indicated in op
, the JSON Patch object may require additional properties. For more information on the different JSON Patch operations and their required syntax, please refer to the JSON Patch documentation.