Mutation
mutation AddEquipmentInteractions($equipmentIds: [String!]!, $input: EquipmentInteractionInput!) {
addEquipmentInteractions(equipmentIds: $equipmentIds, input: $input) {
byKnown
byUser
documents
equipmentId
id
notes
}
}Variables
{
"equipmentIds": [
"string"
],
"input": {
"occursAt": "value",
"type": "string"
}
}Response
{
"data": {
"addEquipmentInteractions": [
{
"byKnown": "string",
"byUser": "string",
"documents": [
"string"
],
"equipmentId": "string",
"id": "string",
"notes": "string"
}
]
}
}Mutations
addEquipmentInteractions
Adds the same service record to several pieces of equipment and returns the records created, one per piece of equipment.
MUTATION
addEquipmentInteractions(equipmentIds: [String!]!, input: EquipmentInteractionInput!): [EquipmentInteraction!]!Arguments
equipmentIds
[String!]!
required
Ids of the equipment that was serviced.
input
required
The service record to add to each piece of equipment.
Returns
byKnown
String
Id of the external provider who performed the service.
byUser
String
Id of the user who performed the service.
documents
[String!]!
Identifiers of the uploaded documents attached to the service record. Empty if there are no documents.
equipmentId
String!
Id of the equipment that was serviced.
id
String!
Id of the service record.
notes
String
Notes about the service.
occursAt
DateTime!
When the service took place.
type
String!
One of 'CALIBRATION' (Calibration), 'INSPECTION' (Inspection), 'PART_REPLACEMENT' (Part replacement), 'CLEANING' (Cleaning), 'PREVENTATIVE_MAINTENANCE' (Preventative maintenance), 'REPAIR' (Repair) or 'OTHER' (Other).
Mutation
mutation AddEquipmentInteractions($equipmentIds: [String!]!, $input: EquipmentInteractionInput!) {
addEquipmentInteractions(equipmentIds: $equipmentIds, input: $input) {
byKnown
byUser
documents
equipmentId
id
notes
}
}Variables
{
"equipmentIds": [
"string"
],
"input": {
"occursAt": "value",
"type": "string"
}
}Response
{
"data": {
"addEquipmentInteractions": [
{
"byKnown": "string",
"byUser": "string",
"documents": [
"string"
],
"equipmentId": "string",
"id": "string",
"notes": "string"
}
]
}
}