Deal product update endpoint

I am facing problem with an deal product update endpoint. Whenever i make a call to update the products that has been attached to a deal it throws an error message {“success”:false,“error”:“Invalid token: access token is invalid”,“errorCode”:401} as a response.

Hi @Vignesh_G

Have you also tested this on the Reference page?

PUT
/deals/{id}/products/{deal_product_id}

Yes, It works fine in reference page with api token.
But i’m using Oauth 2.0.

I’m using Zoho deluge script language…
param1 = Map();
head = Map();
head.put(“content-type”,“application/json”);
param1.put(“item_price”,1000);
param1.put(“quantity”,12);
param1.put(“discount_percentage”,10);
param1.put(“duration”,“1”);
Updatedealproduct = invokeurl
[
url :“https://api.pipedrive.com/deals/1/products/13
type :PUT
parameters:param1.toString()
headers:head
connection:“pipedrive”
];
info Updatedealproduct;