/salesestimate/{salesEstimateId}/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:
Sales Estimates
postSalesEstimateIdUpdate
Code samples
const inputBody = "false";
const headers = {
"Content-Type": "application/json",
Accept: "application/json",
Authorization: undefined,
};
fetch("https://goldleaf.app/api/v1/salesestimate/{salesEstimateId}/update", {
method: "POST",
body: inputBody,
headers: headers,
})
.then(function (res) {
return res.json();
})
.then(function (body) {
console.log(body);
});
POST /salesestimate/{salesEstimateId}/update
Update an existing sales estimate
Updates an existing sales estimate with new data, including items, customer details, and pricing.
Body parameter
false
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| salesEstimateId | path | string(mongoId) | true | The ID of the sales estimate to update |
| Authorization | header | undefined | true | Bearer token for authentication |
Example responses
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Sales estimate updated successfully | None |
| 400 | Bad Request | Invalid input or parameters | None |
| 401 | Unauthorized | Unauthorized - user must be authenticated | None |
| 403 | Forbidden | Forbidden - customers are blocked from this endpoint | None |
| 404 | Not Found | Sales estimate not found | None |
| 500 | Internal Server Error | Internal server error | None |
