Create the draft content of a catalogue item
POST/product-contents
CreateProductContent. The item must exist in the local CatalogItemView (fed by offer-availability events) and must not be discontinued. The content starts DRAFT at revision 1; the body may be incomplete (the publish gate is checked by POST /product-contents/{catalogItemId}/publications). A second create for the same item is a 409 concurrent-update.
Request
Responses
- 201
- 400
- 409
- 422
- 500
The created content (DRAFT).
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.
concurrent-update (another writer got in between the load and the save; RETRYABLE: not stored, the key is released and a retry executes again), a business conflict, or idempotency-key-reused (the Idempotency-Key was already used with a different method, path or body).
validation-failed, unknown-catalog-item (ErrUnknownCatalogItem), item-discontinued (ErrItemDiscontinued), unknown-category (ErrUnknownCategory), too-many-bullets (ErrTooManyBullets), too-many-attributes (ErrTooManyAttributes) or too-many-media (ErrTooManyMedia).
internal-error. The detail never leaks the cause ("an unexpected error occurred"); a 5xx is never stored under an Idempotency-Key.