Production Quantity
The production quantity resource.
/productionQuantityList production quantitys
Retrieve a paginated list of production quantitys. Filter, order, and select columns with PostgREST query parameters.
Query parameters
selectstringComma-separated columns to return. Defaults to all.
orderstringColumn to sort by, e.g. `createdAt.desc`.
limitintegerMaximum rows to return.
offsetintegerRows to skip, for pagination.
curl --request GET \
--url 'https://rest.carbon.ms/productionQuantity?select=*&limit=10' \
--header 'Authorization: Bearer <api-key>'[
{
"id": "abc123def456",
"jobOperationId": "xyz789",
"type": "string",
"quantity": 10,
"companyId": "xyz789",
"createdAt": "2026-01-01T00:00:00Z",
"createdBy": "string",
"setupProductionEventId": "xyz789"
}
]/productionQuantityRetrieve a production quantity
Fetch a single production quantity by filtering on `id`.
Query parameters
idstringMatch on the production quantity's `id`, e.g. `eq.{id}`.
curl --request GET \
--url 'https://rest.carbon.ms/productionQuantity?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>'{
"id": "abc123def456",
"jobOperationId": "xyz789",
"type": "string",
"quantity": 10,
"companyId": "xyz789",
"createdAt": "2026-01-01T00:00:00Z",
"createdBy": "string",
"setupProductionEventId": "xyz789"
}/productionQuantityCreate a production quantity
Create a new production quantity.
Body parameters
jobOperationIdstringrequiredReferences jobOperation.id
typeproductionQuantityTyperequiredquantitynumberrequiredsetupProductionEventIdstringReferences productionEvent.id
laborProductionEventIdstringReferences productionEvent.id
machineProductionEventIdstringReferences productionEvent.id
notesstringcompanyIdstringrequiredReferences company.id
scrapReasonIdstringReferences scrapReason.id
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"}'{
"id": "abc123def456",
"jobOperationId": "xyz789",
"type": "string",
"quantity": 10,
"companyId": "xyz789",
"createdAt": "2026-01-01T00:00:00Z",
"createdBy": "string",
"setupProductionEventId": "xyz789"
}/productionQuantityUpdate a production quantity
Update an existing production quantity, matched on `id`.
Body parameters
jobOperationIdstringrequiredReferences jobOperation.id
typeproductionQuantityTyperequiredquantitynumberrequiredsetupProductionEventIdstringReferences productionEvent.id
laborProductionEventIdstringReferences productionEvent.id
machineProductionEventIdstringReferences productionEvent.id
notesstringcompanyIdstringrequiredReferences company.id
scrapReasonIdstringReferences scrapReason.id
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"}'{
"id": "abc123def456",
"jobOperationId": "xyz789",
"type": "string",
"quantity": 10,
"companyId": "xyz789",
"createdAt": "2026-01-01T00:00:00Z",
"createdBy": "string",
"setupProductionEventId": "xyz789"
}/productionQuantityDelete a production quantity
Delete a production quantity, matched on `id`. Returns 204 No Content.
Query parameters
idstringThe `id` of the production quantity to delete, e.g. `eq.{id}`.
curl --request DELETE \
--url 'https://rest.carbon.ms/productionQuantity?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>'