Work Orders
Create new work order
Changed onpost/workorders
Request
- Base URLhttps://api.getmaintainx.com/v1
- AuthHTTP bearer
Query parameters
skipWebhookboolean
Set skipWebhook=true, skipWebhook=1 or skipWebhook=yes to skip all webhooks upon successful operation on the endpoint. Learn more about webhooks
Headers
x-organization-idinteger
Required if using a multi organizations token
Request body
Example request
{
"assignees": [
{
"type": "USER"
}
],
"estimatedTime": 3600,
"categories": [
"Cleaning"
],
"description": "A work order sample description",
"dueDate": "2022-01-01T00:00:00.000Z",
"externalData": {
"popularErpSolutionId": "asd732da"
},
"externalId": "ext-workorder-001",
"startDate": "2022-01-01T00:00:00.000Z",
"priority": "MEDIUM",
"procedure": {
"id": 1234,
"title": "Control dashboard audit",
"fields": [
{
"label": "Metal Parts: broken, loose, dented, rusty, missing",
"type": "INSPECTION_CHECK",
"choices": [
"Partially"
],
"urls": [
{
"label": "MaintainX Website",
"link": "www.getmaintainx.com"
}
],
"meterId": 1,
"index": 1
}
]
},
"repeatability": {
"automationMeterTrigger": {
"newDueDateOffsetSeconds": 86400
}
},
"extraFields": {
"Estimated Time Allotted": "24 Hours"
},
"vendorIds": [
1
],
"partsUsed": [
{
"partId": 963,
"quantityUsed": 120,
"locationId": 852
}
]
}Response
Successfully created work order
Example response
{
"id": 159
}Changes
- warning
deleted the
queryrequest parameterskipWebhook
- warning
- warning
deleted the
queryrequest parameterskipWebhook - info
added the new optional
queryrequest parameterskipWebhook - info
added the new optional request property
- info
added the non-success response with the status
- warning