/otheritems/{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:
Other Items
postOtherItemsIdDelete
Code samples
const headers = {
Accept: "application/json",
};
fetch("https://goldleaf.app/api/v1/otheritems/{itemId}/delete", {
method: "POST",
headers: headers,
})
.then(function (res) {
return res.json();
})
.then(function (body) {
console.log(body);
});
POST /otheritems/{itemId}/delete
Delete an other item by ID
Deletes a specific other item identified by its ID. Requires admin role and excludes customer role.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| itemId | path | string(mongoId) | true | The ID of the other item to delete |
Example responses
200 Response
{
"type": "string"
}
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Item deleted successfully | string |
| 500 | Internal Server Error | Internal server error | string |
