mutation CreateEquipment($equipment: CreateEquipmentInput!) {
createEquipment(equipment: $equipment) {
additionalDetails
eventTemplates {
assignedUser {
allowedLocations {
__typename
}
avatarUrl
department
email
firstName
groups {
__typename
}
}
description
equipment {
__typename
}
equipmentId
id
inspectionTemplateId
}
id
image
interactions {
byKnown
byUser
documents
equipmentId
id
notes
}
location {
children {
__typename
}
id
isSite
location
parentId
tags
}
}
}{
"equipment": {
"manufacturer": "string",
"name": "string",
"status": "string"
}
}{
"data": {
"createEquipment": {
"additionalDetails": "value",
"eventTemplates": [
{
"assignedUser": {
"allowedLocations": [
{
"__typename": "Location"
}
],
"avatarUrl": "string",
"department": "string",
"email": "string",
"firstName": "string",
"groups": [
{
"__typename": "UserGroup"
}
]
},
"description": "string",
"equipment": {
"__typename": "Equipment"
},
"equipmentId": "string",
"id": "string",
"inspectionTemplateId": "string"
}
],
"id": "string",
"image": "string",
"interactions": [
{
"byKnown": "string",
"byUser": "string",
"documents": [
"string"
],
"equipmentId": "string",
"id": "string",
"notes": "string"
}
],
"location": {
"children": [
{
"__typename": "Location"
}
],
"id": 1,
"isSite": true,
"location": "string",
"parentId": 1,
"tags": [
"string"
]
}
}
}
}createEquipment
Adds a piece of equipment and returns it.
createEquipment(equipment: CreateEquipmentInput!): Equipment!Arguments
The equipment to add.
Returns
Additional details about the equipment as free-form key-value pairs.
Maintenance schedules of the equipment. Empty if there are no maintenance schedules.
Id of the equipment.
Identifier of the uploaded photo of the equipment.
Service records of the equipment. Empty if there are no service records.
The location where the equipment is kept.
Identifier of the uploaded manual for the equipment.
Manufacturer of the equipment.
Model of the equipment.
Name of the equipment.
When the equipment is next due for maintenance.
Id of the organization the equipment belongs to.
When the equipment was purchased.
Serial number of the equipment.
One of 'OPERATIONAL' (Operational) or 'OUT_OF_ORDER' (Out of order).
Status changes of the equipment. Empty if there are no status changes.
Category of the equipment, as free text chosen by the organization.
mutation CreateEquipment($equipment: CreateEquipmentInput!) {
createEquipment(equipment: $equipment) {
additionalDetails
eventTemplates {
assignedUser {
allowedLocations {
__typename
}
avatarUrl
department
email
firstName
groups {
__typename
}
}
description
equipment {
__typename
}
equipmentId
id
inspectionTemplateId
}
id
image
interactions {
byKnown
byUser
documents
equipmentId
id
notes
}
location {
children {
__typename
}
id
isSite
location
parentId
tags
}
}
}{
"equipment": {
"manufacturer": "string",
"name": "string",
"status": "string"
}
}{
"data": {
"createEquipment": {
"additionalDetails": "value",
"eventTemplates": [
{
"assignedUser": {
"allowedLocations": [
{
"__typename": "Location"
}
],
"avatarUrl": "string",
"department": "string",
"email": "string",
"firstName": "string",
"groups": [
{
"__typename": "UserGroup"
}
]
},
"description": "string",
"equipment": {
"__typename": "Equipment"
},
"equipmentId": "string",
"id": "string",
"inspectionTemplateId": "string"
}
],
"id": "string",
"image": "string",
"interactions": [
{
"byKnown": "string",
"byUser": "string",
"documents": [
"string"
],
"equipmentId": "string",
"id": "string",
"notes": "string"
}
],
"location": {
"children": [
{
"__typename": "Location"
}
],
"id": 1,
"isSite": true,
"location": "string",
"parentId": 1,
"tags": [
"string"
]
}
}
}
}