DELETE /products/{id}

Path parameters

  • id string Required

    The CUID of the product to delete

Responses

  • 204

    Product deleted successfully (No Content)

  • 401 application/json

    Unauthorized

    Hide response attribute Show response attribute object
    • message string Required

      A message describing the error

  • 404 application/json

    Product not found

    Hide response attribute Show response attribute object
    • message string Required

      A message describing the error

  • 500 application/json

    Internal Server Error

    Hide response attribute Show response attribute object
    • message string Required

      A message describing the error

DELETE /products/{id}
curl \
 --request DELETE 'http://localhost:3000/api/v1/products/{id}' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (401)
{
  "message": "Product not found"
}
Response examples (404)
{
  "message": "Product not found"
}
Response examples (500)
{
  "message": "Product not found"
}