/warehouse/{warehouseId}/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:
Warehouses
postWarehouseIdUpdate
Code samples
const inputBody = "false";
const headers = {
"Content-Type": "application/json",
};
fetch("https://goldleaf.app/api/v1/warehouse/{warehouseId}/update", {
method: "POST",
body: inputBody,
headers: headers,
})
.then(function (res) {
return res.json();
})
.then(function (body) {
console.log(body);
});
POST /warehouse/{warehouseId}/update
Update a warehouse
Updates warehouse information by ID. Accessible by admin and regular users.
Body parameter
false
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| warehouseId | path | string(ObjectId) | true | ID of the warehouse to update. |
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Warehouse updated successfully. | None |
| 400 | Bad Request | Validation error. | None |
| 401 | Unauthorized | Unauthorized. | None |
| 403 | Forbidden | Forbidden. | None |
| 500 | Internal Server Error | Server error. | None |
