← API reference
Mutation / jobs

recordWorkCenterStatusEvent

Record a work centre's status. A status is held until it changes: when it equals the current status, the current event's lastSeenAt is refreshed and that event is returned; otherwise a new event is appended. A timestamp before the current event's is recorded as history. Requires workCenter:write permission.

Arguments

Status event to record

Returns RecordWorkCenterStatusEventPayload!

Explore in a view

Production Floor
View exact SDL
"""
Record a work centre's status. A status is held until it changes: when it equals the current status, the current event's lastSeenAt is refreshed and that event is returned; otherwise a new event is appended. A timestamp before the current event's is recorded as history. Requires workCenter:write permission.
"""
recordWorkCenterStatusEvent(
  """Status event to record"""
  input: RecordWorkCenterStatusEventInput!
): RecordWorkCenterStatusEventPayload! @topic(names: ["jobs"])

Schema reference describes the API contract. Actual access is checked by the platform for every operation.