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
Query parameters
A page number within the paginated result set.
Number of results to return per page. Capped at 1000: a larger value is clamped, not rejected.
A search term.
Response
Example response
{
"count": 123,
"next": "http://api.example.org/accounts/?page=4",
"previous": "http://api.example.org/accounts/?page=2"
}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
- warning
for the
queryrequest parameterpage_size, the max was set to1000.00 - warning
for the
queryrequest parameterpage_size, the min was set to1.00
- warning