Delete a brand with its rules and history
DELETE
/api/v1/brands/{slug}
const url = 'http://localhost:3000/api/v1/brands/example';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url http://localhost:3000/api/v1/brands/example \ --header 'Authorization: Bearer <token>'Not the default: make another brand the default first.
Scope: write.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”slug
required
string
Brand slug
Responses
Section titled “Responses”Deleted
Media typeapplication/json
object
data
required
object
deleted
required
boolean
Example
{ "data": { "deleted": true }}default
Section titled “default”An error
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
detail
Examplegenerated
{ "error": { "code": "example", "message": "example", "detail": "example" }}