Updates an existing object.
Specify fields you want to update in the data
property. Only one record can be updated per request (unless batched).
TypeCode required | string The object's type code. See the list of Type Codes. |
Please note: The update request should contain all old values in the
oldValues
property (especially thetypedId
and theversion
) and all values (along thetypedId
) 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 already is defined with those key(s).
OK - contains the updated object.
{- "data": {
- "unitOfMeasure": "EA",
- "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"
}