From 227a2fa84447d845c6a1ebf5595d117d95fda86a Mon Sep 17 00:00:00 2001 From: dulith Date: Wed, 27 Sep 2023 11:55:20 +0530 Subject: [PATCH] Change request params Fixes https://github.com/wso2/api-manager/issues/2176 --- .../src/main/webapp/source/src/app/data/APIProduct.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/portals/publisher/src/main/webapp/source/src/app/data/APIProduct.js b/portals/publisher/src/main/webapp/source/src/app/data/APIProduct.js index 56a8fb91fce..bda7bc5382c 100644 --- a/portals/publisher/src/main/webapp/source/src/app/data/APIProduct.js +++ b/portals/publisher/src/main/webapp/source/src/app/data/APIProduct.js @@ -88,12 +88,12 @@ class APIProduct extends Resource { return promiseMonetization.then(response => response.body); } - configureMonetizationToApiProduct(id, body) { + configureMonetizationToApiProduct(apiId, body) { const promised_status = this.client.then(client => { - return client.apis['API Monetization'].addAPIMonetization({ - apiId: id, - body, - }); + return client.apis['API Monetization'].addAPIMonetization( + { apiId }, + { requestBody: body }, + ); }); return promised_status; }