Batches

A Batch (also called a Lot) is a group of work order lines that are associated with each other, either for easy picking or for historical records.

Attributes

  • id string

  • name string

Endpoints

List Batches

/api/batches

Get the batches from the PPG database and return a JSON response.

Arguments

  • name string

Request with curl
curl "http://[Your IP] /api/batches" \ -X get \ -H "Content-Type: application/json" \ -H "Authorization: Bearer [Your JWT Access Token]"
Example Response
{ "batches": [{ "id": "string", "name": "string", }] }

Show Batch

/api/batches/[id]

Get a single batch from the PPG database and return a JSON response.

Request with curl
curl "http://[Your IP] /api/batches/[id]" \ -X get \ -H "Content-Type: application/json" \ -H "Authorization: Bearer [Your JWT Access Token]"
Example Response
{ "batches": [{ "id": "string", "name": "string", }] }