patchInventoryRepositoryData
Apply RFC 6902 JSON Patch operations to the repository’s data field.
Served by: inventory
Arguments
Section titled “Arguments”| Name | Type |
|---|---|
id |
ID! |
patches |
[JSONPatchInput!]! |
Returns
Section titled “Returns”Example
Section titled “Example”Applies RFC 6902 JSON Patch operations to the repository’s data field. Only changed fields are modified; untouched fields are preserved.
mutation PatchInventoryRepositoryData($id: ID!, $patches: [JSONPatchInput!]!) { patchInventoryRepositoryData(id: $id, patches: $patches) { eventCount inventoryRepository { createdAt createdBy data dataTypeID dataTypeSlug deletedAt deletedBy id layout locationID name parentID tenantID type updatedAt updatedBy virtualRepo } transactionID }}Variables
{ "id": "<repository id to patch>", "patches": [ { "op": "REPLACE", "path": "/capacity", "value": "500" } ]}