Production Event
The production event resource.
/productionEventList production events
Retrieve a paginated list of production events. 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/productionEvent?select=*&limit=10' \
--header 'Authorization: Bearer <api-key>'[
{
"id": "abc123def456",
"jobOperationId": "xyz789",
"startTime": "2026-01-01T00:00:00Z",
"companyId": "xyz789",
"createdAt": "2026-01-01T00:00:00Z",
"createdBy": "string",
"postedToGL": true,
"type": "string"
}
]/productionEventRetrieve a production event
Fetch a single production event by filtering on `id`.
Query parameters
idstringMatch on the production event's `id`, e.g. `eq.{id}`.
curl --request GET \
--url 'https://rest.carbon.ms/productionEvent?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>'{
"id": "abc123def456",
"jobOperationId": "xyz789",
"startTime": "2026-01-01T00:00:00Z",
"companyId": "xyz789",
"createdAt": "2026-01-01T00:00:00Z",
"createdBy": "string",
"postedToGL": true,
"type": "string"
}/productionEventCreate a production event
Create a new production event.
Body parameters
jobOperationIdstringrequiredReferences jobOperation.id
typeproductionEventTypestartTimetimestamprequiredendTimetimestampdurationnumberemployeeIdstringReferences user.id
workCenterIdstringReferences workCenter.id
companyIdstringrequiredReferences company.id
notesstringpostedToGLbooleanrequiredcurl --request POST \
--url https://rest.carbon.ms/productionEvent \
--header 'Authorization: Bearer <api-key>' \
--header 'Content-Type: application/json' \
--header 'Prefer: return=representation' \
--data '{"jobOperationId":"xyz789","startTime":"2026-01-01T00:00:00Z","companyId":"xyz789","postedToGL":true}'{
"id": "abc123def456",
"jobOperationId": "xyz789",
"startTime": "2026-01-01T00:00:00Z",
"companyId": "xyz789",
"createdAt": "2026-01-01T00:00:00Z",
"createdBy": "string",
"postedToGL": true,
"type": "string"
}/productionEventUpdate a production event
Update an existing production event, matched on `id`.
Body parameters
jobOperationIdstringrequiredReferences jobOperation.id
typeproductionEventTypestartTimetimestamprequiredendTimetimestampdurationnumberemployeeIdstringReferences user.id
workCenterIdstringReferences workCenter.id
companyIdstringrequiredReferences company.id
notesstringpostedToGLbooleanrequiredcurl --request PATCH \
--url 'https://rest.carbon.ms/productionEvent?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",
"startTime": "2026-01-01T00:00:00Z",
"companyId": "xyz789",
"createdAt": "2026-01-01T00:00:00Z",
"createdBy": "string",
"postedToGL": true,
"type": "string"
}/productionEventDelete a production event
Delete a production event, matched on `id`. Returns 204 No Content.
Query parameters
idstringThe `id` of the production event to delete, e.g. `eq.{id}`.
curl --request DELETE \
--url 'https://rest.carbon.ms/productionEvent?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>'