{
  "opencollection": "1.0.0",
  "info": {
    "name": "Limble API V2 Assets Vendor Associations API",
    "version": "1.0.0"
  },
  "request": {
    "auth": {
      "type": "basic",
      "username": "{{username}}",
      "password": "{{password}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Vendor Associations",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get Part Vendor Associations",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.limblecmms.com/v2/parts/vendors/associations",
            "params": [
              {
                "name": "parts",
                "value": "158,159",
                "type": "query",
                "description": "This parameter is used to only get associations for specific parts. This parameter accepts a comma delimited list of part IDs."
              },
              {
                "name": "vendors",
                "value": "12,34",
                "type": "query",
                "description": "This parameter is used to only get associations for specific vendors. This parameter accepts a comma delimited list of vendor IDs."
              },
              {
                "name": "vendorPartNumber",
                "value": "%ABC%",
                "type": "query",
                "description": "This parameter is used to search for associations by vendor part number. This parameter expects a string with the wildcard % for partial matching."
              },
              {
                "name": "vendorName",
                "value": "%Acme%",
                "type": "query",
                "description": "This parameter is used to search for associations by vendor name. This parameter expects a string with the wildcard % for partial matching."
              },
              {
                "name": "start",
                "value": "1700000000",
                "type": "query",
                "description": "This parameter is used to only get associations that were last updated after the unix timestamp passed into the start parameter."
              },
              {
                "name": "end",
                "value": "1800000000",
                "type": "query",
                "description": "This parameter is used to only get associations that were last updated before the unix timestamp passed into the end parameter."
              },
              {
                "name": "cursor",
                "value": "0",
                "type": "query",
                "description": "This parameter is a cursor that selects what relationID you want to start receiving results at. This will return results with a relationID greater than the value of cursor."
              },
              {
                "name": "limit",
                "value": "100",
                "type": "query",
                "description": "This parameter is a result limiter. The default is set to return no more than 100 results at one time. The maximum is 1000."
              },
              {
                "name": "orderBy",
                "value": "relationID",
                "type": "query",
                "description": "This parameter is used to order results. Accepted values: relationID, -relationID, createdAt, -createdAt, updatedAt, -updatedAt, partName, -partName, vendorName, -vendorName. Prefix with - for descending order."
              },
              {
                "name": "page",
                "value": "1",
                "type": "query",
                "description": "This parameter is used to paginate results based on the limit. Refer to Pagination section for more information."
              }
            ]
          },
          "docs": "Returns a paginated list of vendor-part associations for the customer.\n\n**Note:** this endpoint supports both cursor-based and page-based pagination. Please refer to the [**Pagination**](#pagination) section for more information.\n\nReturn data description\n\nProperty: relationID, Description: The unique ID of this vendor-part association.\nProperty: partID, Description: The ID of the associated part.\nProperty: vendorID, Description: The ID of the associated vendor.\nProperty: vendorPartNumber, Descri"
        },
        {
          "info": {
            "name": "Create Part Vendor Association",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.limblecmms.com/v2/parts/vendors/associations",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a new manual vendor-part association. The part and vendor must both exist and the vendor must be accessible at the part's location.\n\nReturns `201 Created` with the new association details. Returns `409 Conflict` if the association already exists."
        },
        {
          "info": {
            "name": "Delete Part Vendor Association",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.limblecmms.com/v2/parts/vendors/associations/:relationID",
            "params": [
              {
                "name": "relationID",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Deletes a vendor-part association by its `relationID`. Only manually created associations (associationType: `manual`) can be deleted through this endpoint.\n\nReturns `204 No Content` on success. Returns `404 Not Found` if the association does not exist or does not belong to your account."
        }
      ]
    }
  ],
  "bundled": true
}