Create a product

Creates a new product in the library. To create a detailed work item (ouvrage détaillé), set type to work_detailed and provide its components in elements; its buy and sell prices are computed from the components.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
enum
required

Product type. Use work_detailed for a detailed work item (ouvrage détaillé) composed of other products, see elements.

Allowed:
string
required
string
integer

Buy price excl. VAT, in cents. For work_detailed, computed from elements (any value sent is overwritten).

integer
required

Sell price excl. VAT, in cents. For work_detailed, still required by validation but computed from elements: send 0.

string
string
string
elements
array of objects

Only for work_detailed: the components of the work item, in order. Each element either references an existing library product (element.id) or creates a new one inline (element without id). Unknown or foreign product IDs are silently ignored.

elements
Response
200
Language
LoadingLoading…