with-materials actions for PurchaseOrderViewset.
POST .../purchaseorder/with-materials/ creates a PurchaseOrder and its materials in one atomic request.
PATCH .../purchaseorder/{id}/with-materials/ updates the PurchaseOrder and replaces its materials set as a whole: a row with an id updates that stored PurchaseOrderMaterial, a row without one creates a new one, and any stored row absent from the list is deleted.
Request
- The document declares no server URL.
- Auth: none declared
Path parameters
A unique integer value identifying this purchase order.
Request body
Response
Changes
- breaking
the
response's property format changed fromdateto no format for status - info
added the required property
to the response with the status
- breaking
- info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status
- info