{
  "opencollection": "1.0.0",
  "info": {
    "name": "MaintainX Asset Criticalities Work Orders API",
    "version": "1"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Work Orders",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List work orders",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.getmaintainx.com/v1/workorders",
            "headers": [
              {
                "name": "x-organization-id",
                "value": "1"
              }
            ],
            "params": [
              {
                "name": "cursor",
                "value": "",
                "type": "query"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query"
              },
              {
                "name": "title",
                "value": "",
                "type": "query"
              },
              {
                "name": "assets",
                "value": "",
                "type": "query"
              },
              {
                "name": "notAssets",
                "value": "",
                "type": "query"
              },
              {
                "name": "locations",
                "value": "",
                "type": "query"
              },
              {
                "name": "notLocations",
                "value": "",
                "type": "query"
              },
              {
                "name": "parts",
                "value": "",
                "type": "query"
              },
              {
                "name": "notParts",
                "value": "",
                "type": "query"
              },
              {
                "name": "vendors",
                "value": "",
                "type": "query"
              },
              {
                "name": "notVendors",
                "value": "",
                "type": "query"
              },
              {
                "name": "assignees",
                "value": "",
                "type": "query"
              },
              {
                "name": "teams",
                "value": "",
                "type": "query"
              },
              {
                "name": "categories",
                "value": "",
                "type": "query"
              },
              {
                "name": "notCategories",
                "value": "",
                "type": "query"
              },
              {
                "name": "priorities",
                "value": "",
                "type": "query"
              },
              {
                "name": "statuses",
                "value": "",
                "type": "query"
              },
              {
                "name": "partStatuses",
                "value": "",
                "type": "query"
              },
              {
                "name": "parentSubWorkOrderTypes",
                "value": "",
                "type": "query"
              },
              {
                "name": "show_upcoming",
                "value": "",
                "type": "query"
              },
              {
                "name": "updatedAt[gte]",
                "value": "",
                "type": "query"
              },
              {
                "name": "updatedAt[lte]",
                "value": "",
                "type": "query"
              },
              {
                "name": "createdAt[gte]",
                "value": "",
                "type": "query"
              },
              {
                "name": "createdAt[lte]",
                "value": "",
                "type": "query"
              },
              {
                "name": "sort",
                "value": "",
                "type": "query"
              },
              {
                "name": "expand",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Endpoint used to list work order resources"
        },
        {
          "info": {
            "name": "Create new work order",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.getmaintainx.com/v1/workorders",
            "headers": [
              {
                "name": "x-organization-id",
                "value": "1"
              }
            ],
            "params": [
              {
                "name": "skipWebhook",
                "value": "",
                "type": "query"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create new work order"
        },
        {
          "info": {
            "name": "Get work order",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.getmaintainx.com/v1/workorders/:id",
            "params": [
              {
                "name": "id",
                "value": "1",
                "type": "path",
                "description": "ID of the workOrder"
              },
              {
                "name": "expand",
                "value": "",
                "type": "query"
              },
              {
                "name": "useSequentialId",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Get work order"
        },
        {
          "info": {
            "name": "Update work order",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.getmaintainx.com/v1/workorders/:id",
            "params": [
              {
                "name": "expand",
                "value": "",
                "type": "query"
              },
              {
                "name": "id",
                "value": "1",
                "type": "path",
                "description": "ID of the work order"
              },
              {
                "name": "skipWebhook",
                "value": "",
                "type": "query",
                "description": "Set `skipWebhook=true`, `skipWebhook=1` or `skipWebhook=yes` to skip all webhooks upon successful operation on the endpoint. [Learn more about webhooks](#tag/Subscriptions-and-Webhooks)"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update work order"
        },
        {
          "info": {
            "name": "Delete workOrder",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.getmaintainx.com/v1/workorders/:id",
            "params": [
              {
                "name": "id",
                "value": "1",
                "type": "path",
                "description": "ID of the workOrder"
              },
              {
                "name": "skipWebhook",
                "value": "",
                "type": "query",
                "description": "Set `skipWebhook=true`, `skipWebhook=1` or `skipWebhook=yes` to skip all webhooks upon successful operation on the endpoint. [Learn more about webhooks](#tag/Subscriptions-and-Webhooks)"
              }
            ]
          },
          "docs": "Delete workOrder"
        },
        {
          "info": {
            "name": "Update work order attachment",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.getmaintainx.com/v1/workorders/:id/attachments/:filename",
            "params": [
              {
                "name": "id",
                "value": "1",
                "type": "path",
                "description": "ID of the work order."
              },
              {
                "name": "filename",
                "value": "datasheet.pdf",
                "type": "path",
                "description": "Name of the attachment, including the extension."
              },
              {
                "name": "skipWebhook",
                "value": "",
                "type": "query",
                "description": "Set `skipWebhook=true`, `skipWebhook=1` or `skipWebhook=yes` to skip all webhooks upon successful operation on the endpoint. [Learn more about webhooks](#tag/Subscriptions-and-Webhooks)"
              }
            ]
          },
          "docs": "Update work order attachment"
        },
        {
          "info": {
            "name": "Remove work order attachment",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.getmaintainx.com/v1/workorders/:id/attachments/:filename",
            "params": [
              {
                "name": "id",
                "value": "1",
                "type": "path",
                "description": "ID of the work order."
              },
              {
                "name": "filename",
                "value": "attachment.xls",
                "type": "path",
                "description": "Name of the attachment, including the extension."
              },
              {
                "name": "skipWebhook",
                "value": "",
                "type": "query",
                "description": "Set `skipWebhook=true`, `skipWebhook=1` or `skipWebhook=yes` to skip all webhooks upon successful operation on the endpoint. [Learn more about webhooks](#tag/Subscriptions-and-Webhooks)"
              }
            ]
          },
          "docs": "Remove work order attachment"
        },
        {
          "info": {
            "name": "List work order comments",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.getmaintainx.com/v1/workorders/:id/comments",
            "params": [
              {
                "name": "cursor",
                "value": "",
                "type": "query"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "List work order comments"
        },
        {
          "info": {
            "name": "Create new comment on a work order",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.getmaintainx.com/v1/workorders/:id/comments",
            "params": [
              {
                "name": "id",
                "value": "12345",
                "type": "path",
                "description": "Global ID of the work order"
              },
              {
                "name": "skipWebhook",
                "value": "",
                "type": "query",
                "description": "Set `skipWebhook=true`, `skipWebhook=1` or `skipWebhook=yes` to skip all webhooks upon successful operation on the endpoint. [Learn more about webhooks](#tag/Subscriptions-and-Webhooks)"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create new comment on a work order"
        },
        {
          "info": {
            "name": "Get costs information",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.getmaintainx.com/v1/workorders/:id/costs",
            "params": [
              {
                "name": "id",
                "value": "1",
                "type": "path",
                "description": "ID of the work order"
              }
            ]
          },
          "docs": "Get costs information"
        },
        {
          "info": {
            "name": "Create new cost on a work order",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.getmaintainx.com/v1/workorders/:id/costs",
            "params": [
              {
                "name": "id",
                "value": "12345",
                "type": "path",
                "description": "Global ID of the work order"
              },
              {
                "name": "skipWebhook",
                "value": "",
                "type": "query",
                "description": "Set `skipWebhook=true`, `skipWebhook=1` or `skipWebhook=yes` to skip all webhooks upon successful operation on the endpoint. [Learn more about webhooks](#tag/Subscriptions-and-Webhooks)"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create new cost on a work order"
        },
        {
          "info": {
            "name": "Send work order as an email",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.getmaintainx.com/v1/workorders/:id/emails",
            "params": [
              {
                "name": "id",
                "value": "12345",
                "type": "path",
                "description": "Global ID of the work order"
              },
              {
                "name": "skipWebhook",
                "value": "",
                "type": "query",
                "description": "Set `skipWebhook=true`, `skipWebhook=1` or `skipWebhook=yes` to skip all webhooks upon successful operation on the endpoint. [Learn more about webhooks](#tag/Subscriptions-and-Webhooks)"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Send work order as an email"
        },
        {
          "info": {
            "name": "Update work order part status",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.getmaintainx.com/v1/workorders/:id/partStatus",
            "params": [
              {
                "name": "id",
                "value": "1",
                "type": "path",
                "description": "ID of the workOrder"
              },
              {
                "name": "skipWebhook",
                "value": "",
                "type": "query",
                "description": "Set `skipWebhook=true`, `skipWebhook=1` or `skipWebhook=yes` to skip all webhooks upon successful operation on the endpoint. [Learn more about webhooks](#tag/Subscriptions-and-Webhooks)"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update work order part status"
        },
        {
          "info": {
            "name": "Detach procedure from work order",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.getmaintainx.com/v1/workorders/:id/procedure",
            "params": [
              {
                "name": "id",
                "value": "1",
                "type": "path",
                "description": "ID of the work order"
              },
              {
                "name": "skipWebhook",
                "value": "",
                "type": "query",
                "description": "Set `skipWebhook=true`, `skipWebhook=1` or `skipWebhook=yes` to skip all webhooks upon successful operation on the endpoint. [Learn more about webhooks](#tag/Subscriptions-and-Webhooks)"
              }
            ]
          },
          "docs": "Detach procedure from work order"
        },
        {
          "info": {
            "name": "Delete procedure field attachment",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.getmaintainx.com/v1/workorders/:id/procedure/fields/:index/attachment",
            "params": [
              {
                "name": "id",
                "value": "1",
                "type": "path",
                "description": "ID of the work order"
              },
              {
                "name": "index",
                "value": "1",
                "type": "path",
                "description": "Sequential index of the field in the procedure"
              },
              {
                "name": "skipWebhook",
                "value": "",
                "type": "query",
                "description": "Set `skipWebhook=true`, `skipWebhook=1` or `skipWebhook=yes` to skip all webhooks upon successful operation on the endpoint. [Learn more about webhooks](#tag/Subscriptions-and-Webhooks)"
              }
            ]
          },
          "docs": "Delete procedure field attachment"
        },
        {
          "info": {
            "name": "Update procedure field attachment",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.getmaintainx.com/v1/workorders/:id/procedure/fields/:index/attachment/:filename",
            "params": [
              {
                "name": "id",
                "value": "1",
                "type": "path",
                "description": "ID of the work order"
              },
              {
                "name": "index",
                "value": "1",
                "type": "path",
                "description": "Sequential index of the field in the procedure"
              },
              {
                "name": "filename",
                "value": "datasheet.pdf",
                "type": "path",
                "description": "Name of the attachment, including the extension."
              },
              {
                "name": "skipWebhook",
                "value": "",
                "type": "query",
                "description": "Set `skipWebhook=true`, `skipWebhook=1` or `skipWebhook=yes` to skip all webhooks upon successful operation on the endpoint. [Learn more about webhooks](#tag/Subscriptions-and-Webhooks)"
              }
            ]
          },
          "docs": "Update procedure field attachment"
        },
        {
          "info": {
            "name": "Update work order status",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.getmaintainx.com/v1/workorders/:id/status",
            "params": [
              {
                "name": "id",
                "value": "1",
                "type": "path",
                "description": "ID of the workOrder"
              },
              {
                "name": "skipWebhook",
                "value": "",
                "type": "query",
                "description": "Set `skipWebhook=true`, `skipWebhook=1` or `skipWebhook=yes` to skip all webhooks upon successful operation on the endpoint. [Learn more about webhooks](#tag/Subscriptions-and-Webhooks)"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update work order status"
        },
        {
          "info": {
            "name": "List sub work orders",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.getmaintainx.com/v1/workorders/:id/subworkorders",
            "params": [
              {
                "name": "cursor",
                "value": "",
                "type": "query"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query"
              },
              {
                "name": "expand",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "List sub work orders"
        },
        {
          "info": {
            "name": "Update work order's thumbnail",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.getmaintainx.com/v1/workorders/:id/thumbnail/:filename",
            "params": [
              {
                "name": "id",
                "value": "1",
                "type": "path",
                "description": "ID of the work order."
              },
              {
                "name": "filename",
                "value": "motor.png",
                "type": "path",
                "description": "Name of the work order thumbnail, including the extension."
              },
              {
                "name": "skipWebhook",
                "value": "",
                "type": "query",
                "description": "Set `skipWebhook=true`, `skipWebhook=1` or `skipWebhook=yes` to skip all webhooks upon successful operation on the endpoint. [Learn more about webhooks](#tag/Subscriptions-and-Webhooks)"
              }
            ]
          },
          "docs": "Update work order's thumbnail"
        }
      ]
    }
  ],
  "bundled": true
}