/brand/{brandId}/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:
Brands
postBrandIdDelete
Code samples
const headers = {
Accept: "application/json",
};
fetch("https://goldleaf.app/api/v1/brand/{brandId}/delete", {
method: "POST",
headers: headers,
})
.then(function (res) {
return res.json();
})
.then(function (body) {
console.log(body);
});
POST /brand/{brandId}/delete
Delete a brand
Marks a brand as deleted so it will no longer be shown
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| brandId | path | string(mongo-id) | true | The MongoDB ID of the brand. |
Example responses
200 Response
{
"type": "string"
}
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | the status of the deletion | string |
| 500 | Internal Server Error | Server error | string |
