Skip to content
Pyck docs

patchInventoryRepositoryData

Since pyck v0.27.0

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

Served by: inventory

Name Type Default Description
id ID!
patches [JSONPatchInput!]!

InventoryRepositoryOutput

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"
}
]
}