Skip to content
Pyck docs

You are reading the Dev docs (main @ e991a08). They can differ from the released product.Dev docs, not the release

Switch to LatestLatest

patchInventoryItemSetData

Apply RFC 6902 JSON Patch operations to the item set’s data field.

Served by: inventory

Name Type
id ID!
patches [JSONPatchInput!]!

InventoryItemSetOutput

Applies RFC 6902 JSON Patch operations to the item set’s data field. Only changed fields are modified; untouched fields are preserved.

mutation PatchInventoryItemSetData($id: ID!, $patches: [JSONPatchInput!]!) {
patchInventoryItemSetData(id: $id, patches: $patches) {
eventCount
inventoryItemSet {
createdAt
createdBy
data
dataTypeID
dataTypeSlug
deletedAt
deletedBy
id
sku
tenantID
updatedAt
updatedBy
}
transactionID
}
}

Variables

{
"id": "<item set id to patch>",
"patches": [
{
"op": "REPLACE",
"path": "/category",
"value": "\"promotion\""
}
]
}