Update a product

Updates an existing product in the library. For a work_detailed product, sending elements replaces its composition and its prices are recomputed.

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

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

Allowed:
string
string
integer

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

integer

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. Replaces the whole composition: components missing from the array are removed. To keep an existing component, send its component ID (pe_...) in id; omit elements to leave the composition unchanged.

elements
Response
200
Language
LoadingLoading…