{
  "opencollection": "1.0.0",
  "info": {
    "name": "MaintainX Asset Criticalities Purchase Orders API",
    "version": "1"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Purchase Orders",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List purchase orders",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.getmaintainx.com/v1/purchaseorders",
            "headers": [
              {
                "name": "x-organization-id",
                "value": "1"
              }
            ],
            "params": [
              {
                "name": "cursor",
                "value": "",
                "type": "query"
              },
              {
                "name": "limit",
                "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": "customFieldName",
                "value": "",
                "type": "query"
              },
              {
                "name": "sort",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Endpoint used to list purchase order resources"
        },
        {
          "info": {
            "name": "Create new purchase order",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.getmaintainx.com/v1/purchaseorders",
            "headers": [
              {
                "name": "x-organization-id",
                "value": "1"
              }
            ],
            "params": [
              {
                "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 purchase order"
        },
        {
          "info": {
            "name": "Get purchase order",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.getmaintainx.com/v1/purchaseorders/:id",
            "params": [
              {
                "name": "id",
                "value": "1",
                "type": "path",
                "description": "ID of the purchaseOrder"
              }
            ]
          },
          "docs": "Get purchase order"
        },
        {
          "info": {
            "name": "Update purchase order",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.getmaintainx.com/v1/purchaseorders/:id",
            "params": [
              {
                "name": "id",
                "value": "1",
                "type": "path"
              },
              {
                "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 purchase order"
        },
        {
          "info": {
            "name": "Delete purchaseOrder",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.getmaintainx.com/v1/purchaseorders/:id",
            "params": [
              {
                "name": "id",
                "value": "1",
                "type": "path",
                "description": "ID of the purchaseOrder"
              },
              {
                "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 purchaseOrder"
        },
        {
          "info": {
            "name": "Update purchase order attachment",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.getmaintainx.com/v1/purchaseorders/:id/attachments/:filename",
            "params": [
              {
                "name": "id",
                "value": "1",
                "type": "path",
                "description": "ID of the purchase 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 purchase order attachment"
        },
        {
          "info": {
            "name": "Remove purchase order attachment",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.getmaintainx.com/v1/purchaseorders/:id/attachments/:filename",
            "params": [
              {
                "name": "id",
                "value": "1",
                "type": "path",
                "description": "ID of the purchase 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 purchase order attachment"
        },
        {
          "info": {
            "name": "Create new comment on a purchase order",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.getmaintainx.com/v1/purchaseorders/:id/comments",
            "params": [
              {
                "name": "id",
                "value": "12345",
                "type": "path",
                "description": "Global ID of the purchase 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 purchase order"
        },
        {
          "info": {
            "name": "Send Purchase Order as an email",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.getmaintainx.com/v1/purchaseorders/:id/emails",
            "params": [
              {
                "name": "id",
                "value": "123",
                "type": "path",
                "description": "Global ID of the Purchase 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 Purchase Order as an email"
        },
        {
          "info": {
            "name": "Fulfill purchase order",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.getmaintainx.com/v1/purchaseorders/:id/fulfillment",
            "params": [
              {
                "name": "id",
                "value": "1",
                "type": "path"
              },
              {
                "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": "Fulfill purchase order"
        },
        {
          "info": {
            "name": "Update purchase order status",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.getmaintainx.com/v1/purchaseorders/:id/status",
            "params": [
              {
                "name": "id",
                "value": "1",
                "type": "path"
              },
              {
                "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 purchase order status"
        },
        {
          "info": {
            "name": "Update purchase order's thumbnail",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.getmaintainx.com/v1/purchaseorders/:id/thumbnail/:filename",
            "params": [
              {
                "name": "id",
                "value": "1",
                "type": "path",
                "description": "ID of the purchase order."
              },
              {
                "name": "filename",
                "value": "motor.png",
                "type": "path",
                "description": "Name of the purchase 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 purchase order's thumbnail"
        }
      ]
    }
  ],
  "bundled": true
}