Push
Senseye PdM has an extensive GraphQL API that can be used to create work events. Alongside External ID support, it is often selected as a low friction method for Work Order integration.
Mutation¶
The following GraphQL query makes use of the createWorkEvent mutation to create a work event within Senseye:
mutation createWorkEvent($input: CreateWorkEventInput!) {
createWorkEvent(input: $input) {
workEvent {
id
creationTime
}
}
}
{
"input": {
"eventTime": "2022-04-03T20:00:00+01:00",
"message": "Replaced seized bearing on the drive shaft",
"externalID": "site-A|asset-id",
"isRoutine": false,
"workActivity": "repair",
"failureMode": "MaPS:FAILURE_MODE<No rotation>"
}
}
More information about the input variables can be found within work event structure documentation. The following is the same example, but using Senseye's ID instead of the If you want to use Senseye's ID...
externalID
:{
"input": {
"eventTime": "2022-04-03T20:00:00+01:00",
"message": "Replaced seized bearing on the drive shaft",
"hierarchyNodeID": "senseye-asset-guid",
"isRoutine": false,
"workActivity": "repair",
"failureMode": "MaPS:FAILURE_MODE<No rotation>"
}
}