/pricelist/{priceListId}/update v1.0.0
Scroll down for code samples, example requests and responses. Select a language for code samples from the tabs above or the mobile navigation menu.
Base URLs:
Price Lists
postPriceListIdUpdate
Code samples
const inputBody = "false";
const headers = {
"Content-Type": "application/json",
Accept: "application/json",
};
fetch("https://goldleaf.app/api/v1/pricelist/{priceListId}/update", {
method: "POST",
body: inputBody,
headers: headers,
})
.then(function (res) {
return res.json();
})
.then(function (body) {
console.log(body);
});
POST /pricelist/{priceListId}/update
Update price list properties
Updates price list properties based on provided parameters, maintaining history if necessary. Requires admin or regular role.
Body parameter
false
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| priceListId | path | string(mongoId) | true | ID of the price list to update |
Example responses
500 Response
{
"type": "string"
}
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Price list updated successfully | None |
| 500 | Internal Server Error | Internal server error | string |
