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