---
title: "Perform a Mass Action"
method: POST
path: "/pricegridmanager.massaction/{id}"
tags: ["Live Price Grids"]
---

# Perform a Mass Action

`POST /pricegridmanager.massaction/{id}`

Performs a mass workflow action on specified Price Grid Items based on filter settings.

---
**Example**:<p>
Approves only products where `activePrice` = 250.
```json
{
   "data":{
      "_constructor":"AdvancedCriteria",
      "operator":"and",
      "criteria":[
         {
            "fieldName":"activePrice",
            "operator":"equals",
            "value":250
         }
      ],
      "workflowAction":"APPROVED",
      "comment":"Approved."
   }
}
```

---

Required Permission| Roles with the Required Permission |
---------|----------|
 PRICEGRID_UPDATE | Edit LPG & Add Products (`PB_PRICEGRIDEDITOR_ADD_SKU`), Edit LPG (`PB_PRICEGRIDEDITOR`), Administer LPG (`PB_PRICEGRIDS`)

## Request body

- object
  - `data` object, required
    - `_constructor` string, required
    - `operator` string, required
    - `criteria` object[], required — Specify the criteria for which you want to filter the data.
      - `fieldName` string, required — Specify columns (fields) you want to apply the workflow action to.
      - `operator` 'equals' | 'iEquals' | 'notEqual' | 'iNotEqual' | 'isNull' | 'notNull' | 'contains' | 'iContains' | 'containsPattern' | 'iContainsPattern' | 'notContains' | 'iNotContains' | 'startsWith' | 'iStartsWith' | 'notStartsWith' | 'iNotStartsWith' | 'endsWith' | 'iEndsWith' | 'notEndsWith' | 'iNotEndsWith' | 'iBetween' | 'iBetweenInclusive' | 'inSet' | 'notInSet', required — Specify an operator of the filter criteria.
      - `value` number, required — Specify the value of the field.
    - `workflowAction` 'SUBMITTED' | 'WITHDRAWN' | 'APPROVED' | 'DENIED' — Specify the workflow action you want to perform.
    - `comment` string, required — Enter the comment. Only for **Approve** and **Deny** actions.
    - `itemAction` 'recalculate' | 'edit' — Specify the item action you want to perform.

## Response `200`

OK

- object
  - `response` object
    - `node` string
    - `data` unknown
    - `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)
