Retire the published content of a catalogue item
POST/product-contents/:catalogItemId/retirements
RetireContent. PUBLISHED to RETIRED (terminal). A DRAFT is discarded with DELETE /product-contents/{catalogItemId}/draft instead. RetireOnDiscontinue retires content automatically when the network discontinues the item. Publishes ProductContentRetired.
Request
Responses
- 200
- 400
- 404
- 409
- 500
The retired content.
Response Headers
"true" when the answer is the stored response of an earlier request with the same Idempotency-Key; absent on the first execution.
idempotency-key-required (no Idempotency-Key header), idempotency-key-invalid (not 1 to 128 printable ASCII characters) or malformed-request (the body is empty, not valid JSON, has an unknown field, a field of the wrong type, trailing data, is larger than 64 KiB or contains a NUL character, U+0000, also as the escape \u0000; a NUL in the query string is the same 400). The Idempotency-Key checks run first and a request rejected here never records its key.
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 DRAFT or already RETIRED), concurrent-update or idempotency-key-reused.
internal-error. The detail never leaks the cause ("an unexpected error occurred"); a 5xx is never stored under an Idempotency-Key.