{
  "opencollection": "1.0.0",
  "info": {
    "name": "MaintainX Asset Criticalities Vendors API",
    "version": "1"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Vendors",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List vendors",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.getmaintainx.com/v1/vendors",
            "headers": [
              {
                "name": "x-organization-id",
                "value": "1"
              }
            ],
            "params": [
              {
                "name": "cursor",
                "value": "",
                "type": "query"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query"
              },
              {
                "name": "customFieldName",
                "value": "",
                "type": "query"
              },
              {
                "name": "expand",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Endpoint used to list vendor resources"
        },
        {
          "info": {
            "name": "Create new vendor",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.getmaintainx.com/v1/vendors",
            "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 vendor"
        },
        {
          "info": {
            "name": "Get vendor",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.getmaintainx.com/v1/vendors/:id",
            "params": [
              {
                "name": "id",
                "value": "1",
                "type": "path",
                "description": "ID of the vendor"
              }
            ]
          },
          "docs": "Get vendor"
        },
        {
          "info": {
            "name": "Update vendor",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.getmaintainx.com/v1/vendors/:id",
            "params": [
              {
                "name": "id",
                "value": "1",
                "type": "path",
                "description": "ID of the vendor"
              },
              {
                "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 vendor"
        },
        {
          "info": {
            "name": "Delete vendor",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.getmaintainx.com/v1/vendors/:id",
            "params": [
              {
                "name": "id",
                "value": "1",
                "type": "path",
                "description": "ID of the vendor"
              },
              {
                "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 vendor"
        },
        {
          "info": {
            "name": "Update vendor attachment",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.getmaintainx.com/v1/vendors/:id/attachments/:filename",
            "params": [
              {
                "name": "id",
                "value": "1",
                "type": "path",
                "description": "ID of the vendor."
              },
              {
                "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 vendor attachment"
        },
        {
          "info": {
            "name": "Remove vendor attachment",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.getmaintainx.com/v1/vendors/:id/attachments/:filename",
            "params": [
              {
                "name": "id",
                "value": "1",
                "type": "path",
                "description": "ID of the vendor."
              },
              {
                "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 vendor attachment"
        },
        {
          "info": {
            "name": "List contacts",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.getmaintainx.com/v1/vendors/:id/contacts",
            "params": [
              {
                "name": "cursor",
                "value": "",
                "type": "query"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query"
              },
              {
                "name": "id",
                "value": "1",
                "type": "path",
                "description": "ID of the vendor"
              }
            ]
          },
          "docs": "List contacts"
        },
        {
          "info": {
            "name": "Create new contact",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.getmaintainx.com/v1/vendors/:id/contacts",
            "params": [
              {
                "name": "id",
                "value": "1",
                "type": "path",
                "description": "ID of the vendor"
              },
              {
                "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 contact"
        },
        {
          "info": {
            "name": "Get contact",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.getmaintainx.com/v1/vendors/:id/contacts/:contactId",
            "params": [
              {
                "name": "id",
                "value": "1",
                "type": "path",
                "description": "ID of the vendor"
              },
              {
                "name": "contactId",
                "value": "12",
                "type": "path",
                "description": "ID of the contact"
              }
            ]
          },
          "docs": "Get contact"
        },
        {
          "info": {
            "name": "Update contact",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.getmaintainx.com/v1/vendors/:id/contacts/:contactId",
            "params": [
              {
                "name": "id",
                "value": "1",
                "type": "path",
                "description": "ID of the vendor"
              },
              {
                "name": "contactId",
                "value": "1",
                "type": "path",
                "description": "ID of the contact"
              },
              {
                "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 contact"
        },
        {
          "info": {
            "name": "Delete contact",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.getmaintainx.com/v1/vendors/:id/contacts/:contactId",
            "params": [
              {
                "name": "id",
                "value": "1",
                "type": "path",
                "description": "ID of the vendor"
              },
              {
                "name": "contactId",
                "value": "32",
                "type": "path",
                "description": "ID of the contact"
              },
              {
                "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 contact"
        },
        {
          "info": {
            "name": "Update vendor's thumbnail",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.getmaintainx.com/v1/vendors/:id/thumbnail/:filename",
            "params": [
              {
                "name": "id",
                "value": "1",
                "type": "path",
                "description": "ID of the vendor."
              },
              {
                "name": "filename",
                "value": "motor.png",
                "type": "path",
                "description": "Name of the vendor 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 vendor's thumbnail"
        }
      ]
    }
  ],
  "bundled": true
}