patchLocationData
Since pyck v0.27.0
Apply RFC 6902 JSON Patch operations to the location’s data field.
Served by: management
Arguments
Section titled “Arguments”| Name | Type | Default | Description |
|---|---|---|---|
id |
ID! | ||
patches |
[JSONPatchInput!]! |
Returns
Section titled “Returns”Example
Section titled “Example”Applies RFC 6902 JSON Patch operations to the location’s data field. Only changed fields are modified; untouched fields are preserved. See https://datatracker.ietf.org/doc/html/rfc6902 for the specification.
mutation PatchLocationData($id: ID!, $patches: [JSONPatchInput!]!) { patchLocationData(id: $id, patches: $patches) { eventCount location { createdAt createdBy data dataTypeID dataTypeSlug deletedAt deletedBy id name tenantID updatedAt updatedBy } transactionID }}Variables
{ "id": "<location id to patch>", "patches": [ { "op": "REPLACE", "path": "/zone", "value": "\"C\"" }, { "op": "ADD", "path": "/aisle", "value": "\"12\"" } ]}