{
  "opencollection": "1.0.0",
  "info": {
    "name": "Limble API V2 Assets Logs API",
    "version": "1.0.0"
  },
  "request": {
    "auth": {
      "type": "basic",
      "username": "{{username}}",
      "password": "{{password}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Logs",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Delete Asset Log File",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.limblecmms.com/v2/assets/logs/file/:fileID",
            "params": [
              {
                "name": "fileID",
                "value": "58",
                "type": "path",
                "description": "The ID of the file to be deleted."
              }
            ]
          },
          "docs": "This requests deletes a file attached to a log."
        },
        {
          "info": {
            "name": "Add Asset Log File",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.limblecmms.com/v2/assets/:assetID/logs/:logID/file",
            "params": [
              {
                "name": "assetID",
                "value": "1",
                "type": "path",
                "description": "The ID of the asset the log belongs to."
              },
              {
                "name": "logID",
                "value": "7257",
                "type": "path",
                "description": "The ID of the log to attach the file to."
              }
            ]
          },
          "docs": "This request adds files to a log.\n\nReturn data description\n\nfileID | The ID of the file attached to the log."
        },
        {
          "info": {
            "name": "Asset Logs",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.limblecmms.com/v2/assets/:assetID/logs",
            "params": [
              {
                "name": "assetID",
                "value": "1",
                "type": "path",
                "description": "The ID of the asset the log will be created for."
              },
              {
                "name": "logs",
                "value": "16",
                "type": "query",
                "description": "This parameter is used to only get specific logs. This parameter accepts a comma delimited list of logIDs."
              },
              {
                "name": "users",
                "value": "341",
                "type": "query",
                "description": "This parameter is used to only get logs created by specific users. This parameter accepts a comma delimited list of userIDs."
              },
              {
                "name": "logEntry",
                "value": "%bro%",
                "type": "query",
                "description": "This is a parameter used to string search for manual log entry. This parameter expects a string with the wildcard %."
              },
              {
                "name": "start",
                "value": "1506274400",
                "type": "query",
                "description": "This parameter is used to only get logs that were last edited after the unix timestamp passed into the start parameter. "
              },
              {
                "name": "end",
                "value": "1506274900",
                "type": "query",
                "description": "This parameter is used to only get logs that were last edited before the unix timestamp passed into the end parameter."
              },
              {
                "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."
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "This parameter is a result limiter. The default is set to return no more than 100 results at one time."
              },
              {
                "name": "cursor",
                "value": "",
                "type": "query",
                "description": "This parameter is a cursor that selects what ID you want to start receiving results at. "
              }
            ]
          },
          "docs": "This request returns logs created manually by users and automatically created (where userID=0) by certain actions taken on the asset. Logs related to tasks completed on an Asset will not be returned.\n\n**Note:** this endpoint supports pagination. Please refer to the [**Pagination**](#pagination) section for more information.\n\nReturn data description\n\nlogID | The unique logID of the log.\ndateCreated | The date the log was created as a UNIX timestamp.\nassetD | The ID of the asset the log belongs to"
        },
        {
          "info": {
            "name": "New Asset Log",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.limblecmms.com/v2/assets/:assetID/logs",
            "params": [
              {
                "name": "assetID",
                "value": "1",
                "type": "path",
                "description": "The ID of the asset the log will be created for."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "This requests creates a manual log entry for an asset.\n\nuserID | Int | Optional | The ID of the user creating the log. If userID is not given a log entry with userID=0 will be created.\nlogEntry | String | Required | Details of the log."
        },
        {
          "info": {
            "name": "Update Asset Log",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.limblecmms.com/v2/assets/logs/:logID",
            "params": [
              {
                "name": "logID",
                "value": "7257",
                "type": "path",
                "description": "The ID of the log to be deleted."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "This requests updates a manual log entry for an asset."
        },
        {
          "info": {
            "name": "Delete Asset Log",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.limblecmms.com/v2/assets/logs/:logID",
            "params": [
              {
                "name": "logID",
                "value": "7257",
                "type": "path",
                "description": "The ID of the log to be deleted."
              }
            ]
          },
          "docs": "This requests deletes a manual log entry for an asset."
        },
        {
          "info": {
            "name": "Part Logs",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.limblecmms.com/v2/parts/:partID/logs",
            "params": [
              {
                "name": "partID",
                "value": "159",
                "type": "path"
              },
              {
                "name": "logs",
                "value": "21524",
                "type": "query",
                "description": "This parameter is used to only get specific logs. This parameter accepts a comma delimited list of logIDs."
              },
              {
                "name": "sources",
                "value": "4",
                "type": "query",
                "description": "This parameter is used to only get logs for a specific sourceID. This parameter accepts a comma delimited list of sourceIDs."
              },
              {
                "name": "users",
                "value": "340",
                "type": "query",
                "description": "This parameter is used to only get logs created by specific users. This parameter accepts a comma delimited list of userIDs."
              },
              {
                "name": "logEntry",
                "value": "%new%",
                "type": "query",
                "description": "This is a parameter used to string search for manual log entry (sourceID: 4). This parameter expects a string with the wildcard %."
              },
              {
                "name": "start",
                "value": "1663018000",
                "type": "query",
                "description": "This parameter is used to only get logs that were last edited after the unix timestamp passed into the start parameter. "
              },
              {
                "name": "end",
                "value": "1663018900",
                "type": "query",
                "description": "This parameter is used to only get logs that were last edited before the unix timestamp passed into the end parameter."
              },
              {
                "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."
              },
              {
                "name": "limit",
                "value": "10",
                "type": "query",
                "description": "This parameter is a result limiter. The default is set to return no more than 100 results at one time."
              },
              {
                "name": "cursor",
                "value": "",
                "type": "query",
                "description": "This parameter is a cursor that selects what ID you want to start receiving results at. "
              }
            ]
          },
          "docs": "This request returns the log entries for a part.\n\n**Note:** this endpoint supports pagination. Please refer to the [Pagination](#pagination) section for more information.\n\nReturn data description\n\nlogID | The unique logID of the log.\ndateCreated | The date the log was created as a UNIX timestamp.\npartID | The partID the log belongs to.\nsourceID | The sourceID of the source of the log. The sourceID can be as follows:, 1: Part name was changed., 2: Part Number was changed., 3: Parts were added/rem"
        },
        {
          "info": {
            "name": "New Part Log",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.limblecmms.com/v2/parts/:partID/logs",
            "params": [
              {
                "name": "partID",
                "value": "159",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "This request creates a manual log entry for a part.\n\nThis request adds a new Field to the list of Suggested Fields that can later be attached to Parts.\n\nuserID | Int | Required | The ID of the user creating the log.\nlogEntry | String | Required | Details of the log."
        },
        {
          "info": {
            "name": "Update Part Log",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.limblecmms.com/v2/parts/logs/:logID",
            "params": [
              {
                "name": "logID",
                "value": "21524",
                "type": "path",
                "description": "The ID of the log to be deleted."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "This requests updates a manual log entry. Only logs with a sourceID=4 can be updated."
        },
        {
          "info": {
            "name": "Delete Part Log",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.limblecmms.com/v2/parts/logs/:logID",
            "params": [
              {
                "name": "logID",
                "value": "21524",
                "type": "path",
                "description": "The ID of the log to be deleted."
              }
            ]
          },
          "docs": "This request deletes manual log entries (sourceID=4)."
        },
        {
          "info": {
            "name": "All Part Logs",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.limblecmms.com/v2/parts/logs",
            "params": [
              {
                "name": "logs",
                "value": "1",
                "type": "query"
              },
              {
                "name": "sources",
                "value": "20",
                "type": "query"
              },
              {
                "name": "users",
                "value": "",
                "type": "query"
              },
              {
                "name": "logEntry",
                "value": "",
                "type": "query"
              },
              {
                "name": "start",
                "value": "",
                "type": "query"
              },
              {
                "name": "end",
                "value": "",
                "type": "query"
              },
              {
                "name": "page",
                "value": "1",
                "type": "query"
              },
              {
                "name": "parts",
                "value": "",
                "type": "query"
              },
              {
                "name": "limit",
                "value": "5",
                "type": "query"
              },
              {
                "name": "cursor",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "This request returns all part logs across your Limble account.\n\n**Note:** this endpoint supports pagination. Please refer to the [Pagination](#pagination) section for more information.\n\nReturn data description\n\nlogID | The unique logID of the log.\ndateCreated | The date the log was created as a UNIX timestamp.\npartID | The partID the log belongs to.\nsourceID | The sourceID of the source of the log. The sourceID can be as follows:, 1: Part name was changed., 2: Part Number was changed., 3: Parts "
        },
        {
          "info": {
            "name": "Delete Vendor Log File",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.limblecmms.com/v2/vendors/logs/file/:fileID",
            "params": [
              {
                "name": "fileID",
                "value": "7",
                "type": "path",
                "description": "The ID of the file attached to the log."
              }
            ]
          },
          "docs": "This requests deletes a file attached to a log."
        },
        {
          "info": {
            "name": "Add Vendor Log File",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.limblecmms.com/v2/vendors/:vendorID/logs/:logID/file",
            "params": [
              {
                "name": "vendorID",
                "value": "9",
                "type": "path",
                "description": "The ID of the vendor the log belongs to."
              },
              {
                "name": "logID",
                "value": "11",
                "type": "path",
                "description": "The ID of the log to attach the file to."
              }
            ]
          },
          "docs": "This request adds files to a log.\n\nReturn data description\n\nfileID | The ID of the file attached to the log."
        },
        {
          "info": {
            "name": "Vendor Logs",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.limblecmms.com/v2/vendors/:vendorID/logs",
            "params": [
              {
                "name": "vendorID",
                "value": "9",
                "type": "path",
                "description": "The ID of the vendor for which the log will be created."
              },
              {
                "name": "logs",
                "value": "2,3",
                "type": "query",
                "description": "This parameter is used to only get specific logs. This parameter accepts a comma delimited list of logIDs."
              },
              {
                "name": "users",
                "value": "340",
                "type": "query",
                "description": "This parameter is used to only get logs created by specific users. This parameter accepts a comma delimited list of userIDs."
              },
              {
                "name": "logEntry",
                "value": "%test%",
                "type": "query",
                "description": "This is a parameter used to string search for manual log entry. This parameter expects a string with the wildcard %."
              },
              {
                "name": "start",
                "value": "1555085800",
                "type": "query",
                "description": "This parameter is used to only get logs that were last edited after the unix timestamp passed into the start parameter. "
              },
              {
                "name": "end",
                "value": "1555087900",
                "type": "query",
                "description": "This parameter is used to only get logs that were last edited before the unix timestamp passed into the end parameter."
              },
              {
                "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."
              },
              {
                "name": "limit",
                "value": "1",
                "type": "query",
                "description": "This parameter is a result limiter. The default is set to return no more than 100 results at one time."
              },
              {
                "name": "cursor",
                "value": "",
                "type": "query",
                "description": "This parameter is a cursor that selects what ID you want to start receiving results at. "
              }
            ]
          },
          "docs": "This request returns the manual log entries for a vendor.\n\nThis request returns logs created manually by users on vendors. Logs related to tasks with vendors will not be returned.\n\n**Note:** this endpoint supports pagination. Please refer to the [**Pagination**](#pagination) section for more information.\n\nReturn data description\n\nlogID | The unique logID of the log.\ndateCreated | The date the log was created as a UNIX timestamp.\nvendorD | The ID of the vendor the log belongs to.\nlogEntry | The l"
        },
        {
          "info": {
            "name": "New Vendor Log",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.limblecmms.com/v2/vendors/:vendorID/logs",
            "params": [
              {
                "name": "vendorID",
                "value": "9",
                "type": "path",
                "description": "The ID of the vendor for which the log will be created."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "This creates a manual log entry for a vendor.\n\nuserID | Int | Required | The ID of the user creating the log.\nlogEntry | String | Required | Details of the log."
        },
        {
          "info": {
            "name": "Update Vendor Log",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.limblecmms.com/v2/vendors/logs/:logID",
            "params": [
              {
                "name": "logID",
                "value": "10",
                "type": "path",
                "description": "The ID of the log to be deleted."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "This request updates a manual log entry for a vendor."
        },
        {
          "info": {
            "name": "Delete Vendor Log",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.limblecmms.com/v2/vendors/logs/:logID",
            "params": [
              {
                "name": "logID",
                "value": "10",
                "type": "path",
                "description": "The ID of the log to be deleted."
              }
            ]
          },
          "docs": "This request deleted a manual log entry for a vendor."
        }
      ]
    }
  ],
  "bundled": true
}