---
title: "Update an Object"
method: POST
path: "/update/{TypeCode}"
tags: ["General"]
---

# Update an Object

`POST /update/{TypeCode}`

Updates an existing object.<br>
Specify fields you want to update in the `data` property. Only one record can be updated per request (unless batched).

## Request body

- object
  - `data` object, required — Enter new field values. Multiple values can be updated. In our example the unitOfMeasure and label properties were updated.
    - `unitOfMeasure` string
    - `typedId` string, required
    - `label` string
  - `oldValues` object, required — Values of the object before the update. Especially important are `typedId` (to identify the object to update) and `version` (to detect date inconsistencies).
    - `version` number, required
    - `typedId` string, required
    - `sku` string
    - `label` string
    - `unitOfMeasure` string
    - `userGroupEdit` string, nullable
    - `userGroupViewDetails` string, nullable
    - `currency` string
    - `formulaName` unknown
    - `image` unknown
    - `createDate` string
    - `createdBy` number
    - `lastUpdateDate` string
    - `lastUpdateBy` number
    - `attribute1` unknown
    - `attribute2` unknown
    - `attribute3` unknown
    - `attribute4` unknown
    - `attribute5` unknown
    - `attribute6` unknown
    - `attribute7` unknown
    - `attribute8` unknown
    - `attribute9` unknown
    - `attribute10` unknown
    - `attribute11` unknown
    - `attribute12` unknown
    - `attribute13` unknown
    - `attribute14` unknown
    - `attribute15` unknown
    - `attribute16` unknown
    - `attribute17` unknown
    - `attribute18` unknown
    - `attribute19` unknown
    - `attribute20` unknown
    - `attribute21` unknown
    - `attribute22` unknown
    - `attribute23` unknown
    - `attribute24` unknown
    - `attribute25` unknown
    - `attribute26` unknown
    - `attribute27` unknown
    - `attribute28` unknown
    - `attribute29` unknown
    - `attribute30` unknown
  - `operationType` string — Must be 'update' or null or omitted.
  - `textMatchStyle` string
  - `noEvent` string — Set to `true` when this operation should NOT trigger an update event (where applicable).

## Response `200`

OK - contains the updated object.

---

[API](https://skmtc.net/pricefx/apis/the-pricefx-backend-api.md) · [All operations](https://skmtc.net/pricefx/apis/the-pricefx-backend-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pricefx/the-pricefx-backend-api/versions/0850b5d6be73/schema)
