inventory

with-materials actions for SupplierReservationViewset.

POST .../supplier-reservation/with-materials/ creates a SupplierReservation and its materials in one atomic request.

PATCH .../supplier-reservation/{id}/with-materials/ updates the SupplierReservation and replaces its materials set as a whole: a row with an id updates that stored SupplierReservationMaterial, a row without one creates a new one, and any stored row absent from the list is deleted.

get/api/inventory/supplier-reservation/

Request

  • The document declares no server URL.
  • Auth: none declared

Query parameters

pageinteger

A page number within the paginated result set.

page_sizeinteger

Number of results to return per page. Capped at 1000: a larger value is clamped, not rejected.

qstring

A search term.

supplierinteger

Response

countinteger
nextstring uri nullable
previousstring uri nullable

Example response

{
  "count": 123,
  "next": "http://api.example.org/accounts/?page=4",
  "previous": "http://api.example.org/accounts/?page=2"
}

Changes

    • warning

      for the query request parameter page_size, the max was set to 1000.00

    • warning

      for the query request parameter page_size, the min was set to 1.00