Create a listing (CreateListing)
POST/listings
Creates the listing of one catalogue item on one node and publishes ListingCreated. The listing starts LIVE when the node is ACTIVE in the local node status view. Otherwise (node proposed, suspended, retired or not yet known) it starts SUPPRESSED with reason NODE_NOT_SELLABLE; for a DISCONTINUED item it starts SUPPRESSED with reason DISCONTINUED (Gap Register G24); for an ownerRef whose seller the local seller status view says is SUSPENDED it starts SUPPRESSED with reason OWNER_SUSPENDED (ADR 0013). The highest cause wins: DISCONTINUED, then NODE_NOT_SELLABLE, then OWNER_SUSPENDED. Its availability starts at 0, basis UNKNOWN, with no asOf.
Request
Responses
- 201
- 400
- 404
- 409
- 413
- 422
- 500
Created.
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.
duplicate-listing (ErrDuplicateListing), concurrent-update (ErrConcurrentUpdate), or idempotency-key-reused.
request-body-too-large: the request body is over 64 KiB.
validation-failed (ErrValidation): a well-formed request that breaks a value rule.
internal-error: an unmapped failure; the detail never leaks the internal message.