/hosekit/{hoseKitId}/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:
Hose Kits
postHoseKitIdUpdate
Code samples
const inputBody = "false";
const headers = {
"Content-Type": "application/json",
Accept: "application/json",
Authorization: {
type: "string",
},
};
fetch("https://goldleaf.app/api/v1/hosekit/{hoseKitId}/update", {
method: "POST",
body: inputBody,
headers: headers,
})
.then(function (res) {
return res.json();
})
.then(function (body) {
console.log(body);
});
POST /hosekit/{hoseKitId}/update
Update an existing hose kit under editing
Updates the details of an existing hose kit if it is currently under editing, ensuring no conflicts with other hose kits.
Body parameter
false
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| Authorization | header | string | true | Bearer token for authentication |
| hoseKitId | path | string(objectId) | true | The ID of the hose kit to update |
Example responses
403 Response
{
"type": "string"
}
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Hose kit updated successfully | None |
| 403 | Forbidden | Can't edit based of status of hosekit | string |
| 500 | Internal Server Error | Internal server error | string |
