Updates an existing product.
Updates specified fields of the record. Only one record can be updated per request (unless batched).
Please note: The update request should contain all old values in the
oldValues
property (especially thetypedId
and theversion
) and all values (along the typedId) you want to update in thedata
property.Apart from the version checks, additional integrity checks are performed. E.g. if fields that are part of the business key are changed then it is checked that no other object is already defined with those key(s).
Returns full record details.
object or object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Any of:
|
{- "data": {
- "currency": "EUR",
- "typedId": "2147501222.P"
}, - "oldValues": {
- "version": 5,
- "typedId": "2147501222.P",
- "sku": "33333",
- "label": "Label Three",
- "unitOfMeasure": "EA",
- "userGroupEdit": "admin",
- "userGroupViewDetails": null,
- "currency": "CZK",
- "formulaName": "PriceList",
- "image": null,
- "createDate": "2021-09-16T09:43:59",
- "createdBy": 2147490696,
- "lastUpdateDate": "2021-11-04T18:33:16",
- "lastUpdateBy": 2147490696,
- "attribute1": "56",
- "attribute2": "3rd",
- "attribute3": 4,
- "attribute4": null,
- "attribute5": null,
- "attribute6": null,
- "attribute7": null,
- "attribute8": null,
- "attribute9": null,
- "attribute10": null,
- "attribute11": null,
- "attribute12": null,
- "attribute13": null,
- "attribute14": null,
- "attribute15": null,
- "attribute16": null,
- "attribute17": null,
- "attribute18": null,
- "attribute19": null,
- "attribute20": null,
- "attribute21": null,
- "attribute22": null,
- "attribute23": null,
- "attribute24": null,
- "attribute25": null,
- "attribute26": null,
- "attribute27": null,
- "attribute28": null,
- "attribute29": null,
- "attribute30": null
}, - "operationType": "update",
- "textMatchStyle": "exact"
}
{- "response": {
- "node": "node",
- "startRow": 0,
- "data": [
- {
- "version": 8,
- "label": "Label One",
- "attribute1": "23"
}, - {
- "version": 11,
- "label": "Label Two",
- "attribute1": "33"
}, - {
- "version": 8,
- "label": "Label Three",
- "attribute1": "56"
}, - {
- "version": 13,
- "label": "Label Four",
- "attribute1": "20"
}, - {
- "version": 0,
- "label": "Label Five",
- "attribute1": "123"
}, - {
- "version": 0,
- "label": "Tofu",
- "attribute1": "2"
}
], - "endRow": 8,
- "totalRows": 8,
- "status": 0
}
}