/hosekit/{hoseKitId}/item/{itemId}/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
postHoseKitIdItemIdDelete
Code samples
const headers = {
Accept: "application/json",
Authorization: {
type: "string",
},
};
fetch("https://goldleaf.app/api/v1/hosekit/{hoseKitId}/item/{itemId}/delete", {
method: "POST",
headers: headers,
})
.then(function (res) {
return res.json();
})
.then(function (body) {
console.log(body);
});
POST /hosekit/{hoseKitId}/item/{itemId}/delete
Delete an item from a hose kit
Deletes an item (hose assembly, adaptor, or other) from the bill of materials (BOM) of a specified hose kit.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| hoseKitId | path | string(objectId) | true | ID of the hose kit. |
| itemId | path | string(objectId) | true | ID of the item to delete from the hose kit. |
| Authorization | header | string | true | Bearer token for authentication. |
Example responses
200 Response
{
"type": "string"
}
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Successfully deleted the item from the hose kit. | string |
| 403 | Forbidden | none | string |
| 500 | Internal Server Error | none | string |
