REST API for standard selling price update

HI ALL,

NOT ABLE TO UPDATE THE STANDARD SELLING PRICE USING REST API

THROUGH API WE CAN GET THE DATA, BUT FOR POSTING HOW TO GET THE “ITEM-PRICE ID”

eg: “/item-price/ITEM-PRICE-24587”

You can use client.py’s set_value function where you can specify filters for finding the right item price. It will update ALL matching item prices, so be specific in filters.

Alternatively use GET to find correct item price and PUT to update; this causes one extra request though.

I tried using filters but it did not worked. Also i am using Php so plz suggest example of filters in url

http://[erp next url]/api/resource/Item%20Price?filters=[[‘item_code’,‘=’,‘SAMPLE-1234’]]

{
"data": [
    {
        "name": "ITEM-PRICE-18949"
    },
    {
        "name": "ITEM-PRICE-18943"
    },
    {
        "name": "ITEM-PRICE-18941"
    },
    {
        "name": "ITEM-PRICE-18964"
    },
    {
        "name": "ITEM-PRICE-18924"
    },
    {
        "name": "ITEM-PRICE-18933"
    },
    {
        "name": "ITEM-PRICE-18979"
    },
    {
        "name": "ITEM-PRICE-18946"
    },
    {
        "name": "ITEM-PRICE-18966"
    },
    {
        "name": "ITEM-PRICE-18970"
    },
    {
        "name": "ITEM-PRICE-18952"
    },
    {
        "name": "ITEM-PRICE-18953"
    },
    {
        "name": "ITEM-PRICE-18954"
    },
    {
        "name": "ITEM-PRICE-18951"
    },
    {
        "name": "ITEM-PRICE-19050"
    },
    {
        "name": "ITEM-PRICE-19015"
    },
    {
        "name": "ITEM-PRICE-19031"
    },
    {
        "name": "ITEM-PRICE-19040"
    },
    {
        "name": "ITEM-PRICE-18955"
    },
    {
        "name": "ITEM-PRICE-18972"
    }
]

}