ordercloud.xp.patch
Safely updates extended properties (xp) on OrderCloud resources by deep-merging supplied fields into existing xp objects, preserving current data while applying partial changes.
Instructions
Safely update extended properties (xp) on any OrderCloud resource with deep merge
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"resourceType": "<resourceType>",
"identifiers": "<identifiers>",
"xpPatch": "<xpPatch>"
},
"name": "ordercloud.xp.patch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xpPatch | Yes | XP fields to merge into the existing xp object | |
| identifiers | Yes | Resource identifiers, e.g. {"productId": "abc"} | |
| resourceType | Yes | The resource type |