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

patchSupplierData

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

Served by: maindata

Name Type
id ID!
patches [JSONPatchInput!]!

Supplier

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

mutation PatchSupplierData($id: ID!, $patches: [JSONPatchInput!]!) {
patchSupplierData(id: $id, patches: $patches) {
createdAt
createdBy
data
dataTypeID
dataTypeSlug
deletedAt
deletedBy
id
tenantID
updatedAt
updatedBy
}
}

Variables

{
"id": "<supplier id to patch>",
"patches": [
{
"op": "REPLACE",
"path": "/rating",
"value": "5"
},
{
"op": "REPLACE",
"path": "/active",
"value": "false"
}
]
}