Production Quantity

The production quantity resource.

Basehttps://rest.carbon.ms/productionQuantity
GET/productionQuantity

List production quantities

Retrieve a paginated list of production quantities. Filter, order, and select columns with PostgREST query parameters.

Query parameters

selectstring

Comma-separated columns to return. Defaults to all.

orderstring

Column to sort by, e.g. `createdAt.desc`.

limitinteger

Maximum rows to return.

offsetinteger

Rows to skip, for pagination.

GEThttps://rest.carbon.ms/productionQuantity
curl --request GET \
  --url 'https://rest.carbon.ms/productionQuantity?select=*&limit=10' \
  --header 'Authorization: Bearer <api-key>'
Response
[
  {
    "id": "abc123def456",
    "jobOperationId": "xyz789",
    "type": "string",
    "quantity": 10,
    "companyId": "xyz789",
    "createdAt": "2026-01-01T00:00:00Z",
    "createdBy": "string",
    "setupProductionEventId": "xyz789"
  }
]
GET/productionQuantity

Retrieve a production quantity

Fetch a single production quantity by filtering on `id`.

Query parameters

idstring

Match on the production quantity's `id`, e.g. `eq.{id}`.

GEThttps://rest.carbon.ms/productionQuantity
curl --request GET \
  --url 'https://rest.carbon.ms/productionQuantity?id=eq.%7Bid%7D' \
  --header 'Authorization: Bearer <api-key>'
Response
{
  "id": "abc123def456",
  "jobOperationId": "xyz789",
  "type": "string",
  "quantity": 10,
  "companyId": "xyz789",
  "createdAt": "2026-01-01T00:00:00Z",
  "createdBy": "string",
  "setupProductionEventId": "xyz789"
}
POST/productionQuantity

Create a production quantity

Create a new production quantity.

Body parameters

jobOperationIdstringrequired

References jobOperation.id

typeproductionQuantityTyperequired
quantitynumberrequired
setupProductionEventIdstring

References productionEvent.id

laborProductionEventIdstring

References productionEvent.id

machineProductionEventIdstring

References productionEvent.id

notesstring
companyIdstringrequired

References company.id

scrapReasonIdstring

References scrapReason.id

inspectionIdstring

References inspection.id

inspectionSampleIdstring

References inspectionSample.id

POSThttps://rest.carbon.ms/productionQuantity
curl --request POST \
  --url https://rest.carbon.ms/productionQuantity \
  --header 'Authorization: Bearer <api-key>' \
  --header 'Content-Type: application/json' \
  --header 'Prefer: return=representation' \
  --data '{"jobOperationId":"xyz789","type":"string","quantity":10,"companyId":"xyz789"}'
Response
{
  "id": "abc123def456",
  "jobOperationId": "xyz789",
  "type": "string",
  "quantity": 10,
  "companyId": "xyz789",
  "createdAt": "2026-01-01T00:00:00Z",
  "createdBy": "string",
  "setupProductionEventId": "xyz789"
}
PATCH/productionQuantity

Update a production quantity

Update an existing production quantity, matched on `id`.

Body parameters

jobOperationIdstringrequired

References jobOperation.id

typeproductionQuantityTyperequired
quantitynumberrequired
setupProductionEventIdstring

References productionEvent.id

laborProductionEventIdstring

References productionEvent.id

machineProductionEventIdstring

References productionEvent.id

notesstring
companyIdstringrequired

References company.id

scrapReasonIdstring

References scrapReason.id

inspectionIdstring

References inspection.id

inspectionSampleIdstring

References inspectionSample.id

PATCHhttps://rest.carbon.ms/productionQuantity
curl --request PATCH \
  --url 'https://rest.carbon.ms/productionQuantity?id=eq.%7Bid%7D' \
  --header 'Authorization: Bearer <api-key>' \
  --header 'Content-Type: application/json' \
  --header 'Prefer: return=representation' \
  --data '{"jobOperationId":"xyz789"}'
Response
{
  "id": "abc123def456",
  "jobOperationId": "xyz789",
  "type": "string",
  "quantity": 10,
  "companyId": "xyz789",
  "createdAt": "2026-01-01T00:00:00Z",
  "createdBy": "string",
  "setupProductionEventId": "xyz789"
}
DELETE/productionQuantity

Delete a production quantity

Delete a production quantity, matched on `id`. Returns 204 No Content.

Query parameters

idstring

The `id` of the production quantity to delete, e.g. `eq.{id}`.

DELETEhttps://rest.carbon.ms/productionQuantity
curl --request DELETE \
  --url 'https://rest.carbon.ms/productionQuantity?id=eq.%7Bid%7D' \
  --header 'Authorization: Bearer <api-key>'
204 No Content