Delete a product (manager)

DELETE /manager/products/{id}

Path parameters

  • id integer Required

    Numeric ID of the product to delete

Responses

  • Product deleted

  • 401 application/json

    Unauthorized.

    Hide response attribute Show response attribute object
  • Forbidden - You don't have permission to access this route

  • Product not found

  • 422 application/json

    Unprocessable Content

    Hide response attributes Show response attributes object
    • message string

      Error message.

    • errors object
      Hide errors attributes Show errors attributes object
      • field array[string]

        Error message details.

      • * array[string] Additional properties

        Error message details.

DELETE /manager/products/{id}
curl \
 -X DELETE https://domain.tld/api/v2/manager/products/{id} \
 -H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (401)
{
  "message": "Unauthorized."
}
Response examples (422)
{
  "message": "field is required! (and 3 more error)",
  "errors": {
    "field": [
      "Error message details here"
    ],
    "additionalProperty1": [
      "Error message details here"
    ],
    "additionalProperty2": [
      "Error message details here"
    ]
  }
}