Skip to main content

Delete Brand

Permanently deletes a brand. The brand is also removed from every product it was assigned to.

HTTP Request​

  • URL: /brands/{id}
  • Method: DELETE
  • Headers:
    • accessToken: Required. Your API access token.
  • Required scope: None. Any valid access token can call this endpoint.

Path Parameters​

ParameterTypeDescription
idStringRequired. The ID of the brand to delete.

cURL Example​

curl --location --request DELETE '<BASE_URL>/brands/663a0f1e4587085935a4fa21' \
--header 'accessToken: <ACCESS_TOKEN>'

Response​

  • 200 OK: The request was processed. Check success to confirm the brand was deleted.
  • 400 Bad Request: The access token is missing or invalid, or the brand ID is not valid.

Sample JSON Response​

{
"success": true,
"message": "Brand Acme Tools deleted successfully"
}

Response Details​

FieldTypeDescription
successBooleantrue when the brand was deleted.
messageStringConfirmation message that includes the brand name.

Notes​

  • Deleting a brand cannot be undone. To hide a brand instead, set isShow to false with Update Brand.
  • If no brand matches the ID, the response has success: false and the message Brand not exists!.