Mass Edit Price Grid Items

post/pricegridmanager.massedit/{id}

Updates fields of specified Live Price Grid Items.

Specify the items in the request body by the id field.

Information: The id is the typedId without the PGI suffix. For example, the id attribute of the item with typedId = 649.PGI is 649.


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)
Securitybasic or X-PriceFx-jwt
Request
path Parameters
id
required
string

The id of the Live Price Grid whose items you want to edit. You can retrieve the id of the LPG, for example, by calling the /fetch/PG endpoint.

Request Body schema: application/json
object
object
_constructor
string non-empty
operator
string non-empty
Array of objects non-empty unique
Array (non-empty)
fieldName
string non-empty
operator
string non-empty
value
Array of strings
_constructor
string non-empty
Array of objects non-empty unique
Array (non-empty)
fieldName
string non-empty

The field you want to edit.

massEditOperator
string non-empty
Possible values: "+" "-" "*" "="
fieldValue
integer

The new value of the field. If omitted, the field is set to null.

precision
any
Responses
200

OK - The response contains "data":null as the mass edit task is a background process whose results are not yet available within the response time.

Response Schema: application/json
required
object
node
required
string non-empty
data
any
status
required
number
Request samples
application/json
{
  • "data": {
    • "filterCriteria": {
      • "_constructor": "AdvancedCriteria",
      • "operator": "and",
      • "criteria": [
        • {
          }
        ]
      },
    • "massEditRecords": [
      • {
        • "fieldName": "manualResultPrice",
        • "massEditOperator": "=",
        • "fieldValue": 20,
        • "precision": "2"
        }
      ]
    }
}
Response samples
application/json
{
  • "response": {
    • "node": "string",
    • "data": null,
    • "status": 0
    }
}