{"info":{"_postman_id":"ff141a9a-aa91-8279-04d8-82ad43f32cb5","name":"SmartWitness API 2.0","description":"The SmartWitness Platform supports a comprehensive REST/JSON-based API for managing and controlling your SmartWitness devices.\n\n## Getting Started with Postman\n[Download our Quick Start Guide](http://smartwitness.com/pdf/SmartAPI2-QuickStartGuide.pdf) to learn how to setup your Postman environment with SmartWitness API 2.0.\n \n## Changelog\nPlease visit the [Changelog page](http://modularis.com/smart-witness/changelog/) to see the most recent updates.","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json"},"item":[{"name":"Activity Service Generic Methods","item":[{"name":"GetAll","id":"da41db28-372a-a507-440b-05a3ab3af44f","request":{"method":"GET","header":[{"key":"APIKey","value":"{{APIKey}}"}],"body":{"mode":"raw","raw":""},"url":"{{BaseURL}}/SmartWitness/RESTActivityWebService/SmartWitness.Platform/[Collection_Name]","description":"Loads all the instances for an entity specifying the collection name.\n\n#### HTTP status codes\nStatus Code | Description\n------------ | -------------\n200 | The resource (entity or entity collection) was retrieved successfully.\n400 | This code is valid only when the entity key is passed in the URL. It means that the entity was not found.\n"},"response":[],"_postman_id":"da41db28-372a-a507-440b-05a3ab3af44f"},{"name":"GetByKey","id":"1b774443-1d25-ac5e-29dc-bca34e147e9e","request":{"method":"GET","header":[{"key":"APIKey","value":"{{APIKey}}"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{BaseURL}}/SmartWitness/RESTActivityWebService/SmartWitness.Platform/Devices?RecorderID={{RecorderID}}","host":["{{BaseURL}}"],"path":["SmartWitness","RESTActivityWebService","SmartWitness.Platform","Devices"],"query":[{"key":"RecorderID","value":"{{RecorderID}}"}]},"description":"Loads a single entity specifying its key\n\n#### HTTP status codes\nStatus Code | Description\n------------ | -------------\n200 | The resource (entity or entity collection) was retrieved successfully.\n400 | This code is valid only when the entity key is passed in the URL. It means that the entity was not found.\n\n> ###### Note\nThe request URL is an example using the Device entity. Please replace based on the entity you need to use."},"response":[],"_postman_id":"1b774443-1d25-ac5e-29dc-bca34e147e9e"},{"name":"GetCollectionByWhere","id":"4a039295-66d3-ae7a-9d85-aea28ae41fdb","request":{"method":"GET","header":[{"key":"APIKey","value":"{{APIKey}}"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{BaseURL}}/SmartWitness/RESTActivityWebService/SmartWitness.Platform/Devices?DeviceStatus=[DeviceStatus]&Active=true","host":["{{BaseURL}}"],"path":["SmartWitness","RESTActivityWebService","SmartWitness.Platform","Devices"],"query":[{"key":"DeviceStatus","value":"[DeviceStatus]"},{"key":"Active","value":"true"}]},"description":"This is the most simple way to specify a condition to filter the data. If you add multiple query string parameters, they will be handled as \"AND\" conjunctions at the database level.\r\n\r\n#### HTTP status codes\r\nStatus Code | Description\r\n------------ | -------------\r\n200 | The resource (entity or entity collection) was retrieved successfully.\r\n400 | This code is valid only when the entity key is passed in the URL. It means that the entity was not found.\r\n\r\n> ###### Note\r\nThe request URL is an example using the Device entity. Please replace based on the entity you need to use."},"response":[],"_postman_id":"4a039295-66d3-ae7a-9d85-aea28ae41fdb"},{"name":"GetNew","id":"f7824280-5f21-1aac-10b5-90b273f5e482","request":{"method":"GET","header":[{"key":"APIKey","value":"{{APIKey}}"}],"body":{"mode":"raw","raw":""},"url":"{{BaseURL}}/SmartWitness/RESTActivityWebService/SmartWitness.Platform/TSPCustomers/New","description":"Creates a new, freshly initialized, but unsaved Entity.\n\n#### HTTP status codes\nStatus Code | Description\n------------ | -------------\n200 | The resource (entity or entity collection) was retrieved successfully.\n400 | This code is valid only when the entity key is passed in the URL. It means that the entity was not found.\n\n#### Response Example\n\t{\n\t  \"TenantID\": \"[The_Tenant_ID]\",\n\t  \"CustomerID\": \"2565f22a-a241-49dd-91fd-a72400eba13f\",\n\t  \"CallbackHeaders\": null,\n\t  \"CallbackURL\": null,\n\t  \"CreatedBy\": null,\n\t  \"CreatedDate\": null,\n\t  \"CustomerNo\": null,\n\t  \"DataRetentionPeriod\": 365,\n\t  \"Description\": null,\n\t  \"IsDeleted\": false,\n\t  \"LastUpdatedBy\": null,\n\t  \"LastUpdatedDate\": null,\n\t  \"MediaRetentionPeriod\": 30,\n\t  \"Name\": null,\n\t  \"Timestamp\": null,\n\t  \"TSPCustomerEvents\": null\n\t}\n\n> ###### Note\nThe request URL is an example using the TSPCustomer entity. Please replace based on the entity you need to use."},"response":[],"_postman_id":"f7824280-5f21-1aac-10b5-90b273f5e482"},{"name":"Save","id":"bdbe2d53-6e7d-9fb0-3d5a-0f83dd88f7b9","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"APIKey","value":"{{APIKey}}"}],"body":{"mode":"raw","raw":"{\n  \"CustomerID\": \"2565f22a-a241-49dd-91fd-a72400eba13f\",\n  \"CallbackHeaders\": null,\n  \"CallbackURL\": \"https://api2.smartwitness.co/callbakurl\",\n  \"CreatedBy\": \"PostMan documentation\",\n  \"CreatedDate\": \"2016-01-12T16:38:18.0000000Z\",\n  \"CustomerNo\": 401,\n  \"DataRetentionPeriod\": 365,\n  \"Description\": \"Entity created by postman collection\",\n  \"IsDeleted\": false,\n  \"MediaRetentionPeriod\": 30,\n  \"Name\": \"Test Customer\"\n}"},"url":"{{BaseURL}}/SmartWitness/RESTActivityWebService/SmartWitness.Platform/TSPCustomers","description":"Saves an Entity.\n\n#### HTTP status codes\nStatus Code | Description\n------------ | -------------\n201 | The resource (entity or entity collection) was created successfully.\n400 | This code is valid only when the entity key is passed in the URL. It means that the entity was not found.\n\n> ###### Note\n\n> - The request URL and the body are examples using the TSPCustomer entity. Please replace based on the entity you need to use.\n\n> - You can get the JSON string needed to create a new entity by using the GetNew endpoint. Then, you can change the property values in that JSON structure and paste it in the body of this request."},"response":[],"_postman_id":"bdbe2d53-6e7d-9fb0-3d5a-0f83dd88f7b9"},{"name":"SaveCollection","id":"66d074a7-5165-d48f-c887-bb1605d3c1ef","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"APIKey","value":"{{APIKey}}"}],"body":{"mode":"raw","raw":"[\n\t{\n\t  \"CustomerID\": \"1111f22a-a241-49dd-91fd-a72400eb1111\",\n\t  \"CallbackHeaders\": null,\n\t  \"CallbackURL\": \"https://api2.smartwitness.co/callbakurl\",\n\t  \"CreatedBy\": \"PostMan documentation\",\n\t  \"CreatedDate\": \"2016-01-12T16:38:18.0000000Z\",\n\t  \"CustomerNo\": 401,\n\t  \"DataRetentionPeriod\": 365,\n\t  \"Description\": \"Entity created by postman collection\",\n\t  \"IsDeleted\": false,\n\t  \"MediaRetentionPeriod\": 30,\n\t  \"Name\": \"Test Customer1\"\n\t},\n\t{\n\t  \"CustomerID\": \"2222f22a-a241-49dd-91fd-a72400eb1111\",\n\t  \"CallbackHeaders\": null,\n\t  \"CallbackURL\": \"https://api2.smartwitness.co/callbakurl2\",\n\t  \"CreatedBy\": \"PostMan documentation\",\n\t  \"CreatedDate\": \"2016-01-12T16:38:18.0000000Z\",\n\t  \"CustomerNo\": 401,\n\t  \"DataRetentionPeriod\": 365,\n\t  \"Description\": \"Entity created by postman collection\",\n\t  \"IsDeleted\": false,\n\t  \"MediaRetentionPeriod\": 30,\n\t  \"Name\": \"Test Customer2\"\n\t}\n]"},"url":"{{BaseURL}}/SmartWitness/RESTActivityWebService/SmartWitness.Platform/TSPCustomers","description":"Saves an Entity Collection.\n\n#### HTTP status codes\nStatus Code | Description\n------------ | -------------\n201 | The resource (entity or entity collection) was created successfully.\n400 | This code is valid only when the entity key is passed in the URL. It means that the entity was not found.\n\n> ###### Note\n\n> - The request URL and the body are examples using the TSPCustomer entity. Please replace based on the entity you need to use.\n\n> - You can get the JSON string needed to create a new entity by using the GetNew endpoint. Then, you can change the property values in that JSON structure and paste it in the body of this request."},"response":[],"_postman_id":"66d074a7-5165-d48f-c887-bb1605d3c1ef"},{"name":"Update","id":"d05aea1c-ed8e-2bb2-2331-30a8be2b11ad","request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"APIKey","value":"{{APIKey}}"}],"body":{"mode":"raw","raw":"{\n\t\"CustomerID\": \"2565f22a-a241-49dd-91fd-a72400eba13f\",\n\t\"CallbackURL\": \"new_callback_URL\",\n\t\"Description\": \"This esntity was updated by Postman usign the UPDATE method\"\n}"},"url":"{{BaseURL}}/SmartWitness/RESTActivityWebService/SmartWitness.Platform/TSPCustomers","description":"Updates an Entity.\n\n#### HTTP status codes\nStatus Code | Description\n------------ | -------------\n200 | The resource (entity or entity collection) was saved successfully.\n400 | Bad request. The request has an empty or invalid body.\n404 | This code is valid only when the entity key is passed in the URL. It means that the entity to update was not found.\n409 | There was a conflict updating the entity. For example, validation rules failed.\n\n> ###### Note\n\n> - The request URL and the body are examples using the TSPCustomer entity. Please replace based on the entity you need to use.\n\n> - You can get the JSON string needed to update a entity by using the GetByKey or GetCollectionByWhere endpoint. Then, you can change the property values in that JSON structure and paste it in the body of this request."},"response":[],"_postman_id":"d05aea1c-ed8e-2bb2-2331-30a8be2b11ad"},{"name":"UpdateCollection","id":"34fd9872-0acd-d7cf-7e72-a8b08ee4d27e","request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"APIKey","value":"{{APIKey}}"}],"body":{"mode":"raw","raw":"[\n\t{\n\t\t\"CustomerID\": \"1111f22a-a241-49dd-91fd-a72400eb1111\",\n\t\t\"CallbackURL\": \"https://api2.smartwitness.co/callbakurl2\",\n\t\t\"Description\": \"Entity created by postman collection\",\n\t\t\"Name\": \"Test Customer 1\"\n\t},\n\t{\n\t\t\"CustomerID\": \"2222f22a-a241-49dd-91fd-a72400eb1111\",\n\t\t\"CallbackURL\": \"https://api2.smartwitness.co/callbakurl2\",\n\t\t\"CreatedBy\": \"PostMan documentation\",\n\t\t\"CreatedDate\": \"2016-01-12T16:38:18.0000000Z\",\n\t\t\"CustomerNo\": 401,\n\t\t\"Description\": \"Entity created by postman collection\",\n\t\t\"MediaRetentionPeriod\": 30,\n\t\t\"Name\": \"Test Customer 2\"\n\t}\n]"},"url":"{{BaseURL}}/SmartWitness/RESTActivityWebService/SmartWitness.Platform/TSPCustomers","description":"Updates an Entity Collection.\n\n#### HTTP status codes\nStatus Code | Description\n------------ | -------------\n200 | The resource (entity or entity collection) was saved successfully.\n400 | Bad request. The request has an empty or invalid body.\n404 | This code is valid only when the entity key is passed in the URL. It means that the entity to update was not found.\n409 | There was a conflict updating the entity. For example, validation rules failed.\n\n> ###### Note\n\n> - The request URL and the body are examples using the TSPCustomer entity. Please replace based on the entity you need to use.\n\n> - You can get the JSON string needed to update a entity by using the GetByKey or GetCollectionByWhere endpoint. Then, you can change the property values in that JSON structure and paste it in the body of this request."},"response":[],"_postman_id":"34fd9872-0acd-d7cf-7e72-a8b08ee4d27e"},{"name":" UpdateByWhere","id":"0e2ac7ad-9714-669c-dd6d-8f64fbd5f219","request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"APIKey","value":"{{APIKey}}"}],"body":{"mode":"raw","raw":" {\n \t\"CallbackURL\": \"https://api2.smartwitness.co/callbakurl2\",\n \t\"Description\": \"Entity updated using UpdateByWhere\"\n }"},"url":{"raw":"{{BaseURL}}/SmartWitness/RESTActivityWebService/SmartWitness.Platform/TSPCustomers?CreatedBy=PostMan documentation&MediaRetentionPeriod=30","host":["{{BaseURL}}"],"path":["SmartWitness","RESTActivityWebService","SmartWitness.Platform","TSPCustomers"],"query":[{"key":"CreatedBy","value":"PostMan documentation"},{"key":"MediaRetentionPeriod","value":"30"}]},"description":"Update all the instances of a Entity that meet the given condition.\n\n#### HTTP status codes\nStatus Code | Description\n------------ | -------------\n200 | The resource (entity or entity collection) was saved successfully.\n400 | Bad request. The request has an empty or invalid body.\n404 | This code is valid only when the entity key is passed in the URL. It means that the entity to update was not found.\n409 | There was a conflict updating the entity. For example, validation rules failed.\n\n> ###### Note\n\n> - The request URL and the body are examples using the TSPCustomer entity. Please replace based on the entity you need to use.\n\n> - You can get the JSON string needed to update a entity by using the GetByKey or GetCollectionByWhere endpoint. Then, you can change the property values in that JSON structure and paste it in the body of this request."},"response":[],"_postman_id":"0e2ac7ad-9714-669c-dd6d-8f64fbd5f219"},{"name":"Delete","id":"4375c892-51c0-d8de-197e-6c6be3f46766","request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"},{"key":"APIKey","value":"{{APIKey}}"}],"body":{"mode":"raw","raw":"{\n   \"CustomerID\": \"[TSPCustomer.CustomerID]\"\n}"},"url":"{{BaseURL}}/SmartWitness/RESTActivityWebService/SmartWitness.Platform/TSPCustomers","description":"Deletes an entity sending the EntityID in the body.\n\n#### HTTP status codes\nStatus Code | Description\n------------ | -------------\n204 | The resource (entity or entity collection) was deleted successfully.\n400 | Invalid Request. The request has an empty or invalid body and no entity key was provided.\n404 | The entity name or the entity key were not found.\n\n> ###### Note\nThe request URL and the body are examples using the TSPCustomer entity. Please replace based on the entity you need to use."},"response":[],"_postman_id":"4375c892-51c0-d8de-197e-6c6be3f46766"},{"name":"DeleteUsingURL","id":"475d2b55-e2b9-4e4f-123e-851b0c3ef239","request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"},{"key":"APIKey","value":"{{APIKey}}"}],"body":{"mode":"raw","raw":""},"url":"{{BaseURL}}/SmartWitness/RESTActivityWebService/SmartWitness.Platform/TSPCustomers([TSPCustomer.CustomerID]])","description":"Deletes an entity sending the entityID in the URL.\n\n#### HTTP status codes\nStatus Code | Description\n------------ | -------------\n204 | The resource (entity or entity collection) was deleted successfully.\n400 | Invalid Request. The request has an empty or invalid body and no entity key was provided.\n404 | The entity name or the entity key were not found.\n\n> ###### Note\nThe request URL and the body are examples using the TSPCustomer entity. Please replace based on the entity you need to use."},"response":[],"_postman_id":"475d2b55-e2b9-4e4f-123e-851b0c3ef239"},{"name":"DeleteCollection","id":"5ed0b15f-2048-c152-0d3d-7adf512b7d3a","request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"},{"key":"APIKey","value":"{{APIKey}}"}],"body":{"mode":"raw","raw":"[\n  {\n    \"CustomerID\": \"[TSPCustomer.CustomerID_1]\"\n  },\n  {\n    \"CustomerID\": \"[TSPCustomer.CustomerID_2]\"\n  },\n  {\n    \"CustomerID\": \"[TSPCustomer.CustomerID_N]\"\n  }\n]"},"url":"{{BaseURL}}/SmartWitness/RESTActivityWebService/SmartWitness.Platform/TSPCustomers","description":"Deletes an Entity Collection.\n\n#### HTTP status codes\nStatus Code | Description\n------------ | -------------\n204 | The resource (entity or entity collection) was deleted successfully.\n400 | Invalid Request. The request has an empty or invalid body and no entity key was provided.\n404 | The entity name or the entity key were not found.\n\n> ###### Note\nThe request URL and the body are examples using the TSPCustomer entity. Please replace based on the entity you need to use."},"response":[],"_postman_id":"5ed0b15f-2048-c152-0d3d-7adf512b7d3a"}],"id":"998f820f-9721-2db0-34e7-5a32fc9e0af8","description":"This is a set of methods for general purpose that can be invoked using the collection name as part of the endpoint URL.\n\nThe SmartWitness Platform has the following collection names:\n\n- DataFiles\n- Devices\n- DeviceSettings\n- TSPCustomers\n- EventLogs\n- EventLogDataFiles\n- EventSettings\n- GPSDataLogs\n- MessageLogs","_postman_id":"998f820f-9721-2db0-34e7-5a32fc9e0af8"},{"name":"Customers","item":[{"name":"GetCustomerDevices","id":"73d29f19-2407-db21-2540-3de2ab77830c","request":{"method":"GET","header":[{"key":"APIKey","value":"{{APIKey}}"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{BaseURL}}/SmartWitness/RESTCommandWebService/ExecuteServerCommand/Customers/Devices?TSPCustomerID=[TSP_Customer_ID]","host":["{{BaseURL}}"],"path":["SmartWitness","RESTCommandWebService","ExecuteServerCommand","Customers","Devices"],"query":[{"key":"TSPCustomerID","value":"[TSP_Customer_ID]"}]},"description":"Returns a list of Devices assigned to a specific Customer.\n\n#### Parameters:\n- ***TSPCustomerID:*** TSP Customer ID as defined in the SmartWitness Platform.\n\n#### Response:\nJSON List of all Devices assigned to a particular Customer."},"response":[],"_postman_id":"73d29f19-2407-db21-2540-3de2ab77830c"},{"name":"GetCustomers","id":"e4e33d59-f0a9-546c-349b-ba892c7473fb","request":{"method":"GET","header":[{"key":"APIKey","value":"{{APIKey}}"}],"body":{"mode":"raw","raw":""},"url":"{{BaseURL}}/SmartWitness/RESTActivityWebService/SmartWitness.Platform/TSPCustomers","description":"Returns a list of your Customers as defined in the SmartWitness Platform.\n\n#### Response:\nJSON List of your Customers as defined in the SmartWitness Platform."},"response":[],"_postman_id":"e4e33d59-f0a9-546c-349b-ba892c7473fb"}],"id":"eecf5eb0-9133-400a-2e11-12a4cfa1cecc","_postman_id":"eecf5eb0-9133-400a-2e11-12a4cfa1cecc"},{"name":"DataFile","item":[{"name":"GetDataFile","id":"dc076893-0be2-3561-5354-a1a68a7c0d68","request":{"method":"GET","header":[{"key":"APIKey","value":"{{APIKey}}"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{BaseURL}}/SmartWitness/RESTCommandWebService/ExecuteServerCommand/DataFile/Get?AttachmentID=[AttachmentID]","host":["{{BaseURL}}"],"path":["SmartWitness","RESTCommandWebService","ExecuteServerCommand","DataFile","Get"],"query":[{"key":"AttachmentID","value":"[AttachmentID]"}]},"description":"Downloads a binary data file from the server.\r\n\r\n#### Parameters:\r\n\r\n- ***AttachmentID:*** AttachmentID.\r\n\r\n#### Response:\r\nBinary stream.\r\n\r\n> ###### Note\r\nThe AttachmentID is the unique Data File Identifier.  The AttachmentID for the last uploaded Snapshot is contained in the LastUploadedSnapshotID property for devices returned by the GetActiveDevices command.  Similarly the AttachmentID for the last uploaded video is contained in the LastUploadedVideoID property."},"response":[],"_postman_id":"dc076893-0be2-3561-5354-a1a68a7c0d68"}],"id":"be5a2b80-b6ee-dd7b-a6c0-3f02e732c8ab","_postman_id":"be5a2b80-b6ee-dd7b-a6c0-3f02e732c8ab"},{"name":"Device","item":[{"name":"AlarmOutControl","id":"fa05ba00-e08a-11fa-fac6-889e4a533840","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"APIKey","value":"{{APIKey}}"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{BaseURL}}/SmartWitness/RESTCommandWebService/ExecuteServerCommand/Device/AlarmOutControl?RecorderID={{RecorderID}}&AlarmType=[AlarmType]&Duration=[Duration]","host":["{{BaseURL}}"],"path":["SmartWitness","RESTCommandWebService","ExecuteServerCommand","Device","AlarmOutControl"],"query":[{"key":"RecorderID","value":"{{RecorderID}}"},{"key":"AlarmType","value":"[AlarmType]"},{"key":"Duration","value":"[Duration]"}]},"description":"Triggers an alarm condition on a device.\r\n\r\n#### Parameters:\r\n- ***RecorderID:*** Recorder ID.\r\n- ***AlarmType:*** One of the next options:\r\n - Beep\r\n - Alarm1\r\n - Alarm2\r\n- ***Duration:*** Duration in seconds.\r\n- *RequestID:* Optional Request ID string (GUID recommended). This parameter will not be included in  the corresponding callback notification.\r\n\r\n#### Success Response:\r\n\r\n\t  {\r\n\t      \"Code\": 202,\r\n\t      \"Message\": \"Queued\",\r\n\t      \"MoreInfo\": {\r\n\t        \"RequestID\": [RequestID]\r\n\t      },\r\n\t      \"Exception\": null\r\n\t  }\r\n\r\n#### Response when there is already a queued command of the same type:\r\n\t  {\r\n\t      \"Code\": 409,\r\n\t      \"Message\": \"Duplicate Command-Original RequestID Provided\"\",\r\n\t      \"MoreInfo\": {\r\n\t        \"RequestID\": [Request_ID_Of_The_Already_Queued_Command]\r\n\t      },\r\n\t      \"Exception\": null\r\n\t  }\r\n  \r\n#### Error Responses:\r\n\t  {\r\n\t    \"Code\": 400,\r\n\t    \"Message\": [Message],\r\n\t    \"MoreInfo\": {[MoreInfo]},\r\n\t    \"Exception\": [ExceptionInfo]\r\n\t  }\r\n"},"response":[],"_postman_id":"fa05ba00-e08a-11fa-fac6-889e4a533840"},{"name":"DownloadFirmware","id":"ce24e73a-cdea-9e71-3dc4-971063134b2c","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"APIKey","value":"{{APIKey}}"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{BaseURL}}/SmartWitness/RESTCommandWebService/ExecuteServerCommand/Device/DownloadFirmware?RecorderID={{RecorderID}}&FirmwareID=[Firmware_ID]","host":["{{BaseURL}}"],"path":["SmartWitness","RESTCommandWebService","ExecuteServerCommand","Device","DownloadFirmware"],"query":[{"key":"RecorderID","value":"{{RecorderID}}"},{"key":"FirmwareID","value":"[Firmware_ID]"}]},"description":"Downloads firmware to a device.\r\n\r\n#### Parameters:\r\n\r\n- ***RecorderID:*** Recorder ID.\r\n- ***FirmwareID:*** Firmware ID.\r\n- *RequestID:* Optional Request ID string (GUID recommended). This parameter will not be included in  the corresponding callback notification.\r\n\r\n#### Success Response:\r\n\r\n\t  {\r\n\t      \"Code\": 202,\r\n\t      \"Message\": \"Queued\",\r\n\t      \"MoreInfo\": {\r\n\t        \"RequestID\": [RequestID]\r\n\t      },\r\n\t      \"Exception\": null\r\n\t  }\r\n  \r\n#### Response when there is already a queued command of the same type:\r\n\t  {\r\n\t      \"Code\": 409,\r\n\t      \"Message\": \"Duplicate Command-Original RequestID Provided\"\",\r\n\t      \"MoreInfo\": {\r\n\t        \"RequestID\": [Request_ID_Of_The_Already_Queued_Command]\r\n\t      },\r\n\t      \"Exception\": null\r\n\t  }\r\n  \r\n#### Error Response:\r\n\t  {\r\n\t    \"Code\": 400,\r\n\t    \"Message\": [Message],\r\n\t    \"MoreInfo\": {[MoreInfo]},\r\n\t    \"Exception\": [ExceptionInfo]\r\n\t  }"},"response":[],"_postman_id":"ce24e73a-cdea-9e71-3dc4-971063134b2c"},{"name":"DownloadSettingFile","id":"0fbe9ec1-10ce-6d39-7d89-3a52b7647071","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"APIKey","value":"{{APIKey}}"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{BaseURL}}/SmartWitness/RESTCommandWebService/ExecuteServerCommand/Device/DownloadSettingFile?RecorderID={{RecorderID}}","host":["{{BaseURL}}"],"path":["SmartWitness","RESTCommandWebService","ExecuteServerCommand","Device","DownloadSettingFile"],"query":[{"key":"RecorderID","value":"{{RecorderID}}"}]},"description":"Downloads the active configuration file from the server to a device.\r\n\r\n#### Parameters:\r\n\r\n- ***RecorderID:*** Recorder ID.\r\n- *RequestID:* Optional Request ID string (GUID recommended). This parameter will not be included in  the corresponding callback notification. \r\n\r\n#### Success Response:\r\n\r\n\t  {\r\n\t      \"Code\": 202,\r\n\t      \"Message\": \"Queued\",\r\n\t      \"MoreInfo\": {\r\n\t        \"RequestID\": [RequestID]\r\n\t      },\r\n\t      \"Exception\": null\r\n\t  }\r\n\r\n#### Response when there is already a queued command of the same type:\r\n\t  {\r\n\t      \"Code\": 409,\r\n\t      \"Message\": \"Duplicate Command-Original RequestID Provided\"\",\r\n\t      \"MoreInfo\": {\r\n\t        \"RequestID\": [Request_ID_Of_The_Already_Queued_Command]\r\n\t      },\r\n\t      \"Exception\": null\r\n\t  }\r\n  \r\n#### Error Response:\r\n\t  {\r\n\t    \"Code\": 400,\r\n\t    \"Message\": [Message],\r\n\t    \"MoreInfo\": {[MoreInfo]},\r\n\t    \"Exception\": [ExceptionInfo]\r\n\t  }\r\n"},"response":[],"_postman_id":"0fbe9ec1-10ce-6d39-7d89-3a52b7647071"},{"name":"GSensorCalibrate","id":"d3f29e03-73dc-f2fc-c993-54c9faa50dae","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"APIKey","value":"{{APIKey}}"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{BaseURL}}/SmartWitness/RESTCommandWebService/ExecuteServerCommand/Device/GSensorCalibrate?RecorderID={{RecorderID}}&CalibrationTime=[Calibration_Time]","host":["{{BaseURL}}"],"path":["SmartWitness","RESTCommandWebService","ExecuteServerCommand","Device","GSensorCalibrate"],"query":[{"key":"RecorderID","value":"{{RecorderID}}"},{"key":"CalibrationTime","value":"[Calibration_Time]"}]},"description":"Initiates calibration on a device G-Sensor .\r\n\r\n#### Parameters:\r\n- ***RecorderID:*** Recorder ID.\r\n- ***CalibrationTime:*** One of the next values.\r\n - 0: Initiates calibration immediately.\r\n - 1: Initiates calibration when the vehicle is stopped.\r\n - 2: Initiates calibration on next device reboot.\r\n- *RequestID:* Optional Request ID string (GUID recommended) This parameter will not be included in  the corresponding callback notification.\r\n\r\n#### Success Response:\r\n\r\n\t  {\r\n\t      \"Code\": 202,\r\n\t      \"Message\": \"Queued\",\r\n\t      \"MoreInfo\": {\r\n\t        \"RequestID\": [RequestID]\r\n\t      },\r\n\t      \"Exception\": null\r\n\t  }\r\n\r\n#### Response when there is already a queued command of the same type:\r\n\t  {\r\n\t      \"Code\": 409,\r\n\t      \"Message\": \"Duplicate Command-Original RequestID Provided\"\",\r\n\t      \"MoreInfo\": {\r\n\t        \"RequestID\": [Request_ID_Of_The_Already_Queued_Command]\r\n\t      },\r\n\t      \"Exception\": null\r\n\t  }\r\n  \r\n#### Error Response:\r\n\t  {\r\n\t    \"Code\": 400,\r\n\t    \"Message\": [Message],\r\n\t    \"MoreInfo\": {[MoreInfo]},\r\n\t    \"Exception\": [ExceptionInfo]\r\n\t  }\r\n"},"response":[],"_postman_id":"d3f29e03-73dc-f2fc-c993-54c9faa50dae"},{"name":"FormatMedia","id":"980c1cdf-07bf-31a9-5c56-a6b75ac0f62a","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"APIKey","value":"{{APIKey}}"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{BaseURL}}/SmartWitness/RESTCommandWebService/ExecuteServerCommand/Device/FormatMedia?RecorderID={{RecorderID}}&FormatType=[Format_Type]","host":["{{BaseURL}}"],"path":["SmartWitness","RESTCommandWebService","ExecuteServerCommand","Device","FormatMedia"],"query":[{"key":"RecorderID","value":"{{RecorderID}}"},{"key":"FormatType","value":"[Format_Type]"}]},"description":"Instructs a device to format its onboard recording media.\n\n#### Parameters:\n\n- ***RecorderID:*** Recorder ID.\n- ***FormatType:*** One of the next values.\n - ALL: All Media.\n - SD1 Format SD Card1.\n - SD2: Format SD Card2.\n - SD1SD2: Format both SD Cards.\n - HD1: Format Hard Drive 1.\n - HD2: Format Hard Drive 2.\n - HD1HD2: Format Both Hard Drives.\n- *RequestID:* Optional Request ID string (GUID recommended). This parameter will not be included in  the corresponding callback notification. \n\n#### Success Response:\n  \n\t    {\n\t        \"Code\": 202,\n\t        \"Message\": \"Queued\",\n\t        \"MoreInfo\": {\n\t          \"RequestID\": [RequestID]\n\t        },\n\t        \"Exception\": null\n\t    }\n\n#### Response when there is already a queued command of the same type:\n\t    {\n\t        \"Code\": 409,\n\t        \"Message\": \"Duplicate Command-Original RequestID Provided\"\",\n\t        \"MoreInfo\": {\n\t          \"RequestID\": [Request_ID_Of_The_Already_Queued_Command]\n\t        },\n\t        \"Exception\": null\n\t    }\n  \n#### Error Response:\n\t    {\n\t      \"Code\": 400,\n\t      \"Message\": [Message],\n\t      \"MoreInfo\": {[MoreInfo]},\n\t      \"Exception\": [ExceptionInfo]\n\t    }"},"response":[],"_postman_id":"980c1cdf-07bf-31a9-5c56-a6b75ac0f62a"},{"name":"DeviceReboot","id":"8479c9fb-16af-ed78-c527-d7829a5e000f","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"APIKey","value":"{{APIKey}}"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{BaseURL}}/SmartWitness/RESTCommandWebService/ExecuteServerCommand/Device/Reboot?RecorderID={{RecorderID}}","host":["{{BaseURL}}"],"path":["SmartWitness","RESTCommandWebService","ExecuteServerCommand","Device","Reboot"],"query":[{"key":"RecorderID","value":"{{RecorderID}}"}]},"description":"Reboots a device.\r\n\r\n#### Parameters:\r\n- ***RecorderID:*** Recorder ID.\r\n- *RequestID:* Optional Request ID string (GUID recommended). This parameter will not be included in  the corresponding callback notification.\r\n\r\n#### Success Response:\r\n\r\n\t  {\r\n\t      \"Code\": 202,\r\n\t      \"Message\": \"Queued\",\r\n\t      \"MoreInfo\": {\r\n\t        \"RequestID\": [RequestID]\r\n\t      },\r\n\t      \"Exception\": null\r\n\t  }\r\n\r\n#### Response when there is already a queued command of the same type:\r\n\t  {\r\n\t      \"Code\": 409,\r\n\t      \"Message\": \"Duplicate Command-Original RequestID Provided\"\",\r\n\t      \"MoreInfo\": {\r\n\t        \"RequestID\": [Request_ID_Of_The_Already_Queued_Command]\r\n\t      },\r\n\t      \"Exception\": null\r\n\t  }\r\n  \r\n#### Error Response:\r\n\t  {\r\n\t    \"Code\": 400,\r\n\t    \"Message\": [Message],\r\n\t    \"MoreInfo\": {[MoreInfo]},\r\n\t    \"Exception\": [ExceptionInfo]\r\n\t  }"},"response":[],"_postman_id":"8479c9fb-16af-ed78-c527-d7829a5e000f"},{"name":"UpdateNetConfig","id":"190017f2-1e12-38a4-ae46-c16e0fdee4d1","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"APIKey","value":"{{APIKey}}"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{BaseURL}}/SmartWitness/RESTCommandWebService/ExecuteServerCommand/Device/UpdateNetConfig?RecorderID={{RecorderID}}","host":["{{BaseURL}}"],"path":["SmartWitness","RESTCommandWebService","ExecuteServerCommand","Device","UpdateNetConfig"],"query":[{"key":"RecorderID","value":"{{RecorderID}}"}]},"description":"Updates the network configuration on a device.\r\n\r\n#### Parameters:\r\n- ***RecorderID:*** Recorder ID.\r\n- *RequestID:* Optional Request ID string (GUID recommended). This parameter will not be included in  the corresponding callback notification.\r\n\r\n#### Success Response:\r\n\r\n\t  {\r\n\t      \"Code\": 202,\r\n\t      \"Message\": \"Queued\",\r\n\t      \"MoreInfo\": {\r\n\t        \"RequestID\": [RequestID]\r\n\t      },\r\n\t      \"Exception\": null\r\n\t  }\r\n\r\n#### Response when there is already a queued command of the same type:\r\n\t  {\r\n\t      \"Code\": 409,\r\n\t      \"Message\": \"Duplicate Command-Original RequestID Provided\"\",\r\n\t      \"MoreInfo\": {\r\n\t        \"RequestID\": [Request_ID_Of_The_Already_Queued_Command]\r\n\t      },\r\n\t      \"Exception\": null\r\n\t  }\r\n  \r\n#### Error Response:\r\n\t  {\r\n\t    \"Code\": 400,\r\n\t    \"Message\": [Message],\r\n\t    \"MoreInfo\": {[MoreInfo]},\r\n\t    \"Exception\": [ExceptionInfo]\r\n\t  }"},"response":[],"_postman_id":"190017f2-1e12-38a4-ae46-c16e0fdee4d1"},{"name":"UploadSetting","id":"c22fe089-df4a-273e-2e7b-f6689dcc3400","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"APIKey","value":"{{APIKey}}"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{BaseURL}}/SmartWitness/RESTCommandWebService/ExecuteServerCommand/Device/UploadSetting?RecorderID={{RecorderID}}","host":["{{BaseURL}}"],"path":["SmartWitness","RESTCommandWebService","ExecuteServerCommand","Device","UploadSetting"],"query":[{"key":"RecorderID","value":"{{RecorderID}}"}]},"description":"Instructs a device to upload its configuration to the server.\r\n\r\n#### Parameters:\r\n- ***RecorderID:*** Recorder ID.\r\n- *RequestID:* Optional Request ID string (GUID recommended). This parameter will not be included in  the corresponding callback notification.\r\n\r\n#### Success Response:\r\n\r\n\t    {\r\n\t        \"Code\": 202,\r\n\t        \"Message\": \"Queued\",\r\n\t        \"MoreInfo\": {\r\n\t          \"RequestID\": [RequestID]\r\n\t        },\r\n\t        \"Exception\": null\r\n\t    }\r\n\r\n#### Response when there is already a queued command of the same type:\r\n\t    {\r\n\t        \"Code\": 409,\r\n\t        \"Message\": \"Duplicate Command-Original RequestID Provided\"\",\r\n\t        \"MoreInfo\": {\r\n\t          \"RequestID\": [Request_ID_Of_The_Already_Queued_Command]\r\n\t        },\r\n\t        \"Exception\": null\r\n\t    }\r\n  \r\n#### Error Response:\r\n\t    {\r\n\t      \"Code\": 400,\r\n\t      \"Message\": [Message],\r\n\t      \"MoreInfo\": {[MoreInfo]},\r\n\t      \"Exception\": [ExceptionInfo]\r\n\t    }"},"response":[],"_postman_id":"c22fe089-df4a-273e-2e7b-f6689dcc3400"},{"name":"UploadSystemLog","id":"2466271d-77fb-2dc9-3428-65d1eca96d5b","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"APIKey","value":"{{APIKey}}"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{BaseURL}}/SmartWitness/RESTCommandWebService/ExecuteServerCommand/Device/UploadSystemLog?RecorderID={{RecorderID}}","host":["{{BaseURL}}"],"path":["SmartWitness","RESTCommandWebService","ExecuteServerCommand","Device","UploadSystemLog"],"query":[{"key":"RecorderID","value":"{{RecorderID}}"}]},"description":"Instructs a device to upload its system log.  \r\n\r\n#### Parameters:\r\n- ***RecorderID:*** Recorder ID.\r\n- *RequestID:* Optional Request ID string (GUID recommended). This parameter will not be included in  the corresponding callback notification.\r\n\r\n#### Success Response:\r\n\r\n\t  {\r\n\t      \"Code\": 202,\r\n\t      \"Message\": \"Queued\",\r\n\t      \"MoreInfo\": {\r\n\t        \"RequestID\": [RequestID]\r\n\t      },\r\n\t      \"Exception\": null\r\n\t  }\r\n\r\n#### Response when there is already a queued command of the same type:\r\n\t  {\r\n\t      \"Code\": 409,\r\n\t      \"Message\": \"Duplicate Command-Original RequestID Provided\"\",\r\n\t      \"MoreInfo\": {\r\n\t        \"RequestID\": [Request_ID_Of_The_Already_Queued_Command]\r\n\t      },\r\n\t      \"Exception\": null\r\n\t  }\r\n  \r\n#### Error Response:\r\n\t  {\r\n\t    \"Code\": 400,\r\n\t    \"Message\": [Message],\r\n\t    \"MoreInfo\": {[MoreInfo]},\r\n\t    \"Exception\": [ExceptionInfo]\r\n\t  }"},"response":[],"_postman_id":"2466271d-77fb-2dc9-3428-65d1eca96d5b"}],"id":"8bf454e9-bada-2128-d237-b27957237943","_postman_id":"8bf454e9-bada-2128-d237-b27957237943"},{"name":"Devices","item":[{"name":"GetAllDevices","id":"e9949f82-ad5d-1889-30db-b93edcef2366","request":{"method":"GET","header":[{"key":"APIKey","value":"{{APIKey}}"}],"body":{"mode":"raw","raw":""},"url":"{{BaseURL}}/SmartWitness/RESTCommandWebService/ExecuteServerCommand/Devices/All","description":"Returns a list of all your Devices.\r\n\r\n#### Response:\r\nJSON List of all your Devices\r\n\r\n> ###### Note\r\nThere are three properties on each device that you can use to determine whether a device is truly online:\r\n - **Online:** Indicates that a device connected to the platform in the last 5 minutes. \r\n - **ReadyToStream:** Indicates that a device connected to the platform in the last 35 seconds.\r\n - **LastContact:** It is the last time the device connected with the platform."},"response":[],"_postman_id":"e9949f82-ad5d-1889-30db-b93edcef2366"},{"name":"GetActiveDevices","id":"eea1a162-9e2f-91be-ab51-6e9ff333e6f6","request":{"method":"GET","header":[{"key":"APIKey","value":"{{APIKey}}"}],"body":{"mode":"raw","raw":""},"url":"{{BaseURL}}/SmartWitness/RESTCommandWebService/ExecuteServerCommand/Devices/Active","description":"Returns a list of all devices that have successfully communicated with the platform the last 5 minutes.\r\n\r\n#### Sample Response:\r\n\t\r\n\t  [\r\n\t\t  {\r\n\t\t  \"TenantID\": \"526e41c2-534a-43d4-b1fa-a59d0115bb49\"\r\n\t\t  \"DeviceID\": \"bfb728a1-fa3c-4bb3-b06c-a5cd012d032a\"\r\n\t\t  \"Active\": true\r\n\t\t  \"CreatedBy\": \"admin\"\r\n\t\t  \"CreatedDate\": \"2016-03-18T18:17:04.4000000Z\"\r\n\t\t  \"DeviceConfigFile\": null\r\n\t\t  \"DeviceConfigFileHash\": \"29dd1af5d179cf04aa12fd241542ec89\"\r\n\t\t  \"DeviceConfigurationID\": null\r\n\t\t  \"DeviceModelID\": \"93c2ae97-ee49-41b6-a7e2-a5b60145edc1\"\r\n\t\t  \"DeviceStatus\": 3\r\n\t\t  \"DriverID\": null\r\n\t\t  \"FirmwareVersion\": \"663e73c3-d63c-481e-80ea-a62f01524705\"\r\n\t\t  \"HealthInterval\": 3\r\n\t\t  \"HealthRetryInterval\": 60\r\n\t\t  \"ICCID\": null\r\n\t\t  \"IMEI\": null\r\n\t\t  \"InitialActivationDate\": \"0001-01-01T00:00:00.0000000\"\r\n\t\t  \"Installed\": true\r\n\t\t  \"IsDeleted\": false\r\n\t\t  \"LastDriveDataUploadTime\": \"2016-08-24T15:19:01.0000000Z\"\r\n\t\t  \"LastUpdatedBy\": \"admin\"\r\n\t\t  \"LastUpdatedDate\": \"2016-08-24T15:18:55.6300000Z\"\r\n\t\t  \"MACAddress\": \"F4-28-53-00-54-F9\"\r\n\t\t  \"ManufactureDate\": \"0001-01-01T00:00:00.0000000\"\r\n\t\t  \"MEID\": null\r\n\t\t  \"MessageLoggingEnabled\": true\r\n\t\t  \"ModemFirmware\": null\r\n\t\t  \"NetworkTimeOut\": 600\r\n\t\t  \"NoCameras\": 2\r\n\t\t  \"PowerType\": 0\r\n\t\t  \"RecorderID\": \"KSMA11600540\"\r\n\t\t  \"RetryCount\": 3\r\n\t\t  \"SendDriveDataInterval\": 600\r\n\t\t  \"SendLiveTrackInterval\": 15\r\n\t\t  \"SerialNo\": \"KSYS11600480\"\r\n\t\t  \"TSPCustomerID\": null\r\n\t\t  \"TSPID\": \"526e41c2-534a-43d4-b1fa-a59d0115bb49\"\r\n\t\t  \"TSPSerialNumber\": null\r\n\t\t  \"VehicleClass\": null\r\n\t\t  \"VehicleID\": null\r\n\t\t  \"VehicleWeight\": null\r\n\t\t  \"WarrantyEndDate\": \"0001-01-01T00:00:00.0000000\"\r\n\t\t  \"WarrantyStartDate\": \"0001-01-01T00:00:00.0000000\"\r\n\t\t  \"Timestamp\": \"AAAAAAGKJAo=\"\r\n\t\t  \"Altitude\": 43\r\n\t\t  \"Heading\": 86\r\n\t\t  \"IgnitionOn\": false\r\n\t\t  \"IPAddress\": \"192.168.111.1\"\r\n\t\t  \"LastContact\": \"2016-08-24T15:18:55.6266687\"\r\n\t\t  \"LastIgnitionOff\": \"0001-01-01T00:00:00.0000000\"\r\n\t\t  \"LastIgnitionOn\": \"0001-01-01T00:00:00.0000000\"\r\n\t\t  \"LastUploadedSnapshotID\": \"\"\r\n\t\t  \"LastUploadedVideoID\": \"\"\r\n\t\t  \"Latitude\": 39.930815\r\n\t\t  \"Longitude\": -75.14565833333333\r\n\t\t  \"Online\": true\r\n\t\t  \"ReadyToStream\": false\r\n\t\t  \"Speed\": 19\r\n\t\t  \"TimeOffset\": 5370\r\n\t\t  \"DataFiles\": null\r\n\t\t  \"DeviceConfiguration\": null\r\n\t\t  \"DeviceModel\": null\r\n\t\t  \"DeviceSettings\": null\r\n\t\t  \"EventLogs\": null\r\n\t\t  \"GPSDataLogs\": null\r\n\t\t  },\r\n\t\t  ….\r\n\t  ] \r\n   \r\n> ###### Note\r\nThere are three properties on each device that you can use to determine whether a device is truly online:\r\n - **Online:** Indicates that a device connected to the platform in the last 5 minutes. \r\n - **ReadyToStream:** Indicates that a device connected to the platform in the last 35 seconds.\r\n - **LastContact:** It is the last time the device connected with the platform."},"response":[{"id":"8aae444e-31d6-7529-76e2-75df6d29b5ba","name":"Active Devices","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"CustomerID","value":"C93F949C-41B8-4C9E-95AA-B030B31F6F3F"},{"key":"SessionID","value":"{27272fed-b3c9-46a3-98b7-a70100df9194}"}],"body":{"mode":"raw","raw":""},"url":"http://sw.modularis.com:8080/SmartWitness/RESTCommandWebService/ExecuteServerCommand/Devices/Active"},"status":"OK","code":200,"_postman_previewlanguage":"raw","header":[{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Content-Encoding","value":"gzip","name":"Content-Encoding","description":"The type of encoding used on the data."},{"key":"Content-Type","value":"application/octet-stream","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Fri, 20 Jan 2017 13:40:07 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"Microsoft-HTTPAPI/2.0","name":"Server","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-CompressResponseStream","value":"gzip","name":"X-CompressResponseStream","description":"Custom header"}],"cookie":[],"responseTime":"170","body":"[{\"TenantID\":\"526e41c2-534a-43d4-b1fa-a59d0115bb49\",\"DeviceID\":\"bfb728a1-fa3c-4bb3-b06c-a5cd012d032a\",\"Active\":true,\"CreatedBy\":\"admin\",\"CreatedDate\":\"2016-03-18T18:17:04.4000000Z\",\"DeviceConfigFile\":null,\"DeviceConfigFileHash\":\"84c5e30b4d276f3b4846eafd79aa40b5\",\"DeviceConfigurationID\":null,\"DeviceModelID\":\"93c2ae97-ee49-41b6-a7e2-a5b60145edc1\",\"DeviceStatus\":3,\"DriverID\":null,\"FirmwareVersion\":\"34fa69b7-be4a-4e5e-b4c9-a6d700086735\",\"HealthInterval\":3,\"HealthRetryInterval\":60,\"ICCID\":null,\"IMEI\":\"b\",\"InitialActivationDate\":null,\"Installed\":true,\"IsDeleted\":false,\"LastDriveDataUploadTime\":\"2017-01-20T13:31:01.0000000Z\",\"LastUpdatedBy\":\"admin\",\"LastUpdatedDate\":\"2017-01-20T13:33:48.3730000Z\",\"MACAddress\":\"F4-28-53-00-54-F9\",\"ManufactureDate\":null,\"MEID\":null,\"MessageLoggingEnabled\":false,\"ModemFirmware\":null,\"NetworkTimeOut\":180,\"NoCameras\":2,\"PowerType\":3,\"RecorderID\":\"KSMA11600540\",\"RetryCount\":3,\"SendDriveDataInterval\":600,\"SendLiveTrackInterval\":15,\"SerialNo\":\"KSYS11600480\",\"TSPCustomerID\":null,\"TSPID\":\"526e41c2-534a-43d4-b1fa-a59d0115bb49\",\"TSPSerialNumber\":null,\"VehicleClass\":null,\"VehicleID\":null,\"VehicleWeight\":null,\"WarrantyEndDate\":null,\"WarrantyStartDate\":null,\"Timestamp\":\"AAAAAACIFZU=\",\"Altitude\":0,\"Heading\":0,\"IgnitionOn\":true,\"IPAddress\":\"\",\"LastContact\":\"2017-01-20T13:40:03.4434511Z\",\"LastGPSUpdate\":\"2017-01-20T13:30:54.6902144Z\",\"LastIgnitionOff\":null,\"LastIgnitionOn\":\"2017-01-20T05:28:37.2577178Z\",\"LastUploadedSnapshotID\":\"\",\"LastUploadedVideoID\":\"\",\"Latitude\":0,\"Longitude\":0,\"Online\":true,\"ReadyToStream\":true,\"Speed\":0,\"TimeOffset\":-167443,\"DataFiles\":null,\"DeviceConfiguration\":null,\"DeviceModel\":null,\"DeviceSettings\":null,\"EventLogs\":null,\"GPSDataLogs\":null},{\"TenantID\":\"526e41c2-534a-43d4-b1fa-a59d0115bb49\",\"DeviceID\":\"123a3888-05a2-452f-9582-a5d6011cb933\",\"Active\":true,\"CreatedBy\":\"admin\",\"CreatedDate\":\"2016-03-27T17:16:51.0800000Z\",\"DeviceConfigFile\":null,\"DeviceConfigFileHash\":\"70a6fb712fee39f05e7fba493284fe5b\",\"DeviceConfigurationID\":null,\"DeviceModelID\":\"3c0cdaae-f7dc-4079-b336-a5d60112ff27\",\"DeviceStatus\":3,\"DriverID\":\"CP1 Driver\",\"FirmwareVersion\":\"bbd3f443-378a-4a4f-a514-a6600130629c\",\"HealthInterval\":3,\"HealthRetryInterval\":60,\"ICCID\":null,\"IMEI\":null,\"InitialActivationDate\":null,\"Installed\":true,\"IsDeleted\":false,\"LastDriveDataUploadTime\":\"2017-01-20T13:36:02.0000000Z\",\"LastUpdatedBy\":\"admin\",\"LastUpdatedDate\":\"2017-01-20T13:36:19.3100000Z\",\"MACAddress\":null,\"ManufactureDate\":null,\"MEID\":null,\"MessageLoggingEnabled\":false,\"ModemFirmware\":null,\"NetworkTimeOut\":600,\"NoCameras\":1,\"PowerType\":3,\"RecorderID\":\"T1MA11600076\",\"RetryCount\":3,\"SendDriveDataInterval\":600,\"SendLiveTrackInterval\":15,\"SerialNo\":\"T1SS11600111\",\"TSPCustomerID\":null,\"TSPID\":\"526e41c2-534a-43d4-b1fa-a59d0115bb49\",\"TSPSerialNumber\":null,\"VehicleClass\":null,\"VehicleID\":\"CP1 Test\",\"VehicleWeight\":null,\"WarrantyEndDate\":null,\"WarrantyStartDate\":null,\"Timestamp\":\"AAAAAACIFZw=\",\"Altitude\":0,\"Heading\":114,\"IgnitionOn\":true,\"IPAddress\":\"\",\"LastContact\":\"2017-01-20T13:40:04.4087785Z\",\"LastGPSUpdate\":\"2017-01-20T13:40:04.4087785Z\",\"LastIgnitionOff\":null,\"LastIgnitionOn\":\"2017-01-18T15:03:18.7401635Z\",\"LastUploadedSnapshotID\":\"5fb7519e-a905-4718-a917-eb3b8b1135a9\",\"LastUploadedVideoID\":\"\",\"Latitude\":39.93121,\"Longitude\":-75.14731,\"Online\":true,\"ReadyToStream\":true,\"Speed\":1,\"TimeOffset\":-17408,\"DataFiles\":null,\"DeviceConfiguration\":null,\"DeviceModel\":null,\"DeviceSettings\":null,\"EventLogs\":null,\"GPSDataLogs\":null}]"}],"_postman_id":"eea1a162-9e2f-91be-ab51-6e9ff333e6f6"},{"name":"GetDevice","id":"f4e26c8a-bdc6-fb1e-39fa-096ae3aa33be","request":{"method":"GET","header":[{"key":"APIKey","value":"{{APIKey}}"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{BaseURL}}/SmartWitness/RESTCommandWebService/ExecuteServerCommand/Devices/Get?RecorderID={{RecorderID}}","host":["{{BaseURL}}"],"path":["SmartWitness","RESTCommandWebService","ExecuteServerCommand","Devices","Get"],"query":[{"key":"RecorderID","value":"{{RecorderID}}"}]},"description":"Returns a single Device.\r\n\r\n#### Parameters:\r\n- ***RecorderID:*** Recorder ID.\r\n\r\n#### Response:\r\n\r\nJSON object with all the properties of a device.\r\n\r\n> ###### Note\r\nThere are three properties on each device that you can use to determine whether a device is truly online:\r\n - **Online:** Indicates that a device connected to the platform in the last 5 minutes. \r\n - **ReadyToStream:** Indicates that a device connected to the platform in the last 35 seconds.\r\n - **LastContact:** It is the last time the device connected with the platform."},"response":[],"_postman_id":"f4e26c8a-bdc6-fb1e-39fa-096ae3aa33be"},{"name":"GetGPSData","id":"a97ea83d-ac66-d483-5811-c8dfceb20fce","request":{"method":"GET","header":[{"key":"APIKey","value":"{{APIKey}}"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{BaseURL}}/SmartWitness/RESTCommandWebService/ExecuteServerCommand/Devices/GetGPSData?RecorderID={{RecorderID}}&FromTime=[From_Time]&ToTime=[To_Time]","host":["{{BaseURL}}"],"path":["SmartWitness","RESTCommandWebService","ExecuteServerCommand","Devices","GetGPSData"],"query":[{"key":"RecorderID","value":"{{RecorderID}}"},{"key":"FromTime","value":"[From_Time]"},{"key":"ToTime","value":"[To_Time]"}]},"description":"Returns historical GPS data.\r\n\r\n#### Parameters:\r\n\r\n- ***RecorderID:*** Recorder ID.\r\n- ***FromTime:*** Start Date/Time in UTC format:  yyyy-MM-ddTHH:mm:ss.fffffff\r\n- ***ToTime:*** End Date/Time in UTC format:  yyyy-MM-ddTHH:mm:ss.fffffff\r\n\r\n#### Response:\r\n\r\nJSON Collection of GPSDataLogs. Example Below:\r\n\r\n\t[\r\n\t  {\r\n\t    \"TenantID\": \"526e41c2-534a-43d4-b1fa-a59d0115bb49\",\r\n\t    \"GPSDataLogID\": \"f7edf22a-8081-48d3-a616-d7434aefcea5\",\r\n\t    \"Altitude\": 34,\r\n\t    \"CreatedBy\": \"admin\",\r\n\t    \"CreatedDate\": \"2016-04-12T09:39:43.0030000Z\",\r\n\t    \"DateTime\": \"2016-04-12T09:39:43.0030000Z\",\r\n\t    \"DeviceID\": \"bfb728a1-fa3c-4bb3-b06c-a5cd012d032a\",\r\n\t    \"DriverID\": \"A.J. KP1S\",\r\n\t    \"EventLogID\": null,\r\n\t    \"Heading\": 0,\r\n\t    \"IsDeleted\": false,\r\n\t    \"LastUpdatedBy\": \"admin\",\r\n\t    \"LastUpdatedDate\": \"2016-04-12T09:39:43.0030000Z\",\r\n\t    \"Latitude\": 39.931121666666662,\r\n\t    \"Longitude\": -75.147618333333341,\r\n\t    \"Speed\": 6,\r\n\t    \"VehicleID\": \"A.J. Test KP1S\",\r\n\t    \"Timestamp\": \"AAAAAADAuCM=\"\r\n\t  }, {\r\n\t    \"TenantID\": \"526e41c2-534a-43d4-b1fa-a59d0115bb49\",\r\n\t    \"GPSDataLogID\": \"8a7f5cc2-8731-4bd9-adcd-41ea9104aa2d\",\r\n\t    \"Altitude\": 34,\r\n\t    \"CreatedBy\": \"admin\",\r\n\t    \"CreatedDate\": \"2016-04-12T09:41:42.8930000Z\",\r\n\t    \"DateTime\": \"2016-04-12T09:41:42.8930000Z\",\r\n\t    \"DeviceID\": \"bfb728a1-fa3c-4bb3-b06c-a5cd012d032a\",\r\n\t    \"DriverID\": \"A.J. KP1S\",\r\n\t    \"EventLogID\": null,\r\n\t    \"Heading\": 0,\r\n\t    \"IsDeleted\": false,\r\n\t    \"LastUpdatedBy\": \"admin\",\r\n\t    \"LastUpdatedDate\": \"2016-04-12T09:41:42.8930000Z\",\r\n\t    \"Latitude\": 39.931243333333335,\r\n\t    \"Longitude\": -75.147345,\r\n\t    \"Speed\": 4,\r\n\t    \"VehicleID\": \"A.J. Test KP1S\",\r\n\t    \"Timestamp\": \"AAAAAADAuCQ=\"\r\n\t  }\r\n\t]\r\n"},"response":[],"_postman_id":"a97ea83d-ac66-d483-5811-c8dfceb20fce"},{"name":"UpdateDevice (Activity service implementation)","id":"169452e4-10ae-2f1b-de15-5bf7c509d037","request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"APIKey","value":"{{APIKey}}"}],"body":{"mode":"raw","raw":"{\n    \"TSPSerialNumber\": \"5555555555\"\n}"},"url":{"raw":"{{BaseURL}}/SmartWitness/RESTActivityWebService/SmartWitness.Platform/Devices?RecorderID={{RecorderID}}","host":["{{BaseURL}}"],"path":["SmartWitness","RESTActivityWebService","SmartWitness.Platform","Devices"],"query":[{"key":"RecorderID","value":"{{RecorderID}}"}]},"description":"Updates Device properties such as VehicleID, DriverID, and TSPCustomerID.\r\n\r\n#### HTTP status codes\r\nStatus Code | Description\r\n------------ | -------------\r\n200 | The resource (entity or entity collection) was saved successfully.\r\n400 | Bad request. The request has an empty or invalid body.\r\n404 | This code is valid only when the entity key is passed in the URL. It means that the entity to update was not found.\r\n409 | There was a conflict updating the entity. For example, validation rules failed."},"response":[],"_postman_id":"169452e4-10ae-2f1b-de15-5bf7c509d037"}],"id":"f32d4778-340b-bb8f-ce8e-d750cb4d23b6","_postman_id":"f32d4778-340b-bb8f-ce8e-d750cb4d23b6"},{"name":"Events","item":[{"name":"MakeEvent","id":"aa708adc-987c-818d-367c-a6bd16cba8ad","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"APIKey","value":"{{APIKey}}"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{BaseURL}}/SmartWitness/RESTCommandWebService/ExecuteServerCommand/Events/Make?RecorderID={{RecorderID}}&EventType=[Event_Type]","host":["{{BaseURL}}"],"path":["SmartWitness","RESTCommandWebService","ExecuteServerCommand","Events","Make"],"query":[{"key":"RecorderID","value":"{{RecorderID}}"},{"key":"EventType","value":"[Event_Type]"}]},"description":"Simulates an event on a device.\r\n\r\n#### Parameters:\r\n\r\n- ***RecorderID:*** Recorder ID.\r\n- ***EventType:*** One of the next values.\r\n - GEOFENCE: Simulated GeoFence Event.\r\n - PBUTTON: Simulated Panic Button Event.\r\n - NVS: Simulated NVS Event.\r\n - SERVERFORCE: Simulated Server Force Event (Default).\r\n- *RequestID:* Optional Request ID string (GUID recommended). This parameter will not be included in  the corresponding callback notification.\r\n\r\n#### Success Response:\r\n\r\n  {\r\n      \"Code\": 202,\r\n      \"Message\": \"Queued\",\r\n      \"MoreInfo\": {\r\n        \"RequestID\": [RequestID]\r\n      },\r\n      \"Exception\": null\r\n  }\r\n  \r\n#### Response when there is already a queued command of the same type:\r\n  {\r\n      \"Code\": 409,\r\n      \"Message\": \"Duplicate Command-Original RequestID Provided\"\",\r\n      \"MoreInfo\": {\r\n        \"RequestID\": [Request_ID_Of_The_Already_Queued_Command]\r\n      },\r\n      \"Exception\": null\r\n  }\r\n  \r\n#### Error Response:\r\n  {\r\n    \"Code\": 400,\r\n    \"Message\": [Message],\r\n    \"MoreInfo\": {[MoreInfo]},\r\n    \"Exception\": [ExceptionInfo]\r\n  }"},"response":[],"_postman_id":"aa708adc-987c-818d-367c-a6bd16cba8ad"},{"name":"GetAllEvents","id":"f557d80f-519c-614f-80b8-32e44b41f6a5","request":{"method":"GET","header":[{"key":"APIKey","value":"{{APIKey}}"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{BaseURL}}/SmartWitness/RESTCommandWebService/ExecuteServerCommand/Events/All?FromTime=[From_Time]&ToTime=[To_Time]","host":["{{BaseURL}}"],"path":["SmartWitness","RESTCommandWebService","ExecuteServerCommand","Events","All"],"query":[{"key":"FromTime","value":"[From_Time]"},{"key":"ToTime","value":"[To_Time]"}]},"description":"Returns events and related media for all devices.\r\n\r\n#### Parameters:\r\n\r\n- ***FromTime:*** Start Date/Time in UTC format:  yyyy-MM-ddTHH:mm:ss.fffffff\r\n- ***ToTime:***\tEnd Date/Time in UTC format:  yyyy-MM-ddTHH:mm:ss.fffffff\r\n\r\n#### Response:\r\n\r\nJSON Collection of Event Logs with MediaURLs and GPSLogs. Example Below:\r\n\r\n\t[{\r\n\t\t\"TenantID\": \"526e41c2-534a-43d4-b1fa-a59d0115bb49\",\r\n\t\t\"EventLogID\": \"a2359ae3-f7b1-4949-be2e-ecb09dcbe68a\",\r\n\t\t\"AlarmInChannel\": 0,\r\n\t\t\"CreatedBy\": \"admin\",\r\n\t\t\"CreatedDate\": \"2016-04-12T15:33:11.8330000Z\",\r\n\t\t\"DeviceID\": \"bfb728a1-fa3c-4bb3-b06c-a5cd012d032a\",\r\n\t\t\"EventDateTime\": \"2016-04-12T15:33:11.3100000Z\",\r\n\t\t\"EventTypeID\": \"PanicButton\",\r\n\t\t\"IsDeleted\": false,\r\n\t\t\"LastUpdatedBy\": \"admin\",\r\n\t\t\"LastUpdatedDate\": \"2016-04-12T15:33:11.8330000Z\",\r\n\t\t\"MotionChannel\": 0,\r\n\t\t\"NumberOfFrames\": 10,\r\n\t\t\"NVSChannel\": 0,\r\n\t\t\"SignalChannel\": 0,\r\n\t\t\"Timestamp\": \"AAAAAAC8/xU=\",\r\n\t\t\"MediaURLs\": [{\r\n\t\t\t\"Camera\": 0,\r\n\t\t\t\"Altitude\": 0,\r\n\t\t\t\"Heading\": 0,\r\n\t\t\t\"Latitude\": 0,\r\n\t\t\t\"Longitude\": 0,\r\n\t\t\t\"Speed\": 0,\r\n\t\t\t\"URL\": \"\\/SmartWitness\\/RecorderService\\/DataFile\\/c93f949c-41b8-4c9e-95aa-b030b31f6f3f\\/e66a66b4-463f-4524-90d4-a5e6011d58f9\\/9dd80454-ffba-416e-9759-a46108230abf\"\r\n\t\t}, {\r\n\t\t\t\"Camera\": 0,\r\n\t\t\t\"Altitude\": 0,\r\n\t\t\t\"Heading\": 0,\r\n\t\t\t\"Latitude\": 0,\r\n\t\t\t\"Longitude\": 0,\r\n\t\t\t\"Speed\": 0,\r\n\t\t\t\"URL\": \"\\/SmartWitness\\/RecorderService\\/DataFile\\/c93f949c-41b8-4c9e-95aa-b030b31f6f3f\\/e66a66b4-463f-4524-90d4-a5e6011d58f9\\/83fac7bf-509c-4944-8b3f-f31b25147a3e\"}\r\n\t\t\r\n\t],\r\n\t\t\"EventLogDataFiles\": null,\r\n\t\t\"EventSettings\": null,\r\n\t\t\"GPSDataLogs\": null\r\n\t}]"},"response":[],"_postman_id":"f557d80f-519c-614f-80b8-32e44b41f6a5"},{"name":"GetEvents","id":"14b5ed39-c9a7-0e96-f4a5-34d58929db3a","request":{"method":"GET","header":[{"key":"APIKey","value":"{{APIKey}}"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{BaseURL}}/SmartWitness/RESTCommandWebService/ExecuteServerCommand/Events/Filter?FromTime=[From_Time]&ToTime=[To_Time]&RecorderID={{RecorderID}}","host":["{{BaseURL}}"],"path":["SmartWitness","RESTCommandWebService","ExecuteServerCommand","Events","Filter"],"query":[{"key":"FromTime","value":"[From_Time]"},{"key":"ToTime","value":"[To_Time]"},{"key":"RecorderID","value":"{{RecorderID}}"}]},"description":"Returns device events and related media.\r\n\r\n#### Parameters:\r\n- ***RecorderID:*** Recorder ID.\r\n- ***FromTime:***Start Date/Time in UTC format:  yyyy-MM-ddTHH:mm:ss.fffffff\r\n- ***ToTime:***\tEnd Date/Time in UTC format:  yyyy-MM-ddTHH:mm:ss.fffffff\r\n\r\n#### Response:\r\nJSON Collection of Event Logs with MediaURLs and GPSLogs. Example Below:\r\n\r\n\t[{\r\n\t\t\"TenantID\": \"526e41c2-534a-43d4-b1fa-a59d0115bb49\",\r\n\t\t\"EventLogID\": \"a2359ae3-f7b1-4949-be2e-ecb09dcbe68a\",\r\n\t\t\"AlarmInChannel\": 0,\r\n\t\t\"CreatedBy\": \"admin\",\r\n\t\t\"CreatedDate\": \"2016-04-12T15:33:11.8330000Z\",\r\n\t\t\"DeviceID\": \"bfb728a1-fa3c-4bb3-b06c-a5cd012d032a\",\r\n\t\t\"EventDateTime\": \"2016-04-12T15:33:11.3100000Z\",\r\n\t\t\"EventTypeID\": \"PanicButton\",\r\n\t\t\"IsDeleted\": false,\r\n\t\t\"LastUpdatedBy\": \"admin\",\r\n\t\t\"LastUpdatedDate\": \"2016-04-12T15:33:11.8330000Z\",\r\n\t\t\"MotionChannel\": 0,\r\n\t\t\"NumberOfFrames\": 10,\r\n\t\t\"NVSChannel\": 0,\r\n\t\t\"SignalChannel\": 0,\r\n\t\t\"Timestamp\": \"AAAAAAC8/xU=\",\r\n\t\t\"MediaURLs\": [{\r\n\t\t\t\"Camera\": 0,\r\n\t\t\t\"Altitude\": 0,\r\n\t\t\t\"Heading\": 0,\r\n\t\t\t\"Latitude\": 0,\r\n\t\t\t\"Longitude\": 0,\r\n\t\t\t\"Speed\": 0,\r\n\t\t\t\"URL\": \"\\/SmartWitness\\/RecorderService\\/DataFile\\/c93f949c-41b8-4c9e-95aa-b030b31f6f3f\\/e66a66b4-463f-4524-90d4-a5e6011d58f9\\/9dd80454-ffba-416e-9759-a46108230abf\"\r\n\t\t}, {\r\n\t\t\t\"Camera\": 0,\r\n\t\t\t\"Altitude\": 0,\r\n\t\t\t\"Heading\": 0,\r\n\t\t\t\"Latitude\": 0,\r\n\t\t\t\"Longitude\": 0,\r\n\t\t\t\"Speed\": 0,\r\n\t\t\t\"URL\": \"\\/SmartWitness\\/RecorderService\\/DataFile\\/c93f949c-41b8-4c9e-95aa-b030b31f6f3f\\/e66a66b4-463f-4524-90d4-a5e6011d58f9\\/83fac7bf-509c-4944-8b3f-f31b25147a3e\"}\r\n\t\t\r\n\t],\r\n\t\t\"EventLogDataFiles\": null,\r\n\t\t\"EventSettings\": null,\r\n\t\t\"GPSDataLogs\": null\r\n\t}]"},"response":[],"_postman_id":"14b5ed39-c9a7-0e96-f4a5-34d58929db3a"}],"id":"1c96acfc-dfe0-3b18-3e6a-b9b27fa9192a","_postman_id":"1c96acfc-dfe0-3b18-3e6a-b9b27fa9192a"},{"name":"Snapshots","item":[{"name":"GetSnapshotURL","id":"1571b01d-fc08-1eb6-4022-bbea5679fb20","request":{"method":"GET","header":[{"key":"APIKey","value":"{{APIKey}}"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{BaseURL}}/SmartWitness/RESTCommandWebService/ExecuteServerCommand/Snapshots/GetURLs?RecorderID={{RecorderID}}&CameraChannel=[Camera_Channel]","host":["{{BaseURL}}"],"path":["SmartWitness","RESTCommandWebService","ExecuteServerCommand","Snapshots","GetURLs"],"query":[{"key":"RecorderID","value":"{{RecorderID}}"},{"key":"CameraChannel","value":"[Camera_Channel]"}]},"description":"Returns download URLs for live shapshots/stillframes from an active device.\r\n\r\n#### Parameters:\r\n- ***RecorderID:*** Recorder ID.\r\n- ***CameraChannel:*** Comma-separated list of camera channels, for example:\r\n - 1: Camera 1.\r\n - 2: Camera 2.\r\n - 1,2: Camera 1 and 2.\r\n - 1,2,3,4: Cameras 1 - 4.\r\n\r\n#### Response:\r\nJSON Collection of Media URLs. Example Below:\r\n\r\n    [{\r\n      \"Camera\": 1,\r\n      \"Altitude\": 0,\r\n      \"Heading\": 133,\r\n      \"Latitude\": 39.931045000000005,\r\n      \"Longitude\": -75.147408333333331,\r\n      \"Speed\": 0,\r\n      \"URL\": \"\\/Content\\/d237a617-cb57-487f-b681-271cf06fc35d.1.jpg\"\r\n    }, {\r\n      \"Camera\": 2,\r\n      \"Altitude\": 0,\r\n      \"Heading\": 133,\r\n      \"Latitude\": 39.931045000000005,\r\n      \"Longitude\": -75.147408333333331,\r\n      \"Speed\": 0,\r\n      \"URL\": \"\\/Content\\/a8be35de-d484-463d-9bda-720ddc062321.2.jpg\"\r\n    }]\r\n\r\n> ###### Note\r\nThis command times out after 1 minute.  Call this method in a loop to simulate a live video stream for one or more cameras.\r\n"},"response":[],"_postman_id":"1571b01d-fc08-1eb6-4022-bbea5679fb20"},{"name":"UploadRecordedSnapshot","id":"485def6d-10fa-a3e9-0772-26e844d78f3a","request":{"method":"POST","header":[{"key":"APIKey","value":"{{APIKey}}"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{BaseURL}}/SmartWitness/RESTCommandWebService/ExecuteServerCommand/Snapshots/UploadRecorded?RecorderID={{RecorderID}}&GoToDateTime=[Go_To_Date_Time]&CameraChannel=[Camera_Channel]","host":["{{BaseURL}}"],"path":["SmartWitness","RESTCommandWebService","ExecuteServerCommand","Snapshots","UploadRecorded"],"query":[{"key":"RecorderID","value":"{{RecorderID}}"},{"key":"GoToDateTime","value":"[Go_To_Date_Time]"},{"key":"CameraChannel","value":"[Camera_Channel]"}]},"description":"Upload pre-recorded shapshots/stillframes from an active device at the specified date/time.\r\n\r\n#### Parameters:\r\n\r\n- ***RecorderID:*** Recorder ID.\r\n- ***GoToDateTime:***  Requested Date/Time in UTC. format:  yyyy-MM-ddTHH:mm:ss.fffffff \r\n- ***CameraChannel:*** Comma-separated list of camera channels, for example:\r\n - 1: Camera 1.\r\n - 2: Camera 2.\r\n - 1,2: Camera 1 and 2.\r\n - 1,2,3,4: Cameras 1 - 4.\r\n- *RequestID:* Optional Request ID string (GUID recommended) that is included with the      corresponding callback notification. \r\n\r\n#### Success Response:\r\n\r\n    {\r\n        \"Code\": 202,\r\n        \"Message\": \"Queued\",\r\n        \"MoreInfo\": {\r\n          \"RequestID\": [RequestID]\r\n        },\r\n        \"Exception\": null\r\n    }\r\n\r\n#### Response when there is already a queued command of the same type:\r\n    {\r\n        \"Code\": 409,\r\n        \"Message\": \"Duplicate Command-Original RequestID Provided\"\",\r\n        \"MoreInfo\": {\r\n          \"RequestID\": [Request_ID_Of_The_Already_Queued_Command]\r\n        },\r\n        \"Exception\": null\r\n    }\r\n  \r\n#### Error Response:\r\n    {\r\n      \"Code\": 400,\r\n      \"Message\": [Message],\r\n      \"MoreInfo\": {[MoreInfo]},\r\n      \"Exception\": [ExceptionInfo]\r\n    }"},"response":[],"_postman_id":"485def6d-10fa-a3e9-0772-26e844d78f3a"},{"name":"ManualBackupJPG","id":"faa6251e-6931-a4e5-5b41-edd57b43b577","request":{"method":"POST","header":[{"key":"APIKey","value":"{{APIKey}}"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{BaseURL}}/SmartWitness/RESTCommandWebService/ExecuteServerCommand/Snapshots/ManualBackupJPG?RecorderID={{RecorderID}}&GoToDateTime=[Go_To_Date_Time]&CameraChannel=[Camera_Channel]\n\n","host":["{{BaseURL}}"],"path":["SmartWitness","RESTCommandWebService","ExecuteServerCommand","Snapshots","ManualBackupJPG"],"query":[{"key":"RecorderID","value":"{{RecorderID}}"},{"key":"GoToDateTime","value":"[Go_To_Date_Time]"},{"key":"CameraChannel","value":"[Camera_Channel]\n\n"}]},"description":"Upload pre-recorded shapshots/stillframes from an active device at the specified date/time.  Command returns immediately after request is queued.  Response is via callback ManualBackupJPG event.\r\n\r\n#### Parameters:\r\n\r\n- ***RecorderID:*** Recorder ID.\r\n- ***GoToDateTime:***  Requested Date/Time in UTC. format:  yyyy-MM-ddTHH:mm:ss.fffffff \r\n- ***CameraChannel:*** Comma-separated list of camera channels, for example:\r\n - 1: Camera 1.\r\n - 2: Camera 2.\r\n - 1,2: Camera 1 and 2.\r\n - 1,2,3,4: Cameras 1 - 4.\r\n- *RequestID:* Optional Request ID string (GUID recommended) that is included with the      corresponding callback notification. \r\n\r\n#### Success Response:\r\n\r\n    {\r\n        \"Code\": 202,\r\n        \"Message\": \"Queued\",\r\n        \"MoreInfo\": {\r\n          \"RequestID\": [RequestID]\r\n        },\r\n        \"Exception\": null\r\n    }\r\n  \r\n#### Response when there is already a queued command of the same type:\r\n    {\r\n        \"Code\": 409,\r\n        \"Message\": \"Duplicate Command-Original RequestID Provided\"\",\r\n        \"MoreInfo\": {\r\n          \"RequestID\": [Request_ID_Of_The_Already_Queued_Command]\r\n        },\r\n        \"Exception\": null\r\n    }\r\n\r\n  \r\n#### Error Response:\r\n    {\r\n      \"Code\": 400,\r\n      \"Message\": [Message],\r\n      \"MoreInfo\": {[MoreInfo]},\r\n      \"Exception\": [ExceptionInfo]\r\n    }"},"response":[],"_postman_id":"faa6251e-6931-a4e5-5b41-edd57b43b577"},{"name":"UploadSnapshot","id":"d010a60e-91d3-3a38-8068-129f5580e4e5","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"APIKey","value":"{{APIKey}}"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{BaseURL}}/SmartWitness/RESTCommandWebService/ExecuteServerCommand/Snapshots/Upload?RecorderID={{RecorderID}}&CameraChannel=[Camera_Channel]","host":["{{BaseURL}}"],"path":["SmartWitness","RESTCommandWebService","ExecuteServerCommand","Snapshots","Upload"],"query":[{"key":"RecorderID","value":"{{RecorderID}}"},{"key":"CameraChannel","value":"[Camera_Channel]"}]},"description":"Instructs a device to upload a snapshot/stillframe to the server.\r\n\r\n#### Parameters:\r\n- ***RecorderID:*** Recorder ID.\r\n- ***CameraChannel:*** Comma-separated list of camera channels, for example:\r\n - 1: Camera 1.\r\n - 2: Camera 2.\r\n - 1,2: Camera 1 and 2.\r\n - 1,2,3,4: Cameras 1 - 4.\r\n- *RequestID:* Optional Request ID string (GUID recommended) that is included with the      corresponding callback notification. \r\n\r\n#### Success Response:\r\n\r\n  {\r\n      \"Code\": 202,\r\n      \"Message\": \"Queued\",\r\n      \"MoreInfo\": {\r\n        \"RequestID\": [RequestID]\r\n      },\r\n      \"Exception\": null\r\n  }\r\n\r\n#### Response when there is already a queued command of the same type:\r\n  {\r\n      \"Code\": 409,\r\n      \"Message\": \"Duplicate Command-Original RequestID Provided\"\",\r\n      \"MoreInfo\": {\r\n        \"RequestID\": [Request_ID_Of_The_Already_Queued_Command]\r\n      },\r\n      \"Exception\": null\r\n  }\r\n  \r\n#### Error Response:\r\n  {\r\n    \"Code\": 400,\r\n    \"Message\": [Message],\r\n    \"MoreInfo\": {[MoreInfo]},\r\n    \"Exception\": [ExceptionInfo]\r\n  }"},"response":[],"_postman_id":"d010a60e-91d3-3a38-8068-129f5580e4e5"}],"id":"35c6a311-4a6b-56d3-8ee8-4181be64fe7e","_postman_id":"35c6a311-4a6b-56d3-8ee8-4181be64fe7e"},{"name":"Trips","item":[{"name":"Get","id":"b9fff4ba-2d31-0754-7663-cd8506c5f663","request":{"method":"GET","header":[{"key":"APIKey","value":"{{APIKey}}"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{BaseURL}}/SmartWitness/RESTCommandWebService/ExecuteServerCommand/Trips/Get?RecorderID={{RecorderID}}&FromTime=[From_Time]&ToTime=[To_Time]","host":["{{BaseURL}}"],"path":["SmartWitness","RESTCommandWebService","ExecuteServerCommand","Trips","Get"],"query":[{"key":"RecorderID","value":"{{RecorderID}}"},{"key":"FromTime","value":"[From_Time]"},{"key":"ToTime","value":"[To_Time]"}]},"description":"Returns a list of all the trips in a time interval.\r\n\r\n**Parameters:**\r\n- ***FromTime:*** Start Date/Time in UTC format:  yyyy-MM-ddTHH:mm:ss.fffffff\r\n- ***ToTime:*** End Date/Time in UTC format:  yyyy-MM-ddTHH:mm:ss.fffffff\r\n- \r\n#### Sample Response:\r\n    [\r\n      {\r\n        \"TenantID\": \"1080d978-6727-4a80-8180-a59500d04cda\",\r\n        \"TripID\": \"f21525e5-e626-4c94-8df2-a7490134cafd\",\r\n        \"DeviceID\": \"74d12f8c-2f0e-4eea-bb21-a63d016e308c\",\r\n        \"EndLatitude\": 42.15812,\r\n        \"EndLongitude\": -87.8915,\r\n        \"EndTime\": \"2017-04-01T20:13:28.7700000Z\",\r\n        \"StartLatitude\": 0,\r\n        \"StartLongitude\": 0,\r\n        \"StartReason\": 0,\r\n        \"StartTime\": \"2017-04-01T20:05:54.7700000Z\",\r\n        \"StopReason\": 2,\r\n        \"Timestamp\": \"AAAAAAC9T6o=\",\r\n        \"DataFile\": null,\r\n        \"DataPoints\": null\r\n      },\r\n      {\r\n        \"TenantID\": \"1080d978-6727-4a80-8180-a59500d04cda\",\r\n        \"TripID\": \"8e29cc41-4db4-47b6-8805-a749013732a6\",\r\n        \"DeviceID\": \"74d12f8c-2f0e-4eea-bb21-a63d016e308c\",\r\n        \"EndLatitude\": null,\r\n        \"EndLongitude\": null,\r\n        \"EndTime\": null,\r\n        \"StartLatitude\": 42.15812,\r\n        \"StartLongitude\": -87.8915,\r\n        \"StartReason\": 2,\r\n        \"StartTime\": \"2017-04-01T20:13:29.7700000Z\",\r\n        \"StopReason\": null,\r\n        \"Timestamp\": \"AAAAAAC9T6s=\",\r\n        \"DataFile\": null,\r\n        \"DataPoints\": null\r\n      }\r\n    ]"},"response":[],"_postman_id":"b9fff4ba-2d31-0754-7663-cd8506c5f663"},{"name":"GetPoints","id":"09e06fdd-7a6e-d465-f2f7-6adb1ff302ba","request":{"method":"GET","header":[{"key":"APIKey","value":"{{APIKey}}"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{BaseURL}}/SmartWitness/RESTCommandWebService/ExecuteServerCommand/Trips/GetPoints?TripID=[TripID]&SamplingRate=[SamplingRate]","host":["{{BaseURL}}"],"path":["SmartWitness","RESTCommandWebService","ExecuteServerCommand","Trips","GetPoints"],"query":[{"key":"TripID","value":"[TripID]"},{"key":"SamplingRate","value":"[SamplingRate]"}]},"description":"Returns the data points related to a trip.\r\n\r\n**Parameters:**\r\n\r\n- ***TripID:*** TripID to request data.\r\n- ***SamplingRate (optional)*** One of the next values.\r\n - 12RecordsMinute (Default value): Retrieve 12 data points per minute\r\n - AllRecords: Retrieve all the data points of the trip.\r\n - OneRecordMinute: Retrieve one data point per minute.\r\n\r\n#### Sample Response:\r\n\t\t[\r\n\t\t  {\r\n\t\t    \"ID\": \"85e15052-ccd8-4a41-97c0-a766011bf39d\",\r\n\t\t    \"AlarmIn\": 0,\r\n\t\t    \"AlarmOut\": 0,\r\n\t\t    \"Altitude\": 3,\r\n\t\t    \"CarSignal\": 96,\r\n\t\t    \"DateTime\": \"2017-03-31T20:11:17.0020000Z\",\r\n\t\t    \"GSensorX\": -1184,\r\n\t\t    \"GSensorY\": -225,\r\n\t\t    \"GSensorZ\": 2385,\r\n\t\t    \"GyroX\": 0,\r\n\t\t    \"GyroY\": 0,\r\n\t\t    \"GyroZ\": 0,\r\n\t\t    \"Heading\": 218,\r\n\t\t    \"Latitude\": 47.44151,\r\n\t\t    \"Longitude\": -122.22911,\r\n\t\t    \"PulseSpeed\": 0,\r\n\t\t    \"RPM\": 0,\r\n\t\t    \"Speed\": 0,\r\n\t\t    \"GPSDataValid\": true\r\n\t\t  },\r\n\t\t  {\r\n\t\t    \"ID\": \"45e225db-8c88-45ed-a3c9-a766011bf39d\",\r\n\t\t    \"AlarmIn\": 0,\r\n\t\t    \"AlarmOut\": 0,\r\n\t\t    \"Altitude\": 3,\r\n\t\t    \"CarSignal\": 96,\r\n\t\t    \"DateTime\": \"2017-03-31T20:11:22.0020000Z\",\r\n\t\t    \"GSensorX\": -1131,\r\n\t\t    \"GSensorY\": -221,\r\n\t\t    \"GSensorZ\": 2397,\r\n\t\t    \"GyroX\": 0,\r\n\t\t    \"GyroY\": 0,\r\n\t\t    \"GyroZ\": 0,\r\n\t\t    \"Heading\": 218,\r\n\t\t    \"Latitude\": 47.44151,\r\n\t\t    \"Longitude\": -122.22911,\r\n\t\t    \"PulseSpeed\": 0,\r\n\t\t    \"RPM\": 0,\r\n\t\t    \"Speed\": 0,\r\n\t\t    \"GPSDataValid\": true\r\n\t\t  },\r\n\t\t  {\r\n\t\t    \"ID\": \"53b961a8-e766-482a-a135-a766011bf39d\",\r\n\t\t    \"AlarmIn\": 0,\r\n\t\t    \"AlarmOut\": 0,\r\n\t\t    \"Altitude\": 3,\r\n\t\t    \"CarSignal\": 96,\r\n\t\t    \"DateTime\": \"2017-03-31T20:11:27.0020000Z\",\r\n\t\t    \"GSensorX\": -1123,\r\n\t\t    \"GSensorY\": -195,\r\n\t\t    \"GSensorZ\": 2446,\r\n\t\t    \"GyroX\": 0,\r\n\t\t    \"GyroY\": 0,\r\n\t\t    \"GyroZ\": 0,\r\n\t\t    \"Heading\": 218,\r\n\t\t    \"Latitude\": 47.44143,\r\n\t\t    \"Longitude\": -122.22918,\r\n\t\t    \"PulseSpeed\": 0,\r\n\t\t    \"RPM\": 0,\r\n\t\t    \"Speed\": 0,\r\n\t\t    \"GPSDataValid\": true\r\n\t\t  }\r\n\t\t ]"},"response":[],"_postman_id":"09e06fdd-7a6e-d465-f2f7-6adb1ff302ba"},{"name":"GetPointsByDeviceDateRange","id":"2b323e3b-b05c-104e-8058-e9488704e418","request":{"method":"GET","header":[{"key":"APIKey","value":"{{APIKey}}"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{BaseURL}}/SmartWitness/RESTCommandWebService/ExecuteServerCommand/Trips/GetPointsByDeviceDateRange?RecorderID={{RecorderID}}&FromTime=[From_Time]&ToTime=[To_Time]&SamplingRate=[SamplingRate]","host":["{{BaseURL}}"],"path":["SmartWitness","RESTCommandWebService","ExecuteServerCommand","Trips","GetPointsByDeviceDateRange"],"query":[{"key":"RecorderID","value":"{{RecorderID}}"},{"key":"FromTime","value":"[From_Time]"},{"key":"ToTime","value":"[To_Time]"},{"key":"SamplingRate","value":"[SamplingRate]"}]},"description":"Returns data points for a device and date range.\r\n\r\n**Parameters:**\r\n\r\n- ***RecorderID:*** RecorderID of device.\r\n- ***FromTime:*** Start Date/Time in UTC format:  yyyy-MM-ddTHH:mm:ss.fffffff\r\n- ***ToTime:*** End Date/Time in UTC format:  yyyy-MM-ddTHH:mm:ss.fffffff\r\n- ***SamplingRate (optional)*** One of the next values.\r\n - 12RecordsMinute (Default value): Retrieve 12 data points per minute\r\n - AllRecords: Retrieve all the data points for the desired date range.\r\n - OneRecordMinute: Retrieve one data point per minute.\r\n\r\n#### Sample Response:\r\n    [\r\n      {\r\n        \"ID\": \"85e15052-ccd8-4a41-97c0-a766011bf39d\",\r\n        \"AlarmIn\": 0,\r\n        \"AlarmOut\": 0,\r\n        \"Altitude\": 3,\r\n        \"CarSignal\": 96,\r\n        \"DateTime\": \"2017-03-31T20:11:17.0020000Z\",\r\n        \"GSensorX\": -1184,\r\n        \"GSensorY\": -225,\r\n        \"GSensorZ\": 2385,\r\n        \"GyroX\": 0,\r\n        \"GyroY\": 0,\r\n        \"GyroZ\": 0,\r\n        \"Heading\": 218,\r\n        \"Latitude\": 47.44151,\r\n        \"Longitude\": -122.22911,\r\n        \"PulseSpeed\": 0,\r\n        \"RPM\": 0,\r\n        \"Speed\": 0,\r\n        \"GPSDataValid\": true\r\n      },\r\n      {\r\n        \"ID\": \"45e225db-8c88-45ed-a3c9-a766011bf39d\",\r\n        \"AlarmIn\": 0,\r\n        \"AlarmOut\": 0,\r\n        \"Altitude\": 3,\r\n        \"CarSignal\": 96,\r\n        \"DateTime\": \"2017-03-31T20:11:22.0020000Z\",\r\n        \"GSensorX\": -1131,\r\n        \"GSensorY\": -221,\r\n        \"GSensorZ\": 2397,\r\n        \"GyroX\": 0,\r\n        \"GyroY\": 0,\r\n        \"GyroZ\": 0,\r\n        \"Heading\": 218,\r\n        \"Latitude\": 47.44151,\r\n        \"Longitude\": -122.22911,\r\n        \"PulseSpeed\": 0,\r\n        \"RPM\": 0,\r\n        \"Speed\": 0,\r\n        \"GPSDataValid\": true\r\n      },\r\n      {\r\n        \"ID\": \"53b961a8-e766-482a-a135-a766011bf39d\",\r\n        \"AlarmIn\": 0,\r\n        \"AlarmOut\": 0,\r\n        \"Altitude\": 3,\r\n        \"CarSignal\": 96,\r\n        \"DateTime\": \"2017-03-31T20:11:27.0020000Z\",\r\n        \"GSensorX\": -1123,\r\n        \"GSensorY\": -195,\r\n        \"GSensorZ\": 2446,\r\n        \"GyroX\": 0,\r\n        \"GyroY\": 0,\r\n        \"GyroZ\": 0,\r\n        \"Heading\": 218,\r\n        \"Latitude\": 47.44143,\r\n        \"Longitude\": -122.22918,\r\n        \"PulseSpeed\": 0,\r\n        \"RPM\": 0,\r\n        \"Speed\": 0,\r\n        \"GPSDataValid\": true\r\n      }\r\n     ]"},"response":[],"_postman_id":"2b323e3b-b05c-104e-8058-e9488704e418"}],"id":"f8f09493-9d74-0302-bd10-2f8537c842b2","_postman_id":"f8f09493-9d74-0302-bd10-2f8537c842b2"},{"name":"Videos","item":[{"name":"ManualBackup","id":"e892d73f-96f5-6e01-d974-c0dd321d0c8d","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"APIKey","value":"{{APIKey}}"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{BaseURL}}/SmartWitness/RESTCommandWebService/ExecuteServerCommand/Device/ManualBackup?RecorderID={{RecorderID}}&Storage=[Storage]&FromTime=[From_Time]&ToTime=[To_Time]","host":["{{BaseURL}}"],"path":["SmartWitness","RESTCommandWebService","ExecuteServerCommand","Device","ManualBackup"],"query":[{"key":"RecorderID","value":"{{RecorderID}}"},{"key":"Storage","value":"[Storage]"},{"key":"FromTime","value":"[From_Time]"},{"key":"ToTime","value":"[To_Time]"}]},"description":"Instructs the device to upload a video recording of maximum 2 minutes (KP1S is limited to 20 seconds). If the video is already available in the platform, this command will simply return it from the platform, without asking it again from the device.\r\n\r\nRetrieving videos longer than 20 seconds is currently in beta for the models CP2, CP4, CRX and CP1 (1.4.2 ~)\r\n\r\n\r\n#### Parameters:\r\n- ***RecorderID:*** Recorder ID.\r\n- ***Storage:*** One of the next values.\r\n - Normal: Normal Recording.\r\n - Event Event Recording.\r\n - All: All recordings (Default).\r\n- ***FromTime:*** Start Date/Time in UTC format:  yyyy-MM-ddTHH:mm:ss.fffffff\r\n- ***ToTime:*** End Date/Time in UTC format:  yyyy-MM-ddTHH:mm:ss.fffffff\r\n- *RequestID:* Optional Request ID string (GUID recommended) that is included with the      corresponding callback notification. \r\n\r\n#### Success Response:\r\n\r\n    {\r\n        \"Code\": 202,\r\n        \"Message\": \"Queued\",\r\n        \"MoreInfo\": {\r\n          \"RequestID\": [RequestID]\r\n        },\r\n        \"Exception\": null\r\n    }\r\n  \r\n#### Response when there is already a queued command of the same type:\r\n    {\r\n        \"Code\": 409,\r\n        \"Message\": \"Duplicate Command-Original RequestID Provided\"\",\r\n        \"MoreInfo\": {\r\n          \"RequestID\": [Request_ID_Of_The_Already_Queued_Command]\r\n        },\r\n        \"Exception\": null\r\n    }\r\n\r\n#### [BETA] Response when the requested date is previous to the EarliestAvailableRecording property of the device:\r\n  {\r\n      \"Code\": 404,\r\n      \"Message\": \"There is not video recorded for the requested date\",\r\n      \"MoreInfo\": {},\r\n      \"Exception\": null\r\n  }\r\nThis response is being tested and is available only in test environment.\r\n\r\n#### Error Response:\r\n    {\r\n      \"Code\": 400,\r\n      \"Message\": [Message],\r\n      \"MoreInfo\": {[MoreInfo]},\r\n      \"Exception\": [ExceptionInfo]\r\n    }\r\n"},"response":[],"_postman_id":"e892d73f-96f5-6e01-d974-c0dd321d0c8d"},{"name":"GetLatestVideoURLs","id":"56d96360-bb16-6f53-6c6e-73e588baeae7","request":{"method":"GET","header":[{"key":"APIKey","value":"{{APIKey}}"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{BaseURL}}/SmartWitness/RESTCommandWebService/ExecuteServerCommand/Videos/GetLatestURLs?RecorderID={{RecorderID}}&Storage=[Storage]&Duration=[Duration]","host":["{{BaseURL}}"],"path":["SmartWitness","RESTCommandWebService","ExecuteServerCommand","Videos","GetLatestURLs"],"query":[{"key":"RecorderID","value":"{{RecorderID}}"},{"key":"Storage","value":"[Storage]"},{"key":"Duration","value":"[Duration]"}]},"description":"Returns download URLs for the latest video recordings available on a device.\r\n\r\n#### Parameters:\r\n- ***RecorderID:*** Recorder ID.\r\n- ***Storage:*** One of the following values.\r\n - Normal: Normal Recording (Default).\r\n - Event Event Recording.\r\n - All: All recordings.\r\n- ***Duration:*** The number of seconds of video to retrieve.\r\n- IncludeMDT:  If this parameter is sent, the response will have a link to download the video in format .mdt.\r\n\r\n#### Response:\r\nJSON Collection of Media URLs. Example Below:\r\n\r\n\t[\r\n\t  {\r\n\t    \"Camera\": 1,\r\n\t      \"Altitude\": 0,\r\n\t      \"Heading\": 133,\r\n\t      \"Latitude\": 39.931045000000005,\r\n\t      \"Longitude\": -75.147408333333331,\r\n\t      \"Speed\": 0,\r\n\t      \"URL\": \"Content/d237a617-cb57-487f-b681-271cf06fc35d.1.mp4\",\r\n\t      \"MDTURL\": \"Content/0cffb04c-d6cd-4a9a-a6db-c28773b016bb.0.mdt\"\r\n\t  }, \r\n\t  {\r\n\t      \"Camera\": 2,\r\n\t      \"Altitude\": 0,\r\n\t      \"Heading\": 133,\r\n\t      \"Latitude\": 39.931045000000005,\r\n\t      \"Longitude\": -75.147408333333331,\r\n\t      \"Speed\": 0,\r\n\t      \"URL\": \"/Content/a8be35de-d484-463d-9bda-720ddc062321.2.mp4\",\r\n\t      \"MDTURL\": \"/Content/22c91029-ec64-427b-be5a-662ed3e45df5.0.mdt\"\r\n\t  }\r\n\t]\r\n\r\n> ###### Note\r\nThis command times out after 5 minutes.  Download URLs are returned for all active cameras on a device. Download URLs expire after 20 minutes.\r\n"},"response":[],"_postman_id":"56d96360-bb16-6f53-6c6e-73e588baeae7"}],"id":"ba79e6f4-053b-a60a-2038-226837bb46d1","_postman_id":"ba79e6f4-053b-a60a-2038-226837bb46d1"}]}