Skip to content

Latest commit

 

History

History
38 lines (24 loc) · 563 Bytes

delete-product.md

File metadata and controls

38 lines (24 loc) · 563 Bytes

Delete Product

Deletes the Product.

URL : /api/v{:apiVersion}/products/:id

URL Parameters : id=[integer]

Method : DELETE

Authorization : Bearer Token

Permissions required : User must have the role of admin.

Success Response

Code : 204 NO CONTENT

Error Responses

Code : 404 NOT FOUND

Content :

{
    "errors": [
        {
            "code": "NotFoundError",
            "description": "Product not found for parameters {Id=111}."
        }
    ]
}

Or

Code : 403 FORBIDDEN