Discontinue a catalogue item (DiscontinueItem)
POST/catalog-items/:catalogItemId/discontinuations
Moves the item from ACTIVE to DISCONTINUED, publishes CatalogItemDiscontinued and, in the same transaction, suppresses every LIVE or node-suppressed listing of the item with reason DISCONTINUED (one ListingSuppressed each; Gap Register G24). Discontinuing a DISCONTINUED item returns it unchanged and publishes nothing.
Request
Responses
- 200
- 400
- 404
- 409
- 413
- 500
The item, now DISCONTINUED.
Response Headers
"true" when the response replays the stored answer of the same Idempotency-Key (only a success, a final refusal or a recorded outcome is stored; see the Idempotency-Key parameter).
idempotency-key-required or idempotency-key-invalid (state-changing routes); invalid-limit, invalid-cursor or unknown-query-parameter (list reads); malformed-request-body (bad JSON, an unknown field, a wrong type, an empty body, trailing data or a NUL character) or malformed-request-query (a NUL character).
not-found (ErrNotFound): an unknown catalogItemId or feedId.
concurrent-update (ErrConcurrentUpdate) after one automatic retry, or idempotency-key-reused.
request-body-too-large: the request body is over 64 KiB.
internal-error: an unmapped failure; the detail never leaks the internal message.