To delete a product template with a given ID, use the following request:

DELETE /products/product_id/product-templates/id

where:

  • product_id (integer) is the product ID.
  • id (integer) is the product template ID.

Example request

DELETE /products/1/product-templates/1 HTTP/1.1
Authorization: Bearer f794846b7c26621688e1e06164975b4eae8ce2f6

Response

The LAC REST API returns the standard HTTP response codes described in the following table.

Status CodeDescription
204 No ContentProduct template deleted.
403 ForbiddenInvalid or expired token provided.
404 Not FoundProduct template ID does not exist.

Example Response

HTTP/1.1 204 No Content
  • No labels