Discard the draft content of a catalogue item
DELETE/product-contents/:catalogItemId/draft
DiscardDraft. DRAFT to RETIRED with retiredReason DISCARDED. Nothing was ever published, so no event is raised. DELETE is idempotent by method and takes no Idempotency-Key; a repeat finds the content already RETIRED and answers 409 illegal-transition.
Request
Responses
- 200
- 404
- 409
- 500
The discarded content (RETIRED, reason DISCARDED).
not-found (the resource does not exist, or the path id is empty or longer than 128 characters). A NUL character in the path is a 404 resource-not-found.
illegal-transition (the content is not a DRAFT) or concurrent-update.
internal-error. The detail never leaks the cause ("an unexpected error occurred"); a 5xx is never stored under an Idempotency-Key.