/hosekit/{hoseKitId}/delete 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
postHoseKitIdDelete
Code samples
const headers = {
Accept: "application/json",
Authorization: {
type: "string",
},
};
fetch("https://goldleaf.app/api/v1/hosekit/{hoseKitId}/delete", {
method: "POST",
headers: headers,
})
.then(function (res) {
return res.json();
})
.then(function (body) {
console.log(body);
});
POST /hosekit/{hoseKitId}/delete
Delete a hose kit and its previous versions under editing
Deletes the specified hose kit and all its previous versions, but only if they are currently in the 'under editing' state.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| hoseKitId | path | string(objectId) | true | ID of the hose kit to delete. |
| Authorization | header | string | true | Bearer token for authentication. |
Example responses
500 Response
{
"type": "string"
}
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 500 | Internal Server Error | Internal server error | string |
