Production Event
The production event resource.
Base/productionEvent
GET
/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.
GET/productionEvent
curl --request GET \
--url '<your-host>/productionEvent?select=*&limit=10' \
--header 'Authorization: Bearer <api-key>'Response
[
{
"id": "abc123def456",
"jobOperationId": "xyz789",
"startTime": "2026-01-01T00:00:00Z",
"companyId": "xyz789",
"createdAt": "2026-01-01T00:00:00Z",
"createdBy": "string",
"postedToGL": true,
"type": "string"
}
]GET
/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}`.
GET/productionEvent
curl --request GET \
--url '<your-host>/productionEvent?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>'Response
{
"id": "abc123def456",
"jobOperationId": "xyz789",
"startTime": "2026-01-01T00:00:00Z",
"companyId": "xyz789",
"createdAt": "2026-01-01T00:00:00Z",
"createdBy": "string",
"postedToGL": true,
"type": "string"
}POST
/productionEventCreate a production event
Create a new production event.
Body parameters
jobOperationIdstringrequiredtypeproductionEventTypestartTimetimestamprequiredendTimetimestampdurationnumberemployeeIdstringReferences user.id
workCenterIdstringReferences workCenter.id
companyIdstringrequiredReferences company.id
notesstringpostedToGLbooleanrequiredjobOperationBatchIdstringPOST/productionEvent
curl --request POST \
--url <your-host>/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}'Response
{
"id": "abc123def456",
"jobOperationId": "xyz789",
"startTime": "2026-01-01T00:00:00Z",
"companyId": "xyz789",
"createdAt": "2026-01-01T00:00:00Z",
"createdBy": "string",
"postedToGL": true,
"type": "string"
}PATCH
/productionEventUpdate a production event
Update an existing production event, matched on `id`.
Body parameters
jobOperationIdstringrequiredtypeproductionEventTypestartTimetimestamprequiredendTimetimestampdurationnumberemployeeIdstringReferences user.id
workCenterIdstringReferences workCenter.id
companyIdstringrequiredReferences company.id
notesstringpostedToGLbooleanrequiredjobOperationBatchIdstringPATCH/productionEvent
curl --request PATCH \
--url '<your-host>/productionEvent?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",
"startTime": "2026-01-01T00:00:00Z",
"companyId": "xyz789",
"createdAt": "2026-01-01T00:00:00Z",
"createdBy": "string",
"postedToGL": true,
"type": "string"
}DELETE
/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}`.
DELETE/productionEvent
curl --request DELETE \
--url '<your-host>/productionEvent?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>'204 No Content