---
title: "Mass Update"
method: POST
path: "/massedit/{TypeCode}"
tags: ["General"]
---

# Mass Update

`POST /massedit/{TypeCode}`

Performs a mass update operation on the specified object. This operation is not available for all types of objects – `"massEditable" = "true"` must be set on the object to allow the mass edit operation.<br>
Set the filter criteria to restrict the scope of the mass edit operation.

## Request body

- object
  - `data` object, required
    - `filterCriteria` object, required
      - `_constructor` string, required
      - `operator` string, required
      - `criteria` object[], required
        - `fieldName` string, required
        - `operator` string, required
        - `value` string[]
        - `_constructor` string, required
    - `massEditRecords` object[], required
      - `fieldName` string, required — The name of the field you want to update.
      - `massEditOperator` string, required — Can be either one of these valid operators: `+` `-` `*` If omitted, the provided value is set (`=` operator). Otherwise the specified operation is applied.
      - `fieldValue` string, required
      - `precision` unknown

## Response `200`

OK

- object
  - `response` object
    - `node` string
    - `data` string[] — The number of updated records. This number can be different from what the client UI initially thinks because the server takes edit restrictions into account.
    - `status` number

---

[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)
