patchDeviceLocationData
Since pyck v0.27.0
Apply RFC 6902 JSON Patch operations to the device 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 device location assignment’s data field. Only changed fields are modified; untouched fields are preserved.
mutation PatchDeviceLocationData($id: ID!, $patches: [JSONPatchInput!]!) { patchDeviceLocationData(id: $id, patches: $patches) { DeviceLocation { createdAt createdBy data dataTypeID dataTypeSlug deletedAt deletedBy deviceID id locationID tenantID updatedAt updatedBy } eventCount transactionID }}Variables
{ "id": "<device location id to patch>", "patches": [ { "op": "REPLACE", "path": "/priority", "value": "\"high\"" }, { "op": "ADD", "path": "/note", "value": "\"Moved to urgent area\"" } ]}