{"info":{"_postman_id":"30e68b1e-22bc-4250-85a8-2d7548382874","name":"Matrix Services","description":"<html><head></head><body><p><em>This collection contains requests for interacting with relevant Matrix services by SmartClean.</em></p>\n<h4 id=\"notes\"><strong>Notes:</strong></h4>\n<ol>\n<li>Each folder in this collection refers to a specific service within Matrix.</li>\n<li>Each subfolder inside each service folder groups the requests based on the entity it operates on.</li>\n</ol>\n<h4 id=\"url-format-for-each-request\"><strong>URL format for each request:</strong></h4>\n<p>Every request in this collection has the following URL format:</p>\n<p><a href=\"https://baseUrl/service-id/service-version/actions?op=operation-name\"><em>https://base-url/service-id/service-version/actions?op=operation-name</em></a></p>\n<p>Where the base-url currently points to: <em><a href=\"https://console.smartclean.io/prod/v2\">https://console.smartclean.io/prod/v2</a></em></p>\n<p>Each section of the URL is described below:</p>\n<ol>\n<li><strong>base-url:</strong><ol>\n<li>Constant for all the requests</li>\n<li>Represents a URL in our domain reserved for making HTTPS requests.</li>\n<li>The current value is already set to the latest correct value, found in the \"Variables\" section of this Collection (and must not be changed unless we notify you)</li>\n</ol>\n</li>\n<li><strong>service-id:</strong><ol>\n<li>Constant for all requests inside a specific service folder.</li>\n<li>Represents the name of our service to which the request is redirected.</li>\n<li>The current value is set to the correct value for each service, found in the \"Variables\" section of this Collection (and must not be changed unless we notify you)</li>\n</ol>\n</li>\n<li><strong>service-version:</strong><ol>\n<li>Constant for all requests inside a specific service folder.</li>\n<li>Represents the version of the service specified in <em>service-id</em></li>\n<li>The current value is set to the desired value for each service, found in the \"Variables\" section of this Collection (and must not be changed unless we notify you)</li>\n</ol>\n</li>\n<li><strong>operation-name:</strong><ol>\n<li>Specific to each request within each service.</li>\n<li>Represents a specific request to the service</li>\n<li>The current value is set to the desired value for each request (explicitly included in the URL)</li>\n</ol>\n</li>\n</ol>\n<p>Note: In case any of the constant URL sections, such as base-url, service-id and service-version (which are constant values set by us) need to be changed, we will inform you.</p>\n<h4 id=\"authentication\"><strong>Authentication:</strong></h4>\n<ol>\n<li>Authentication is necessary for all requests, without which the request will fail.</li>\n<li>If any requests contains Unauthorised or TOKEN_INVALID in the response it means the credentials are not specified, or expired.</li>\n<li>You need to paste the credentials given to you in the \"Variables\" section of this collection (to be done only once after the Collection is imported in Postman.</li>\n<li>By default, this collection enforces the \"Basic\" authentication scheme.<ol>\n<li>Learn more about authentication schemes here: <a href=\"https://developer.mozilla.org/en-US/docs/Web/HTTP/Authentication\">https://developer.mozilla.org/en-US/docs/Web/HTTP/Authentication</a></li>\n<li>Please <strong>obtain your credentials</strong> (Username and Password) <strong>from our representative</strong>.</li>\n<li>Then <strong>follow up from the below section:</strong> \"How to add username and password\")</li>\n</ol>\n</li>\n<li>If desired, you may <strong>switch to a more secure authentication</strong> (based on SHA-256 HMAC signing)<ol>\n<li>You will be provided an <strong>Access Key</strong> and <strong>Secret Key</strong> (Instead of Username and Password)</li>\n<li>See the section: \"Switch to HMAC Signing for more secure Authorization\" below.</li>\n</ol>\n</li>\n</ol>\n<h4 id=\"how-to-add-username-and-password\"><strong>How to add username and password:</strong></h4>\n<ol>\n<li>Go to the tab \"Variables\" for this collection<ol>\n<li>Tip: In Postman, click on this Collection in your sidebar, then click on the \"Variables\".</li>\n</ol>\n</li>\n<li>Paste the Username and Password provided to you as the CURRENT VALUE of the variables: <strong>\"<em><strong>sc-username</strong></em>\"</strong> and <strong>\"<em><strong>sc-password</strong></em>\"</strong> respectively.<ol>\n<li><strong>Important:</strong> <strong>Paste these values under the column</strong>: \"<em>CURRENT VALUE\"</em> for the corresponding \"VARIABLE\" name (there is <strong>no need to change the values under the column:</strong> \"<em>INITIAL VALUE\"</em>, as these are just dummy placeholders)</li>\n</ol>\n</li>\n<li>Press CTRL + S or click the save icon on top right to save this key, then you may proceed to make the requests.</li>\n<li>This will allow you to make requests to all the services in this collection.<ol>\n<li>So, there is no need to get and paste a new Username and Password for each request in any of the included services.</li>\n</ol>\n</li>\n</ol>\n<h4 id=\"switch-to-hmac-signing-for-more-secure-authorization\"><strong>Switch to HMAC Signing for more secure Authorization</strong></h4>\n<p>In case you want to switch from the simple (Basic) authentication to the more strict HMAC based authentication, please do the following.</p>\n<ol>\n<li>Request our representative to <strong>receive your HMAC credentials</strong> (i.e. Access Key and Secret Key).</li>\n<li>Go to the <strong>Variables section</strong> in the collection and <strong>Update the</strong> CURRENT VALUE <strong>of the</strong> variable**:** <em>auth-type</em> to <em><strong>hmac</strong></em> (from the default \"basic\")</li>\n<li><strong>Paste the Access Key and Secret Key given to</strong> you as the <strong>CURRENT VALUE of the variables</strong>: \"<em>sc-hmac-access-key</em>\" and \"<em>sc-hmac-secret-key</em>\" respectively.</li>\n</ol>\n<h4 id=\"operation-names\"><strong>Operation names:</strong></h4>\n<p>Each request in each of the services is identified by its operation name which is provided in the query parameters of the request URL as \"op\".</p>\n<h4 id=\"service-versions\"><strong>Service Versions:</strong></h4>\n<p>Each service in this collection also has a version, which are currently the latest stable versions for each service.</p>\n<p>The version to use, comes from the CURRENT VALUE of the Variable named as: \"<em>service-version\" and</em> <em><strong>must not be changed.</strong></em></p>\n<p>For examples:</p>\n<ol>\n<li>For the service: <em>Grids</em>, the version to use comes from the CURRENT VALUE of the Variable: <em>grids-version.</em></li>\n<li>For <em>Device Management</em>: the version to use comes from the CURRENT VALUE of the Variable: <em>devicemanagement-version</em></li>\n</ol>\n<p><strong>In case these versions are changed in future</strong>, we will notify you to update the version in the collection variables to the desired value.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"2593073","collectionId":"30e68b1e-22bc-4250-85a8-2d7548382874","publishedId":"UVsPQ4vL","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2022-03-19T08:37:39.000Z"},"item":[{"name":"Grids","item":[{"name":"Property","item":[{"name":"get details","event":[{"listen":"prerequest","script":{"id":"f702a3d7-be73-4098-a263-91f34f389c26","exec":[""],"type":"text/javascript"}}],"id":"9b97cc7a-480b-4e21-bcf2-863be3c02f24","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":""},"url":"https://console.smartclean.io/prod/v2/scgrids/v1/actions?op=scgrids.readProperty&org=SMARTCLEAN&propid=d2ff1cc0ee104abba3a8ba030c72cd06&pid=scnoop","description":"<p>This request gets relevant details of the Property whose ID is given in the query parameter: \"propid\"</p>\n","urlObject":{"path":["scgrids","v1","actions"],"host":["https://console.smartclean.io/prod/v2"],"query":[{"key":"op","value":"scgrids.readProperty"},{"key":"org","value":"SMARTCLEAN"},{"key":"propid","value":"d2ff1cc0ee104abba3a8ba030c72cd06"},{"key":"pid","value":"scnoop"}],"variable":[]}},"response":[{"id":"ce158dbe-25ce-472a-9d6c-228ec857570f","name":"Demo Property (success)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":""},"url":{"raw":"https://console.smartclean.io/prod/v2/scgrids/v1/actions?op=scgrids.readProperty&org=SMARTCLEAN&propid=d2ff1cc0ee104abba3a8ba030c72cd06&pid=scnoop","host":["https://console.smartclean.io/prod/v2"],"path":["scgrids","v1","actions"],"query":[{"key":"op","value":"scgrids.readProperty"},{"key":"org","value":"SMARTCLEAN"},{"key":"propid","value":"d2ff1cc0ee104abba3a8ba030c72cd06"},{"key":"pid","value":"scnoop"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"441"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Sat, 19 Mar 2022 06:02:32 GMT"},{"key":"x-amzn-RequestId","value":"5349596c-fd15-4724-ac73-88163f3fa127"},{"key":"x-amz-apigw-id","value":"PN6-5GlmSQ0FR_A="},{"key":"X-Amzn-Trace-Id","value":"Root=1-623571f8-201c81c074c52abe47827d6e;Sampled=0"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 c49128c626a54e52d9677041ba76a534.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"SIN52-C2"},{"key":"X-Amz-Cf-Id","value":"aXLfqmKnBbF_BYWscrnmCUojBnLcBYaDt2-pde0ip5AYKSd3IxEYkA=="}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 200,\n    \"message\": \"Success\",\n    \"data\": {\n        \"OrgId\": \"SMARTCLEAN\",\n        \"PropId\": \"06f98e0c4f464b84b9157b1df6adfa66\",\n        \"Name\": \"Demonstration Property\",\n        \"Address\": {\n            \"Street\": \"One Pemimpin, 1 Pemimpin Drive, Singapore, 576151.\",\n            \"City\": \"Singapore\",\n            \"State\": \"Singapore\",\n            \"Country\": \"Singapore\",\n            \"PostalCode\": \"576151\",\n            \"Coordinates\": {\n                \"Latitude\": 1.3522764091923514,\n                \"Longitude\": 103.84233371889565\n            }\n        },\n        \"TypeID\": \"HOSPITALS\",\n        \"Status\": \"Active\",\n        \"TimeZone\": \"Asia/Singapore\"\n    }\n}"},{"id":"447c3585-0af9-4d08-8b34-397791c6cad2","name":"invalid authorization","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":""},"url":{"raw":"https://console.smartclean.io/prod/v2/scgrids/v1/actions?op=scgrids.readProperty&org=SMARTCLEAN&propid=d2ff1cc0ee104abba3a8ba030c72cd06&pid=scnoop","host":["https://console.smartclean.io/prod/v2"],"path":["scgrids","v1","actions"],"query":[{"key":"op","value":"scgrids.readProperty"},{"key":"org","value":"SMARTCLEAN"},{"key":"propid","value":"d2ff1cc0ee104abba3a8ba030c72cd06"},{"key":"pid","value":"scnoop"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"83"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Sat, 19 Mar 2022 06:02:04 GMT"},{"key":"x-amzn-RequestId","value":"04fba620-4c98-40c2-842e-35819005e6c6"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amzn-ErrorType","value":"AccessDeniedException"},{"key":"x-amz-apigw-id","value":"PN66dHUvSQ0FlCQ="},{"key":"X-Cache","value":"Error from cloudfront"},{"key":"Via","value":"1.1 c49128c626a54e52d9677041ba76a534.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"SIN52-C2"},{"key":"X-Amz-Cf-Id","value":"pUzXEwz7tzZ1d6WXbPmb9ruAEmsVhRyYvTpncgHWesmBK1pdyzYPnA=="}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"The credentials provided are incorrect.\",\n    \"code\": \"INVALID_SIGNATURE\"\n}"}],"_postman_id":"9b97cc7a-480b-4e21-bcf2-863be3c02f24"},{"name":"get all Buildings","event":[{"listen":"prerequest","script":{"id":"f702a3d7-be73-4098-a263-91f34f389c26","exec":["const op = 'listBuildingsByProperty';"],"type":"text/javascript"}}],"id":"d84dee32-f7c4-42d7-b6e0-ce4dff004e21","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":""},"url":"https://console.smartclean.io/prod/v2/scgrids/v1/actions?op=scgrids.listBuildingsByProperty&org=SMARTCLEAN&propid=d2ff1cc0ee104abba3a8ba030c72cd06&pid=scnoop","description":"<p>This request gets the list of all Buildings added to the Property whose ID is given in the query parameter: propid</p>\n","urlObject":{"path":["scgrids","v1","actions"],"host":["https://console.smartclean.io/prod/v2"],"query":[{"key":"op","value":"scgrids.listBuildingsByProperty"},{"key":"org","value":"SMARTCLEAN"},{"key":"propid","value":"d2ff1cc0ee104abba3a8ba030c72cd06"},{"key":"pid","value":"scnoop"}],"variable":[]}},"response":[{"id":"c8a4a7b7-e8f9-413f-b3e2-dc2639dbd01c","name":"Demo Property","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":""},"url":{"raw":"https://console.smartclean.io/prod/v2/{{grids-id}}/v1/actions?op=scgrids.listBuildingsByProperty&org=SMARTCLEAN&propid=06f98e0c4f464b84b9157b1df6adfa66&pid=scnoop","host":["https://console.smartclean.io/prod/v2"],"path":["{{grids-id}}","v1","actions"],"query":[{"key":"op","value":"scgrids.listBuildingsByProperty"},{"key":"org","value":"SMARTCLEAN"},{"key":"propid","value":"06f98e0c4f464b84b9157b1df6adfa66"},{"key":"pid","value":"scnoop"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"4047"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Sat, 05 Mar 2022 09:23:51 GMT"},{"key":"x-amzn-RequestId","value":"8968ac10-9006-48a4-b1c9-8709ae999d67"},{"key":"x-amz-apigw-id","value":"OgPWKGEUSQ0Fklg="},{"key":"X-Amzn-Trace-Id","value":"Root=1-62232c27-67ee567046c3e0646cd9a3f4;Sampled=0"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 dd4a48a0e8cf2c09aa1d20a6d7a69f70.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"SIN52-C2"},{"key":"X-Amz-Cf-Id","value":"SU8IFwdxmcpot7yvBLEC_O3fJRBAgDSyvo5l6yQXqLWoyg9Lqa0ONQ=="}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 200,\n    \"message\": \"Success\",\n    \"data\": [\n        {\n            \"OrgId\": \"SMARTCLEAN\",\n            \"PropId\": \"06f98e0c4f464b84b9157b1df6adfa66\",\n            \"PID\": \"181018be1bd74d349e04bbd62ff2e6a4\",\n            \"Config\": {\n                \"Email\": {\n                    \"Default\": \"vidyasagar@smartclean.io\"\n                }\n            },\n            \"OperatingHours\": {\n                \"0\": [\n                    {\n                        \"End\": \"1700\",\n                        \"Start\": \"0020\"\n                    }\n                ],\n                \"1\": [\n                    {\n                        \"End\": \"1700\",\n                        \"Start\": \"0900\"\n                    }\n                ],\n                \"2\": [\n                    {\n                        \"End\": \"1700\",\n                        \"Start\": \"0900\"\n                    }\n                ],\n                \"3\": [\n                    {\n                        \"End\": \"1700\",\n                        \"Start\": \"0900\"\n                    }\n                ],\n                \"4\": [\n                    {\n                        \"End\": \"1700\",\n                        \"Start\": \"0900\"\n                    }\n                ],\n                \"5\": [\n                    {\n                        \"End\": \"1700\",\n                        \"Start\": \"0900\"\n                    }\n                ],\n                \"6\": [\n                    {\n                        \"End\": \"1700\",\n                        \"Start\": \"0900\"\n                    }\n                ]\n            },\n            \"Name\": \"Systems Limited\",\n            \"IsPropertyAddress\": true,\n            \"LevelsCount\": 1,\n            \"Status\": \"draft\",\n            \"IsBeaconEnabled\": false,\n            \"CreatedBy\": \"sc_vidyasagar\",\n            \"CreatedOn\": 1639982734,\n            \"UpdatedBy\": \"sc_vidyasagar\",\n            \"UpdatedOn\": 1639982734\n        },\n        {\n            \"OrgId\": \"SMARTCLEAN\",\n            \"PropId\": \"06f98e0c4f464b84b9157b1df6adfa66\",\n            \"PID\": \"298393150dbe415baa0793aaaa87cde1\",\n            \"Config\": {\n                \"Email\": {\n                    \"Default\": \"aravind0409@gmail.com\"\n                }\n            },\n            \"OperatingHours\": {\n                \"0\": [\n                    {\n                        \"End\": \"2200\",\n                        \"Start\": \"0000\"\n                    }\n                ],\n                \"1\": [\n                    {\n                        \"End\": \"2200\",\n                        \"Start\": \"0000\"\n                    }\n                ],\n                \"2\": [\n                    {\n                        \"End\": \"2200\",\n                        \"Start\": \"0000\"\n                    }\n                ],\n                \"3\": [\n                    {\n                        \"End\": \"2200\",\n                        \"Start\": \"0000\"\n                    }\n                ],\n                \"4\": [\n                    {\n                        \"End\": \"2200\",\n                        \"Start\": \"0000\"\n                    }\n                ],\n                \"5\": [\n                    {\n                        \"End\": \"2200\",\n                        \"Start\": \"0000\"\n                    }\n                ],\n                \"6\": [\n                    {\n                        \"End\": \"2200\",\n                        \"Start\": \"0000\"\n                    }\n                ]\n            },\n            \"Name\": \"Demo Office\",\n            \"IsPropertyAddress\": true,\n            \"LevelsCount\": 9,\n            \"Status\": \"draft\",\n            \"IsBeaconEnabled\": false,\n            \"CreatedBy\": \"aravind\",\n            \"CreatedOn\": 1645069643,\n            \"UpdatedBy\": \"aravind\",\n            \"UpdatedOn\": 1645069643\n        },\n        {\n            \"OrgId\": \"SMARTCLEAN\",\n            \"PropId\": \"06f98e0c4f464b84b9157b1df6adfa66\",\n            \"PID\": \"5158dd8902384a91b040047437b921cd\",\n            \"Config\": {\n                \"Email\": {\n                    \"Default\": \"nikhil@smartclean.sg\"\n                }\n            },\n            \"OperatingHours\": {\n                \"0\": [\n                    {\n                        \"End\": \"2359\",\n                        \"Start\": \"0000\"\n                    }\n                ],\n                \"1\": [\n                    {\n                        \"End\": \"2359\",\n                        \"Start\": \"0000\"\n                    }\n                ],\n                \"2\": [\n                    {\n                        \"End\": \"2359\",\n                        \"Start\": \"0000\"\n                    }\n                ],\n                \"3\": [\n                    {\n                        \"End\": \"2359\",\n                        \"Start\": \"0000\"\n                    }\n                ],\n                \"4\": [\n                    {\n                        \"End\": \"2359\",\n                        \"Start\": \"0000\"\n                    }\n                ],\n                \"5\": [\n                    {\n                        \"End\": \"2359\",\n                        \"Start\": \"0000\"\n                    }\n                ],\n                \"6\": [\n                    {\n                        \"End\": \"2359\",\n                        \"Start\": \"0000\"\n                    }\n                ]\n            },\n            \"Name\": \"SmartClean R&D\",\n            \"IsPropertyAddress\": true,\n            \"LevelsCount\": 5,\n            \"Status\": \"draft\",\n            \"IsBeaconEnabled\": false,\n            \"CreatedBy\": \"smartclean\",\n            \"CreatedOn\": 1635508705,\n            \"UpdatedBy\": \"smartclean\",\n            \"UpdatedOn\": 1635508705\n        },\n        {\n            \"OrgId\": \"SMARTCLEAN\",\n            \"PropId\": \"06f98e0c4f464b84b9157b1df6adfa66\",\n            \"PID\": \"71e3671b554a427e96b128c361ec4a4e\",\n            \"Config\": {\n                \"Email\": {\n                    \"Default\": \"avy@smartclean.io\"\n                }\n            },\n            \"OperatingHours\": {\n                \"0\": [\n                    {\n                        \"End\": \"1800\",\n                        \"Start\": \"0900\"\n                    }\n                ],\n                \"1\": [\n                    {\n                        \"End\": \"1800\",\n                        \"Start\": \"0900\"\n                    }\n                ],\n                \"2\": [\n                    {\n                        \"End\": \"1800\",\n                        \"Start\": \"0900\"\n                    }\n                ],\n                \"3\": [\n                    {\n                        \"End\": \"1800\",\n                        \"Start\": \"0900\"\n                    }\n                ],\n                \"4\": [\n                    {\n                        \"End\": \"1800\",\n                        \"Start\": \"0900\"\n                    }\n                ],\n                \"5\": [\n                    {\n                        \"End\": \"1800\",\n                        \"Start\": \"0900\"\n                    }\n                ],\n                \"6\": [\n                    {\n                        \"End\": \"1800\",\n                        \"Start\": \"0900\"\n                    }\n                ]\n            },\n            \"Name\": \"SmartClean Office\",\n            \"IsPropertyAddress\": true,\n            \"LevelsCount\": 10,\n            \"Status\": \"draft\",\n            \"IsBeaconEnabled\": true,\n            \"CreatedBy\": \"avy\",\n            \"CreatedOn\": 1637575599,\n            \"UpdatedBy\": \"avy\",\n            \"UpdatedOn\": 1637575599\n        },\n        {\n            \"OrgId\": \"SMARTCLEAN\",\n            \"PropId\": \"06f98e0c4f464b84b9157b1df6adfa66\",\n            \"PID\": \"c33642b656b942eab5702f8c3dd655ff\",\n            \"Config\": {\n                \"Email\": {\n                    \"Default\": \"abhishek@smartclean.sg\"\n                }\n            },\n            \"OperatingHours\": {\n                \"0\": [\n                    {\n                        \"End\": \"0000\",\n                        \"Start\": \"0000\"\n                    }\n                ],\n                \"1\": [\n                    {\n                        \"End\": \"0000\",\n                        \"Start\": \"0000\"\n                    }\n                ],\n                \"2\": [\n                    {\n                        \"End\": \"0000\",\n                        \"Start\": \"0000\"\n                    }\n                ],\n                \"3\": [\n                    {\n                        \"End\": \"0000\",\n                        \"Start\": \"0000\"\n                    }\n                ],\n                \"4\": [\n                    {\n                        \"End\": \"0000\",\n                        \"Start\": \"0000\"\n                    }\n                ],\n                \"5\": [\n                    {\n                        \"End\": \"0000\",\n                        \"Start\": \"0000\"\n                    }\n                ],\n                \"6\": [\n                    {\n                        \"End\": \"0000\",\n                        \"Start\": \"0000\"\n                    }\n                ]\n            },\n            \"Name\": \"Non Property Address Building\",\n            \"IsPropertyAddress\": false,\n            \"Address\": {\n                \"Street\": \"Medical Drive\",\n                \"City\": \"Singapore\",\n                \"State\": \"28\",\n                \"Country\": \"Singapore\",\n                \"PostalCode\": \"117456\",\n                \"Coordinates\": {\n                    \"Latitude\": 1.2945107,\n                    \"Longitude\": 103.7806555\n                }\n            },\n            \"LevelsCount\": 1,\n            \"Status\": \"draft\",\n            \"IsBeaconEnabled\": false,\n            \"CreatedBy\": \"smartclean\",\n            \"CreatedOn\": 1642578831,\n            \"UpdatedBy\": \"smartclean\",\n            \"UpdatedOn\": 1642578831\n        },\n        {\n            \"OrgId\": \"SMARTCLEAN\",\n            \"PropId\": \"06f98e0c4f464b84b9157b1df6adfa66\",\n            \"PID\": \"ea73709880754a1e95c0f44edd469603\",\n            \"Config\": {\n                \"Email\": {\n                    \"Default\": \"sreenivas@smartclean.sg\"\n                }\n            },\n            \"OperatingHours\": {\n                \"0\": [\n                    {\n                        \"End\": \"0000\",\n                        \"Start\": \"0000\"\n                    }\n                ],\n                \"1\": [\n                    {\n                        \"End\": \"0000\",\n                        \"Start\": \"0000\"\n                    }\n                ],\n                \"2\": [\n                    {\n                        \"End\": \"0000\",\n                        \"Start\": \"0000\"\n                    }\n                ],\n                \"3\": [\n                    {\n                        \"End\": \"0000\",\n                        \"Start\": \"0000\"\n                    }\n                ],\n                \"4\": [\n                    {\n                        \"End\": \"0000\",\n                        \"Start\": \"0000\"\n                    }\n                ],\n                \"5\": [\n                    {\n                        \"End\": \"0000\",\n                        \"Start\": \"0000\"\n                    }\n                ],\n                \"6\": [\n                    {\n                        \"End\": \"0000\",\n                        \"Start\": \"0000\"\n                    }\n                ]\n            },\n            \"Name\": \"Warehouse Setup\",\n            \"IsPropertyAddress\": true,\n            \"LevelsCount\": 1,\n            \"Status\": \"draft\",\n            \"IsBeaconEnabled\": false,\n            \"CreatedBy\": \"sc_sreenivas\",\n            \"CreatedOn\": 1644932220,\n            \"UpdatedBy\": \"sc_sreenivas\",\n            \"UpdatedOn\": 1644932220\n        }\n    ]\n}"}],"_postman_id":"d84dee32-f7c4-42d7-b6e0-ce4dff004e21"}],"id":"0955bd46-00ca-4c73-a7c3-5cadc0aee73c","_postman_id":"0955bd46-00ca-4c73-a7c3-5cadc0aee73c","description":""},{"name":"Building","item":[{"name":"get details","event":[{"listen":"prerequest","script":{"id":"f702a3d7-be73-4098-a263-91f34f389c26","exec":["const op = 'readBuilding';"],"type":"text/javascript"}}],"id":"38fdfb21-59fc-4e24-9418-3c02109b5a01","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":""},"url":"https://console.smartclean.io/prod/v2/scgrids/v1/actions?op=scgrids.readBuilding&org=SMARTCLEAN&propid=d2ff1cc0ee104abba3a8ba030c72cd06&pid=45ea1d38775046dbbdc955362b8834b1","description":"<p>This request gets relevant details of the Building whose ID is given in the query parameter: \"pid\"</p>\n<p>Note: To identify which Property this Building belongs to,<br />please give ID of the desired Property in the query parameter: \"propid\"</p>\n","urlObject":{"path":["scgrids","v1","actions"],"host":["https://console.smartclean.io/prod/v2"],"query":[{"key":"op","value":"scgrids.readBuilding"},{"key":"org","value":"SMARTCLEAN"},{"key":"propid","value":"d2ff1cc0ee104abba3a8ba030c72cd06"},{"key":"pid","value":"45ea1d38775046dbbdc955362b8834b1"}],"variable":[]}},"response":[{"id":"c046ab65-c8c6-4547-85c1-d6ef3e652217","name":"SmartClean Office @ DemoProperty","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":""},"url":{"raw":"https://console.smartclean.io/prod/v2/scgrids/v1/actions?op=scgrids.readBuilding&org=SMARTCLEAN&propid=06f98e0c4f464b84b9157b1df6adfa66&pid=71e3671b554a427e96b128c361ec4a4e","host":["https://console.smartclean.io/prod/v2"],"path":["scgrids","v1","actions"],"query":[{"key":"op","value":"scgrids.readBuilding"},{"key":"org","value":"SMARTCLEAN"},{"key":"propid","value":"06f98e0c4f464b84b9157b1df6adfa66"},{"key":"pid","value":"71e3671b554a427e96b128c361ec4a4e"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"896"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Mon, 07 Mar 2022 01:34:28 GMT"},{"key":"x-amzn-RequestId","value":"e083f1e2-5357-4fa6-80f0-676cbe7b6541"},{"key":"x-amz-apigw-id","value":"OlwdvEgQSQ0Fnwg="},{"key":"X-Amzn-Trace-Id","value":"Root=1-62256124-640519840ca8e996476c7fb4;Sampled=0"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 32b95ef5feec0715f987a398c50c07d0.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"SIN2-P1"},{"key":"X-Amz-Cf-Id","value":"KJ-IFn4A_UvX5prdvcm990N9Z-rJnwM6qdOMygkTlfad85kizLdZPw=="}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n    \"status\": 200,\n    \"message\": \"Success\",\n    \"data\": {\n        \"OrgId\": \"SMARTCLEAN\",\n        \"PropId\": \"06f98e0c4f464b84b9157b1df6adfa66\",\n        \"PID\": \"71e3671b554a427e96b128c361ec4a4e\",\n        \"Config\": {\n            \"Email\": {\n                \"Default\": \"avy@smartclean.io\"\n            }\n        },\n        \"OperatingHours\": {\n            \"0\": [\n                {\n                    \"End\": \"1800\",\n                    \"Start\": \"0900\"\n                }\n            ],\n            \"1\": [\n                {\n                    \"End\": \"1800\",\n                    \"Start\": \"0900\"\n                }\n            ],\n            \"2\": [\n                {\n                    \"End\": \"1800\",\n                    \"Start\": \"0900\"\n                }\n            ],\n            \"3\": [\n                {\n                    \"End\": \"1800\",\n                    \"Start\": \"0900\"\n                }\n            ],\n            \"4\": [\n                {\n                    \"End\": \"1800\",\n                    \"Start\": \"0900\"\n                }\n            ],\n            \"5\": [\n                {\n                    \"End\": \"1800\",\n                    \"Start\": \"0900\"\n                }\n            ],\n            \"6\": [\n                {\n                    \"End\": \"1800\",\n                    \"Start\": \"0900\"\n                }\n            ]\n        },\n        \"Name\": \"SmartClean Office\",\n        \"IsPropertyAddress\": true,\n        \"Address\": {\n            \"Street\": \"One Pemimpin, 1 Pemimpin Drive, Singapore, 576151.\",\n            \"City\": \"Singapore\",\n            \"State\": \"Singapore\",\n            \"Country\": \"Singapore\",\n            \"PostalCode\": \"576151\",\n            \"Coordinates\": {\n                \"Latitude\": 1.3522764091923514,\n                \"Longitude\": 103.84233371889565\n            }\n        },\n        \"LevelsCount\": 10,\n        \"Status\": \"draft\",\n        \"IsBeaconEnabled\": true,\n        \"CreatedBy\": \"avy\",\n        \"CreatedOn\": 1637575599,\n        \"UpdatedBy\": \"avy\",\n        \"UpdatedOn\": 1637575599\n    }\n}"}],"_postman_id":"38fdfb21-59fc-4e24-9418-3c02109b5a01"},{"name":"get all Levels","event":[{"listen":"prerequest","script":{"id":"f702a3d7-be73-4098-a263-91f34f389c26","exec":["const op = 'listLevelsByBuilding';"],"type":"text/javascript"}}],"id":"173db1cd-561f-4e4d-92c4-138ff75b3bba","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":""},"url":"https://console.smartclean.io/prod/v2/scgrids/v1/actions?op=scgrids.listLevelsByBuilding&org=SMARTCLEAN&propid=d2ff1cc0ee104abba3a8ba030c72cd06&pid=45ea1d38775046dbbdc955362b8834b1","description":"<p>This request gets list of all Levels added to the Building whose ID is given in the query parameter: \"pid\"</p>\n<p>Note: To identify which Property this Building belongs to, please give ID of the desired Property in the query parameter: \"propid\"</p>\n","urlObject":{"path":["scgrids","v1","actions"],"host":["https://console.smartclean.io/prod/v2"],"query":[{"key":"op","value":"scgrids.listLevelsByBuilding"},{"key":"org","value":"SMARTCLEAN"},{"key":"propid","value":"d2ff1cc0ee104abba3a8ba030c72cd06"},{"key":"pid","value":"45ea1d38775046dbbdc955362b8834b1"}],"variable":[]}},"response":[{"id":"0da1232b-b777-41b5-8e72-c7caefbcd0b4","name":"SmartClean Office @ DemoProperty","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":""},"url":{"raw":"https://console.smartclean.io/prod/v2/scgrids/v1/actions?op=scgrids.listLevelsByBuilding&org=SMARTCLEAN&propid=06f98e0c4f464b84b9157b1df6adfa66&pid=71e3671b554a427e96b128c361ec4a4e","host":["https://console.smartclean.io/prod/v2"],"path":["scgrids","v1","actions"],"query":[{"key":"op","value":"scgrids.listLevelsByBuilding"},{"key":"org","value":"SMARTCLEAN"},{"key":"propid","value":"06f98e0c4f464b84b9157b1df6adfa66"},{"key":"pid","value":"71e3671b554a427e96b128c361ec4a4e"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"1341"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Mon, 07 Mar 2022 01:34:54 GMT"},{"key":"x-amzn-RequestId","value":"9b46fdab-014c-4ef6-959c-ebc226186605"},{"key":"x-amz-apigw-id","value":"OlwhzEMJSQ0FRJg="},{"key":"X-Amzn-Trace-Id","value":"Root=1-6225613e-6ac93e3a06bc0c0f05c35ea4;Sampled=0"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 32b95ef5feec0715f987a398c50c07d0.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"SIN2-P1"},{"key":"X-Amz-Cf-Id","value":"LCXZFxdpxCJ9ghFpwS5S5m6wCqoM8hTqiQB2M1CCIGeLdrR8uJKvIg=="}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n    \"status\": 200,\n    \"message\": \"Success\",\n    \"data\": [\n        {\n            \"Name\": \"Level 5\",\n            \"Level\": \"L5\",\n            \"LID\": \"132b38cdaed2427d9d17da27a59395bf\",\n            \"FloorPlanExists\": false\n        },\n        {\n            \"Name\": \"Level 4\",\n            \"Level\": \"L4\",\n            \"LID\": \"2fc59b7b00944224ae703394f7efdd81\",\n            \"FloorPlanExists\": false\n        },\n        {\n            \"Name\": \"Level 2\",\n            \"Level\": \"L2\",\n            \"LID\": \"4b9d89361d404a639ea0fac225c22759\",\n            \"FloorPlanExists\": false\n        },\n        {\n            \"Name\": \"Level 6\",\n            \"Level\": \"L6\",\n            \"LID\": \"8829037b5ef54947b7d27d0ae422845e\",\n            \"FloorPlanExists\": false\n        },\n        {\n            \"Name\": \"Level 7\",\n            \"Level\": \"L7\",\n            \"LID\": \"aab97879f20840fbbedbf29e9c520085\",\n            \"FloorPlanExists\": false\n        },\n        {\n            \"Name\": \"Basement 1\",\n            \"Level\": \"B1\",\n            \"LID\": \"b5028c765d254d1ba94d8e9ce074d9f8\",\n            \"FloorPlanExists\": false\n        },\n        {\n            \"Name\": \"Level 9\",\n            \"Level\": \"L9\",\n            \"LID\": \"b9f35944845e4b39844ec734c4c9725c\",\n            \"FloorPlan\": \"https://smartclean-projects.s3-ap-southeast-1.amazonaws.com/06f98e0c4f464b84b9157b1df6adfa66/71e3671b554a427e96b128c361ec4a4e/floorplans/b9f35944845e4b39844ec734c4c9725c/floorplan-b9f35944845e4b39844ec734c4c9725c\",\n            \"FloorPlanExists\": true\n        },\n        {\n            \"Name\": \"Level 3\",\n            \"Level\": \"L3\",\n            \"LID\": \"e043a5a9b5b4494a84b04d3c8f60a350\",\n            \"FloorPlanExists\": false\n        },\n        {\n            \"Name\": \"Level 17\",\n            \"Level\": \"L17\",\n            \"LID\": \"e19825b306b44ea18885fbe8c1717e03\",\n            \"FloorPlanExists\": false\n        },\n        {\n            \"Name\": \"Level 8\",\n            \"Level\": \"L8\",\n            \"LID\": \"e245462000fa41c38f3813369e8002dc\",\n            \"FloorPlanExists\": false\n        },\n        {\n            \"Name\": \"Level 1\",\n            \"Level\": \"L1\",\n            \"LID\": \"fc4cf1b6de72430196859b89db2ff308\",\n            \"FloorPlanExists\": false\n        }\n    ]\n}"}],"_postman_id":"173db1cd-561f-4e4d-92c4-138ff75b3bba"},{"name":"get Zones map","event":[{"listen":"prerequest","script":{"id":"f702a3d7-be73-4098-a263-91f34f389c26","exec":["const op = 'buildingZoneMap';"],"type":"text/javascript"}}],"id":"8e3459df-6c35-40c3-9420-2d145aa73df5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":""},"url":"https://console.smartclean.io/prod/v2/scgrids/v1/actions?op=scgrids.buildingZoneMap&org=SMARTCLEAN&propid=d2ff1cc0ee104abba3a8ba030c72cd06&pid=45ea1d38775046dbbdc955362b8834b1","description":"<p>This request gets the mapping of all Zones (across various Levels) added to the Building whose ID is given in the query parameter: \"pid\"</p>\n<p>Note: To identify which Property this Building belongs to, please give ID of the desired Property in the query parameter: \"propid\"</p>\n","urlObject":{"path":["scgrids","v1","actions"],"host":["https://console.smartclean.io/prod/v2"],"query":[{"key":"op","value":"scgrids.buildingZoneMap"},{"key":"org","value":"SMARTCLEAN"},{"key":"propid","value":"d2ff1cc0ee104abba3a8ba030c72cd06"},{"key":"pid","value":"45ea1d38775046dbbdc955362b8834b1"}],"variable":[]}},"response":[{"id":"94b0adfb-aa23-4e23-a8d1-551167c6c909","name":"SmartClean Office","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":""},"url":{"raw":"https://console.smartclean.io/prod/v2/scgrids/v1/actions?op=scgrids.buildingZoneMap&org=SMARTCLEAN&propid=06f98e0c4f464b84b9157b1df6adfa66&pid=71e3671b554a427e96b128c361ec4a4e","host":["https://console.smartclean.io/prod/v2"],"path":["scgrids","v1","actions"],"query":[{"key":"op","value":"scgrids.buildingZoneMap"},{"key":"org","value":"SMARTCLEAN"},{"key":"propid","value":"06f98e0c4f464b84b9157b1df6adfa66"},{"key":"pid","value":"71e3671b554a427e96b128c361ec4a4e"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"2431"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Mon, 07 Mar 2022 01:35:40 GMT"},{"key":"x-amzn-RequestId","value":"b232c455-40da-4db2-864c-31930c05ef56"},{"key":"x-amz-apigw-id","value":"Olwo9EA9yQ0FQkQ="},{"key":"X-Amzn-Trace-Id","value":"Root=1-6225616c-648140be37ea7d521f03c7fb;Sampled=0"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 32b95ef5feec0715f987a398c50c07d0.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"SIN2-P1"},{"key":"X-Amz-Cf-Id","value":"IG4pCISIvjLLRqcw8lnbA45OIUxGZydOXWtfQafa8vkiSUm0G8Pwmw=="}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 200,\n    \"message\": \"Success\",\n    \"data\": [\n        {\n            \"PID\": \"71e3671b554a427e96b128c361ec4a4e\",\n            \"LID\": \"b9f35944845e4b39844ec734c4c9725c\",\n            \"InsID\": \"031a6296721a44c6a7a29a531598d6ed\",\n            \"Name\": \"Work Area\",\n            \"ZoneCategoryID\": \"MEETING_ROOMS\"\n        },\n        {\n            \"PID\": \"71e3671b554a427e96b128c361ec4a4e\",\n            \"LID\": \"b9f35944845e4b39844ec734c4c9725c\",\n            \"InsID\": \"263f36d0a1ce4200af7323af427385a2\",\n            \"Name\": \"CEO Room \",\n            \"ZoneCategoryID\": \"MEETING_ROOMS\"\n        },\n        {\n            \"PID\": \"71e3671b554a427e96b128c361ec4a4e\",\n            \"LID\": \"fc4cf1b6de72430196859b89db2ff308\",\n            \"InsID\": \"3f3db747845e412b99632a6b55846051\",\n            \"Name\": \"Male Washroom B\",\n            \"ZoneCategoryID\": \"RESTROOM\"\n        },\n        {\n            \"PID\": \"71e3671b554a427e96b128c361ec4a4e\",\n            \"LID\": \"b9f35944845e4b39844ec734c4c9725c\",\n            \"InsID\": \"49f9632ca11146a7b02910028d10132b\",\n            \"Name\": \"Restroom\",\n            \"ZoneCategoryID\": \"RESTROOM\"\n        },\n        {\n            \"PID\": \"71e3671b554a427e96b128c361ec4a4e\",\n            \"LID\": \"fc4cf1b6de72430196859b89db2ff308\",\n            \"InsID\": \"4ae3c01ddabd403b9e1f50782ed72949\",\n            \"Name\": \"Fountain Visitors & Waiting Area\",\n            \"ZoneCategoryID\": \"LOBBY\"\n        },\n        {\n            \"PID\": \"71e3671b554a427e96b128c361ec4a4e\",\n            \"LID\": \"fc4cf1b6de72430196859b89db2ff308\",\n            \"InsID\": \"4ed565d0746645b2acf8b12205808721\",\n            \"Name\": \"Recycling Bins\",\n            \"ZoneCategoryID\": \"LOBBY\"\n        },\n        {\n            \"PID\": \"71e3671b554a427e96b128c361ec4a4e\",\n            \"LID\": \"b9f35944845e4b39844ec734c4c9725c\",\n            \"InsID\": \"5ba7d7b1321d46a48b7cc027e96f2a61\",\n            \"Name\": \"Washroom \",\n            \"ZoneCategoryID\": \"RESTROOM\"\n        },\n        {\n            \"PID\": \"71e3671b554a427e96b128c361ec4a4e\",\n            \"LID\": \"b9f35944845e4b39844ec734c4c9725c\",\n            \"InsID\": \"6bdf41232c9d4db68f9edf8b2891c44e\",\n            \"Name\": \"Cleaning Drones Testing Ground (Rooftop)\",\n            \"ZoneCategoryID\": \"ROOFTOP\"\n        },\n        {\n            \"PID\": \"71e3671b554a427e96b128c361ec4a4e\",\n            \"LID\": \"e245462000fa41c38f3813369e8002dc\",\n            \"InsID\": \"7cafdf031bfa45998906c5c8110dd247\",\n            \"Name\": \"Autonomous Solar Carpark\",\n            \"ZoneCategoryID\": \"CARPARKS\"\n        },\n        {\n            \"PID\": \"71e3671b554a427e96b128c361ec4a4e\",\n            \"LID\": \"fc4cf1b6de72430196859b89db2ff308\",\n            \"InsID\": \"d3e782303578473290b665ae8cc096de\",\n            \"Name\": \"Lobby Female Restroom\",\n            \"ZoneCategoryID\": \"RESTROOM\"\n        },\n        {\n            \"PID\": \"71e3671b554a427e96b128c361ec4a4e\",\n            \"LID\": \"b9f35944845e4b39844ec734c4c9725c\",\n            \"InsID\": \"ead815f7472048478f9cba158ac121ab\",\n            \"Name\": \"Lounge Area\",\n            \"ZoneCategoryID\": \"MEETING_ROOMS\"\n        },\n        {\n            \"PID\": \"71e3671b554a427e96b128c361ec4a4e\",\n            \"LID\": \"fc4cf1b6de72430196859b89db2ff308\",\n            \"InsID\": \"f81b70ae9a314c76a105289fd5db176e\",\n            \"Name\": \"Lobby Male Restroom\",\n            \"ZoneCategoryID\": \"RESTROOM\"\n        },\n        {\n            \"PID\": \"71e3671b554a427e96b128c361ec4a4e\",\n            \"LID\": \"b9f35944845e4b39844ec734c4c9725c\",\n            \"InsID\": \"fc80559145524753b51b08ac711e0e17\",\n            \"Name\": \"Meeting Room 1\",\n            \"ZoneCategoryID\": \"MEETING_ROOMS\"\n        }\n    ]\n}"}],"_postman_id":"8e3459df-6c35-40c3-9420-2d145aa73df5"}],"id":"da834cda-65ac-456a-9415-1dc6cc9a5e9e","_postman_id":"da834cda-65ac-456a-9415-1dc6cc9a5e9e","description":""},{"name":"Zone","item":[{"name":"get details","event":[{"listen":"prerequest","script":{"id":"f702a3d7-be73-4098-a263-91f34f389c26","exec":["const op = 'readZone';"],"type":"text/javascript"}}],"id":"f1479c52-f2b6-4cab-b511-ad7e60056be9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"InsID\": \"<Enter Zone ID here>\"\n}","options":{"raw":{"language":"json"}}},"url":"https://console.smartclean.io/prod/v2/scgrids/v1/actions?op=scgrids.readZone&org=SMARTCLEAN&propid=d2ff1cc0ee104abba3a8ba030c72cd06&pid=45ea1d38775046dbbdc955362b8834b1","description":"<p>This request gets relevant details of the Zone whose ID is given in the body attribute: \"InsID\"</p>\n<p>Note: To identify the Property and Building for this Zone,<br />please give ID of the desired Property and Building in the query parameters: \"propid\" and \"pid\" respectively.</p>\n","urlObject":{"path":["scgrids","v1","actions"],"host":["https://console.smartclean.io/prod/v2"],"query":[{"key":"op","value":"scgrids.readZone"},{"key":"org","value":"SMARTCLEAN"},{"key":"propid","value":"d2ff1cc0ee104abba3a8ba030c72cd06"},{"key":"pid","value":"45ea1d38775046dbbdc955362b8834b1"}],"variable":[]}},"response":[{"id":"1d306ee8-af05-450d-894c-6b8973bf36c8","name":"Lounge area @ SmartClean Office","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"InsID\": \"ead815f7472048478f9cba158ac121ab\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://console.smartclean.io/prod/v2/scgrids/v1/actions?op=scgrids.readZone&org=SMARTCLEAN&propid=06f98e0c4f464b84b9157b1df6adfa66&pid=71e3671b554a427e96b128c361ec4a4e","host":["https://console.smartclean.io/prod/v2"],"path":["scgrids","v1","actions"],"query":[{"key":"op","value":"scgrids.readZone"},{"key":"org","value":"SMARTCLEAN"},{"key":"propid","value":"06f98e0c4f464b84b9157b1df6adfa66"},{"key":"pid","value":"71e3671b554a427e96b128c361ec4a4e"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"772"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Mon, 07 Mar 2022 01:37:49 GMT"},{"key":"x-amzn-RequestId","value":"0d61ce9b-8d26-42a7-898d-003eb8a4ddb6"},{"key":"x-amz-apigw-id","value":"Olw9GHDVyQ0FdVg="},{"key":"X-Amzn-Trace-Id","value":"Root=1-622561ed-3b8cca72655a33aa50140438;Sampled=0"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 32b95ef5feec0715f987a398c50c07d0.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"SIN2-P1"},{"key":"X-Amz-Cf-Id","value":"p8BESzkJs2wG8GZUTepck9VYJYuRXU72FVWfS7vao3fGFeZZmeSgWQ=="}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n    \"status\": 200,\n    \"message\": \"Success\",\n    \"data\": {\n        \"OrgId\": \"SMARTCLEAN\",\n        \"PropId\": \"06f98e0c4f464b84b9157b1df6adfa66\",\n        \"PID\": \"71e3671b554a427e96b128c361ec4a4e\",\n        \"LID\": \"b9f35944845e4b39844ec734c4c9725c\",\n        \"InsID\": \"ead815f7472048478f9cba158ac121ab\",\n        \"ZoneCategoryID\": \"MEETING_ROOMS\",\n        \"Name\": \"Lounge Area\",\n        \"Area\": 80,\n        \"FloorType\": \"Carpet\",\n        \"Units\": {\n            \"General\": [\n                {\n                    \"Name\": \"Sofa\",\n                    \"Key\": \"sofaMEETING_ROOMS\",\n                    \"Count\": 0\n                },\n                {\n                    \"Name\": \"Table\",\n                    \"Key\": \"tableMEETING_ROOMS\",\n                    \"Count\": 0\n                },\n                {\n                    \"Name\": \"Wall Telephone\",\n                    \"Key\": \"wallTelephoneMEETING_ROOMS\",\n                    \"Count\": 0\n                },\n                {\n                    \"Name\": \"Book Case\",\n                    \"Key\": \"bookcaseMEETING_ROOMS\",\n                    \"Count\": 0\n                },\n                {\n                    \"Name\": \"Arm Chair\",\n                    \"Key\": \"armChairMEETING_ROOMS\",\n                    \"Count\": 0\n                }\n            ]\n        },\n        \"Status\": \"Active\",\n        \"OperatingHours\": {\n            \"0\": null,\n            \"1\": null,\n            \"2\": null,\n            \"3\": null,\n            \"4\": null,\n            \"5\": null,\n            \"6\": null\n        },\n        \"IsBuildingOperatingHours\": false\n    }\n}"}],"_postman_id":"f1479c52-f2b6-4cab-b511-ad7e60056be9"}],"id":"7b25bd9c-e714-466e-b845-8b0ca80d570d","_postman_id":"7b25bd9c-e714-466e-b845-8b0ca80d570d","description":""}],"id":"974fff54-1dad-4ff1-a384-093bed250a0a","description":"<p>This folder contains requests to the SmartClean service: \"Grids\"</p>\n<p>This service allows you to view and manage your SmartClean enabled Property</p>\n<p>The following <strong>entities</strong> are available:</p>\n<ol>\n<li>Property</li>\n<li>Building</li>\n<li>Level</li>\n<li>Zone</li>\n</ol>\n<p><em><strong>Property</strong></em> refers to an entire property which comprises of buildings (for example your property may comprise of one or more building towers)</p>\n<p><em><strong>Building</strong></em> refers to a single building, which consists of Zones (i.e. locations) distributed across various <em><strong>Levels</strong></em> (i.e. floors)</p>\n<p><em><strong>Zone</strong></em> refers to a certain location at a specific <em><strong>Level</strong></em> of the Building.</p>\n<h5 id=\"example\">Example:</h5>\n<p>Male Washroom at Floor 6 of Building 1 at Central Towers Property.</p>\n<p>In this example,</p>\n<p>Zone: Male Washroom</p>\n<p>Level: Floor 6</p>\n<p>Building: Building 1</p>\n<p>Property: Central Towers Property</p>\n","event":[{"listen":"prerequest","script":{"id":"2482c267-a489-43e1-a3e0-85e3f810bf3a","type":"text/javascript","exec":["const scModule = 'scgrids';","pm.variables.set('scModule', scModule);"]}},{"listen":"test","script":{"id":"67ea7152-7fd6-413b-8f37-5be5371306a8","type":"text/javascript","exec":[""]}}],"_postman_id":"974fff54-1dad-4ff1-a384-093bed250a0a"},{"name":"Device Management","item":[{"name":"Device Slots for Building","item":[{"name":"get all","event":[{"listen":"prerequest","script":{"id":"f702a3d7-be73-4098-a263-91f34f389c26","exec":["const op = 'listDevicesForProjectV2';"],"type":"text/javascript"}}],"id":"5c397bba-5610-45d5-ba9a-b194dc52b192","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"https://console.smartclean.io/prod/v2/scdevicemanagement/v1/actions?op=scdevicemanagement.listDevicesForProjectV2&org=SMARTCLEAN&propid=d2ff1cc0ee104abba3a8ba030c72cd06&pid=45ea1d38775046dbbdc955362b8834b1","description":"<p>This request gets details of the device slot, identified by the alias id of the SmartClean device given in the body attribute: \"Alias\"</p>\n<p>Note:</p>\n<p>The value of \"Alias\" in the body must be a list</p>\n<p>For getting details of one slot, give 1 alias id in the value</p>\n<p>For getting details of multiple slots, given multiple alias ids, separated by comma in this list.</p>\n","urlObject":{"path":["scdevicemanagement","v1","actions"],"host":["https://console.smartclean.io/prod/v2"],"query":[{"key":"op","value":"scdevicemanagement.listDevicesForProjectV2"},{"key":"org","value":"SMARTCLEAN"},{"key":"propid","value":"d2ff1cc0ee104abba3a8ba030c72cd06"},{"key":"pid","value":"45ea1d38775046dbbdc955362b8834b1"}],"variable":[]}},"response":[{"id":"f419a01c-f356-4ae7-a2ab-14be4edfc921","name":"SmartClean Office @ DemoProperty","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":""},"url":{"raw":"https://console.smartclean.io/prod/v2/scdevicemanagement/v1/actions?op=scdevicemanagement.listDevicesForProjectV2&org=SMARTCLEAN&propid=06f98e0c4f464b84b9157b1df6adfa66&pid=71e3671b554a427e96b128c361ec4a4e","host":["https://console.smartclean.io/prod/v2"],"path":["scdevicemanagement","v1","actions"],"query":[{"key":"op","value":"scdevicemanagement.listDevicesForProjectV2"},{"key":"org","value":"SMARTCLEAN"},{"key":"propid","value":"06f98e0c4f464b84b9157b1df6adfa66"},{"key":"pid","value":"71e3671b554a427e96b128c361ec4a4e"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"2019"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Mon, 07 Mar 2022 01:40:09 GMT"},{"key":"x-amzn-RequestId","value":"d968b4df-6e72-468a-852c-6aaccc8e5687"},{"key":"x-amz-apigw-id","value":"OlxTDH0kyQ0Fefg="},{"key":"X-Amzn-Trace-Id","value":"Root=1-62256279-1339cc48377a6ad611479f88;Sampled=0"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 32b95ef5feec0715f987a398c50c07d0.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"SIN2-P1"},{"key":"X-Amz-Cf-Id","value":"gXULwNeWiitUa5VEYIdcLF6hMKCBUmhGrRxbf6qXxqvECxnKHROPkg=="}],"cookie":[],"responseTime":null,"body":"{\n    \"Data\": [\n        {\n            \"Alias\": \"0d8f3ca064c84efd8bca1688e7e1be08\",\n            \"ATTR\": \"attr#devices#info#0d8f3ca064c84efd8bca1688e7e1be08\",\n            \"CreatedOn\": 1640844970,\n            \"Devid\": \"SC_FD_DEMO_T2\",\n            \"Display\": \"User Feedbacks 1\",\n            \"ID\": \"SCDevices#0d8f3ca064c84efd8bca1688e7e1be08\",\n            \"ZoneId\": \"031a6296721a44c6a7a29a531598d6ed\",\n            \"LID\": \"b9f35944845e4b39844ec734c4c9725c\",\n            \"Commissioned\": null,\n            \"PID\": \"71e3671b554a427e96b128c361ec4a4e\",\n            \"Type\": \"SMARTCLEAN#FD\"\n        },\n        {\n            \"Alias\": \"6b539ae2a14c48b793245bb10e3a5b99\",\n            \"ATTR\": \"attr#devices#info#6b539ae2a14c48b793245bb10e3a5b99\",\n            \"CreatedOn\": 1643187250,\n            \"Devid\": \"896941\",\n            \"Display\": \"Flood Detection\",\n            \"ID\": \"SCDevices#6b539ae2a14c48b793245bb10e3a5b99\",\n            \"ZoneId\": \"5ba7d7b1321d46a48b7cc027e96f2a61\",\n            \"LID\": \"b9f35944845e4b39844ec734c4c9725c\",\n            \"Commissioned\": null,\n            \"PID\": \"71e3671b554a427e96b128c361ec4a4e\",\n            \"Type\": \"SMARTCLEAN#FLOODDET\"\n        },\n        {\n            \"Alias\": \"7876db81c054466bb70a1df0aa50b8dc\",\n            \"ATTR\": \"attr#devices#info#7876db81c054466bb70a1df0aa50b8dc\",\n            \"CreatedOn\": 1644547390,\n            \"Devid\": \"378A4719EA\",\n            \"Display\": \"IAQ Test\",\n            \"ID\": \"SCDevices#7876db81c054466bb70a1df0aa50b8dc\",\n            \"ZoneId\": \"ead815f7472048478f9cba158ac121ab\",\n            \"LID\": \"b9f35944845e4b39844ec734c4c9725c\",\n            \"Commissioned\": null,\n            \"PID\": \"71e3671b554a427e96b128c361ec4a4e\",\n            \"Type\": \"SMARTCLEAN#ODRDTR_BATT_V1\"\n        },\n        {\n            \"Alias\": \"ab9db1d1930a4bf496ee83c1374e316c\",\n            \"ATTR\": \"attr#devices#info#ab9db1d1930a4bf496ee83c1374e316c\",\n            \"CreatedOn\": 1644994575,\n            \"Devid\": \"abcdefgh\",\n            \"Display\": \"WDDTR Test\",\n            \"ID\": \"SCDevices#ab9db1d1930a4bf496ee83c1374e316c\",\n            \"ZoneId\": \"263f36d0a1ce4200af7323af427385a2\",\n            \"LID\": \"b9f35944845e4b39844ec734c4c9725c\",\n            \"Commissioned\": null,\n            \"PID\": \"71e3671b554a427e96b128c361ec4a4e\",\n            \"Type\": \"SMARTCLEAN#WD\"\n        },\n        {\n            \"Alias\": \"bd7cd9a250b2402a9cf7bc5d5814304c\",\n            \"ATTR\": \"attr#devices#info#bd7cd9a250b2402a9cf7bc5d5814304c\",\n            \"CreatedOn\": 1646375782,\n            \"Devid\": \"0893B789E3\",\n            \"Display\": \"BIN Test on Dusun\",\n            \"ID\": \"SCDevices#bd7cd9a250b2402a9cf7bc5d5814304c\",\n            \"ZoneId\": \"263f36d0a1ce4200af7323af427385a2\",\n            \"LID\": \"b9f35944845e4b39844ec734c4c9725c\",\n            \"Commissioned\": null,\n            \"PID\": \"71e3671b554a427e96b128c361ec4a4e\",\n            \"Type\": \"SMARTCLEAN#BIN\"\n        }\n    ],\n    \"LastEvaluatedKey\": \"\"\n}"}],"_postman_id":"5c397bba-5610-45d5-ba9a-b194dc52b192"},{"name":"get all by Provider","event":[{"listen":"prerequest","script":{"id":"f702a3d7-be73-4098-a263-91f34f389c26","exec":["const op = 'listDevicesByProviderType';",""],"type":"text/javascript"}}],"id":"aacf5d9d-963a-4e54-b89a-bdd2e705cc79","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"DevProviderType\": \"<Enter Device Provider Type>\"\n}","options":{"raw":{"language":"json"}}},"url":"https://console.smartclean.io/prod/v2/scdevicemanagement/v1/actions?op=scdevicemanagement.listDevicesByProviderType&org=SMARTCLEAN&propid=d2ff1cc0ee104abba3a8ba030c72cd06&pid=45ea1d38775046dbbdc955362b8834b1","description":"<p>This request gets details of the device slot, identified by the alias id of the SmartClean device given in the body attribute: \"Alias\"</p>\n<p>Note:</p>\n<p>The value of \"Alias\" in the body must be a list</p>\n<p>For getting details of one slot, give 1 alias id in the value</p>\n<p>For getting details of multiple slots, given multiple alias ids, separated by comma in this list.</p>\n","urlObject":{"path":["scdevicemanagement","v1","actions"],"host":["https://console.smartclean.io/prod/v2"],"query":[{"key":"op","value":"scdevicemanagement.listDevicesByProviderType"},{"key":"org","value":"SMARTCLEAN"},{"key":"propid","value":"d2ff1cc0ee104abba3a8ba030c72cd06"},{"key":"pid","value":"45ea1d38775046dbbdc955362b8834b1"}],"variable":[]}},"response":[{"id":"73e4701d-7a64-43bb-b73b-6c3cc6bc7abf","name":"SmartClean AQ Lite devices","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"DevProviderType\": \"SMARTCLEAN#ODRDTR_BATT_V1\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://console.smartclean.io/prod/v2/scdevicemanagement/v1/actions?op=scdevicemanagement.listDevicesByProviderType&org=SMARTCLEAN&propid=06f98e0c4f464b84b9157b1df6adfa66&pid=71e3671b554a427e96b128c361ec4a4e","host":["https://console.smartclean.io/prod/v2"],"path":["scdevicemanagement","v1","actions"],"query":[{"key":"op","value":"scdevicemanagement.listDevicesByProviderType"},{"key":"org","value":"SMARTCLEAN"},{"key":"propid","value":"06f98e0c4f464b84b9157b1df6adfa66"},{"key":"pid","value":"71e3671b554a427e96b128c361ec4a4e"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"376"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Mon, 07 Mar 2022 01:43:56 GMT"},{"key":"x-amzn-RequestId","value":"7373593d-64a0-40b0-b796-a18bad1c4d97"},{"key":"x-amz-apigw-id","value":"Olx2bEXOyQ0FloQ="},{"key":"X-Amzn-Trace-Id","value":"Root=1-6225635c-434170dc63ffa891707646f3;Sampled=0"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 32b95ef5feec0715f987a398c50c07d0.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"SIN2-P1"},{"key":"X-Amz-Cf-Id","value":"pZapfls0gg0yjdVqz2GX49PRzN9-xyAUptknQo9QCoPlIxt0dHFlww=="}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"Alias\": \"7876db81c054466bb70a1df0aa50b8dc\",\n        \"ATTR\": \"attr#devices#info#7876db81c054466bb70a1df0aa50b8dc\",\n        \"Devid\": \"378A4719EA\",\n        \"Display\": \"IAQ Test\",\n        \"ID\": \"SCDevices#7876db81c054466bb70a1df0aa50b8dc\",\n        \"ZoneId\": \"ead815f7472048478f9cba158ac121ab\",\n        \"LID\": \"b9f35944845e4b39844ec734c4c9725c\",\n        \"Commissioned\": 1,\n        \"PID\": \"71e3671b554a427e96b128c361ec4a4e\",\n        \"Type\": \"SMARTCLEAN#ODRDTR_BATT_V1\"\n    }\n]"},{"id":"8cf69b74-d5fa-4602-9819-58596456aabc","name":"Invalid Device Type","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"DevProviderType\": \"<Enter Device Provider Type>\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://console.smartclean.io/prod/v2/scdevicemanagement/v1/actions?op=scdevicemanagement.listDevicesByProviderType&org=SMARTCLEAN&propid=d2ff1cc0ee104abba3a8ba030c72cd06&pid=45ea1d38775046dbbdc955362b8834b1","host":["https://console.smartclean.io/prod/v2"],"path":["scdevicemanagement","v1","actions"],"query":[{"key":"op","value":"scdevicemanagement.listDevicesByProviderType"},{"key":"org","value":"SMARTCLEAN"},{"key":"propid","value":"d2ff1cc0ee104abba3a8ba030c72cd06"},{"key":"pid","value":"45ea1d38775046dbbdc955362b8834b1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"2"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 16 Mar 2022 06:27:47 GMT"},{"key":"x-amzn-RequestId","value":"db3200f5-880d-437c-bda1-de25b7cf4ddb"},{"key":"x-amz-apigw-id","value":"PEF3lGfIyQ0FtDw="},{"key":"X-Amzn-Trace-Id","value":"Root=1-62318363-2e862325717b4cbd1cc05a7b;Sampled=0"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 e5793992853fceac3581bde796b6f5ba.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"SIN2-P1"},{"key":"X-Amz-Cf-Id","value":"3GFCtteZk5lJxrsklCKTTDSUW08J76P9ljANWmIEoD_jjIqXZCeKeA=="}],"cookie":[],"responseTime":null,"body":"[]"}],"_postman_id":"aacf5d9d-963a-4e54-b89a-bdd2e705cc79"}],"id":"e31b450a-887f-42d4-a614-88e17589da8b","description":"<p>Device slot represents a designated location for a certain type of device in a certain Zone inside a Building of your SmartClean enabled Property.</p>\n<p>Note: Device Slots are available only in Zones of SmartClean enabled Properties. To view and mange the Zones in desired Property, please use the Grids service.</p>\n","_postman_id":"e31b450a-887f-42d4-a614-88e17589da8b"},{"name":"Device Slot","item":[{"name":"get details","event":[{"listen":"prerequest","script":{"id":"f702a3d7-be73-4098-a263-91f34f389c26","exec":["const op = 'listDevicesForProjectV2';"],"type":"text/javascript"}}],"id":"3d6339bf-6cd7-4c64-91b2-66a55d430d75","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"Alias\": [\n        \"<device slot id>\"\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://console.smartclean.io/prod/v2/scdevicemanagement/v1/actions?op=scdevicemanagement.getDeviceSlots&org=SMARTCLEAN&propid=d2ff1cc0ee104abba3a8ba030c72cd06&pid=45ea1d38775046dbbdc955362b8834b1","description":"<p>This request gets details of the device slot, identified by the alias id of the SmartClean device given in the body attribute: \"Alias\"</p>\n<p>Note:</p>\n<p>The value of \"Alias\" in the body must be a list</p>\n<p>For getting details of one slot, give 1 alias id in the value</p>\n<p>For getting details of multiple slots, given multiple alias ids, separated by comma in this list.</p>\n","urlObject":{"path":["scdevicemanagement","v1","actions"],"host":["https://console.smartclean.io/prod/v2"],"query":[{"key":"op","value":"scdevicemanagement.getDeviceSlots"},{"key":"org","value":"SMARTCLEAN"},{"key":"propid","value":"d2ff1cc0ee104abba3a8ba030c72cd06"},{"key":"pid","value":"45ea1d38775046dbbdc955362b8834b1"}],"variable":[]}},"response":[{"id":"e739a1f9-8091-4982-a3de-4296bb13a000","name":"success - Feedback device","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"Alias\": [\n        \"<device slot id>\"\n    ]\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://console.smartclean.io/prod/v2/scdevicemanagement/v1/actions?op=scdevicemanagement.getDeviceSlots&org=SMARTCLEAN&propid=d2ff1cc0ee104abba3a8ba030c72cd06&pid=45ea1d38775046dbbdc955362b8834b1","host":["https://console.smartclean.io/prod/v2"],"path":["scdevicemanagement","v1","actions"],"query":[{"key":"op","value":"scdevicemanagement.getDeviceSlots"},{"key":"org","value":"SMARTCLEAN"},{"key":"propid","value":"d2ff1cc0ee104abba3a8ba030c72cd06"},{"key":"pid","value":"45ea1d38775046dbbdc955362b8834b1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"1135"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Fri, 02 Sep 2022 04:22:11 GMT"},{"key":"x-amzn-RequestId","value":"58b7c9ff-2e2c-432f-b5c1-667d83aa6c71"},{"key":"Access-Control-Allow-Origin","value":"https://www.smartclean.io"},{"key":"x-amz-apigw-id","value":"X0G2EFVKSQ0Fcqw="},{"key":"X-Amzn-Trace-Id","value":"Root=1-631184f3-2babf13036cc55f438a57253;Sampled=0"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 0f2b81f417aa397d9ed9b32b2017aaca.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"SIN52-P1"},{"key":"X-Amz-Cf-Id","value":"y02RhazD-uYR7yAUn6U_jjr3X06H552f3SG6t3XKXeVBUU19zVPDFA=="}],"cookie":[],"responseTime":null,"body":"{\n    \"Slots\": [\n        {\n            \"Alias\": \"0d8f3ca064c84efd8bca1688e7e1be08\",\n            \"ATTR\": \"attr#devices#info#0d8f3ca064c84efd8bca1688e7e1be08\",\n            \"Conn\": \"WiFi\",\n            \"CreatedBy\": \"smartclean\",\n            \"CreatedOn\": 1640844970,\n            \"Devid\": \"SC_FD_DEMO_T2\",\n            \"Display\": \"User Feedbacks 1\",\n            \"ID\": \"SCDevices#0d8f3ca064c84efd8bca1688e7e1be08\",\n            \"ZoneId\": \"031a6296721a44c6a7a29a531598d6ed\",\n            \"LID\": \"b9f35944845e4b39844ec734c4c9725c\",\n            \"Commissioned\": 1,\n            \"NS\": \"DEVICE_INFO_GENERAL\",\n            \"PID\": \"71e3671b554a427e96b128c361ec4a4e\",\n            \"PropId\": \"06f98e0c4f464b84b9157b1df6adfa66\",\n            \"DeviceNotAssociated\": 0,\n            \"RequiresOnDeviceConfiguration\": 1,\n            \"RequiresParamsConfiguration\": 0,\n            \"ParamsNotConfigured\": 0,\n            \"ParamsOnDeviceNotConfigured\": 0,\n            \"Unhealthy\": 0,\n            \"RequiresHealthCheck\": 1,\n            \"Org\": \"SMARTCLEAN\",\n            \"ProviderOrg\": \"SMARTCLEAN\",\n            \"PartnerId\": \"SMARTCLEAN\",\n            \"TZ\": \"Asia/Kolkata\",\n            \"FirmwareVersion\": \"v29\",\n            \"Type\": \"SMARTCLEAN#FD\",\n            \"UpdatedBy\": \"smartclean\",\n            \"UpdatedOn\": 1646810477,\n            \"Params\": {\n                \"DeviceParams\": null\n            },\n            \"SRN\": \"srn:scdevicemanagement:SMARTCLEAN:::06f98e0c4f464b84b9157b1df6adfa66/71e3671b554a427e96b128c361ec4a4e:DEVICE_INFO_GENERAL:SMARTCLEAN#FD/0d8f3ca064c84efd8bca1688e7e1be08\"\n        }\n    ],\n    \"code\": \"SUCCESS\",\n    \"message\": \"Successfully fetched given slots\"\n}"}],"_postman_id":"3d6339bf-6cd7-4c64-91b2-66a55d430d75"}],"id":"b8de896f-7c81-4733-8fbe-020a1422608c","description":"<p>Device slot represents a designated location for a certain type of device in a certain Zone inside a Building of your SmartClean enabled Property.</p>\n<p>Note: Device Slots are available only in Zones of SmartClean enabled Properties. To view and mange the Zones in desired Property, please use the Grids service.</p>\n","_postman_id":"b8de896f-7c81-4733-8fbe-020a1422608c"},{"name":"RealSense Migrated?","event":[{"listen":"prerequest","script":{"id":"f702a3d7-be73-4098-a263-91f34f389c26","exec":["const op = 'readBuilding';"],"type":"text/javascript"}}],"id":"ea9cc18f-78dc-4182-bfb8-fc3f8bb5db30","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":""},"url":"https://console.smartclean.io/prod/v2/scdevicemanagement/v1/actions?op=scdevicemanagement.realSenseMigrated&org=SMARTCLEAN&pid=45ea1d38775046dbbdc955362b8834b1","description":"<p>This request gets relevant details of the Building whose ID is given in the query parameter: \"pid\"</p>\n<p>Note: To identify which Property this Building belongs to,<br />please give ID of the desired Property in the query parameter: \"propid\"</p>\n","urlObject":{"path":["scdevicemanagement","v1","actions"],"host":["https://console.smartclean.io/prod/v2"],"query":[{"key":"op","value":"scdevicemanagement.realSenseMigrated"},{"key":"org","value":"SMARTCLEAN"},{"key":"pid","value":"45ea1d38775046dbbdc955362b8834b1"}],"variable":[]}},"response":[{"id":"2673ef5a-df9b-4443-bc1b-6f81a7b43075","name":"success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":""},"url":{"raw":"https://console.smartclean.io/prod/v2/scdevicemanagement/v1/actions?op=scdevicemanagement.realSenseMigrated&org=SMARTCLEAN&propid=d2ff1cc0ee104abba3a8ba030c72cd06&pid=45ea1d38775046dbbdc955362b8834b1","host":["https://console.smartclean.io/prod/v2"],"path":["scdevicemanagement","v1","actions"],"query":[{"key":"op","value":"scdevicemanagement.realSenseMigrated"},{"key":"org","value":"SMARTCLEAN"},{"key":"propid","value":"d2ff1cc0ee104abba3a8ba030c72cd06"},{"key":"pid","value":"45ea1d38775046dbbdc955362b8834b1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"57"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Fri, 02 Sep 2022 04:18:18 GMT"},{"key":"x-amzn-RequestId","value":"1ffb75ad-313a-499d-b649-d8257278d937"},{"key":"Access-Control-Allow-Origin","value":"https://www.smartclean.io"},{"key":"x-amz-apigw-id","value":"X0GRpGUkyQ0FrtA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-6311840a-01854d01639cc0e652ab2bc3;Sampled=0"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 0f2b81f417aa397d9ed9b32b2017aaca.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"SIN52-P1"},{"key":"X-Amz-Cf-Id","value":"7tA5pv_GQn0gPIT-bpjdnfGTeAXhRx1Tpg-YnyFMoWJTj9vP-Ul08w=="}],"cookie":[],"responseTime":null,"body":"{\n    \"Migrated\": true,\n    \"ID\": \"45ea1d38775046dbbdc955362b8834b1\"\n}"}],"_postman_id":"ea9cc18f-78dc-4182-bfb8-fc3f8bb5db30"}],"id":"77a77df0-8c11-42da-ab79-624a40c33427","description":"<p>This folder contains requests to the SmartClean service: \"Device Management\".</p>\n<p>This service allows you to view and manage Sensors and Devices in your SmartClean account and SmartClean enabled Property</p>\n<p>Note:</p>\n<p>This service is also offered via SmartClean Realsense, which comes with an easy to use Web Application that gives you access to this service with more helpful functionalities.</p>\n","event":[{"listen":"prerequest","script":{"id":"8a4fd53e-5b71-4516-bff9-7c8b06b026da","type":"text/javascript","exec":["const scModule = 'scdevicemanagement';","pm.variables.set('scModule', scModule);"]}},{"listen":"test","script":{"id":"7a71670c-2e84-48aa-9f39-5d40cccdf346","type":"text/javascript","exec":[""]}}],"_postman_id":"77a77df0-8c11-42da-ab79-624a40c33427"},{"name":"Metrics","item":[{"name":"Module metrics","event":[{"listen":"prerequest","script":{"id":"f702a3d7-be73-4098-a263-91f34f389c26","exec":["const op = 'getModuleTSMetrics';","","const principal = 'TestProjectId';","const namespace = 'VCS_WO_DAILY_COUNT_BY_TYPE';","","console.log(`Principal is: ${principal}`);","console.log(`NS is: ${namespace}`);","","const currentUnixTimeSeconds = Math.floor(Date.now() / 1000);","const queryDurationSecods = 900;","const unixTimeSecondsStart = currentUnixTimeSeconds - queryDurationSecods","const unixTimeSecondsEnd = currentUnixTimeSeconds;","","console.log(`Current unix time (seconds) is: ${currentUnixTimeSeconds}`)","console.log(`Duration to query metrics in past is ${queryDurationSecods} seconds`)","console.log(`So, Start (unix time seconds) is: ${unixTimeSecondsStart}`);","console.log(`So, End (unix time seconds) is: ${unixTimeSecondsEnd}`);","","pm.environment.set('<enter principal here>', principal);","pm.environment.set('<enter namespace here>', namespace);","pm.environment.set('<enter unix time for start time>', unixTimeSecondsStart);","pm.environment.set('<enter unix time for end time>', unixTimeSecondsEnd);",""],"type":"text/javascript"}}],"id":"264e5c6a-fc3a-4800-adee-6712109beda9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"Principal\": \"{{principalId}}\",\n    \"NS\": \"{{queryId}}\",\n    \"Start\": \"{{start date (YYYYMMDD) OR time (unix timestamp)}}\",\n    \"End\": \"{{end date (YYYYMMDD) OR time (unix timestamp)}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://console.smartclean.io/prod/v2/scmetrics/v4/actions?op=scmetrics.getModuleTSMetrics&propid=d2ff1cc0ee104abba3a8ba030c72cd06","description":"<p>This request gets value of standard module metrics for a certain entity in your SmartClean enabled Property.</p>\n<p>For example: Getting the Daily tasks count for a Building (this query happens on modules: Optimus or Work Orders).</p>\n<p>The information required must be supplied in the request body, with the following required attributes specified:</p>\n<ol>\n<li>Principal</li>\n<li>NS</li>\n<li>Start</li>\n<li>End</li>\n</ol>\n<p>Principal:</p>\n<ul>\n<li>Represents the entity for which to query the metrics.</li>\n<li>This can be the ID of your Property / Building / Zone / Device etc</li>\n</ul>\n<p>NS:</p>\n<ul>\n<li>Represents the name of the standard metric to query</li>\n<li>Stands for namespace</li>\n</ul>\n<p>Start:</p>\n<ul>\n<li>Represents the start time for the query</li>\n</ul>\n<p>End:</p>\n<ul>\n<li>Represents the end time for the query</li>\n</ul>\n<p>Note the following for \"Start\" and \"End\"</p>\n<ul>\n<li>If giving a timestamp, it must be in unix time (upto seconds resolution)</li>\n<li>If giving a date, it must be a text in format: YYYYMMDD</li>\n</ul>\n","urlObject":{"path":["scmetrics","v4","actions"],"host":["https://console.smartclean.io/prod/v2"],"query":[{"key":"op","value":"scmetrics.getModuleTSMetrics"},{"key":"propid","value":"d2ff1cc0ee104abba3a8ba030c72cd06"}],"variable":[]}},"response":[{"id":"d8d44703-8e7a-4b24-ab7f-ce3773829713","name":"Daily tasks count for Building","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"Principal\": \"06cce12526694d0193e73c323a43c43e\",\n    \"NS\": \"TASK_PID_DAILY_METRICS_BY_PRIORITY\",\n    \"Start\": \"20220520\",\n    \"End\": \"20220520\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://console.smartclean.io/prod/v2/scmetrics/v4/actions?op=scmetrics.getModuleTSMetrics&propid=d2ff1cc0ee104abba3a8ba030c72cd06","host":["https://console.smartclean.io/prod/v2"],"path":["scmetrics","v4","actions"],"query":[{"key":"op","value":"scmetrics.getModuleTSMetrics"},{"key":"propid","value":"d2ff1cc0ee104abba3a8ba030c72cd06"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"185"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Fri, 20 May 2022 07:46:48 GMT"},{"key":"x-amzn-RequestId","value":"fabe4516-207c-4124-b754-198915db8200"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"SagYTGMpyQ0FfFw="},{"key":"X-Amzn-Trace-Id","value":"Root=1-62874768-3be954b36410d7201ed9104b;Sampled=0"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 574ab88ff85f4ad30dd2d3a36c2bab20.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"SIN52-P1"},{"key":"X-Amz-Cf-Id","value":"j6LelmDJS3SB_rRSTxZXRcQQ1fa8Vdrt5vcwRBvJ69178R1gaE3wtA=="}],"cookie":[],"responseTime":null,"body":"{\n    \"type\": \"json\",\n    \"queryType\": \"moduleTSDB\",\n    \"series\": {\n        \"values\": [\n            {\n                \"Bucket\": \"20220520\",\n                \"Data\": {\n                    \"TasksCount:ByTypePriority:TASK:L\": 13,\n                    \"TasksCount:L\": 13\n                }\n            }\n        ],\n        \"start\": \"20220520\",\n        \"end\": \"20220520\"\n    }\n}"}],"_postman_id":"264e5c6a-fc3a-4800-adee-6712109beda9"},{"name":"Get device metrics in time range","event":[{"listen":"prerequest","script":{"id":"f702a3d7-be73-4098-a263-91f34f389c26","exec":[""],"type":"text/javascript"}}],"id":"79b4f767-6b80-42ff-89be-8b6043a57ff0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"id\": \"{{query id}}\",\n    \"params\": [\n        {\n            \"key\": \"$tstart\",\n            \"value\": \"{{start time (UTC) in ISO 8601 format}}\"\n        },\n        {\n            \"key\": \"$tend\",\n            \"value\": \"{{end time (UTC) in ISO 8601 format}}\"\n        },\n        {\n            \"key\": \"$devid\",\n            \"value\": \"{{device alias id}}\"\n        },\n        {\n            \"key\": \"region\",\n            \"value\": \"{{time zone in tzdatabase name}}\"\n        }\n    ],\n    \"qcontext\": \"scglobal\",\n    \"qtype\": \"tsdb\"\n}","options":{"raw":{"language":"json"}}},"url":"https://console.smartclean.io/prod/v2/scmetrics/v4/actions?op=scmetrics.tsdbNamedQuery&org=SMARTCLEAN&propid=d2ff1cc0ee104abba3a8ba030c72cd06&pid=45ea1d38775046dbbdc955362b8834b1","description":"<p>This request lets you get data of metrics for your SmartClean Sensor / Device in a time range.</p>\n<p>Data can be queried for until 2 minutes in the past (therefore this request is for the purpose of querying historical data, not for real time data.)</p>\n<p>Note: To access real time data for your SmartClean Sensor / Device, please get in touch with our representative.</p>\n<hr />\n<p>The information required must be supplied in the request body, with the following required attributes specified:</p>\n<ol>\n<li>id</li>\n<li>params</li>\n</ol>\n<p>The other attributes must be kept constant.</p>\n<p>id:</p>\n<ul>\n<li>Standard id of the query</li>\n<li>Examples:<ul>\n<li>People Counter device: \"pplctr_tsdb_query_for_device_type_PPLCTR\"</li>\n<li>Dispenser (Toilet roll / Paper towel / Soap) fill detector device: \"dm_tsdb_query_for_device_type_DM\"</li>\n<li><em>Air quality (CMOS based odour) detector device</em>: \"odrdtr_tsdb_query_for_device_type_ODRDTR\"</li>\n</ul>\n</li>\n</ul>\n<p>params:</p>\n<ul>\n<li>Parameters to be passed to the time series query</li>\n<li>The value is passed as an Array of Objects.</li>\n<li>Each object contains the name (key) and value of a standard parameter to be passed to the query</li>\n<li>Value format for attribute \"params\":<br />[<br />{\"key\": \"$tstart\", \"value\": \"Timestring in ISO 8601 format\"},<br />{\"key\": \"$tend\", \"value\": \"Timestring in ISO 8601 format\"},<br />{\"key\": \"$devid\", \"value\": \"Alias ID of the device\"},<br />{\"key\": \"$region\", \"value\": \"time zone in tzdatabase name (eg: Asia/Singapore)\"}<br />]</li>\n<li>Where some standard parameter objects are:<ul>\n<li>Param object to specify start time for the query<ul>\n<li>{\"key\": \"$tstart\", \"value\": \"UTC Time in ISO 8601 format\"}</li>\n</ul>\n</li>\n<li>Params object to specify end time for the query:<ul>\n<li>{\"key\": \"$tend\", \"value\": \"UTC Time ISO 8601 format}</li>\n</ul>\n</li>\n<li>Params object to specify Alias ID of the Device for the query:<ul>\n<li>{\"key\": \"$devid\", \"value\": \"Alias ID of the device\"}</li>\n</ul>\n</li>\n<li>Params object to specify region (time zone) for the query :<ul>\n<li>{\"key\": \"$region\", \"value\": \"time zone in tzdatabase name (eg: Asia/Singapore)\"}</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n<p>Important: For both \"$tstart\" and \"$tend\", the time given must be UTC and in ISO-8601 format</p>\n<hr />\n<p>This request is part of our time series queries, which lets you get historical data of standard time-series metrics for a certain entity in your SmartClean enabled Property.</p>\n<p>Operation name: TSDB Named Query, which is a standard (named) query to our Timescale Database</p>\n","urlObject":{"path":["scmetrics","v4","actions"],"host":["https://console.smartclean.io/prod/v2"],"query":[{"key":"op","value":"scmetrics.tsdbNamedQuery"},{"key":"org","value":"SMARTCLEAN"},{"key":"propid","value":"d2ff1cc0ee104abba3a8ba030c72cd06"},{"key":"pid","value":"45ea1d38775046dbbdc955362b8834b1"}],"variable":[]}},"response":[{"id":"fa120d97-4fe4-495e-b9f1-4a7215f1afad","name":"People Counter (PPLCTR)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"id\": \"pplctr_tsdb_query_for_device_type_PPLCTR\",\n    \"params\": [\n        {\n            \"key\": \"$tstart\",\n            \"value\": \"2022-05-19T16:00:00.000Z\"\n        },\n        {\n            \"key\": \"$tend\",\n            \"value\": \"2022-05-20T15:59:59.999Z\"\n        },\n        {\n            \"key\": \"$devid\",\n            \"value\": \"14d01eae60574b4e8cd89291dbba31dc\"\n        },\n        {\n            \"key\": \"region\",\n            \"value\": \"Asia/Singapore\"\n        }\n    ],\n    \"qcontext\": \"scglobal\",\n    \"qtype\": \"tsdb\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://console.smartclean.io/prod/v2/scmetrics/v4/actions?op=scmetrics.tsdbNamedQuery&org=SMARTCLEAN&propid=d2ff1cc0ee104abba3a8ba030c72cd06&pid=45ea1d38775046dbbdc955362b8834b1","host":["https://console.smartclean.io/prod/v2"],"path":["scmetrics","v4","actions"],"query":[{"key":"op","value":"scmetrics.tsdbNamedQuery"},{"key":"org","value":"SMARTCLEAN"},{"key":"propid","value":"d2ff1cc0ee104abba3a8ba030c72cd06"},{"key":"pid","value":"45ea1d38775046dbbdc955362b8834b1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"6681"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Fri, 20 May 2022 06:44:07 GMT"},{"key":"x-amzn-RequestId","value":"84220667-2442-4ebe-a6b4-f3e8cbb2abcd"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"SaXMrE88SQ0FoLQ="},{"key":"X-Amzn-Trace-Id","value":"Root=1-628738b7-386c2ae1239d608732e621ec;Sampled=0"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 a9cfec72cfc71c81978b7bbf79189fdc.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"SIN52-P1"},{"key":"X-Amz-Cf-Id","value":"B5pvVaQ33mrtooZBRObNW8a8JxdDuEeeBFJRqH8EXkWe68RRoAGs-w=="}],"cookie":[],"responseTime":null,"body":"{\n    \"type\": \"json\",\n    \"series\": [\n        {\n            \"values\": [\n                {\n                    \"_field\": \"sum\",\n                    \"_time\": \"2022-05-19T16:00:00+00:00\",\n                    \"_value\": \"0.0000\",\n                    \"l2class\": \"14d01eae60574b4e8cd89291dbba31dc\"\n                }\n            ],\n            \"id\": \"0\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"sum\",\n                    \"_time\": \"2022-05-19T16:30:00+00:00\",\n                    \"_value\": \"0.0000\",\n                    \"l2class\": \"14d01eae60574b4e8cd89291dbba31dc\"\n                }\n            ],\n            \"id\": \"1\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"sum\",\n                    \"_time\": \"2022-05-19T17:00:00+00:00\",\n                    \"_value\": \"0.0000\",\n                    \"l2class\": \"14d01eae60574b4e8cd89291dbba31dc\"\n                }\n            ],\n            \"id\": \"2\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"sum\",\n                    \"_time\": \"2022-05-19T17:30:00+00:00\",\n                    \"_value\": \"0.0000\",\n                    \"l2class\": \"14d01eae60574b4e8cd89291dbba31dc\"\n                }\n            ],\n            \"id\": \"3\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"sum\",\n                    \"_time\": \"2022-05-19T18:00:00+00:00\",\n                    \"_value\": \"0.0000\",\n                    \"l2class\": \"14d01eae60574b4e8cd89291dbba31dc\"\n                }\n            ],\n            \"id\": \"4\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"sum\",\n                    \"_time\": \"2022-05-19T18:30:00+00:00\",\n                    \"_value\": \"0.0000\",\n                    \"l2class\": \"14d01eae60574b4e8cd89291dbba31dc\"\n                }\n            ],\n            \"id\": \"5\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"sum\",\n                    \"_time\": \"2022-05-19T19:00:00+00:00\",\n                    \"_value\": \"0.0000\",\n                    \"l2class\": \"14d01eae60574b4e8cd89291dbba31dc\"\n                }\n            ],\n            \"id\": \"6\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"sum\",\n                    \"_time\": \"2022-05-19T19:30:00+00:00\",\n                    \"_value\": \"0.0000\",\n                    \"l2class\": \"14d01eae60574b4e8cd89291dbba31dc\"\n                }\n            ],\n            \"id\": \"7\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"sum\",\n                    \"_time\": \"2022-05-19T20:00:00+00:00\",\n                    \"_value\": \"0.0000\",\n                    \"l2class\": \"14d01eae60574b4e8cd89291dbba31dc\"\n                }\n            ],\n            \"id\": \"8\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"sum\",\n                    \"_time\": \"2022-05-19T20:30:00+00:00\",\n                    \"_value\": \"0.0000\",\n                    \"l2class\": \"14d01eae60574b4e8cd89291dbba31dc\"\n                }\n            ],\n            \"id\": \"9\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"sum\",\n                    \"_time\": \"2022-05-19T21:00:00+00:00\",\n                    \"_value\": \"0.0000\",\n                    \"l2class\": \"14d01eae60574b4e8cd89291dbba31dc\"\n                }\n            ],\n            \"id\": \"10\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"sum\",\n                    \"_time\": \"2022-05-19T21:30:00+00:00\",\n                    \"_value\": \"0.0000\",\n                    \"l2class\": \"14d01eae60574b4e8cd89291dbba31dc\"\n                }\n            ],\n            \"id\": \"11\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"sum\",\n                    \"_time\": \"2022-05-19T22:00:00+00:00\",\n                    \"_value\": \"0.0000\",\n                    \"l2class\": \"14d01eae60574b4e8cd89291dbba31dc\"\n                }\n            ],\n            \"id\": \"12\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"sum\",\n                    \"_time\": \"2022-05-19T22:30:00+00:00\",\n                    \"_value\": \"0.0000\",\n                    \"l2class\": \"14d01eae60574b4e8cd89291dbba31dc\"\n                }\n            ],\n            \"id\": \"13\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"sum\",\n                    \"_time\": \"2022-05-19T23:00:00+00:00\",\n                    \"_value\": \"0.0000\",\n                    \"l2class\": \"14d01eae60574b4e8cd89291dbba31dc\"\n                }\n            ],\n            \"id\": \"14\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"sum\",\n                    \"_time\": \"2022-05-19T23:30:00+00:00\",\n                    \"_value\": \"0.0000\",\n                    \"l2class\": \"14d01eae60574b4e8cd89291dbba31dc\"\n                }\n            ],\n            \"id\": \"15\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"sum\",\n                    \"_time\": \"2022-05-20T00:00:00+00:00\",\n                    \"_value\": \"0.0000\",\n                    \"l2class\": \"14d01eae60574b4e8cd89291dbba31dc\"\n                }\n            ],\n            \"id\": \"16\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"sum\",\n                    \"_time\": \"2022-05-20T00:30:00+00:00\",\n                    \"_value\": \"1.0000\",\n                    \"l2class\": \"14d01eae60574b4e8cd89291dbba31dc\"\n                }\n            ],\n            \"id\": \"17\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"sum\",\n                    \"_time\": \"2022-05-20T01:00:00+00:00\",\n                    \"_value\": \"0.0000\",\n                    \"l2class\": \"14d01eae60574b4e8cd89291dbba31dc\"\n                }\n            ],\n            \"id\": \"18\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"sum\",\n                    \"_time\": \"2022-05-20T01:30:00+00:00\",\n                    \"_value\": \"0.0000\",\n                    \"l2class\": \"14d01eae60574b4e8cd89291dbba31dc\"\n                }\n            ],\n            \"id\": \"19\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"sum\",\n                    \"_time\": \"2022-05-20T02:00:00+00:00\",\n                    \"_value\": \"0.0000\",\n                    \"l2class\": \"14d01eae60574b4e8cd89291dbba31dc\"\n                }\n            ],\n            \"id\": \"20\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"sum\",\n                    \"_time\": \"2022-05-20T02:30:00+00:00\",\n                    \"_value\": \"4.0000\",\n                    \"l2class\": \"14d01eae60574b4e8cd89291dbba31dc\"\n                }\n            ],\n            \"id\": \"21\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"sum\",\n                    \"_time\": \"2022-05-20T03:00:00+00:00\",\n                    \"_value\": \"8.0000\",\n                    \"l2class\": \"14d01eae60574b4e8cd89291dbba31dc\"\n                }\n            ],\n            \"id\": \"22\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"sum\",\n                    \"_time\": \"2022-05-20T03:30:00+00:00\",\n                    \"_value\": \"1.0000\",\n                    \"l2class\": \"14d01eae60574b4e8cd89291dbba31dc\"\n                }\n            ],\n            \"id\": \"23\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"sum\",\n                    \"_time\": \"2022-05-20T04:00:00+00:00\",\n                    \"_value\": \"0.0000\",\n                    \"l2class\": \"14d01eae60574b4e8cd89291dbba31dc\"\n                }\n            ],\n            \"id\": \"24\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"sum\",\n                    \"_time\": \"2022-05-20T04:30:00+00:00\",\n                    \"_value\": \"2.0000\",\n                    \"l2class\": \"14d01eae60574b4e8cd89291dbba31dc\"\n                }\n            ],\n            \"id\": \"25\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"sum\",\n                    \"_time\": \"2022-05-20T05:00:00+00:00\",\n                    \"_value\": \"3.0000\",\n                    \"l2class\": \"14d01eae60574b4e8cd89291dbba31dc\"\n                }\n            ],\n            \"id\": \"26\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"sum\",\n                    \"_time\": \"2022-05-20T05:30:00+00:00\",\n                    \"_value\": \"2.0000\",\n                    \"l2class\": \"14d01eae60574b4e8cd89291dbba31dc\"\n                }\n            ],\n            \"id\": \"27\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"sum\",\n                    \"_time\": \"2022-05-20T06:00:00+00:00\",\n                    \"_value\": \"1.0000\",\n                    \"l2class\": \"14d01eae60574b4e8cd89291dbba31dc\"\n                }\n            ],\n            \"id\": \"28\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        }\n    ],\n    \"queryType\": \"namedTSDB\"\n}"},{"id":"579ad1ec-9d30-4fac-8266-5a9e90116a86","name":"Air Quality (ODRDTR)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"id\": \"odrdtr_tsdb_query_for_device_type_ODRDTR\",\n    \"params\": [\n        {\n            \"key\": \"$tstart\",\n            \"value\": \"2022-05-19T16:00:00.000Z\"\n        },\n        {\n            \"key\": \"$tend\",\n            \"value\": \"2022-05-20T15:59:59.999Z\"\n        },\n        {\n            \"key\": \"$devid\",\n            \"value\": \"3bc0e35fe63d4afebae7228e7dea590c\"\n        },\n        {\n            \"key\": \"region\",\n            \"value\": \"Asia/Singapore\"\n        }\n    ],\n    \"qcontext\": \"scglobal\",\n    \"qtype\": \"tsdb\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://console.smartclean.io/prod/v2/scmetrics/v4/actions?op=scmetrics.tsdbNamedQuery&org=SMARTCLEAN&propid=d2ff1cc0ee104abba3a8ba030c72cd06&pid=45ea1d38775046dbbdc955362b8834b1","host":["https://console.smartclean.io/prod/v2"],"path":["scmetrics","v4","actions"],"query":[{"key":"op","value":"scmetrics.tsdbNamedQuery"},{"key":"org","value":"SMARTCLEAN"},{"key":"propid","value":"d2ff1cc0ee104abba3a8ba030c72cd06"},{"key":"pid","value":"45ea1d38775046dbbdc955362b8834b1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"7139"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Fri, 20 May 2022 07:39:47 GMT"},{"key":"x-amzn-RequestId","value":"ddaab0d0-a852-43a9-a8cb-1257b3eb5f08"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"SafWiH7SSQ0FSeA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-628745c3-4acf5ac15e168b9e1d1bafa9;Sampled=0"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 740fccc7c62d49696904618862f889f8.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"SIN52-P1"},{"key":"X-Amz-Cf-Id","value":"6MQwzDeVdJFBAgoBrJE80hxQvPKN9pSkG3Ih9CJnGR9VhPkwDn0R9Q=="}],"cookie":[],"responseTime":null,"body":"{\n    \"type\": \"json\",\n    \"series\": [\n        {\n            \"values\": [\n                {\n                    \"_field\": \"avg\",\n                    \"_time\": \"2022-05-19T16:00:00+00:00\",\n                    \"_value\": \"1.1816\",\n                    \"l2class\": \"3bc0e35fe63d4afebae7228e7dea590c\"\n                }\n            ],\n            \"id\": \"0\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"avg\",\n                    \"_time\": \"2022-05-19T16:30:00+00:00\",\n                    \"_value\": \"1.1451\",\n                    \"l2class\": \"3bc0e35fe63d4afebae7228e7dea590c\"\n                }\n            ],\n            \"id\": \"1\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"avg\",\n                    \"_time\": \"2022-05-19T17:00:00+00:00\",\n                    \"_value\": \"1.1269\",\n                    \"l2class\": \"3bc0e35fe63d4afebae7228e7dea590c\"\n                }\n            ],\n            \"id\": \"2\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"avg\",\n                    \"_time\": \"2022-05-19T17:30:00+00:00\",\n                    \"_value\": \"1.1297\",\n                    \"l2class\": \"3bc0e35fe63d4afebae7228e7dea590c\"\n                }\n            ],\n            \"id\": \"3\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"avg\",\n                    \"_time\": \"2022-05-19T18:00:00+00:00\",\n                    \"_value\": \"1.1451\",\n                    \"l2class\": \"3bc0e35fe63d4afebae7228e7dea590c\"\n                }\n            ],\n            \"id\": \"4\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"avg\",\n                    \"_time\": \"2022-05-19T18:30:00+00:00\",\n                    \"_value\": \"1.0287\",\n                    \"l2class\": \"3bc0e35fe63d4afebae7228e7dea590c\"\n                }\n            ],\n            \"id\": \"5\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"avg\",\n                    \"_time\": \"2022-05-19T19:00:00+00:00\",\n                    \"_value\": \"1.0001\",\n                    \"l2class\": \"3bc0e35fe63d4afebae7228e7dea590c\"\n                }\n            ],\n            \"id\": \"6\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"avg\",\n                    \"_time\": \"2022-05-19T19:30:00+00:00\",\n                    \"_value\": \"1.1442\",\n                    \"l2class\": \"3bc0e35fe63d4afebae7228e7dea590c\"\n                }\n            ],\n            \"id\": \"7\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"avg\",\n                    \"_time\": \"2022-05-19T20:00:00+00:00\",\n                    \"_value\": \"1.3165\",\n                    \"l2class\": \"3bc0e35fe63d4afebae7228e7dea590c\"\n                }\n            ],\n            \"id\": \"8\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"avg\",\n                    \"_time\": \"2022-05-19T20:30:00+00:00\",\n                    \"_value\": \"1.4003\",\n                    \"l2class\": \"3bc0e35fe63d4afebae7228e7dea590c\"\n                }\n            ],\n            \"id\": \"9\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"avg\",\n                    \"_time\": \"2022-05-19T21:00:00+00:00\",\n                    \"_value\": \"1.2463\",\n                    \"l2class\": \"3bc0e35fe63d4afebae7228e7dea590c\"\n                }\n            ],\n            \"id\": \"10\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"avg\",\n                    \"_time\": \"2022-05-19T21:30:00+00:00\",\n                    \"_value\": \"1.1885\",\n                    \"l2class\": \"3bc0e35fe63d4afebae7228e7dea590c\"\n                }\n            ],\n            \"id\": \"11\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"avg\",\n                    \"_time\": \"2022-05-19T22:00:00+00:00\",\n                    \"_value\": \"1.2763\",\n                    \"l2class\": \"3bc0e35fe63d4afebae7228e7dea590c\"\n                }\n            ],\n            \"id\": \"12\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"avg\",\n                    \"_time\": \"2022-05-19T22:30:00+00:00\",\n                    \"_value\": \"1.2997\",\n                    \"l2class\": \"3bc0e35fe63d4afebae7228e7dea590c\"\n                }\n            ],\n            \"id\": \"13\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"avg\",\n                    \"_time\": \"2022-05-19T23:00:00+00:00\",\n                    \"_value\": \"1.2882\",\n                    \"l2class\": \"3bc0e35fe63d4afebae7228e7dea590c\"\n                }\n            ],\n            \"id\": \"14\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"avg\",\n                    \"_time\": \"2022-05-19T23:30:00+00:00\",\n                    \"_value\": \"1.2402\",\n                    \"l2class\": \"3bc0e35fe63d4afebae7228e7dea590c\"\n                }\n            ],\n            \"id\": \"15\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"avg\",\n                    \"_time\": \"2022-05-20T00:00:00+00:00\",\n                    \"_value\": \"1.2227\",\n                    \"l2class\": \"3bc0e35fe63d4afebae7228e7dea590c\"\n                }\n            ],\n            \"id\": \"16\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"avg\",\n                    \"_time\": \"2022-05-20T00:30:00+00:00\",\n                    \"_value\": \"1.1746\",\n                    \"l2class\": \"3bc0e35fe63d4afebae7228e7dea590c\"\n                }\n            ],\n            \"id\": \"17\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"avg\",\n                    \"_time\": \"2022-05-20T01:00:00+00:00\",\n                    \"_value\": \"1.1266\",\n                    \"l2class\": \"3bc0e35fe63d4afebae7228e7dea590c\"\n                }\n            ],\n            \"id\": \"18\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"avg\",\n                    \"_time\": \"2022-05-20T01:30:00+00:00\",\n                    \"_value\": \"1.0395\",\n                    \"l2class\": \"3bc0e35fe63d4afebae7228e7dea590c\"\n                }\n            ],\n            \"id\": \"19\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"avg\",\n                    \"_time\": \"2022-05-20T02:00:00+00:00\",\n                    \"_value\": \"1.0804\",\n                    \"l2class\": \"3bc0e35fe63d4afebae7228e7dea590c\"\n                }\n            ],\n            \"id\": \"20\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"avg\",\n                    \"_time\": \"2022-05-20T02:30:00+00:00\",\n                    \"_value\": \"1.1307\",\n                    \"l2class\": \"3bc0e35fe63d4afebae7228e7dea590c\"\n                }\n            ],\n            \"id\": \"21\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"avg\",\n                    \"_time\": \"2022-05-20T03:00:00+00:00\",\n                    \"_value\": \"1.0527\",\n                    \"l2class\": \"3bc0e35fe63d4afebae7228e7dea590c\"\n                }\n            ],\n            \"id\": \"22\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"avg\",\n                    \"_time\": \"2022-05-20T03:30:00+00:00\",\n                    \"_value\": \"0.8502\",\n                    \"l2class\": \"3bc0e35fe63d4afebae7228e7dea590c\"\n                }\n            ],\n            \"id\": \"23\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"avg\",\n                    \"_time\": \"2022-05-20T04:00:00+00:00\",\n                    \"_value\": \"0.6413\",\n                    \"l2class\": \"3bc0e35fe63d4afebae7228e7dea590c\"\n                }\n            ],\n            \"id\": \"24\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"avg\",\n                    \"_time\": \"2022-05-20T04:30:00+00:00\",\n                    \"_value\": \"0.5076\",\n                    \"l2class\": \"3bc0e35fe63d4afebae7228e7dea590c\"\n                }\n            ],\n            \"id\": \"25\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"avg\",\n                    \"_time\": \"2022-05-20T05:00:00+00:00\",\n                    \"_value\": \"0.5620\",\n                    \"l2class\": \"3bc0e35fe63d4afebae7228e7dea590c\"\n                }\n            ],\n            \"id\": \"26\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"avg\",\n                    \"_time\": \"2022-05-20T05:30:00+00:00\",\n                    \"_value\": \"0.7043\",\n                    \"l2class\": \"3bc0e35fe63d4afebae7228e7dea590c\"\n                }\n            ],\n            \"id\": \"27\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"avg\",\n                    \"_time\": \"2022-05-20T06:00:00+00:00\",\n                    \"_value\": \"0.7580\",\n                    \"l2class\": \"3bc0e35fe63d4afebae7228e7dea590c\"\n                }\n            ],\n            \"id\": \"28\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"avg\",\n                    \"_time\": \"2022-05-20T06:30:00+00:00\",\n                    \"_value\": \"0.6429\",\n                    \"l2class\": \"3bc0e35fe63d4afebae7228e7dea590c\"\n                }\n            ],\n            \"id\": \"29\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"avg\",\n                    \"_time\": \"2022-05-20T07:00:00+00:00\",\n                    \"_value\": \"0.3967\",\n                    \"l2class\": \"3bc0e35fe63d4afebae7228e7dea590c\"\n                }\n            ],\n            \"id\": \"30\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        }\n    ],\n    \"queryType\": \"namedTSDB\"\n}"},{"id":"4d3ce3b1-b013-4a83-b303-1d51f93c3922","name":"Dispenser (PT)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"id\": \"dm_tsdb_query_for_device_type_DM\",\n    \"params\": [\n        {\n            \"key\": \"$tstart\",\n            \"value\": \"2022-05-19T00:00:00.000Z\"\n        },\n        {\n            \"key\": \"$tend\",\n            \"value\": \"2022-05-20T15:59:59.999Z\"\n        },\n        {\n            \"key\": \"$devid\",\n            \"value\": \"9fabca100ad9417f8389f38a321a3cd3\"\n        },\n        {\n            \"key\": \"region\",\n            \"value\": \"Asia/Singapore\"\n        }\n    ],\n    \"qcontext\": \"scglobal\",\n    \"qtype\": \"tsdb\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://console.smartclean.io/prod/v2/scmetrics/v4/actions?op=scmetrics.tsdbNamedQuery&org=SMARTCLEAN&propid=d2ff1cc0ee104abba3a8ba030c72cd06&pid=45ea1d38775046dbbdc955362b8834b1","host":["https://console.smartclean.io/prod/v2"],"path":["scmetrics","v4","actions"],"query":[{"key":"op","value":"scmetrics.tsdbNamedQuery"},{"key":"org","value":"SMARTCLEAN"},{"key":"propid","value":"d2ff1cc0ee104abba3a8ba030c72cd06"},{"key":"pid","value":"45ea1d38775046dbbdc955362b8834b1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"53"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Fri, 20 May 2022 07:41:37 GMT"},{"key":"x-amzn-RequestId","value":"3f996c24-45b3-40cd-b6ae-9e09966fa49c"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"SafnwHmByQ0Fv1A="},{"key":"X-Amzn-Trace-Id","value":"Root=1-62874631-581c50442618295d182ca591;Sampled=0"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 740fccc7c62d49696904618862f889f8.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"SIN52-P1"},{"key":"X-Amz-Cf-Id","value":"wTXvnrKbdv2I2RNvkYIEtKGjsgtMDLGlHA4Lft7U0SrsZBj-faSTWA=="}],"cookie":[],"responseTime":null,"body":"{\n    \"type\": \"json\",\n    \"series\": null,\n    \"queryType\": \"namedTSDB\"\n}"},{"id":"1df3f8c1-0711-4250-992e-1db5bdc0803d","name":"403 Auth failed (Basic Auth)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"id\": \"pplctr_tsdb_query_for_device_type_PPLCTR\",\n    \"params\": [\n        {\n            \"key\": \"$tstart\",\n            \"value\": \"2022-01-11T10:00:00.000Z\"\n        },\n        {\n            \"key\": \"$tend\",\n            \"value\": \"2022-01-11T16:00:00.000Z\"\n        },\n        {\n            \"key\": \"$devid\",\n            \"value\": \"c2a462246a62470db3caf862e9d1e0ef\"\n        },\n        {\n            \"key\": \"region\",\n            \"value\": \"<time zone>\"\n        }\n    ],\n    \"qcontext\": \"scglobal\",\n    \"qtype\": \"tsdb\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://console.smartclean.io/prod/v2/{{metrics-id}}/v4/actions?op=scmetrics.tsdbNamedQuery&org=SMARTCLEAN&propid=d2ff1cc0ee104abba3a8ba030c72cd06&pid=45ea1d38775046dbbdc955362b8834b1","host":["https://console.smartclean.io/prod/v2"],"path":["{{metrics-id}}","v4","actions"],"query":[{"key":"op","value":"scmetrics.tsdbNamedQuery"},{"key":"org","value":"SMARTCLEAN"},{"key":"propid","value":"d2ff1cc0ee104abba3a8ba030c72cd06"},{"key":"pid","value":"45ea1d38775046dbbdc955362b8834b1"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"138"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Mon, 14 Mar 2022 03:50:21 GMT"},{"key":"x-amzn-RequestId","value":"d55b09ec-29ca-4584-bbc2-f8920ed42c68"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amzn-ErrorType","value":"AccessDeniedException"},{"key":"x-amz-apigw-id","value":"O9I7mE9lSQ0FUBQ="},{"key":"X-Cache","value":"Error from cloudfront"},{"key":"Via","value":"1.1 ccd5ce8e69d2dc421327946b6ecb3cbc.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"SIN52-C2"},{"key":"X-Amz-Cf-Id","value":"P60ueg7rvMkgo7nqQ6BlS1-3nnSh8sRW41AiHMKmAAnwyTaOrdYUsg=="}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"The module and operation you are trying to access was not allowed explcitily by the role you have.\",\n    \"code\": \"IMPLICIT_DENY\"\n}"},{"id":"e61ad932-30ed-470a-976e-8fb460d8eef1","name":"401 Auth failed (No Auth)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"id\": \"pplctr_tsdb_query_for_device_type_PPLCTR\",\n    \"params\": [\n        {\n            \"key\": \"$tstart\",\n            \"value\": \"2022-01-11T10:00:00.000Z\"\n        },\n        {\n            \"key\": \"$tend\",\n            \"value\": \"2022-01-11T16:00:00.000Z\"\n        },\n        {\n            \"key\": \"$devid\",\n            \"value\": \"c2a462246a62470db3caf862e9d1e0ef\"\n        },\n        {\n            \"key\": \"region\",\n            \"value\": \"<time zone>\"\n        }\n    ],\n    \"qcontext\": \"scglobal\",\n    \"qtype\": \"tsdb\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://console.smartclean.io/prod/v2/{{metrics-id}}/v4/actions?op=scmetrics.tsdbNamedQuery&org=SMARTCLEAN&propid=d2ff1cc0ee104abba3a8ba030c72cd06&pid=45ea1d38775046dbbdc955362b8834b1","host":["https://console.smartclean.io/prod/v2"],"path":["{{metrics-id}}","v4","actions"],"query":[{"key":"op","value":"scmetrics.tsdbNamedQuery"},{"key":"org","value":"SMARTCLEAN"},{"key":"propid","value":"d2ff1cc0ee104abba3a8ba030c72cd06"},{"key":"pid","value":"45ea1d38775046dbbdc955362b8834b1"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"51"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Mon, 14 Mar 2022 03:50:50 GMT"},{"key":"x-amzn-RequestId","value":"3986b7e3-43a4-48f2-958e-81df334afc69"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amzn-ErrorType","value":"UnauthorizedException"},{"key":"x-amz-apigw-id","value":"O9JAOE-NyQ0FoMQ="},{"key":"X-Cache","value":"Error from cloudfront"},{"key":"Via","value":"1.1 ccd5ce8e69d2dc421327946b6ecb3cbc.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"SIN52-C2"},{"key":"X-Amz-Cf-Id","value":"OHVdIdrf4nz5QueBLKLmqrAibcahZlVuh0JaQSN5mYkqFEbDU1tviw=="}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Unauthorized\",\n    \"code\": \"TOKEN_EXPIRED\"\n}"}],"_postman_id":"79b4f767-6b80-42ff-89be-8b6043a57ff0"},{"name":"Named Query","id":"47c8c7cf-f480-4c99-a809-84dac2e498e2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"id\": \"{{query id}}\",\n    \"params\": [\n        {\n            \"key\": \"$tstart\",\n            \"value\": \"{{start time (UTC) in ISO 8601 format}}\"\n        },\n        {\n            \"key\": \"$tend\",\n            \"value\": \"{{end time (UTC) in ISO 8601 format}}\"\n        },\n        {\n            \"key\": \"$devid\",\n            \"value\": \"{{device alias id}}\"\n        },\n        {\n            \"key\": \"region\",\n            \"value\": \"{{time zone in tzdatabase name}}\"\n        }\n    ],\n    \"qcontext\": \"scglobal\",\n    \"qtype\": \"tsdb\"\n}","options":{"raw":{"language":"json"}}},"url":"https://console.smartclean.io/prod/v2/scmetrics/v4/actions?op=scmetrics.executeNamedQuery&org=SMARTCLEAN&propid=d2ff1cc0ee104abba3a8ba030c72cd06&pid=45ea1d38775046dbbdc955362b8834b1","description":"<p>This request lets you get data of metrics for your SmartClean Sensor / Device in a time range.</p>\n<p>Data can be queried for until 2 minutes in the past (therefore this request is for the purpose of querying historical data, not for real time data.)</p>\n<p>Note: To access real time data for your SmartClean Sensor / Device, please get in touch with our representative.</p>\n<hr />\n<p>The information required must be supplied in the request body, with the following required attributes specified:</p>\n<ol>\n<li>id</li>\n<li>params</li>\n</ol>\n<p>The other attributes must be kept constant.</p>\n<p>id:</p>\n<ul>\n<li>Standard id of the query</li>\n<li>Examples:<ul>\n<li>People Counter device: \"pplctr_tsdb_query_for_device_type_PPLCTR\"</li>\n<li>Dispenser (Toilet roll / Paper towel / Soap) fill detector device: \"dm_tsdb_query_for_device_type_DM\"</li>\n<li><em>Air quality (CMOS based odour) detector device</em>: \"odrdtr_tsdb_query_for_device_type_ODRDTR\"</li>\n</ul>\n</li>\n</ul>\n<p>params:</p>\n<ul>\n<li>Parameters to be passed to the time series query</li>\n<li>The value is passed as an Array of Objects.</li>\n<li>Each object contains the name (key) and value of a standard parameter to be passed to the query</li>\n<li>Value format for attribute \"params\":<br />[<br />{\"key\": \"$tstart\", \"value\": \"Timestring in ISO 8601 format\"},<br />{\"key\": \"$tend\", \"value\": \"Timestring in ISO 8601 format\"},<br />{\"key\": \"$devid\", \"value\": \"Alias ID of the device\"},<br />{\"key\": \"$region\", \"value\": \"time zone in tzdatabase name (eg: Asia/Singapore)\"}<br />]</li>\n<li>Where some standard parameter objects are:<ul>\n<li>Param object to specify start time for the query<ul>\n<li>{\"key\": \"$tstart\", \"value\": \"UTC Time in ISO 8601 format\"}</li>\n</ul>\n</li>\n<li>Params object to specify end time for the query:<ul>\n<li>{\"key\": \"$tend\", \"value\": \"UTC Time ISO 8601 format}</li>\n</ul>\n</li>\n<li>Params object to specify Alias ID of the Device for the query:<ul>\n<li>{\"key\": \"$devid\", \"value\": \"Alias ID of the device\"}</li>\n</ul>\n</li>\n<li>Params object to specify region (time zone) for the query :<ul>\n<li>{\"key\": \"$region\", \"value\": \"time zone in tzdatabase name (eg: Asia/Singapore)\"}</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n<p>Important: For both \"$tstart\" and \"$tend\", the time given must be UTC and in ISO-8601 format</p>\n<hr />\n<p>This request is part of our time series queries, which lets you get historical data of standard time-series metrics for a certain entity in your SmartClean enabled Property.</p>\n","urlObject":{"path":["scmetrics","v4","actions"],"host":["https://console.smartclean.io/prod/v2"],"query":[{"key":"op","value":"scmetrics.executeNamedQuery"},{"key":"org","value":"SMARTCLEAN"},{"key":"propid","value":"d2ff1cc0ee104abba3a8ba030c72cd06"},{"key":"pid","value":"45ea1d38775046dbbdc955362b8834b1"}],"variable":[]}},"response":[{"id":"a1f9228b-060e-4337-bf19-f5ee748a93fe","name":"People Counter (PPLCTR)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"id\": \"pplctr_tsdb_query_for_device_type_PPLCTR\",\n    \"params\": [\n        {\n            \"key\": \"$tstart\",\n            \"value\": \"2022-05-19T16:00:00.000Z\"\n        },\n        {\n            \"key\": \"$tend\",\n            \"value\": \"2022-05-20T15:59:59.999Z\"\n        },\n        {\n            \"key\": \"$devid\",\n            \"value\": \"14d01eae60574b4e8cd89291dbba31dc\"\n        },\n        {\n            \"key\": \"region\",\n            \"value\": \"Asia/Singapore\"\n        }\n    ],\n    \"qcontext\": \"scglobal\",\n    \"qtype\": \"tsdb\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://console.smartclean.io/prod/v2/scmetrics/v4/actions?op=scmetrics.tsdbNamedQuery&org=SMARTCLEAN&propid=d2ff1cc0ee104abba3a8ba030c72cd06&pid=45ea1d38775046dbbdc955362b8834b1","host":["https://console.smartclean.io/prod/v2"],"path":["scmetrics","v4","actions"],"query":[{"key":"op","value":"scmetrics.tsdbNamedQuery"},{"key":"org","value":"SMARTCLEAN"},{"key":"propid","value":"d2ff1cc0ee104abba3a8ba030c72cd06"},{"key":"pid","value":"45ea1d38775046dbbdc955362b8834b1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"6681"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Fri, 20 May 2022 06:44:07 GMT"},{"key":"x-amzn-RequestId","value":"84220667-2442-4ebe-a6b4-f3e8cbb2abcd"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"SaXMrE88SQ0FoLQ="},{"key":"X-Amzn-Trace-Id","value":"Root=1-628738b7-386c2ae1239d608732e621ec;Sampled=0"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 a9cfec72cfc71c81978b7bbf79189fdc.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"SIN52-P1"},{"key":"X-Amz-Cf-Id","value":"B5pvVaQ33mrtooZBRObNW8a8JxdDuEeeBFJRqH8EXkWe68RRoAGs-w=="}],"cookie":[],"responseTime":null,"body":"{\n    \"type\": \"json\",\n    \"series\": [\n        {\n            \"values\": [\n                {\n                    \"_field\": \"sum\",\n                    \"_time\": \"2022-05-19T16:00:00+00:00\",\n                    \"_value\": \"0.0000\",\n                    \"l2class\": \"14d01eae60574b4e8cd89291dbba31dc\"\n                }\n            ],\n            \"id\": \"0\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"sum\",\n                    \"_time\": \"2022-05-19T16:30:00+00:00\",\n                    \"_value\": \"0.0000\",\n                    \"l2class\": \"14d01eae60574b4e8cd89291dbba31dc\"\n                }\n            ],\n            \"id\": \"1\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"sum\",\n                    \"_time\": \"2022-05-19T17:00:00+00:00\",\n                    \"_value\": \"0.0000\",\n                    \"l2class\": \"14d01eae60574b4e8cd89291dbba31dc\"\n                }\n            ],\n            \"id\": \"2\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"sum\",\n                    \"_time\": \"2022-05-19T17:30:00+00:00\",\n                    \"_value\": \"0.0000\",\n                    \"l2class\": \"14d01eae60574b4e8cd89291dbba31dc\"\n                }\n            ],\n            \"id\": \"3\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"sum\",\n                    \"_time\": \"2022-05-19T18:00:00+00:00\",\n                    \"_value\": \"0.0000\",\n                    \"l2class\": \"14d01eae60574b4e8cd89291dbba31dc\"\n                }\n            ],\n            \"id\": \"4\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"sum\",\n                    \"_time\": \"2022-05-19T18:30:00+00:00\",\n                    \"_value\": \"0.0000\",\n                    \"l2class\": \"14d01eae60574b4e8cd89291dbba31dc\"\n                }\n            ],\n            \"id\": \"5\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"sum\",\n                    \"_time\": \"2022-05-19T19:00:00+00:00\",\n                    \"_value\": \"0.0000\",\n                    \"l2class\": \"14d01eae60574b4e8cd89291dbba31dc\"\n                }\n            ],\n            \"id\": \"6\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"sum\",\n                    \"_time\": \"2022-05-19T19:30:00+00:00\",\n                    \"_value\": \"0.0000\",\n                    \"l2class\": \"14d01eae60574b4e8cd89291dbba31dc\"\n                }\n            ],\n            \"id\": \"7\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"sum\",\n                    \"_time\": \"2022-05-19T20:00:00+00:00\",\n                    \"_value\": \"0.0000\",\n                    \"l2class\": \"14d01eae60574b4e8cd89291dbba31dc\"\n                }\n            ],\n            \"id\": \"8\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"sum\",\n                    \"_time\": \"2022-05-19T20:30:00+00:00\",\n                    \"_value\": \"0.0000\",\n                    \"l2class\": \"14d01eae60574b4e8cd89291dbba31dc\"\n                }\n            ],\n            \"id\": \"9\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"sum\",\n                    \"_time\": \"2022-05-19T21:00:00+00:00\",\n                    \"_value\": \"0.0000\",\n                    \"l2class\": \"14d01eae60574b4e8cd89291dbba31dc\"\n                }\n            ],\n            \"id\": \"10\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"sum\",\n                    \"_time\": \"2022-05-19T21:30:00+00:00\",\n                    \"_value\": \"0.0000\",\n                    \"l2class\": \"14d01eae60574b4e8cd89291dbba31dc\"\n                }\n            ],\n            \"id\": \"11\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"sum\",\n                    \"_time\": \"2022-05-19T22:00:00+00:00\",\n                    \"_value\": \"0.0000\",\n                    \"l2class\": \"14d01eae60574b4e8cd89291dbba31dc\"\n                }\n            ],\n            \"id\": \"12\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"sum\",\n                    \"_time\": \"2022-05-19T22:30:00+00:00\",\n                    \"_value\": \"0.0000\",\n                    \"l2class\": \"14d01eae60574b4e8cd89291dbba31dc\"\n                }\n            ],\n            \"id\": \"13\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"sum\",\n                    \"_time\": \"2022-05-19T23:00:00+00:00\",\n                    \"_value\": \"0.0000\",\n                    \"l2class\": \"14d01eae60574b4e8cd89291dbba31dc\"\n                }\n            ],\n            \"id\": \"14\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"sum\",\n                    \"_time\": \"2022-05-19T23:30:00+00:00\",\n                    \"_value\": \"0.0000\",\n                    \"l2class\": \"14d01eae60574b4e8cd89291dbba31dc\"\n                }\n            ],\n            \"id\": \"15\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"sum\",\n                    \"_time\": \"2022-05-20T00:00:00+00:00\",\n                    \"_value\": \"0.0000\",\n                    \"l2class\": \"14d01eae60574b4e8cd89291dbba31dc\"\n                }\n            ],\n            \"id\": \"16\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"sum\",\n                    \"_time\": \"2022-05-20T00:30:00+00:00\",\n                    \"_value\": \"1.0000\",\n                    \"l2class\": \"14d01eae60574b4e8cd89291dbba31dc\"\n                }\n            ],\n            \"id\": \"17\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"sum\",\n                    \"_time\": \"2022-05-20T01:00:00+00:00\",\n                    \"_value\": \"0.0000\",\n                    \"l2class\": \"14d01eae60574b4e8cd89291dbba31dc\"\n                }\n            ],\n            \"id\": \"18\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"sum\",\n                    \"_time\": \"2022-05-20T01:30:00+00:00\",\n                    \"_value\": \"0.0000\",\n                    \"l2class\": \"14d01eae60574b4e8cd89291dbba31dc\"\n                }\n            ],\n            \"id\": \"19\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"sum\",\n                    \"_time\": \"2022-05-20T02:00:00+00:00\",\n                    \"_value\": \"0.0000\",\n                    \"l2class\": \"14d01eae60574b4e8cd89291dbba31dc\"\n                }\n            ],\n            \"id\": \"20\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"sum\",\n                    \"_time\": \"2022-05-20T02:30:00+00:00\",\n                    \"_value\": \"4.0000\",\n                    \"l2class\": \"14d01eae60574b4e8cd89291dbba31dc\"\n                }\n            ],\n            \"id\": \"21\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"sum\",\n                    \"_time\": \"2022-05-20T03:00:00+00:00\",\n                    \"_value\": \"8.0000\",\n                    \"l2class\": \"14d01eae60574b4e8cd89291dbba31dc\"\n                }\n            ],\n            \"id\": \"22\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"sum\",\n                    \"_time\": \"2022-05-20T03:30:00+00:00\",\n                    \"_value\": \"1.0000\",\n                    \"l2class\": \"14d01eae60574b4e8cd89291dbba31dc\"\n                }\n            ],\n            \"id\": \"23\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"sum\",\n                    \"_time\": \"2022-05-20T04:00:00+00:00\",\n                    \"_value\": \"0.0000\",\n                    \"l2class\": \"14d01eae60574b4e8cd89291dbba31dc\"\n                }\n            ],\n            \"id\": \"24\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"sum\",\n                    \"_time\": \"2022-05-20T04:30:00+00:00\",\n                    \"_value\": \"2.0000\",\n                    \"l2class\": \"14d01eae60574b4e8cd89291dbba31dc\"\n                }\n            ],\n            \"id\": \"25\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"sum\",\n                    \"_time\": \"2022-05-20T05:00:00+00:00\",\n                    \"_value\": \"3.0000\",\n                    \"l2class\": \"14d01eae60574b4e8cd89291dbba31dc\"\n                }\n            ],\n            \"id\": \"26\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"sum\",\n                    \"_time\": \"2022-05-20T05:30:00+00:00\",\n                    \"_value\": \"2.0000\",\n                    \"l2class\": \"14d01eae60574b4e8cd89291dbba31dc\"\n                }\n            ],\n            \"id\": \"27\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"sum\",\n                    \"_time\": \"2022-05-20T06:00:00+00:00\",\n                    \"_value\": \"1.0000\",\n                    \"l2class\": \"14d01eae60574b4e8cd89291dbba31dc\"\n                }\n            ],\n            \"id\": \"28\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        }\n    ],\n    \"queryType\": \"namedTSDB\"\n}"},{"id":"171a5263-4d17-4491-8873-1bd4e1937e73","name":"Air Quality (ODRDTR)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"id\": \"odrdtr_tsdb_query_for_device_type_ODRDTR\",\n    \"params\": [\n        {\n            \"key\": \"$tstart\",\n            \"value\": \"2022-05-19T16:00:00.000Z\"\n        },\n        {\n            \"key\": \"$tend\",\n            \"value\": \"2022-05-20T15:59:59.999Z\"\n        },\n        {\n            \"key\": \"$devid\",\n            \"value\": \"3bc0e35fe63d4afebae7228e7dea590c\"\n        },\n        {\n            \"key\": \"region\",\n            \"value\": \"Asia/Singapore\"\n        }\n    ],\n    \"qcontext\": \"scglobal\",\n    \"qtype\": \"tsdb\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://console.smartclean.io/prod/v2/scmetrics/v4/actions?op=scmetrics.tsdbNamedQuery&org=SMARTCLEAN&propid=d2ff1cc0ee104abba3a8ba030c72cd06&pid=45ea1d38775046dbbdc955362b8834b1","host":["https://console.smartclean.io/prod/v2"],"path":["scmetrics","v4","actions"],"query":[{"key":"op","value":"scmetrics.tsdbNamedQuery"},{"key":"org","value":"SMARTCLEAN"},{"key":"propid","value":"d2ff1cc0ee104abba3a8ba030c72cd06"},{"key":"pid","value":"45ea1d38775046dbbdc955362b8834b1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"7139"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Fri, 20 May 2022 07:39:47 GMT"},{"key":"x-amzn-RequestId","value":"ddaab0d0-a852-43a9-a8cb-1257b3eb5f08"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"SafWiH7SSQ0FSeA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-628745c3-4acf5ac15e168b9e1d1bafa9;Sampled=0"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 740fccc7c62d49696904618862f889f8.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"SIN52-P1"},{"key":"X-Amz-Cf-Id","value":"6MQwzDeVdJFBAgoBrJE80hxQvPKN9pSkG3Ih9CJnGR9VhPkwDn0R9Q=="}],"cookie":[],"responseTime":null,"body":"{\n    \"type\": \"json\",\n    \"series\": [\n        {\n            \"values\": [\n                {\n                    \"_field\": \"avg\",\n                    \"_time\": \"2022-05-19T16:00:00+00:00\",\n                    \"_value\": \"1.1816\",\n                    \"l2class\": \"3bc0e35fe63d4afebae7228e7dea590c\"\n                }\n            ],\n            \"id\": \"0\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"avg\",\n                    \"_time\": \"2022-05-19T16:30:00+00:00\",\n                    \"_value\": \"1.1451\",\n                    \"l2class\": \"3bc0e35fe63d4afebae7228e7dea590c\"\n                }\n            ],\n            \"id\": \"1\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"avg\",\n                    \"_time\": \"2022-05-19T17:00:00+00:00\",\n                    \"_value\": \"1.1269\",\n                    \"l2class\": \"3bc0e35fe63d4afebae7228e7dea590c\"\n                }\n            ],\n            \"id\": \"2\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"avg\",\n                    \"_time\": \"2022-05-19T17:30:00+00:00\",\n                    \"_value\": \"1.1297\",\n                    \"l2class\": \"3bc0e35fe63d4afebae7228e7dea590c\"\n                }\n            ],\n            \"id\": \"3\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"avg\",\n                    \"_time\": \"2022-05-19T18:00:00+00:00\",\n                    \"_value\": \"1.1451\",\n                    \"l2class\": \"3bc0e35fe63d4afebae7228e7dea590c\"\n                }\n            ],\n            \"id\": \"4\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"avg\",\n                    \"_time\": \"2022-05-19T18:30:00+00:00\",\n                    \"_value\": \"1.0287\",\n                    \"l2class\": \"3bc0e35fe63d4afebae7228e7dea590c\"\n                }\n            ],\n            \"id\": \"5\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"avg\",\n                    \"_time\": \"2022-05-19T19:00:00+00:00\",\n                    \"_value\": \"1.0001\",\n                    \"l2class\": \"3bc0e35fe63d4afebae7228e7dea590c\"\n                }\n            ],\n            \"id\": \"6\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"avg\",\n                    \"_time\": \"2022-05-19T19:30:00+00:00\",\n                    \"_value\": \"1.1442\",\n                    \"l2class\": \"3bc0e35fe63d4afebae7228e7dea590c\"\n                }\n            ],\n            \"id\": \"7\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"avg\",\n                    \"_time\": \"2022-05-19T20:00:00+00:00\",\n                    \"_value\": \"1.3165\",\n                    \"l2class\": \"3bc0e35fe63d4afebae7228e7dea590c\"\n                }\n            ],\n            \"id\": \"8\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"avg\",\n                    \"_time\": \"2022-05-19T20:30:00+00:00\",\n                    \"_value\": \"1.4003\",\n                    \"l2class\": \"3bc0e35fe63d4afebae7228e7dea590c\"\n                }\n            ],\n            \"id\": \"9\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"avg\",\n                    \"_time\": \"2022-05-19T21:00:00+00:00\",\n                    \"_value\": \"1.2463\",\n                    \"l2class\": \"3bc0e35fe63d4afebae7228e7dea590c\"\n                }\n            ],\n            \"id\": \"10\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"avg\",\n                    \"_time\": \"2022-05-19T21:30:00+00:00\",\n                    \"_value\": \"1.1885\",\n                    \"l2class\": \"3bc0e35fe63d4afebae7228e7dea590c\"\n                }\n            ],\n            \"id\": \"11\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"avg\",\n                    \"_time\": \"2022-05-19T22:00:00+00:00\",\n                    \"_value\": \"1.2763\",\n                    \"l2class\": \"3bc0e35fe63d4afebae7228e7dea590c\"\n                }\n            ],\n            \"id\": \"12\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"avg\",\n                    \"_time\": \"2022-05-19T22:30:00+00:00\",\n                    \"_value\": \"1.2997\",\n                    \"l2class\": \"3bc0e35fe63d4afebae7228e7dea590c\"\n                }\n            ],\n            \"id\": \"13\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"avg\",\n                    \"_time\": \"2022-05-19T23:00:00+00:00\",\n                    \"_value\": \"1.2882\",\n                    \"l2class\": \"3bc0e35fe63d4afebae7228e7dea590c\"\n                }\n            ],\n            \"id\": \"14\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"avg\",\n                    \"_time\": \"2022-05-19T23:30:00+00:00\",\n                    \"_value\": \"1.2402\",\n                    \"l2class\": \"3bc0e35fe63d4afebae7228e7dea590c\"\n                }\n            ],\n            \"id\": \"15\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"avg\",\n                    \"_time\": \"2022-05-20T00:00:00+00:00\",\n                    \"_value\": \"1.2227\",\n                    \"l2class\": \"3bc0e35fe63d4afebae7228e7dea590c\"\n                }\n            ],\n            \"id\": \"16\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"avg\",\n                    \"_time\": \"2022-05-20T00:30:00+00:00\",\n                    \"_value\": \"1.1746\",\n                    \"l2class\": \"3bc0e35fe63d4afebae7228e7dea590c\"\n                }\n            ],\n            \"id\": \"17\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"avg\",\n                    \"_time\": \"2022-05-20T01:00:00+00:00\",\n                    \"_value\": \"1.1266\",\n                    \"l2class\": \"3bc0e35fe63d4afebae7228e7dea590c\"\n                }\n            ],\n            \"id\": \"18\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"avg\",\n                    \"_time\": \"2022-05-20T01:30:00+00:00\",\n                    \"_value\": \"1.0395\",\n                    \"l2class\": \"3bc0e35fe63d4afebae7228e7dea590c\"\n                }\n            ],\n            \"id\": \"19\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"avg\",\n                    \"_time\": \"2022-05-20T02:00:00+00:00\",\n                    \"_value\": \"1.0804\",\n                    \"l2class\": \"3bc0e35fe63d4afebae7228e7dea590c\"\n                }\n            ],\n            \"id\": \"20\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"avg\",\n                    \"_time\": \"2022-05-20T02:30:00+00:00\",\n                    \"_value\": \"1.1307\",\n                    \"l2class\": \"3bc0e35fe63d4afebae7228e7dea590c\"\n                }\n            ],\n            \"id\": \"21\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"avg\",\n                    \"_time\": \"2022-05-20T03:00:00+00:00\",\n                    \"_value\": \"1.0527\",\n                    \"l2class\": \"3bc0e35fe63d4afebae7228e7dea590c\"\n                }\n            ],\n            \"id\": \"22\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"avg\",\n                    \"_time\": \"2022-05-20T03:30:00+00:00\",\n                    \"_value\": \"0.8502\",\n                    \"l2class\": \"3bc0e35fe63d4afebae7228e7dea590c\"\n                }\n            ],\n            \"id\": \"23\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"avg\",\n                    \"_time\": \"2022-05-20T04:00:00+00:00\",\n                    \"_value\": \"0.6413\",\n                    \"l2class\": \"3bc0e35fe63d4afebae7228e7dea590c\"\n                }\n            ],\n            \"id\": \"24\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"avg\",\n                    \"_time\": \"2022-05-20T04:30:00+00:00\",\n                    \"_value\": \"0.5076\",\n                    \"l2class\": \"3bc0e35fe63d4afebae7228e7dea590c\"\n                }\n            ],\n            \"id\": \"25\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"avg\",\n                    \"_time\": \"2022-05-20T05:00:00+00:00\",\n                    \"_value\": \"0.5620\",\n                    \"l2class\": \"3bc0e35fe63d4afebae7228e7dea590c\"\n                }\n            ],\n            \"id\": \"26\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"avg\",\n                    \"_time\": \"2022-05-20T05:30:00+00:00\",\n                    \"_value\": \"0.7043\",\n                    \"l2class\": \"3bc0e35fe63d4afebae7228e7dea590c\"\n                }\n            ],\n            \"id\": \"27\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"avg\",\n                    \"_time\": \"2022-05-20T06:00:00+00:00\",\n                    \"_value\": \"0.7580\",\n                    \"l2class\": \"3bc0e35fe63d4afebae7228e7dea590c\"\n                }\n            ],\n            \"id\": \"28\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"avg\",\n                    \"_time\": \"2022-05-20T06:30:00+00:00\",\n                    \"_value\": \"0.6429\",\n                    \"l2class\": \"3bc0e35fe63d4afebae7228e7dea590c\"\n                }\n            ],\n            \"id\": \"29\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        },\n        {\n            \"values\": [\n                {\n                    \"_field\": \"avg\",\n                    \"_time\": \"2022-05-20T07:00:00+00:00\",\n                    \"_value\": \"0.3967\",\n                    \"l2class\": \"3bc0e35fe63d4afebae7228e7dea590c\"\n                }\n            ],\n            \"id\": \"30\",\n            \"_start\": \"2022-05-19T16:00:00Z\",\n            \"_end\": \"2022-05-20T15:59:59Z\",\n            \"aggregationInterval\": \"30T\"\n        }\n    ],\n    \"queryType\": \"namedTSDB\"\n}"},{"id":"80da4e43-b801-4130-8ad5-88878de7cdc4","name":"Dispenser (PT)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"id\": \"dm_tsdb_query_for_device_type_DM\",\n    \"params\": [\n        {\n            \"key\": \"$tstart\",\n            \"value\": \"2022-05-19T00:00:00.000Z\"\n        },\n        {\n            \"key\": \"$tend\",\n            \"value\": \"2022-05-20T15:59:59.999Z\"\n        },\n        {\n            \"key\": \"$devid\",\n            \"value\": \"9fabca100ad9417f8389f38a321a3cd3\"\n        },\n        {\n            \"key\": \"region\",\n            \"value\": \"Asia/Singapore\"\n        }\n    ],\n    \"qcontext\": \"scglobal\",\n    \"qtype\": \"tsdb\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://console.smartclean.io/prod/v2/scmetrics/v4/actions?op=scmetrics.tsdbNamedQuery&org=SMARTCLEAN&propid=d2ff1cc0ee104abba3a8ba030c72cd06&pid=45ea1d38775046dbbdc955362b8834b1","host":["https://console.smartclean.io/prod/v2"],"path":["scmetrics","v4","actions"],"query":[{"key":"op","value":"scmetrics.tsdbNamedQuery"},{"key":"org","value":"SMARTCLEAN"},{"key":"propid","value":"d2ff1cc0ee104abba3a8ba030c72cd06"},{"key":"pid","value":"45ea1d38775046dbbdc955362b8834b1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"53"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Fri, 20 May 2022 07:41:37 GMT"},{"key":"x-amzn-RequestId","value":"3f996c24-45b3-40cd-b6ae-9e09966fa49c"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"SafnwHmByQ0Fv1A="},{"key":"X-Amzn-Trace-Id","value":"Root=1-62874631-581c50442618295d182ca591;Sampled=0"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 740fccc7c62d49696904618862f889f8.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"SIN52-P1"},{"key":"X-Amz-Cf-Id","value":"wTXvnrKbdv2I2RNvkYIEtKGjsgtMDLGlHA4Lft7U0SrsZBj-faSTWA=="}],"cookie":[],"responseTime":null,"body":"{\n    \"type\": \"json\",\n    \"series\": null,\n    \"queryType\": \"namedTSDB\"\n}"},{"id":"6ec90f5d-5d8a-4952-b1df-46dcc586984f","name":"403 Auth failed (Basic Auth)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"id\": \"pplctr_tsdb_query_for_device_type_PPLCTR\",\n    \"params\": [\n        {\n            \"key\": \"$tstart\",\n            \"value\": \"2022-01-11T10:00:00.000Z\"\n        },\n        {\n            \"key\": \"$tend\",\n            \"value\": \"2022-01-11T16:00:00.000Z\"\n        },\n        {\n            \"key\": \"$devid\",\n            \"value\": \"c2a462246a62470db3caf862e9d1e0ef\"\n        },\n        {\n            \"key\": \"region\",\n            \"value\": \"<time zone>\"\n        }\n    ],\n    \"qcontext\": \"scglobal\",\n    \"qtype\": \"tsdb\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://console.smartclean.io/prod/v2/{{metrics-id}}/v4/actions?op=scmetrics.tsdbNamedQuery&org=SMARTCLEAN&propid=d2ff1cc0ee104abba3a8ba030c72cd06&pid=45ea1d38775046dbbdc955362b8834b1","host":["https://console.smartclean.io/prod/v2"],"path":["{{metrics-id}}","v4","actions"],"query":[{"key":"op","value":"scmetrics.tsdbNamedQuery"},{"key":"org","value":"SMARTCLEAN"},{"key":"propid","value":"d2ff1cc0ee104abba3a8ba030c72cd06"},{"key":"pid","value":"45ea1d38775046dbbdc955362b8834b1"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"138"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Mon, 14 Mar 2022 03:50:21 GMT"},{"key":"x-amzn-RequestId","value":"d55b09ec-29ca-4584-bbc2-f8920ed42c68"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amzn-ErrorType","value":"AccessDeniedException"},{"key":"x-amz-apigw-id","value":"O9I7mE9lSQ0FUBQ="},{"key":"X-Cache","value":"Error from cloudfront"},{"key":"Via","value":"1.1 ccd5ce8e69d2dc421327946b6ecb3cbc.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"SIN52-C2"},{"key":"X-Amz-Cf-Id","value":"P60ueg7rvMkgo7nqQ6BlS1-3nnSh8sRW41AiHMKmAAnwyTaOrdYUsg=="}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"The module and operation you are trying to access was not allowed explcitily by the role you have.\",\n    \"code\": \"IMPLICIT_DENY\"\n}"},{"id":"866beef9-cde2-41ab-9808-35027c66c8da","name":"401 Auth failed (No Auth)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"id\": \"pplctr_tsdb_query_for_device_type_PPLCTR\",\n    \"params\": [\n        {\n            \"key\": \"$tstart\",\n            \"value\": \"2022-01-11T10:00:00.000Z\"\n        },\n        {\n            \"key\": \"$tend\",\n            \"value\": \"2022-01-11T16:00:00.000Z\"\n        },\n        {\n            \"key\": \"$devid\",\n            \"value\": \"c2a462246a62470db3caf862e9d1e0ef\"\n        },\n        {\n            \"key\": \"region\",\n            \"value\": \"<time zone>\"\n        }\n    ],\n    \"qcontext\": \"scglobal\",\n    \"qtype\": \"tsdb\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://console.smartclean.io/prod/v2/{{metrics-id}}/v4/actions?op=scmetrics.tsdbNamedQuery&org=SMARTCLEAN&propid=d2ff1cc0ee104abba3a8ba030c72cd06&pid=45ea1d38775046dbbdc955362b8834b1","host":["https://console.smartclean.io/prod/v2"],"path":["{{metrics-id}}","v4","actions"],"query":[{"key":"op","value":"scmetrics.tsdbNamedQuery"},{"key":"org","value":"SMARTCLEAN"},{"key":"propid","value":"d2ff1cc0ee104abba3a8ba030c72cd06"},{"key":"pid","value":"45ea1d38775046dbbdc955362b8834b1"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"51"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Mon, 14 Mar 2022 03:50:50 GMT"},{"key":"x-amzn-RequestId","value":"3986b7e3-43a4-48f2-958e-81df334afc69"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amzn-ErrorType","value":"UnauthorizedException"},{"key":"x-amz-apigw-id","value":"O9JAOE-NyQ0FoMQ="},{"key":"X-Cache","value":"Error from cloudfront"},{"key":"Via","value":"1.1 ccd5ce8e69d2dc421327946b6ecb3cbc.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"SIN52-C2"},{"key":"X-Amz-Cf-Id","value":"OHVdIdrf4nz5QueBLKLmqrAibcahZlVuh0JaQSN5mYkqFEbDU1tviw=="}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Unauthorized\",\n    \"code\": \"TOKEN_EXPIRED\"\n}"},{"id":"88daa1ea-08fd-48f4-bc2e-f39d390444d6","name":"FD (feedbacks_by_dom)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"id\": \"feedbacks_by_dom\",\n    \"params\": [\n        {\n            \"key\": \"$3\",\n            \"value\": \"default\"\n        },\n        {\n            \"key\": \"$2\",\n            \"value\": \"default\"\n        },\n        {\n            \"key\": \"region\",\n            \"value\": \"Asia/Singapore\"\n        }\n    ],\n    \"qcontext\": \"scglobal\",\n    \"qtype\": \"psql\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://console.smartclean.io/prod/v2/scmetrics/v4/actions?op=scmetrics.executeNamedQuery&org=SMARTCLEAN&propid=d2ff1cc0ee104abba3a8ba030c72cd06&pid=45ea1d38775046dbbdc955362b8834b1","host":["https://console.smartclean.io/prod/v2"],"path":["scmetrics","v4","actions"],"query":[{"key":"op","value":"scmetrics.executeNamedQuery"},{"key":"org","value":"SMARTCLEAN"},{"key":"propid","value":"d2ff1cc0ee104abba3a8ba030c72cd06"},{"key":"pid","value":"45ea1d38775046dbbdc955362b8834b1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"176"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Mon, 05 Sep 2022 10:19:35 GMT"},{"key":"x-amzn-RequestId","value":"1998db1b-27cb-40d2-b6e1-b7c2e910d523"},{"key":"Access-Control-Allow-Origin","value":"https://www.smartclean.io"},{"key":"x-amz-apigw-id","value":"X-0AkEjnSQ0FaIA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-6315cd36-2b1dcca27a409bef59a0f587;Sampled=0"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 740fccc7c62d49696904618862f889f8.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"SIN52-P1"},{"key":"X-Amz-Cf-Id","value":"7D3ppGYHP__g_bOmY-1bTrSIVmPp31QCSbGh1knUxANKTMnv7UzX8w=="}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"insid\": \"485eeb6b8bf2416db7bf323fcbd90bd1\",\n            \"rating\": 2,\n            \"ratingcounts\": 1\n        },\n        {\n            \"insid\": \"f802f204c17d42bc91073955fa8aaf50\",\n            \"rating\": 2,\n            \"ratingcounts\": 6\n        },\n        {\n            \"insid\": \"0163d65717b34113aacf85a8fd9af95b\",\n            \"rating\": 4,\n            \"ratingcounts\": 1\n        },\n        {\n            \"insid\": \"3126c3729b9744cca0dd6e08bdbd0747\",\n            \"rating\": 1,\n            \"ratingcounts\": 7\n        },\n        {\n            \"insid\": \"6bedd3d22a024c68b86dab4f2e666b76\",\n            \"rating\": 2,\n            \"ratingcounts\": 6\n        },\n        {\n            \"insid\": \"7f78b15644ca407286ecf23b6c0d5a5e\",\n            \"rating\": 2,\n            \"ratingcounts\": 3\n        },\n        {\n            \"insid\": \"a98c6fe48ebb4467ab6e4e8d6300a335\",\n            \"rating\": 2,\n            \"ratingcounts\": 7\n        },\n        {\n            \"insid\": \"c53806853ad34200a01ccf9ddde77df5\",\n            \"rating\": 4,\n            \"ratingcounts\": 1\n        },\n        {\n            \"insid\": \"5a1b6fd5fafd48938d03ddca651e0b50\",\n            \"rating\": 2,\n            \"ratingcounts\": 1\n        },\n        {\n            \"insid\": \"0163d65717b34113aacf85a8fd9af95b\",\n            \"rating\": 2,\n            \"ratingcounts\": 6\n        },\n        {\n            \"insid\": \"87d07fa5efba4dfeac9eeefe60492f31\",\n            \"rating\": 2,\n            \"ratingcounts\": 6\n        },\n        {\n            \"insid\": \"5a1b6fd5fafd48938d03ddca651e0b50\",\n            \"rating\": 1,\n            \"ratingcounts\": 9\n        },\n        {\n            \"insid\": \"0163d65717b34113aacf85a8fd9af95b\",\n            \"rating\": 1,\n            \"ratingcounts\": 16\n        },\n        {\n            \"insid\": \"6bedd3d22a024c68b86dab4f2e666b76\",\n            \"rating\": 1,\n            \"ratingcounts\": 20\n        },\n        {\n            \"insid\": \"64bccc578fcc4c9b99a65238bf9b9535\",\n            \"rating\": 2,\n            \"ratingcounts\": 3\n        },\n        {\n            \"insid\": \"64bccc578fcc4c9b99a65238bf9b9535\",\n            \"rating\": 3,\n            \"ratingcounts\": 2\n        },\n        {\n            \"insid\": \"4dab66d5abe74773bfd2f675c3ae0627\",\n            \"rating\": 1,\n            \"ratingcounts\": 11\n        },\n        {\n            \"insid\": \"485eeb6b8bf2416db7bf323fcbd90bd1\",\n            \"rating\": 4,\n            \"ratingcounts\": 1\n        },\n        {\n            \"insid\": \"f802f204c17d42bc91073955fa8aaf50\",\n            \"rating\": 4,\n            \"ratingcounts\": 4\n        },\n        {\n            \"insid\": \"57043e12570247aab52fc7fa00af24d5\",\n            \"rating\": 2,\n            \"ratingcounts\": 3\n        },\n        {\n            \"insid\": \"2266945ec652491fa2b736c1fa855abe\",\n            \"rating\": 5,\n            \"ratingcounts\": 1\n        },\n        {\n            \"insid\": \"6186d0982c9f4b2fbf7e88fdf4009f3e\",\n            \"rating\": 1,\n            \"ratingcounts\": 3\n        },\n        {\n            \"insid\": \"4dab66d5abe74773bfd2f675c3ae0627\",\n            \"rating\": 5,\n            \"ratingcounts\": 1\n        },\n        {\n            \"insid\": \"2266945ec652491fa2b736c1fa855abe\",\n            \"rating\": 2,\n            \"ratingcounts\": 3\n        },\n        {\n            \"insid\": \"7f78b15644ca407286ecf23b6c0d5a5e\",\n            \"rating\": 3,\n            \"ratingcounts\": 4\n        },\n        {\n            \"insid\": \"c53806853ad34200a01ccf9ddde77df5\",\n            \"rating\": 2,\n            \"ratingcounts\": 7\n        },\n        {\n            \"insid\": \"64bccc578fcc4c9b99a65238bf9b9535\",\n            \"rating\": 1,\n            \"ratingcounts\": 11\n        },\n        {\n            \"insid\": \"485eeb6b8bf2416db7bf323fcbd90bd1\",\n            \"rating\": 1,\n            \"ratingcounts\": 7\n        },\n        {\n            \"insid\": \"87d07fa5efba4dfeac9eeefe60492f31\",\n            \"rating\": 1,\n            \"ratingcounts\": 5\n        },\n        {\n            \"insid\": \"5a1b6fd5fafd48938d03ddca651e0b50\",\n            \"rating\": 3,\n            \"ratingcounts\": 1\n        },\n        {\n            \"insid\": \"a98c6fe48ebb4467ab6e4e8d6300a335\",\n            \"rating\": 1,\n            \"ratingcounts\": 10\n        },\n        {\n            \"insid\": \"a98c6fe48ebb4467ab6e4e8d6300a335\",\n            \"rating\": 3,\n            \"ratingcounts\": 3\n        },\n        {\n            \"insid\": \"f31da104ef644dfa9a8420091f6ad9cf\",\n            \"rating\": 1,\n            \"ratingcounts\": 7\n        },\n        {\n            \"insid\": \"3126c3729b9744cca0dd6e08bdbd0747\",\n            \"rating\": 3,\n            \"ratingcounts\": 1\n        },\n        {\n            \"insid\": \"f802f204c17d42bc91073955fa8aaf50\",\n            \"rating\": 1,\n            \"ratingcounts\": 7\n        },\n        {\n            \"insid\": \"2266945ec652491fa2b736c1fa855abe\",\n            \"rating\": 1,\n            \"ratingcounts\": 30\n        },\n        {\n            \"insid\": \"a98c6fe48ebb4467ab6e4e8d6300a335\",\n            \"rating\": 5,\n            \"ratingcounts\": 1\n        },\n        {\n            \"insid\": \"c53806853ad34200a01ccf9ddde77df5\",\n            \"rating\": 1,\n            \"ratingcounts\": 15\n        },\n        {\n            \"insid\": \"2266945ec652491fa2b736c1fa855abe\",\n            \"rating\": 3,\n            \"ratingcounts\": 2\n        },\n        {\n            \"insid\": \"4dab66d5abe74773bfd2f675c3ae0627\",\n            \"rating\": 2,\n            \"ratingcounts\": 1\n        },\n        {\n            \"insid\": \"87d07fa5efba4dfeac9eeefe60492f31\",\n            \"rating\": 3,\n            \"ratingcounts\": 1\n        },\n        {\n            \"insid\": \"0163d65717b34113aacf85a8fd9af95b\",\n            \"rating\": 3,\n            \"ratingcounts\": 1\n        },\n        {\n            \"insid\": \"f802f204c17d42bc91073955fa8aaf50\",\n            \"rating\": 3,\n            \"ratingcounts\": 2\n        },\n        {\n            \"insid\": \"f802f204c17d42bc91073955fa8aaf50\",\n            \"rating\": 5,\n            \"ratingcounts\": 3\n        },\n        {\n            \"insid\": \"64bccc578fcc4c9b99a65238bf9b9535\",\n            \"rating\": 4,\n            \"ratingcounts\": 1\n        },\n        {\n            \"insid\": \"57043e12570247aab52fc7fa00af24d5\",\n            \"rating\": 1,\n            \"ratingcounts\": 4\n        },\n        {\n            \"insid\": \"3126c3729b9744cca0dd6e08bdbd0747\",\n            \"rating\": 2,\n            \"ratingcounts\": 7\n        },\n        {\n            \"insid\": \"6bedd3d22a024c68b86dab4f2e666b76\",\n            \"rating\": 5,\n            \"ratingcounts\": 1\n        },\n        {\n            \"insid\": \"2266945ec652491fa2b736c1fa855abe\",\n            \"rating\": 4,\n            \"ratingcounts\": 1\n        },\n        {\n            \"insid\": \"c53806853ad34200a01ccf9ddde77df5\",\n            \"rating\": 3,\n            \"ratingcounts\": 3\n        },\n        {\n            \"insid\": \"7f78b15644ca407286ecf23b6c0d5a5e\",\n            \"rating\": 1,\n            \"ratingcounts\": 9\n        },\n        {\n            \"insid\": \"f31da104ef644dfa9a8420091f6ad9cf\",\n            \"rating\": 2,\n            \"ratingcounts\": 1\n        }\n    ],\n    \"type\": \"json\",\n    \"queryType\": \"categorical\",\n    \"qid\": \"feedbacks_by_dom\",\n    \"requestId\": \"39afe99079fd0ee01331bff5477dbe06000d5c5b2de61b682e813b1736b0890e\",\n    \"status\": \"success\"\n}"},{"id":"9dc0d46d-c0fa-4e2f-a0b7-a51ee33c0505","name":"FD (reasons_distribution_by_dom_v1)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"id\": \"reasons_distribution_by_dom_v1\",\n    \"params\": [\n        {\n            \"key\": \"$dom\",\n            \"value\": \"default\"\n        },\n        {\n            \"key\": \"$month\",\n            \"value\": \"default\"\n        },\n        {\n            \"key\": \"region\",\n            \"value\": \"Asia/Singapore\"\n        }\n    ],\n    \"qcontext\": \"scglobal\",\n    \"qtype\": \"psql\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://console.smartclean.io/prod/v2/scmetrics/v4/actions?op=scmetrics.executeNamedQuery&org=SMARTCLEAN&propid=d2ff1cc0ee104abba3a8ba030c72cd06&pid=45ea1d38775046dbbdc955362b8834b1","host":["https://console.smartclean.io/prod/v2"],"path":["scmetrics","v4","actions"],"query":[{"key":"op","value":"scmetrics.executeNamedQuery"},{"key":"org","value":"SMARTCLEAN"},{"key":"propid","value":"d2ff1cc0ee104abba3a8ba030c72cd06"},{"key":"pid","value":"45ea1d38775046dbbdc955362b8834b1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"190"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Mon, 05 Sep 2022 10:21:33 GMT"},{"key":"x-amzn-RequestId","value":"766bac9a-8d5e-4b9b-863f-ad8fe1e27302"},{"key":"Access-Control-Allow-Origin","value":"https://www.smartclean.io"},{"key":"x-amz-apigw-id","value":"X-0TBEK5SQ0FfTQ="},{"key":"X-Amzn-Trace-Id","value":"Root=1-6315cdac-7caf2ae83a607d235ebc7caa;Sampled=0"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 740fccc7c62d49696904618862f889f8.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"SIN52-P1"},{"key":"X-Amz-Cf-Id","value":"NrT2BhMc2V36K1ImSue4t3CbZg4DHL-Blx2E9TtaMrMTUYhXTotVXw=="}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"count\": 5,\n            \"reasons\": \"Wet/Dirty Floor\"\n        },\n        {\n            \"count\": 3,\n            \"reasons\": \"Dirty Basin\"\n        },\n        {\n            \"count\": 6,\n            \"reasons\": \"No Soap\"\n        },\n        {\n            \"count\": 4,\n            \"reasons\": \"Dirty Cubicle\"\n        },\n        {\n            \"count\": 4,\n            \"reasons\": \"Dirty Mirror\"\n        },\n        {\n            \"count\": 1,\n            \"reasons\": \"Bin Full\"\n        },\n        {\n            \"count\": 5,\n            \"reasons\": \"Bad Smell\"\n        },\n        {\n            \"count\": 1,\n            \"reasons\": \"Dirty Urinal\"\n        }\n    ],\n    \"type\": \"json\",\n    \"queryType\": \"categorical\",\n    \"qid\": \"reasons_distribution_by_dom_v1\",\n    \"requestId\": \"60dc8ecb49b87123db5fc4cca4cfa9dbd945a5f7d9ad7456be9d0f38dfb592bf\",\n    \"status\": \"success\"\n}"},{"id":"79540e31-242c-4c17-a0db-a7b62d50bb8b","name":"FD (feedbacks_by_dom_building)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"id\": \"feedbacks_by_dom_building\",\n    \"params\": [\n        {\n            \"key\": \"$3\",\n            \"value\": \"default\"\n        },\n        {\n            \"key\": \"$2\",\n            \"value\": \"default\"\n        },\n        {\n            \"key\": \"region\",\n            \"value\": \"Asia/Singapore\"\n        }\n    ],\n    \"qcontext\": \"scglobal\",\n    \"qtype\": \"psql\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://console.smartclean.io/prod/v2/scmetrics/v4/actions?op=scmetrics.executeNamedQuery&org=SMARTCLEAN&propid=d2ff1cc0ee104abba3a8ba030c72cd06&pid=45ea1d38775046dbbdc955362b8834b1","host":["https://console.smartclean.io/prod/v2"],"path":["scmetrics","v4","actions"],"query":[{"key":"op","value":"scmetrics.executeNamedQuery"},{"key":"org","value":"SMARTCLEAN"},{"key":"propid","value":"d2ff1cc0ee104abba3a8ba030c72cd06"},{"key":"pid","value":"45ea1d38775046dbbdc955362b8834b1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"185"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Mon, 05 Sep 2022 10:23:29 GMT"},{"key":"x-amzn-RequestId","value":"5813f43d-6064-4429-abdd-9b6b13394f70"},{"key":"Access-Control-Allow-Origin","value":"https://www.smartclean.io"},{"key":"x-amz-apigw-id","value":"X-0lOEf8SQ0Fa2Q="},{"key":"X-Amzn-Trace-Id","value":"Root=1-6315ce21-777b52ec35ff07d43e0794b0;Sampled=0"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 740fccc7c62d49696904618862f889f8.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"SIN52-P1"},{"key":"X-Amz-Cf-Id","value":"9gCL_rtws1pG2sA8QZGaLRClcWbYd_cQvH-a9SymWCaDkTnOhob-aQ=="}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"rating\": 4,\n            \"ratingcounts\": 9\n        },\n        {\n            \"rating\": 3,\n            \"ratingcounts\": 20\n        },\n        {\n            \"rating\": 1,\n            \"ratingcounts\": 171\n        },\n        {\n            \"rating\": 5,\n            \"ratingcounts\": 7\n        },\n        {\n            \"rating\": 2,\n            \"ratingcounts\": 61\n        }\n    ],\n    \"type\": \"json\",\n    \"queryType\": \"categorical\",\n    \"qid\": \"feedbacks_by_dom_building\",\n    \"requestId\": \"28efe56b2f46776296e1441b8d67d3cf135bd29768e376e2207942eb9c95fcd9\",\n    \"status\": \"success\"\n}"}],"_postman_id":"47c8c7cf-f480-4c99-a809-84dac2e498e2"}],"id":"9b7a698f-b18b-40aa-891d-46c5a004b387","description":"<p>This folder contains requests to the SmartClean service: \"Metrics\"</p>\n<p>This service Allows you to view metrics for various SmartClean modules in your SmartClean account and your SmartClean enabled Property.</p>\n","event":[{"listen":"prerequest","script":{"id":"61ee0b27-1694-44b1-947e-e547b1098078","type":"text/javascript","exec":["const scModule = 'scmetrics';","pm.variables.set('scModule', scModule);"]}},{"listen":"test","script":{"id":"9662e54a-2c0c-4f63-b5d0-3f690ed280a7","type":"text/javascript","exec":[""]}}],"_postman_id":"9b7a698f-b18b-40aa-891d-46c5a004b387"},{"name":"Workforce","item":[{"name":"Get assigned tasks","item":[{"name":"Tasks for Property in past 24 hours","id":"65b242e9-251a-4421-80ba-9fac9a7c87b1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"TasksFor\":\"PROP\"\n}","options":{"raw":{"language":"json"}}},"url":"https://console.smartclean.io/prod/v2/scworkforcemanagement/v1/actions?op=scteams.getLastNTasks&org=SMARTCLEAN&propid=d2ff1cc0ee104abba3a8ba030c72cd06&pid=45ea1d38775046dbbdc955362b8834b1","description":"<p>Get at most 10 tasks for the Property in the past 24 hours.</p>\n<p>Property is specified by the query parameter: \"propid\" in the request URL.</p>\n","urlObject":{"path":["scworkforcemanagement","v1","actions"],"host":["https://console.smartclean.io/prod/v2"],"query":[{"key":"op","value":"scteams.getLastNTasks"},{"key":"org","value":"SMARTCLEAN"},{"key":"propid","value":"d2ff1cc0ee104abba3a8ba030c72cd06"},{"key":"pid","value":"45ea1d38775046dbbdc955362b8834b1"}],"variable":[]}},"response":[{"id":"bc24a470-47ed-446b-8ca3-fbeb8a41b7cc","name":"success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"TasksFor\":\"PROP\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://console.smartclean.io/prod/v2/scworkforcemanagement/v1/actions?op=scteams.getLastNTasks&org=SMARTCLEAN&propid=d2ff1cc0ee104abba3a8ba030c72cd06&pid=45ea1d38775046dbbdc955362b8834b1","host":["https://console.smartclean.io/prod/v2"],"path":["scworkforcemanagement","v1","actions"],"query":[{"key":"op","value":"scteams.getLastNTasks"},{"key":"org","value":"SMARTCLEAN"},{"key":"propid","value":"d2ff1cc0ee104abba3a8ba030c72cd06"},{"key":"pid","value":"45ea1d38775046dbbdc955362b8834b1"}]}},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"691"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 27 Jul 2022 04:52:52 GMT"},{"key":"x-amzn-RequestId","value":"05539cfc-d7bb-4429-ac2d-fdbc110b1384"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"V6OpsEYRSQ0Fm_A="},{"key":"X-Amzn-Trace-Id","value":"Root=1-62e0c4a4-3b89f32514592cc765cc8d7f;Sampled=0"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 4cad8a97cc16b078d964f8e158a1b4ae.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"SIN52-P1"},{"key":"X-Amz-Cf-Id","value":"3SHJvZtDfP9i12KAQLHaNxig80grRPYwNxt16SxSVJcV1BouiFi4Ow=="}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Successfully retrieved requested items in time range[UTC] 2022-07-26 04:52:52(+0000) to 2022-07-27 04:52:52(+0000) for PROP: d2ff1cc0ee104abba3a8ba030c72cd06.\",\n    \"data\": [\n        {\n            \"Tasks\": [\n                {\n                    \"Name\": \"High Usage\",\n                    \"Done\": false,\n                    \"T\": -1,\n                    \"Comments\": \"Time to touch up now\"\n                }\n            ],\n            \"PropID\": \"d2ff1cc0ee104abba3a8ba030c72cd06\",\n            \"Status\": \"INCOMPLETE\",\n            \"taskCount\": 0,\n            \"ATTR\": \"attr#45ea1d38775046dbbdc955362b8834b1#d2ff1cc0ee104abba3a8ba030c72cd06_008#18413af2-b934-4972-af18-813ceaec5ece#1658825931405561605\",\n            \"AEnd\": 1658829604,\n            \"Start\": 1658825931,\n            \"By\": \"PC\",\n            \"End\": 1658826831,\n            \"Zone\": \"6836bc5be8864f31837d3a36326b634b\",\n            \"ID\": \"45ea1d38775046dbbdc955362b8834b1\",\n            \"Type\": \"INCIDENT\",\n            \"Name\": \"High Usage\"\n        }\n    ],\n    \"code\": \"SUCCESS\"\n}"}],"_postman_id":"65b242e9-251a-4421-80ba-9fac9a7c87b1"},{"name":"Tasks for Building in past 24 hours","id":"be152d2b-3d18-432d-8290-399a6ad988b9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"https://console.smartclean.io/prod/v2/scworkforcemanagement/v1/actions?op=scteams.getLastNTasks&org=SMARTCLEAN&propid=d2ff1cc0ee104abba3a8ba030c72cd06&pid=45ea1d38775046dbbdc955362b8834b1","description":"<p>Get at most 10 tasks for the Building (inside Property) in the past 24 hours.</p>\n<p>Property is specified by the query parameter: \"propid\" in the request URL.<br />Building is specified by the query parameter: \"pid\" in the request URL.</p>\n","urlObject":{"path":["scworkforcemanagement","v1","actions"],"host":["https://console.smartclean.io/prod/v2"],"query":[{"key":"op","value":"scteams.getLastNTasks"},{"key":"org","value":"SMARTCLEAN"},{"key":"propid","value":"d2ff1cc0ee104abba3a8ba030c72cd06"},{"key":"pid","value":"45ea1d38775046dbbdc955362b8834b1"}],"variable":[]}},"response":[{"id":"e3e026d1-b6ce-4906-af7c-e7f4c8634803","name":"success","originalRequest":{"method":"POST","header":[],"url":{"raw":"https://console.smartclean.io/prod/v2/scworkforcemanagement/v1/actions?op=scteams.getLastNTasks&org=SMARTCLEAN&propid=d2ff1cc0ee104abba3a8ba030c72cd06&pid=45ea1d38775046dbbdc955362b8834b1","host":["https://console.smartclean.io/prod/v2"],"path":["scworkforcemanagement","v1","actions"],"query":[{"key":"op","value":"scteams.getLastNTasks"},{"key":"org","value":"SMARTCLEAN"},{"key":"propid","value":"d2ff1cc0ee104abba3a8ba030c72cd06"},{"key":"pid","value":"45ea1d38775046dbbdc955362b8834b1"}]}},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"746"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Tue, 05 Jul 2022 02:13:16 GMT"},{"key":"x-amzn-RequestId","value":"92e5a753-b27a-47d4-ae62-13da1fd12bd8"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"UxWpeHR4SQ0FipQ="},{"key":"X-Amzn-Trace-Id","value":"Root=1-62c39e3c-10c0eb3164839a463103c087;Sampled=0"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 59200cf8e35c5a7273b88a148fe1e0a4.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"SIN52-P1"},{"key":"X-Amz-Cf-Id","value":"NHNinTm2chKU7B1owq12CKVe49cRAuGp_xEMGIO0QamHcz2DFeG5fA=="}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Successfully retrieved requested items in time range[UTC] 2022-07-04 02:13:16(+0000) to 2022-07-05 02:13:16(+0000) for ID: 45ea1d38775046dbbdc955362b8834b1.\",\n    \"data\": [\n        {\n            \"PropID\": \"d2ff1cc0ee104abba3a8ba030c72cd06\",\n            \"SeatId\": \"d2ff1cc0ee104abba3a8ba030c72cd06_002\",\n            \"ShiftId\": \"8729e28b-1822-4f8a-9273-60508614bbf4\",\n            \"Status\": \"UNPUBLISHED\",\n            \"taskCount\": 4,\n            \"Delayed\": false,\n            \"ZoneCatId\": \"OFFICE\",\n            \"ATTR\": \"attr#45ea1d38775046dbbdc955362b8834b1#d2ff1cc0ee104abba3a8ba030c72cd06_002#8729e28b-1822-4f8a-9273-60508614bbf4#1656971100000\",\n            \"Start\": 1656971100,\n            \"TaskId\": \"1656971100000\",\n            \"End\": 1656971700,\n            \"Type\": \"TASK\",\n            \"Zone\": \"74611d2c249d47a8b375a05cdca2ead4\",\n            \"ID\": \"45ea1d38775046dbbdc955362b8834b1\",\n            \"Name\": \"Office Cleaning.\",\n            \"Priority\": \"L\"\n        }\n    ],\n    \"code\": \"SUCCESS\"\n}"}],"_postman_id":"be152d2b-3d18-432d-8290-399a6ad988b9"},{"name":"Tasks for Zone in past 24 hours","id":"eb1636b0-6035-4eec-be7a-7a47906059af","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"TasksFor\": \"ZONE\",\n    \"zoneId\": \"726a401e5005453d9b44d65d808a85f3\"\n}","options":{"raw":{"language":"json"}}},"url":"https://console.smartclean.io/prod/v2/scworkforcemanagement/v1/actions?op=scteams.getLastNTasks&org=SMARTCLEAN&propid=d2ff1cc0ee104abba3a8ba030c72cd06&pid=45ea1d38775046dbbdc955362b8834b1","description":"<p>Get at most 10 tasks for the Zone (inside Building of Property) in the past 24 hours.</p>\n<ul>\n<li>Property is specified by the query parameter: \"propid\" in the request URL.</li>\n<li>Building is specified by the query parameter: \"pid\" in the request URL.</li>\n<li>Zone is specified by the attribute: \"zoneId\" in the request body.</li>\n</ul>\n<p>Note: The Zone must belong to the Building of your SmartClean enabled Property.</p>\n","urlObject":{"path":["scworkforcemanagement","v1","actions"],"host":["https://console.smartclean.io/prod/v2"],"query":[{"key":"op","value":"scteams.getLastNTasks"},{"key":"org","value":"SMARTCLEAN"},{"key":"propid","value":"d2ff1cc0ee104abba3a8ba030c72cd06"},{"key":"pid","value":"45ea1d38775046dbbdc955362b8834b1"}],"variable":[]}},"response":[{"id":"085b84c3-49e6-46d6-a69a-edf8b8469f19","name":"success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"TasksFor\": \"ZONE\",\n    \"zoneId\": \"726a401e5005453d9b44d65d808a85f3\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://console.smartclean.io/prod/v2/scworkforcemanagement/v1/actions?op=scteams.getLastNTasks&org=SMARTCLEAN&propid=d2ff1cc0ee104abba3a8ba030c72cd06&pid=45ea1d38775046dbbdc955362b8834b1","host":["https://console.smartclean.io/prod/v2"],"path":["scworkforcemanagement","v1","actions"],"query":[{"key":"op","value":"scteams.getLastNTasks"},{"key":"org","value":"SMARTCLEAN"},{"key":"propid","value":"d2ff1cc0ee104abba3a8ba030c72cd06"},{"key":"pid","value":"45ea1d38775046dbbdc955362b8834b1"}]}},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"808"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Tue, 05 Jul 2022 02:13:49 GMT"},{"key":"x-amzn-RequestId","value":"26d9b7ae-849d-4bf3-99f3-adda34a7ab44"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"UxWuqFYAyQ0FR7A="},{"key":"X-Amzn-Trace-Id","value":"Root=1-62c39e5d-0d4177f43324f5b0240c7be5;Sampled=0"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 59200cf8e35c5a7273b88a148fe1e0a4.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"SIN52-P1"},{"key":"X-Amz-Cf-Id","value":"Lq2jTpxGritydgr1JBKnXFNiPPZ-ps1dKLA0lfhF6DP2jKIkw8oXkA=="}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Successfully retrieved requested items in time range[UTC] 2022-07-04 02:13:49(+0000) to 2022-07-05 02:13:49(+0000) for ZONE: 726a401e5005453d9b44d65d808a85f3.\",\n    \"data\": [\n        {\n            \"PropID\": \"d2ff1cc0ee104abba3a8ba030c72cd06\",\n            \"SeatId\": \"d2ff1cc0ee104abba3a8ba030c72cd06_001\",\n            \"ShiftId\": \"813c6296-9d38-408e-ab00-6a03ffa978e5\",\n            \"Status\": \"INCOMPLETE\",\n            \"taskCount\": 1,\n            \"ZoneName\": \"Sunbeam 1\",\n            \"Delayed\": false,\n            \"ZoneCatId\": \"OFFICE\",\n            \"ATTR\": \"attr#45ea1d38775046dbbdc955362b8834b1#d2ff1cc0ee104abba3a8ba030c72cd06_001#813c6296-9d38-408e-ab00-6a03ffa978e5#1656923219161812893\",\n            \"AEnd\": 1656928526,\n            \"Start\": 1656923219,\n            \"TaskId\": \"1656923219161812893\",\n            \"By\": \"PC\",\n            \"End\": 1656924119,\n            \"Type\": \"INCIDENT\",\n            \"Zone\": \"726a401e5005453d9b44d65d808a85f3\",\n            \"ID\": \"45ea1d38775046dbbdc955362b8834b1\",\n            \"Name\": \"High Usage\",\n            \"Priority\": \"H\"\n        }\n    ],\n    \"code\": \"SUCCESS\"\n}"}],"_postman_id":"eb1636b0-6035-4eec-be7a-7a47906059af"},{"name":"Tasks for Seat in past 24 hours","id":"66e0a2d6-ebe7-4320-93a1-3042d7031e5f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"TasksFor\": \"SEAT\",\n    \"SeatId\": \"d2ff1cc0ee104abba3a8ba030c72cd06_001\"\n}","options":{"raw":{"language":"json"}}},"url":"https://console.smartclean.io/prod/v2/scworkforcemanagement/v1/actions?op=scteams.getLastNTasks&org=SMARTCLEAN&propid=d2ff1cc0ee104abba3a8ba030c72cd06&pid=45ea1d38775046dbbdc955362b8834b1","description":"<p>Get at most 10 tasks for the Seat (which is assigned to a Zone of a Building inside Property) in the past 24 hours.</p>\n<ul>\n<li>Property is specified by the query parameter: \"propid\" in the request URL.</li>\n<li>Building is specified by the query parameter: \"pid\" in the request URL.</li>\n<li>Seat is specified by the attribute: \"SeatId\" in the request body.</li>\n</ul>\n<p>Note: The Seat Id represents the slot for a member of the workforce in the Zone inside the Building of your SmartClean enabled Property.</p>\n","urlObject":{"path":["scworkforcemanagement","v1","actions"],"host":["https://console.smartclean.io/prod/v2"],"query":[{"key":"op","value":"scteams.getLastNTasks"},{"key":"org","value":"SMARTCLEAN"},{"key":"propid","value":"d2ff1cc0ee104abba3a8ba030c72cd06"},{"key":"pid","value":"45ea1d38775046dbbdc955362b8834b1"}],"variable":[]}},"response":[{"id":"1eaec8e9-e21e-4759-8799-d70ea98a7f78","name":"success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"TasksFor\": \"SEAT\",\n    \"SeatId\": \"d2ff1cc0ee104abba3a8ba030c72cd06_001\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://console.smartclean.io/prod/v2/scworkforcemanagement/v1/actions?op=scteams.getLastNTasks&org=SMARTCLEAN&propid=d2ff1cc0ee104abba3a8ba030c72cd06&pid=45ea1d38775046dbbdc955362b8834b1","host":["https://console.smartclean.io/prod/v2"],"path":["scworkforcemanagement","v1","actions"],"query":[{"key":"op","value":"scteams.getLastNTasks"},{"key":"org","value":"SMARTCLEAN"},{"key":"propid","value":"d2ff1cc0ee104abba3a8ba030c72cd06"},{"key":"pid","value":"45ea1d38775046dbbdc955362b8834b1"}]}},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"822"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Tue, 05 Jul 2022 02:14:32 GMT"},{"key":"x-amzn-RequestId","value":"f0c5c368-95c9-4e2e-b6d4-95079064c9c5"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"UxW1bGiWyQ0FZxQ="},{"key":"X-Amzn-Trace-Id","value":"Root=1-62c39e88-501227842320252332d8399e;Sampled=0"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 59200cf8e35c5a7273b88a148fe1e0a4.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"SIN52-P1"},{"key":"X-Amz-Cf-Id","value":"DQl0NQRhHuL2O77r3DV_MKrWeBtuuxtpNnyh1n15CVshE_5goeeqeg=="}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Successfully retrieved requested items in time range[UTC] 2022-07-04 02:14:32(+0000) to 2022-07-05 02:14:32(+0000) for SEAT: d2ff1cc0ee104abba3a8ba030c72cd06_001.\",\n    \"data\": [\n        {\n            \"PropID\": \"d2ff1cc0ee104abba3a8ba030c72cd06\",\n            \"SeatId\": \"d2ff1cc0ee104abba3a8ba030c72cd06_001\",\n            \"ShiftId\": \"813c6296-9d38-408e-ab00-6a03ffa978e5\",\n            \"Status\": \"INCOMPLETE\",\n            \"taskCount\": 1,\n            \"ZoneName\": \"Male Restroom\",\n            \"Delayed\": false,\n            \"ZoneCatId\": \"RESTROOM\",\n            \"ATTR\": \"attr#45ea1d38775046dbbdc955362b8834b1#d2ff1cc0ee104abba3a8ba030c72cd06_001#813c6296-9d38-408e-ab00-6a03ffa978e5#1656927876925432684\",\n            \"AEnd\": 1656928526,\n            \"Start\": 1656927876,\n            \"TaskId\": \"1656927876925432684\",\n            \"By\": \"WD\",\n            \"End\": 1656928776,\n            \"Type\": \"INCIDENT\",\n            \"Zone\": \"845c7c480e7345ff8e00e302776c7062\",\n            \"ID\": \"45ea1d38775046dbbdc955362b8834b1\",\n            \"Name\": \"Spill Detected\",\n            \"Priority\": \"H\"\n        }\n    ],\n    \"code\": \"SUCCESS\"\n}"}],"_postman_id":"66e0a2d6-ebe7-4320-93a1-3042d7031e5f"},{"name":"N Tasks for Property in time range","id":"e96cd084-a908-4606-808a-9979286f2e78","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"TasksFor\": \"PROP\",\n    \"StartTime\": 1656814618,\n    \"EndTime\": 1656987418,\n    \"Limit\": 4\n}","options":{"raw":{"language":"json"}}},"url":"https://console.smartclean.io/prod/v2/scworkforcemanagement/v1/actions?op=scteams.getLastNTasks&org=SMARTCLEAN&propid=d2ff1cc0ee104abba3a8ba030c72cd06&pid=45ea1d38775046dbbdc955362b8834b1","description":"<p>Get N Tasks (at most 10) for the Property in the given time range.</p>\n<ul>\n<li>Property is specified by the query parameter: \"propid\" in the request URL.</li>\n<li>The number of tasks to get (N) is specified by the attribute: \"Limit\" in the request body (as an integer from 1 - 10)</li>\n<li>Start time of the time range:<ul>\n<li>is specified by the attribute: \"StartTime\" in the request body.</li>\n<li>is specified as a unix / epoch timestamp</li>\n</ul>\n</li>\n<li>End time of the time range:<ul>\n<li>is specified by the attribute: \"EndTime\" in the request body.</li>\n<li>is specified as a unix / epoch timestamp</li>\n</ul>\n</li>\n</ul>\n","urlObject":{"path":["scworkforcemanagement","v1","actions"],"host":["https://console.smartclean.io/prod/v2"],"query":[{"key":"op","value":"scteams.getLastNTasks"},{"key":"org","value":"SMARTCLEAN"},{"key":"propid","value":"d2ff1cc0ee104abba3a8ba030c72cd06"},{"key":"pid","value":"45ea1d38775046dbbdc955362b8834b1"}],"variable":[]}},"response":[{"id":"3a71dafc-ebe9-49f9-b8d6-ceeada3b0c26","name":"success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"TasksFor\": \"PROP\",\n    \"StartTime\": 1656814618,\n    \"EndTime\": 1656987418,\n    \"Limit\": 4\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://console.smartclean.io/prod/v2/scworkforcemanagement/v1/actions?op=scteams.getLastNTasks&org=SMARTCLEAN&propid=d2ff1cc0ee104abba3a8ba030c72cd06&pid=45ea1d38775046dbbdc955362b8834b1","host":["https://console.smartclean.io/prod/v2"],"path":["scworkforcemanagement","v1","actions"],"query":[{"key":"op","value":"scteams.getLastNTasks"},{"key":"org","value":"SMARTCLEAN"},{"key":"propid","value":"d2ff1cc0ee104abba3a8ba030c72cd06"},{"key":"pid","value":"45ea1d38775046dbbdc955362b8834b1"}]}},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"2179"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Mon, 18 Jul 2022 03:36:41 GMT"},{"key":"x-amzn-RequestId","value":"e375f753-3060-4655-8b35-0e1c843da21b"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"VcZDiHCFSQ0FRcw="},{"key":"X-Amzn-Trace-Id","value":"Root=1-62d4d549-41f4a7694e682a6a472f07cc;Sampled=0"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 f651505f69d4004d8a3662c44e02ec6e.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"SIN52-C2"},{"key":"X-Amz-Cf-Id","value":"j0qc2iw6qk1d4ykuphs7E8K89Q5WuQFM07Jsa9e1Ewkqz34aAuLANw=="}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Successfully retrieved requested items in time range[UTC] 2022-07-03 02:16:58(+0000) to 2022-07-05 02:16:58(+0000) for PROP: d2ff1cc0ee104abba3a8ba030c72cd06.\",\n    \"data\": [\n        {\n            \"Tasks\": [\n                {\n                    \"Name\": \"Spill Detected\",\n                    \"Done\": false,\n                    \"T\": -1,\n                    \"Comments\": \"Spill Detection\"\n                }\n            ],\n            \"PropID\": \"d2ff1cc0ee104abba3a8ba030c72cd06\",\n            \"Status\": \"INCOMPLETE\",\n            \"taskCount\": 0,\n            \"ATTR\": \"attr#45ea1d38775046dbbdc955362b8834b1#d2ff1cc0ee104abba3a8ba030c72cd06_001#813c6296-9d38-408e-ab00-6a03ffa978e5#1656927876925432684\",\n            \"AEnd\": 1656928526,\n            \"Start\": 1656927876,\n            \"By\": \"WD\",\n            \"End\": 1656928776,\n            \"Zone\": \"845c7c480e7345ff8e00e302776c7062\",\n            \"ID\": \"45ea1d38775046dbbdc955362b8834b1\",\n            \"Type\": \"INCIDENT\",\n            \"Name\": \"Spill Detected\"\n        },\n        {\n            \"Tasks\": [\n                {\n                    \"Name\": \"Spill Detected\",\n                    \"Done\": false,\n                    \"T\": -1,\n                    \"Comments\": \"Spill Detection\"\n                }\n            ],\n            \"PropID\": \"d2ff1cc0ee104abba3a8ba030c72cd06\",\n            \"Status\": \"INCOMPLETE\",\n            \"taskCount\": 0,\n            \"ATTR\": \"attr#45ea1d38775046dbbdc955362b8834b1#d2ff1cc0ee104abba3a8ba030c72cd06_001#813c6296-9d38-408e-ab00-6a03ffa978e5#1656927498577319211\",\n            \"AEnd\": 1656928526,\n            \"Start\": 1656927498,\n            \"By\": \"WD\",\n            \"End\": 1656928398,\n            \"Zone\": \"3b09fb9c24d049a9b32fa86ea927af3a\",\n            \"ID\": \"45ea1d38775046dbbdc955362b8834b1\",\n            \"Type\": \"INCIDENT\",\n            \"Name\": \"Spill Detected\"\n        },\n        {\n            \"Tasks\": [\n                {\n                    \"Name\": \"Spill Detected\",\n                    \"Done\": false,\n                    \"T\": -1,\n                    \"Comments\": \"Spill Detection\"\n                }\n            ],\n            \"PropID\": \"d2ff1cc0ee104abba3a8ba030c72cd06\",\n            \"Status\": \"INCOMPLETE\",\n            \"taskCount\": 0,\n            \"ATTR\": \"attr#45ea1d38775046dbbdc955362b8834b1#d2ff1cc0ee104abba3a8ba030c72cd06_001#813c6296-9d38-408e-ab00-6a03ffa978e5#1656925320310105268\",\n            \"AEnd\": 1656928526,\n            \"Start\": 1656925320,\n            \"By\": \"WD\",\n            \"End\": 1656926220,\n            \"Zone\": \"3b09fb9c24d049a9b32fa86ea927af3a\",\n            \"ID\": \"45ea1d38775046dbbdc955362b8834b1\",\n            \"Type\": \"INCIDENT\",\n            \"Name\": \"Spill Detected\"\n        },\n        {\n            \"Tasks\": [\n                {\n                    \"Name\": \"High Usage\",\n                    \"Done\": false,\n                    \"T\": -1,\n                    \"Comments\": \"Time to touch up now\"\n                }\n            ],\n            \"PropID\": \"d2ff1cc0ee104abba3a8ba030c72cd06\",\n            \"Status\": \"INCOMPLETE\",\n            \"taskCount\": 0,\n            \"ATTR\": \"attr#45ea1d38775046dbbdc955362b8834b1#d2ff1cc0ee104abba3a8ba030c72cd06_001#813c6296-9d38-408e-ab00-6a03ffa978e5#1656923219161812893\",\n            \"AEnd\": 1656928526,\n            \"Start\": 1656923219,\n            \"By\": \"PC\",\n            \"End\": 1656924119,\n            \"Zone\": \"726a401e5005453d9b44d65d808a85f3\",\n            \"ID\": \"45ea1d38775046dbbdc955362b8834b1\",\n            \"Type\": \"INCIDENT\",\n            \"Name\": \"High Usage\"\n        }\n    ],\n    \"code\": \"SUCCESS\"\n}"}],"_postman_id":"e96cd084-a908-4606-808a-9979286f2e78"},{"name":"N Tasks for Building in time range","id":"94795c27-137a-4c83-8ca8-9a4cfbeb954d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"StartTime\": 1656814618,\n    \"EndTime\": 1656987418,\n    \"Limit\": 4\n}","options":{"raw":{"language":"json"}}},"url":"https://console.smartclean.io/prod/v2/scworkforcemanagement/v1/actions?op=scteams.getLastNTasks&org=SMARTCLEAN&propid=d2ff1cc0ee104abba3a8ba030c72cd06&pid=45ea1d38775046dbbdc955362b8834b1","description":"<p>Get N Tasks (at most 10) for the Building (of the Property) in the given time range.</p>\n<ul>\n<li>Property is specified by the query parameter: \"propid\" in the request URL.</li>\n<li>Building is specified by the query parameter: \"pid\" in the request URL.</li>\n<li>The number of tasks to get (N) is specified by the attribute: \"Limit\" in the request body (as an integer from 1 - 10)</li>\n<li>Start time of the time range:<ul>\n<li>is specified by the attribute: \"StartTime\" in the request body.</li>\n<li>is specified as a unix / epoch timestamp</li>\n</ul>\n</li>\n<li>End time of the time range:<ul>\n<li>is specified by the attribute: \"EndTime\" in the request body.</li>\n<li>is specified as a unix / epoch timestamp</li>\n</ul>\n</li>\n</ul>\n","urlObject":{"path":["scworkforcemanagement","v1","actions"],"host":["https://console.smartclean.io/prod/v2"],"query":[{"key":"op","value":"scteams.getLastNTasks"},{"key":"org","value":"SMARTCLEAN"},{"key":"propid","value":"d2ff1cc0ee104abba3a8ba030c72cd06"},{"key":"pid","value":"45ea1d38775046dbbdc955362b8834b1"}],"variable":[]}},"response":[{"id":"3f856066-2f40-4c59-9bc5-b57ba8a19a12","name":"success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"StartTime\": 1656814618,\n    \"EndTime\": 1656987418,\n    \"Limit\": 4\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://console.smartclean.io/prod/v2/scworkforcemanagement/v1/actions?op=scteams.getLastNTasks&org=SMARTCLEAN&propid=d2ff1cc0ee104abba3a8ba030c72cd06&pid=45ea1d38775046dbbdc955362b8834b1","host":["https://console.smartclean.io/prod/v2"],"path":["scworkforcemanagement","v1","actions"],"query":[{"key":"op","value":"scteams.getLastNTasks"},{"key":"org","value":"SMARTCLEAN"},{"key":"propid","value":"d2ff1cc0ee104abba3a8ba030c72cd06"},{"key":"pid","value":"45ea1d38775046dbbdc955362b8834b1"}]}},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"3088"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Tue, 05 Jul 2022 02:23:43 GMT"},{"key":"x-amzn-RequestId","value":"c1271312-69b0-422a-9ad6-70d2a76d6565"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"UxYLfEzlyQ0FZ9A="},{"key":"X-Amzn-Trace-Id","value":"Root=1-62c3a0af-771646e502e7574020a442fe;Sampled=0"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 16074517396ff3ce754e4ac422c346c8.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"SIN52-P1"},{"key":"X-Amz-Cf-Id","value":"WGQFTEcKM-_1ZwBg3GeXnqeWQnOJ1L3YfE321mVLFms4p8-iMt4h3w=="}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Successfully retrieved requested items in time range[UTC] 2022-07-03 02:16:58(+0000) to 2022-07-05 02:16:58(+0000) for ID: 45ea1d38775046dbbdc955362b8834b1.\",\n    \"data\": [\n        {\n            \"PropID\": \"d2ff1cc0ee104abba3a8ba030c72cd06\",\n            \"SeatId\": \"d2ff1cc0ee104abba3a8ba030c72cd06_002\",\n            \"ShiftId\": \"8729e28b-1822-4f8a-9273-60508614bbf4\",\n            \"Status\": \"UNPUBLISHED\",\n            \"taskCount\": 4,\n            \"Delayed\": false,\n            \"ZoneCatId\": \"OFFICE\",\n            \"ATTR\": \"attr#45ea1d38775046dbbdc955362b8834b1#d2ff1cc0ee104abba3a8ba030c72cd06_002#8729e28b-1822-4f8a-9273-60508614bbf4#1656971100000\",\n            \"Start\": 1656971100,\n            \"TaskId\": \"1656971100000\",\n            \"End\": 1656971700,\n            \"Type\": \"TASK\",\n            \"Zone\": \"74611d2c249d47a8b375a05cdca2ead4\",\n            \"ID\": \"45ea1d38775046dbbdc955362b8834b1\",\n            \"Name\": \"Office Cleaning.\",\n            \"Priority\": \"L\"\n        },\n        {\n            \"PropID\": \"d2ff1cc0ee104abba3a8ba030c72cd06\",\n            \"SeatId\": \"d2ff1cc0ee104abba3a8ba030c72cd06_002\",\n            \"ShiftId\": \"8729e28b-1822-4f8a-9273-60508614bbf4\",\n            \"Status\": \"UNPUBLISHED\",\n            \"taskCount\": 4,\n            \"Delayed\": false,\n            \"ZoneCatId\": \"OFFICE\",\n            \"ATTR\": \"attr#45ea1d38775046dbbdc955362b8834b1#d2ff1cc0ee104abba3a8ba030c72cd06_002#8729e28b-1822-4f8a-9273-60508614bbf4#1656960300000\",\n            \"Start\": 1656960300,\n            \"TaskId\": \"1656960300000\",\n            \"End\": 1656960900,\n            \"Type\": \"TASK\",\n            \"Zone\": \"74611d2c249d47a8b375a05cdca2ead4\",\n            \"ID\": \"45ea1d38775046dbbdc955362b8834b1\",\n            \"Name\": \"Office Cleaning.\",\n            \"Priority\": \"L\"\n        },\n        {\n            \"PropID\": \"d2ff1cc0ee104abba3a8ba030c72cd06\",\n            \"SeatId\": \"d2ff1cc0ee104abba3a8ba030c72cd06_002\",\n            \"ShiftId\": \"8729e28b-1822-4f8a-9273-60508614bbf4\",\n            \"Status\": \"UNPUBLISHED\",\n            \"taskCount\": 4,\n            \"Delayed\": false,\n            \"ZoneCatId\": \"OFFICE\",\n            \"ATTR\": \"attr#45ea1d38775046dbbdc955362b8834b1#d2ff1cc0ee104abba3a8ba030c72cd06_002#8729e28b-1822-4f8a-9273-60508614bbf4#1656949500000\",\n            \"Start\": 1656949500,\n            \"TaskId\": \"1656949500000\",\n            \"End\": 1656950100,\n            \"Type\": \"TASK\",\n            \"Zone\": \"74611d2c249d47a8b375a05cdca2ead4\",\n            \"ID\": \"45ea1d38775046dbbdc955362b8834b1\",\n            \"Name\": \"Office Cleaning.\",\n            \"Priority\": \"L\"\n        },\n        {\n            \"PropID\": \"d2ff1cc0ee104abba3a8ba030c72cd06\",\n            \"SeatId\": \"d2ff1cc0ee104abba3a8ba030c72cd06_001\",\n            \"ShiftId\": \"813c6296-9d38-408e-ab00-6a03ffa978e5\",\n            \"Status\": \"INCOMPLETE\",\n            \"taskCount\": 1,\n            \"ZoneName\": \"Male Restroom\",\n            \"Delayed\": false,\n            \"ZoneCatId\": \"RESTROOM\",\n            \"ATTR\": \"attr#45ea1d38775046dbbdc955362b8834b1#d2ff1cc0ee104abba3a8ba030c72cd06_001#813c6296-9d38-408e-ab00-6a03ffa978e5#1656927876925432684\",\n            \"AEnd\": 1656928526,\n            \"Start\": 1656927876,\n            \"TaskId\": \"1656927876925432684\",\n            \"By\": \"WD\",\n            \"End\": 1656928776,\n            \"Type\": \"INCIDENT\",\n            \"Zone\": \"845c7c480e7345ff8e00e302776c7062\",\n            \"ID\": \"45ea1d38775046dbbdc955362b8834b1\",\n            \"Name\": \"Spill Detected\",\n            \"Priority\": \"H\"\n        },\n        {\n            \"PropID\": \"d2ff1cc0ee104abba3a8ba030c72cd06\",\n            \"SeatId\": \"d2ff1cc0ee104abba3a8ba030c72cd06_001\",\n            \"ShiftId\": \"813c6296-9d38-408e-ab00-6a03ffa978e5\",\n            \"Status\": \"INCOMPLETE\",\n            \"taskCount\": 1,\n            \"ZoneName\": \"Female Restroom\",\n            \"Delayed\": false,\n            \"ZoneCatId\": \"RESTROOM\",\n            \"ATTR\": \"attr#45ea1d38775046dbbdc955362b8834b1#d2ff1cc0ee104abba3a8ba030c72cd06_001#813c6296-9d38-408e-ab00-6a03ffa978e5#1656927498577319211\",\n            \"AEnd\": 1656928526,\n            \"Start\": 1656927498,\n            \"TaskId\": \"1656927498577319211\",\n            \"By\": \"WD\",\n            \"End\": 1656928398,\n            \"Type\": \"INCIDENT\",\n            \"Zone\": \"3b09fb9c24d049a9b32fa86ea927af3a\",\n            \"ID\": \"45ea1d38775046dbbdc955362b8834b1\",\n            \"Name\": \"Spill Detected\",\n            \"Priority\": \"H\"\n        }\n    ],\n    \"code\": \"SUCCESS\"\n}"}],"_postman_id":"94795c27-137a-4c83-8ca8-9a4cfbeb954d"},{"name":"N Tasks for Zone in time range","id":"11c5265e-be52-4215-92c8-6080bd2a779e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"TasksFor\": \"ZONE\",\n    \"zoneId\": \"726a401e5005453d9b44d65d808a85f3\",\n    \"StartTime\": 1656814618,\n    \"EndTime\": 1656987418,\n    \"Limit\": 4\n}","options":{"raw":{"language":"json"}}},"url":"https://console.smartclean.io/prod/v2/scworkforcemanagement/v1/actions?op=scteams.getLastNTasks&org=SMARTCLEAN&propid=d2ff1cc0ee104abba3a8ba030c72cd06&pid=45ea1d38775046dbbdc955362b8834b1","description":"<p>Get N Tasks (at most 10) for the Zone (inside Building of Property) in the given time range.</p>\n<ul>\n<li>Property is specified by the query parameter: \"propid\" in the request URL.</li>\n<li>Building is specified by the query parameter: \"pid\" in the request URL.</li>\n<li>Zone is specified by the attribute: \"zoneId\" in the request body.</li>\n<li>The number of tasks to get (N) is specified by the attribute: \"Limit\" in the request body (as an integer from 1 - 10)</li>\n<li>Start time of the time range:<ul>\n<li>is specified by the attribute: \"StartTime\" in the request body.</li>\n<li>is specified as a unix / epoch timestamp</li>\n</ul>\n</li>\n<li>End time of the time range:<ul>\n<li>is specified by the attribute: \"EndTime\" in the request body.</li>\n<li>is specified as a unix / epoch timestamp</li>\n</ul>\n</li>\n</ul>\n<p>Note: The Zone must belong to the Building of your SmartClean enabled Property.</p>\n","urlObject":{"path":["scworkforcemanagement","v1","actions"],"host":["https://console.smartclean.io/prod/v2"],"query":[{"key":"op","value":"scteams.getLastNTasks"},{"key":"org","value":"SMARTCLEAN"},{"key":"propid","value":"d2ff1cc0ee104abba3a8ba030c72cd06"},{"key":"pid","value":"45ea1d38775046dbbdc955362b8834b1"}],"variable":[]}},"response":[{"id":"bbbf9e13-c33f-41f7-b120-ebb9634ca9fa","name":"Get last N tasks for Zone in time range","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"TasksFor\": \"ZONE\",\n    \"zoneId\": \"726a401e5005453d9b44d65d808a85f3\",\n    \"StartTime\": 1656814618,\n    \"EndTime\": 1656987418,\n    \"Limit\": 4\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://console.smartclean.io/prod/v2/scworkforcemanagement/v1/actions?op=scteams.getLastNTasks&org=SMARTCLEAN&propid=d2ff1cc0ee104abba3a8ba030c72cd06&pid=45ea1d38775046dbbdc955362b8834b1","host":["https://console.smartclean.io/prod/v2"],"path":["scworkforcemanagement","v1","actions"],"query":[{"key":"op","value":"scteams.getLastNTasks"},{"key":"org","value":"SMARTCLEAN"},{"key":"propid","value":"d2ff1cc0ee104abba3a8ba030c72cd06"},{"key":"pid","value":"45ea1d38775046dbbdc955362b8834b1"}]}},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"2080"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Tue, 05 Jul 2022 02:24:38 GMT"},{"key":"x-amzn-RequestId","value":"9dfd0243-984f-4255-bced-b4d6624a912d"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"UxYUGEWSyQ0FnBw="},{"key":"X-Amzn-Trace-Id","value":"Root=1-62c3a0e6-794c92a735ba935927cccde4;Sampled=0"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 16074517396ff3ce754e4ac422c346c8.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"SIN52-P1"},{"key":"X-Amz-Cf-Id","value":"JdDF47Vr9346tsE51YGoL9H5QEnzqcifPywtJHJcJglvtRIPZA6txA=="}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Successfully retrieved requested items in time range[UTC] 2022-07-03 02:16:58(+0000) to 2022-07-05 02:16:58(+0000) for ZONE: 726a401e5005453d9b44d65d808a85f3.\",\n    \"data\": [\n        {\n            \"PropID\": \"d2ff1cc0ee104abba3a8ba030c72cd06\",\n            \"SeatId\": \"d2ff1cc0ee104abba3a8ba030c72cd06_001\",\n            \"ShiftId\": \"813c6296-9d38-408e-ab00-6a03ffa978e5\",\n            \"Status\": \"INCOMPLETE\",\n            \"taskCount\": 1,\n            \"ZoneName\": \"Sunbeam 1\",\n            \"Delayed\": false,\n            \"ZoneCatId\": \"OFFICE\",\n            \"ATTR\": \"attr#45ea1d38775046dbbdc955362b8834b1#d2ff1cc0ee104abba3a8ba030c72cd06_001#813c6296-9d38-408e-ab00-6a03ffa978e5#1656923219161812893\",\n            \"AEnd\": 1656928526,\n            \"Start\": 1656923219,\n            \"TaskId\": \"1656923219161812893\",\n            \"By\": \"PC\",\n            \"End\": 1656924119,\n            \"Type\": \"INCIDENT\",\n            \"Zone\": \"726a401e5005453d9b44d65d808a85f3\",\n            \"ID\": \"45ea1d38775046dbbdc955362b8834b1\",\n            \"Name\": \"High Usage\",\n            \"Priority\": \"H\"\n        },\n        {\n            \"PropID\": \"d2ff1cc0ee104abba3a8ba030c72cd06\",\n            \"SeatId\": \"d2ff1cc0ee104abba3a8ba030c72cd06_001\",\n            \"ShiftId\": \"813c6296-9d38-408e-ab00-6a03ffa978e5\",\n            \"Status\": \"INCOMPLETE\",\n            \"taskCount\": 1,\n            \"ZoneName\": \"Sunbeam 1\",\n            \"Delayed\": false,\n            \"ZoneCatId\": \"OFFICE\",\n            \"ATTR\": \"attr#45ea1d38775046dbbdc955362b8834b1#d2ff1cc0ee104abba3a8ba030c72cd06_001#813c6296-9d38-408e-ab00-6a03ffa978e5#1656911203826961004\",\n            \"AEnd\": 1656928526,\n            \"Start\": 1656911203,\n            \"TaskId\": \"1656911203826961004\",\n            \"By\": \"PC\",\n            \"End\": 1656912103,\n            \"Type\": \"INCIDENT\",\n            \"Zone\": \"726a401e5005453d9b44d65d808a85f3\",\n            \"ID\": \"45ea1d38775046dbbdc955362b8834b1\",\n            \"Name\": \"High Usage\",\n            \"Priority\": \"H\"\n        },\n        {\n            \"PropID\": \"d2ff1cc0ee104abba3a8ba030c72cd06\",\n            \"SeatId\": \"d2ff1cc0ee104abba3a8ba030c72cd06_001\",\n            \"ShiftId\": \"813c6296-9d38-408e-ab00-6a03ffa978e5\",\n            \"Status\": \"COMPLETED\",\n            \"taskCount\": 1,\n            \"ZoneName\": \"Sunbeam 1 (Galen)\",\n            \"Delayed\": false,\n            \"ZoneCatId\": \"OFFICE\",\n            \"ATTR\": \"attr#45ea1d38775046dbbdc955362b8834b1#d2ff1cc0ee104abba3a8ba030c72cd06_001#813c6296-9d38-408e-ab00-6a03ffa978e5#1656898841933458375\",\n            \"AStart\": 1656898918,\n            \"AEnd\": 1656898930,\n            \"Start\": 1656898841,\n            \"TaskId\": \"1656898841933458375\",\n            \"By\": \"John Doe\",\n            \"End\": 1656900641,\n            \"Type\": \"INCIDENT\",\n            \"Zone\": \"726a401e5005453d9b44d65d808a85f3\",\n            \"ID\": \"45ea1d38775046dbbdc955362b8834b1\",\n            \"Name\": \"Audits Failed Item (Offices.)\",\n            \"Priority\": \"H\"\n        }\n    ],\n    \"code\": \"SUCCESS\"\n}"}],"_postman_id":"11c5265e-be52-4215-92c8-6080bd2a779e"},{"name":"N Tasks for Seat in time range","id":"18af7c7d-3f44-45f6-b210-3a0598bf3fab","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"TasksFor\": \"SEAT\",\n    \"SeatId\": \"d2ff1cc0ee104abba3a8ba030c72cd06_001\",\n    \"StartTime\": 1656814618,\n    \"EndTime\": 1656987418,\n    \"Limit\": 4\n}","options":{"raw":{"language":"json"}}},"url":"https://console.smartclean.io/prod/v2/scworkforcemanagement/v1/actions?op=scteams.getLastNTasks&org=SMARTCLEAN&propid=d2ff1cc0ee104abba3a8ba030c72cd06&pid=45ea1d38775046dbbdc955362b8834b1","description":"<p>Get N Tasks (at most 10) for the Seat (which is assigned to a Zone of a Building inside Property) in the given time range.</p>\n<ul>\n<li>Property is specified by the query parameter: \"propid\" in the request URL.</li>\n<li>Building is specified by the query parameter: \"pid\" in the request URL.</li>\n<li>Seat is specified by the attribute: \"SeatId\" in the request body.</li>\n<li>The number of tasks to get (N) is specified by the attribute: \"Limit\" in the request body (as an integer from 1 - 10)</li>\n<li>Start time of the time range:<ul>\n<li>is specified by the attribute: \"StartTime\" in the request body.</li>\n<li>is specified as a unix / epoch timestamp</li>\n</ul>\n</li>\n<li>End time of the time range:<ul>\n<li>is specified by the attribute: \"EndTime\" in the request body.</li>\n<li>is specified as a unix / epoch timestamp</li>\n</ul>\n</li>\n</ul>\n<p>Note: The Seat Id represents the slot for a member of the workforce in the Zone inside the Building of your SmartClean enabled Property.</p>\n","urlObject":{"path":["scworkforcemanagement","v1","actions"],"host":["https://console.smartclean.io/prod/v2"],"query":[{"key":"op","value":"scteams.getLastNTasks"},{"key":"org","value":"SMARTCLEAN"},{"key":"propid","value":"d2ff1cc0ee104abba3a8ba030c72cd06"},{"key":"pid","value":"45ea1d38775046dbbdc955362b8834b1"}],"variable":[]}},"response":[{"id":"2ec800be-eaaf-4ab0-a799-08f585e64766","name":"success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"TasksFor\": \"SEAT\",\n    \"SeatId\": \"d2ff1cc0ee104abba3a8ba030c72cd06_001\",\n    \"StartTime\": 1656814618,\n    \"EndTime\": 1656987418,\n    \"Limit\": 4\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://console.smartclean.io/prod/v2/scworkforcemanagement/v1/actions?op=scteams.getLastNTasks&org=SMARTCLEAN&propid=d2ff1cc0ee104abba3a8ba030c72cd06&pid=45ea1d38775046dbbdc955362b8834b1","host":["https://console.smartclean.io/prod/v2"],"path":["scworkforcemanagement","v1","actions"],"query":[{"key":"op","value":"scteams.getLastNTasks"},{"key":"org","value":"SMARTCLEAN"},{"key":"propid","value":"d2ff1cc0ee104abba3a8ba030c72cd06"},{"key":"pid","value":"45ea1d38775046dbbdc955362b8834b1"}]}},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"2676"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Tue, 05 Jul 2022 02:25:28 GMT"},{"key":"x-amzn-RequestId","value":"3d81c71c-c545-407c-bad4-4b7d096b543b"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"UxYbxF_uyQ0FRkA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-62c3a117-1c78f2e51d330c9f4189192f;Sampled=0"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 16074517396ff3ce754e4ac422c346c8.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"SIN52-P1"},{"key":"X-Amz-Cf-Id","value":"QHDsUS1C1mohEb1aEUyLhyh59Ve3nKftScmgoe2N7yofZIb3pZ04Tg=="}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Successfully retrieved requested items in time range[UTC] 2022-07-03 02:16:58(+0000) to 2022-07-05 02:16:58(+0000) for SEAT: d2ff1cc0ee104abba3a8ba030c72cd06_001.\",\n    \"data\": [\n        {\n            \"PropID\": \"d2ff1cc0ee104abba3a8ba030c72cd06\",\n            \"SeatId\": \"d2ff1cc0ee104abba3a8ba030c72cd06_001\",\n            \"ShiftId\": \"813c6296-9d38-408e-ab00-6a03ffa978e5\",\n            \"Status\": \"INCOMPLETE\",\n            \"taskCount\": 1,\n            \"ZoneName\": \"Male Restroom\",\n            \"Delayed\": false,\n            \"ZoneCatId\": \"RESTROOM\",\n            \"ATTR\": \"attr#45ea1d38775046dbbdc955362b8834b1#d2ff1cc0ee104abba3a8ba030c72cd06_001#813c6296-9d38-408e-ab00-6a03ffa978e5#1656927876925432684\",\n            \"AEnd\": 1656928526,\n            \"Start\": 1656927876,\n            \"TaskId\": \"1656927876925432684\",\n            \"By\": \"WD\",\n            \"End\": 1656928776,\n            \"Type\": \"INCIDENT\",\n            \"Zone\": \"845c7c480e7345ff8e00e302776c7062\",\n            \"ID\": \"45ea1d38775046dbbdc955362b8834b1\",\n            \"Name\": \"Spill Detected\",\n            \"Priority\": \"H\"\n        },\n        {\n            \"PropID\": \"d2ff1cc0ee104abba3a8ba030c72cd06\",\n            \"SeatId\": \"d2ff1cc0ee104abba3a8ba030c72cd06_001\",\n            \"ShiftId\": \"813c6296-9d38-408e-ab00-6a03ffa978e5\",\n            \"Status\": \"INCOMPLETE\",\n            \"taskCount\": 1,\n            \"ZoneName\": \"Female Restroom\",\n            \"Delayed\": false,\n            \"ZoneCatId\": \"RESTROOM\",\n            \"ATTR\": \"attr#45ea1d38775046dbbdc955362b8834b1#d2ff1cc0ee104abba3a8ba030c72cd06_001#813c6296-9d38-408e-ab00-6a03ffa978e5#1656927498577319211\",\n            \"AEnd\": 1656928526,\n            \"Start\": 1656927498,\n            \"TaskId\": \"1656927498577319211\",\n            \"By\": \"WD\",\n            \"End\": 1656928398,\n            \"Type\": \"INCIDENT\",\n            \"Zone\": \"3b09fb9c24d049a9b32fa86ea927af3a\",\n            \"ID\": \"45ea1d38775046dbbdc955362b8834b1\",\n            \"Name\": \"Spill Detected\",\n            \"Priority\": \"H\"\n        },\n        {\n            \"PropID\": \"d2ff1cc0ee104abba3a8ba030c72cd06\",\n            \"SeatId\": \"d2ff1cc0ee104abba3a8ba030c72cd06_001\",\n            \"ShiftId\": \"813c6296-9d38-408e-ab00-6a03ffa978e5\",\n            \"Status\": \"INCOMPLETE\",\n            \"taskCount\": 1,\n            \"ZoneName\": \"Female Restroom\",\n            \"Delayed\": false,\n            \"ZoneCatId\": \"RESTROOM\",\n            \"ATTR\": \"attr#45ea1d38775046dbbdc955362b8834b1#d2ff1cc0ee104abba3a8ba030c72cd06_001#813c6296-9d38-408e-ab00-6a03ffa978e5#1656925320310105268\",\n            \"AEnd\": 1656928526,\n            \"Start\": 1656925320,\n            \"TaskId\": \"1656925320310105268\",\n            \"By\": \"WD\",\n            \"End\": 1656926220,\n            \"Type\": \"INCIDENT\",\n            \"Zone\": \"3b09fb9c24d049a9b32fa86ea927af3a\",\n            \"ID\": \"45ea1d38775046dbbdc955362b8834b1\",\n            \"Name\": \"Spill Detected\",\n            \"Priority\": \"H\"\n        },\n        {\n            \"PropID\": \"d2ff1cc0ee104abba3a8ba030c72cd06\",\n            \"SeatId\": \"d2ff1cc0ee104abba3a8ba030c72cd06_001\",\n            \"ShiftId\": \"813c6296-9d38-408e-ab00-6a03ffa978e5\",\n            \"Status\": \"INCOMPLETE\",\n            \"taskCount\": 1,\n            \"ZoneName\": \"Sunbeam 1\",\n            \"Delayed\": false,\n            \"ZoneCatId\": \"OFFICE\",\n            \"ATTR\": \"attr#45ea1d38775046dbbdc955362b8834b1#d2ff1cc0ee104abba3a8ba030c72cd06_001#813c6296-9d38-408e-ab00-6a03ffa978e5#1656923219161812893\",\n            \"AEnd\": 1656928526,\n            \"Start\": 1656923219,\n            \"TaskId\": \"1656923219161812893\",\n            \"By\": \"PC\",\n            \"End\": 1656924119,\n            \"Type\": \"INCIDENT\",\n            \"Zone\": \"726a401e5005453d9b44d65d808a85f3\",\n            \"ID\": \"45ea1d38775046dbbdc955362b8834b1\",\n            \"Name\": \"High Usage\",\n            \"Priority\": \"H\"\n        }\n    ],\n    \"code\": \"SUCCESS\"\n}"}],"_postman_id":"18af7c7d-3f44-45f6-b210-3a0598bf3fab"}],"id":"a057403e-26a2-453a-a89f-778b781bcb20","description":"<p>This folder contains requests to get Tasks that get assigned to, and acted upon by workforce members in your SmartClean enabled Property.</p>\n<h3 id=\"task-type\">Task Type:</h3>\n<p>Task can have the following types:</p>\n<ol>\n<li>Incident - Task created by a system event (for example a work order created by a sensor alert)</li>\n<li>Task - Task assigned by member of the workforce (for example task assigned by a Supervisor to a Janitor)</li>\n</ol>\n<hr />\n<h3 id=\"task-status\"><strong>Task Status:</strong></h3>\n<p>Some possible states of Tasks are:</p>\n<ol>\n<li><strong>UNPUBLISHED</strong><ol>\n<li>Task is planned but not yet published.</li>\n<li>Please ignore Tasks with this status as this is an artefact from the Task planning feature.</li>\n</ol>\n</li>\n<li><strong>PENDING</strong><ol>\n<li>Task is published and assigned to a member of your workforce</li>\n<li>It is expected that the member is notified about this task (such as using our Housekeeping app or our SMS notification feature. If none are used, then you are responsible for notifying the workforce member about the Task)</li>\n</ol>\n</li>\n<li><strong>STARTED</strong><ol>\n<li>Task is started by the assigned workforce member</li>\n</ol>\n</li>\n<li><strong>COMPLETED</strong><ol>\n<li>Task is completed by the assigned workforce member (after it was started)</li>\n</ol>\n</li>\n<li><strong>INCOMPLETE</strong><ol>\n<li>Task was not completed by the assigned workforce member (after it was started)</li>\n</ol>\n</li>\n</ol>\n<p>Note: State of a Task is given by value of the \"Status\" attribute inside the Task object.</p>\n","_postman_id":"a057403e-26a2-453a-a89f-778b781bcb20"},{"name":"report incident for Zone","event":[{"listen":"prerequest","script":{"id":"f702a3d7-be73-4098-a263-91f34f389c26","exec":["const op = 'createIncidentWithoutAssignee';","// const propid = '06f98e0c4f464b84b9157b1df6adfa66';","// const buildingId = '71e3671b554a427e96b128c361ec4a4e';","","const zoneName = 'Lounge Area';","const zoneId = 'ead815f7472048478f9cba158ac121ab';","const zoneCategoryId = 'MEETING_ROOMS';","","const incidentName = 'name for the incident';","const incidentSubject = 'subject for the incident';","const incidentPriorityLetter = 'N';","const yourName = 'postmanUser'","const task1Name = 'name of task'; ","const task1Comments = 'comments for the task';","const autoAssign = false;","const incidentDueForSeconds = 1800;","const currentUnixTimeSeconds = Math.floor(Date.now() / 1000);","const incidentEndUnixTimeSeconds = currentUnixTimeSeconds + incidentDueForSeconds","","// pm.environment.set('buildingId', buildingId);","// pm.environment.set('propid', propid);","","pm.environment.set('zone name', zoneName);","pm.environment.set('zone id', zoneId);","pm.environment.set('zone category id', zoneCategoryId);","","pm.environment.set('name for the incident', incidentName);","pm.environment.set('subject for the incident', incidentSubject);","pm.environment.set('your name for identification', yourName);","pm.environment.set('incident priority (L / M / N / H)', incidentPriorityLetter);","pm.environment.set('auto assign incident to workforce (true / false)', autoAssign)","pm.environment.set('incident start unix time seconds', currentUnixTimeSeconds);","pm.environment.set('incident end unix time seconds', incidentEndUnixTimeSeconds);","pm.environment.set('name of this task for incident', task1Name);","pm.environment.set('comments for this task', task1Comments);",""],"type":"text/javascript"}}],"id":"b197ad40-8688-43e3-a74a-5160a74f7da8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"Incident\": {\n        \"Subject\": \"{{subject for the incident}}\",\n        \"Name\": \"{{name for the incident}}\",\n        \"Priority\": \"{{priority initial letter (L / M / N / H)}}\",\n        \"By\": \"{{your name for identification}}\",\n        \"End\": {{incident end unix time seconds}},\n        \"Start\": {{incident start unix time seconds}},\n        \"Tasks\": [\n            {\n                \"Name\": \"{{name of task}}\",\n                \"Comments\": \"{{comments for the task}}\"\n            }\n        ],\n        \"ZoneCatId\": \"{{zone category id}}\",\n        \"Zone\": \"726a401e5005453d9b44d65d808a85f3\",\n        \"ZoneName\": \"{{zone name}}\",\n        \"AutoAssigned\": {{auto assign incident to workforce (true / false)}}\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://console.smartclean.io/prod/v2/scworkforcemanagement/v1/actions?op=scteams.createIncidentWithoutAssignee&org=SMARTCLEAN&propid=d2ff1cc0ee104abba3a8ba030c72cd06&pid=45ea1d38775046dbbdc955362b8834b1","description":"<p>This request creates an incident for a Zone (in a Building of your SmartClean enabled Property, identified by the query parameters: \"pid\" and \"propid\" respectively in the request URL), whose details are specified in certain attributes of the request body.</p>\n<p>An <em>incident</em> is any event that represents an alert or issue. It is also known as and equivalent to a \"Work Order\".</p>\n<p>A task is automatically created within the incident which can be assigned to any of registered members of the workforce</p>\n<p>Following information is required to be supplied in the request body, in the same format shown below:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"Incident\": {\n        \"Subject\": \"Enter a subject for the incident\",\n        \"Name\": \"Enter a name for the incident\",\n        \"Priority\": \"N\" // Choose from: ('L' / 'M' / 'N' / 'H') in increasing order of Priority\n        \"By\": \"Enter a name for identifying who / what created the incident\",\n        \"Start\": 1647399465, // Unix time in seconds when the Incident must be started.\n        \"End\": 1647401400, // Unix time in seconds when the Incident must be resolved\n        \"Tasks\": [\n            {\n                \"Name\": \"Enter a name for this Task in the Incident\",\n                \"Comments\": \"Enter comments for this Task\"\n            }\n        ],\n        \"ZoneCatId\": \"SmartClean Zone Category ID\", // Valid Category of the Zone (examples: OFFICE, MEETING_ROOMS etc)\n        \"Zone\": \"SmartClean Zone ID\",\n        \"ZoneName\": \"SmartClean Zone Name\",\n        \"AutoAssigned\": false // Whether to auto assign the incident to workforce or not.\n    }\n}\n// These Zone details are available by querying the Building Zone Map.\n\n</code></pre>\n","urlObject":{"path":["scworkforcemanagement","v1","actions"],"host":["https://console.smartclean.io/prod/v2"],"query":[{"key":"op","value":"scteams.createIncidentWithoutAssignee"},{"key":"org","value":"SMARTCLEAN"},{"key":"propid","value":"d2ff1cc0ee104abba3a8ba030c72cd06"},{"key":"pid","value":"45ea1d38775046dbbdc955362b8834b1"}],"variable":[]}},"response":[{"id":"ecc798af-14f0-40d6-948c-5dbe47ba66aa","name":"Spill @ SmartClean Lounge (Dont auto assign)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"Incident\": {\n        \"Subject\": \"Cleaning / Maintenance\",\n        \"Name\": \"Coffee Spill\",\n        \"Priority\": \"N\",\n        \"By\": \"John Doe\",\n        \"End\": 1647418759,\n        \"Start\": 1647420559,\n        \"Tasks\": [\n            {\n                \"Name\": \"Cleaning required\",\n                \"Comments\": \"Please clean the coffee spill beside the fridge\"\n            }\n        ],\n        \"ZoneCatId\": \"MEETING_ROOMS\",\n        \"Zone\": \"ead815f7472048478f9cba158ac121ab\",\n        \"ZoneName\": \"Lounge Area\",\n        \"AutoAssigned\": false\n    }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://console.smartclean.io/prod/v2/scworkforcemanagement/v1/actions?op=scteams.createIncidentWithoutAssignee&org=SMARTCLEAN&propid=06f98e0c4f464b84b9157b1df6adfa66&pid=71e3671b554a427e96b128c361ec4a4e","host":["https://console.smartclean.io/prod/v2"],"path":["scworkforcemanagement","v1","actions"],"query":[{"key":"op","value":"scteams.createIncidentWithoutAssignee"},{"key":"org","value":"SMARTCLEAN"},{"key":"propid","value":"06f98e0c4f464b84b9157b1df6adfa66"},{"key":"pid","value":"71e3671b554a427e96b128c361ec4a4e"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"60"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 16 Mar 2022 08:19:20 GMT"},{"key":"x-amzn-RequestId","value":"88ce4414-1c1f-4e69-bb93-caa7bc9398e5"},{"key":"x-amz-apigw-id","value":"PEWNTFdhyQ0Fmgw="},{"key":"X-Amzn-Trace-Id","value":"Root=1-62319d88-5fd9d05324bb327b2e36edcf;Sampled=0"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 9a5938d4350356dbc5967e5d8ef5ba48.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"SIN2-C1"},{"key":"X-Amz-Cf-Id","value":"og0Faju34KFFZKu1KFZkc548Gh185zuSPiVePry7N8NyC_InM7unFw=="}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Incident created successfully\",\n    \"code\": \"SUCCESS\"\n}"},{"id":"978ac3de-3c70-4caf-a469-125aaf883c83","name":"Spill @ SmartClean Lounge (auto assign)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"Incident\": {\n        \"Subject\": \"Cleaning / Maintenance\",\n        \"Name\": \"Coffee Spill\",\n        \"Priority\": \"N\",\n        \"By\": \"John Doe\",\n        \"End\": 1647418759,\n        \"Start\": 1647420559,\n        \"Tasks\": [\n            {\n                \"Name\": \"Cleaning required\",\n                \"Comments\": \"Please clean the coffee spill beside the fridge\"\n            }\n        ],\n        \"ZoneCatId\": \"MEETING_ROOMS\",\n        \"Zone\": \"ead815f7472048478f9cba158ac121ab\",\n        \"ZoneName\": \"Lounge Area\",\n        \"AutoAssigned\": true\n    }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://console.smartclean.io/prod/v2/scworkforcemanagement/v1/actions?op=scteams.createIncidentWithoutAssignee&org=SMARTCLEAN&propid=06f98e0c4f464b84b9157b1df6adfa66&pid=71e3671b554a427e96b128c361ec4a4e","host":["https://console.smartclean.io/prod/v2"],"path":["scworkforcemanagement","v1","actions"],"query":[{"key":"op","value":"scteams.createIncidentWithoutAssignee"},{"key":"org","value":"SMARTCLEAN"},{"key":"propid","value":"06f98e0c4f464b84b9157b1df6adfa66"},{"key":"pid","value":"71e3671b554a427e96b128c361ec4a4e"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"60"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 16 Mar 2022 08:19:20 GMT"},{"key":"x-amzn-RequestId","value":"88ce4414-1c1f-4e69-bb93-caa7bc9398e5"},{"key":"x-amz-apigw-id","value":"PEWNTFdhyQ0Fmgw="},{"key":"X-Amzn-Trace-Id","value":"Root=1-62319d88-5fd9d05324bb327b2e36edcf;Sampled=0"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 9a5938d4350356dbc5967e5d8ef5ba48.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"SIN2-C1"},{"key":"X-Amz-Cf-Id","value":"og0Faju34KFFZKu1KFZkc548Gh185zuSPiVePry7N8NyC_InM7unFw=="}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Incident created successfully\",\n    \"code\": \"SUCCESS\"\n}"}],"_postman_id":"b197ad40-8688-43e3-a74a-5160a74f7da8"}],"id":"6e96b46d-ca0a-4327-9f77-f0a9f033f57b","description":"<p>This folder contains requests to the SmartClean Workforce module for workforce related queries as well as for reporting and tracking incidents (as Work Orders) created for various Zones in Buildings of your SmartClean enabled Property</p>\n<p>Note:</p>\n<p>If you have defined members of your workforce in our platform and assigned them to various Zones, then you can automatically assign incidents (work orders) to your workforce members for action.</p>\n<p>If workforce members are not defined or disabled for your SmartClean account, you can still report incidents, but cannot assign it to any of your workforce members.</p>\n","event":[{"listen":"prerequest","script":{"id":"ed1becea-ef55-401b-8ea7-a0a05b3a63df","type":"text/javascript","exec":["const scModule = 'scteams';","pm.variables.set('scModule', scModule);"]}},{"listen":"test","script":{"id":"872db9af-9576-4ab3-8e56-f760a9639c68","type":"text/javascript","exec":[""]}}],"_postman_id":"6e96b46d-ca0a-4327-9f77-f0a9f033f57b"},{"name":"Utilities","item":[{"name":"Translate text","id":"584a27ef-b186-4e53-a2b2-625d2171b701","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://console.smartclean.io/_gapi/apis/apis.smartclean.translate/v1/_translate?op=apis.translateString&propid=d2ff1cc0ee104abba3a8ba030c72cd06&q=have a nice day&s=en&t=zh-cn","description":"<p>Translate a string from source language to a desired language.</p>\n","urlObject":{"protocol":"https","path":["_gapi","apis","apis.smartclean.translate","v1","_translate"],"host":["console","smartclean","io"],"query":[{"key":"op","value":"apis.translateString"},{"key":"propid","value":"d2ff1cc0ee104abba3a8ba030c72cd06"},{"key":"q","value":"have a nice day"},{"key":"s","value":"en"},{"key":"t","value":"zh-cn"}],"variable":[]}},"response":[{"id":"b269c3c9-a631-4eb6-99f5-b7f67706e8d0","name":"Success: English to Spanish","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://console.smartclean.io/_gapi/apis/apis.smartclean.translate/v1/_translate?op=apis.translateString&propid=d2ff1cc0ee104abba3a8ba030c72cd06&q=hello&s=en&t=es","protocol":"https","host":["console","smartclean","io"],"path":["_gapi","apis","apis.smartclean.translate","v1","_translate"],"query":[{"key":"op","value":"apis.translateString"},{"key":"propid","value":"d2ff1cc0ee104abba3a8ba030c72cd06"},{"key":"q","value":"hello"},{"key":"s","value":"en"},{"key":"t","value":"es"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"97"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Thu, 25 Aug 2022 04:15:55 GMT"},{"key":"x-amzn-RequestId","value":"65e9a9ab-ad95-4b89-853b-f7ba4440d452"},{"key":"x-amz-apigw-id","value":"XZubRHoSyQ0FsrA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-6306f77b-4440fda2117f41ee469dea26;Sampled=0"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 386a6404e8fa2e50e2a13baba0abed68.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"SIN52-P1"},{"key":"X-Amz-Cf-Id","value":"yjOZtzBc25xgIkp9zUUIs6TrE3_vAnTdvAhTcFCIXP22cqG32SXHOw=="}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"translations\": [\n            {\n                \"translatedText\": \"Hola\"\n            }\n        ]\n    }\n}"},{"id":"3d57f9a1-e892-4f03-bb3a-9807307eb1ca","name":"Fail: Rate limit violated","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://console.smartclean.io/_gapi/apis/apis.smartclean.translate/v1/_translate?op=apis.translateString&propid=d2ff1cc0ee104abba3a8ba030c72cd06&q=have a nice day&s=en&t=zh-cn","protocol":"https","host":["console","smartclean","io"],"path":["_gapi","apis","apis.smartclean.translate","v1","_translate"],"query":[{"key":"op","value":"apis.translateString"},{"key":"propid","value":"d2ff1cc0ee104abba3a8ba030c72cd06"},{"key":"q","value":"have a nice day"},{"key":"s","value":"en"},{"key":"t","value":"zh-cn"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"151"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Thu, 25 Aug 2022 06:24:37 GMT"},{"key":"x-amzn-RequestId","value":"b77a6226-9fe5-47a9-80a3-789f07539b7a"},{"key":"x-amzn-ErrorType","value":"AccessDeniedException"},{"key":"x-amz-apigw-id","value":"XaBR2FQZSQ0Fn3A="},{"key":"X-Cache","value":"Error from cloudfront"},{"key":"Via","value":"1.1 5e28bc713b3439ab2d031400bb99f2a0.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"SIN52-P1"},{"key":"X-Amz-Cf-Id","value":"iNwQL30oZsrWhQhbtaKvGvSC1_HNr16kymw6v949FWK-ejE9k60aEQ=="}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"The request is violating API rate limit for bucket Minute having set threshold as 1 and current usage as 2\",\n    \"code\": \"API_LIMIT_VIOLATED\"\n}"}],"_postman_id":"584a27ef-b186-4e53-a2b2-625d2171b701"},{"name":"Get BI signed URL","id":"abc9d34a-6651-4125-a7ca-8ba7d167f6f3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"Dashboard\": 3,\n    \"Theme\": {\n        \"ThemeType\": \"night\",\n        \"Borders\": false,\n        \"Title\": false\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://console.smartclean.io/_gapi/apis/apis.smartclean.bi/v1/actions?op=api.getSignedEmbeddedURI&propid=d2ff1cc0ee104abba3a8ba030c72cd06&pid=45ea1d38775046dbbdc955362b8834b1","description":"<p>Get embeddable link to the desired BI dashboard.</p>\n","urlObject":{"protocol":"https","path":["_gapi","apis","apis.smartclean.bi","v1","actions"],"host":["console","smartclean","io"],"query":[{"key":"op","value":"api.getSignedEmbeddedURI"},{"key":"propid","value":"d2ff1cc0ee104abba3a8ba030c72cd06"},{"key":"pid","value":"45ea1d38775046dbbdc955362b8834b1"}],"variable":[]}},"response":[{"id":"8f0ffe2d-f108-4091-b740-23a08943b8a1","name":"success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"Dashboard\": 3,\n    \"Theme\": {\n        \"ThemeType\": \"night\",\n        \"Borders\": false,\n        \"Title\": false\n    }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://console.smartclean.io/_gapi/apis/apis.smartclean.bi/v1/actions?op=api.getSignedEmbeddedURI&propid=d2ff1cc0ee104abba3a8ba030c72cd06&pid=45ea1d38775046dbbdc955362b8834b1","protocol":"https","host":["console","smartclean","io"],"path":["_gapi","apis","apis.smartclean.bi","v1","actions"],"query":[{"key":"op","value":"api.getSignedEmbeddedURI"},{"key":"propid","value":"d2ff1cc0ee104abba3a8ba030c72cd06"},{"key":"pid","value":"45ea1d38775046dbbdc955362b8834b1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"545"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Tue, 27 Sep 2022 03:14:06 GMT"},{"key":"x-amzn-RequestId","value":"0a4e7931-66cf-4f0e-a17c-f6d08bf08698"},{"key":"Access-Control-Allow-Origin","value":"https://www.smartclean.io"},{"key":"x-amz-apigw-id","value":"ZGWT1HrKSQ0FSGw="},{"key":"X-Amzn-Trace-Id","value":"Root=1-63326a7e-7773076b37df4070793bd11b;Sampled=0"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 4efbd5b290462fbd5ee9b1de5f123e2a.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"SIN52-P1"},{"key":"X-Amz-Cf-Id","value":"77xQ40_ig_fBktgxigXLSupMw0xIvu_qF5unqpcHQiQ-g_dALhnG1Q=="}],"cookie":[],"responseTime":null,"body":"{\n    \"ExpiresAt\": 1664249346,\n    \"URI\": \"aHR0cHM6Ly9yZWFsc2Vuc2UubWV0YWJhc2VhcHAuY29tL2VtYmVkL2Rhc2hib2FyZC9leUpoYkdjaU9pSklVekkxTmlJc0luUjVjQ0k2SWtwWFZDSjkuZXlKbGVIQWlPakUyTmpReU5Ea3pORFlzSW1saGRDSTZNVFkyTkRJME9EUTBOaXdpY0dGeVlXMXpJanA3SW5CcFpDSTZJalExWldFeFpETTROemMxTURRMlpHSmlaR001TlRVek5qSmlPRGd6TkdJeElpd2ljSEp2Y0dsa0lqb2laREptWmpGall6QmxaVEV3TkdGaVltRXpZVGhpWVRBek1HTTNNbU5rTURZaWZTd2ljbVZ6YjNWeVkyVWlPbnNpWkdGemFHSnZZWEprSWpvemZYMC5kQmlJMWtzcEV4YU9rcmRPRzQ5QjEtN0tMbHVDOWMwb0ZvRHpGeDJELXM4I3RoZW1lPW5pZ2h0JmJvcmRlcmVkPWZhbHNlJnRpdGxlZD1mYWxzZQ==\"\n}"},{"id":"bed10293-a122-4a41-9c6b-75983586134b","name":"Fail: Rate limit violated","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"Dashboard\": 3,\n    \"Theme\": {\n        \"ThemeType\": \"night\",\n        \"Borders\": false,\n        \"Title\": false\n    }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://console.smartclean.io/_gapi/apis/apis.smartclean.bi/v1/actions?op=api.getSignedEmbeddedURI&propid=d2ff1cc0ee104abba3a8ba030c72cd06&pid=45ea1d38775046dbbdc955362b8834b1","protocol":"https","host":["console","smartclean","io"],"path":["_gapi","apis","apis.smartclean.bi","v1","actions"],"query":[{"key":"op","value":"api.getSignedEmbeddedURI"},{"key":"propid","value":"d2ff1cc0ee104abba3a8ba030c72cd06"},{"key":"pid","value":"45ea1d38775046dbbdc955362b8834b1"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"151"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Tue, 27 Sep 2022 03:06:34 GMT"},{"key":"x-amzn-RequestId","value":"d3c1d06c-8108-44e8-b3cc-f75710dda4ea"},{"key":"x-amzn-ErrorType","value":"AccessDeniedException"},{"key":"x-amz-apigw-id","value":"ZGVNNFTYSQ0FaYA="},{"key":"X-Cache","value":"Error from cloudfront"},{"key":"Via","value":"1.1 76976a7cabf47f716d4b531bdb04c906.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"SIN52-P1"},{"key":"X-Amz-Cf-Id","value":"B6Ri4rUHpR1kQbRwFQSdNQqQQBEX1KQDjgEYYIxTPcxCSSIxmmwKfw=="}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"The request is violating API rate limit for bucket Minute having set threshold as 1 and current usage as 2\",\n    \"code\": \"API_LIMIT_VIOLATED\"\n}"}],"_postman_id":"abc9d34a-6651-4125-a7ca-8ba7d167f6f3"}],"id":"f3057ea6-781d-4525-9d01-920fe0f4b440","_postman_id":"f3057ea6-781d-4525-9d01-920fe0f4b440","description":""},{"name":"share report","id":"a04a0161-2bcd-4be5-9272-ac392455b278","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"to\": [\n        {\n            \"email\": \"<Email ID>\"\n        }\n    ],\n    \"dynamic_template_data\": {\n        \"who\": \"<Report By>\",\n        \"reportPassword\": \"\",\n        \"reportTitle\": \"<Report Title>\",\n        \"reportLink\": \"<Report-Link>\",\n        \"reportDescription\": \"<reportDescription>\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://console.smartclean.io/prod/v2/scbi/{{bi-version}}/actions?op=scbi.shareWebReport&org=SMARTCLEAN&propid=d2ff1cc0ee104abba3a8ba030c72cd06&pid=scnoop","urlObject":{"path":["scbi","{{bi-version}}","actions"],"host":["https://console.smartclean.io/prod/v2"],"query":[{"key":"op","value":"scbi.shareWebReport"},{"key":"org","value":"SMARTCLEAN"},{"key":"propid","value":"d2ff1cc0ee104abba3a8ba030c72cd06"},{"key":"pid","value":"scnoop"}],"variable":[]}},"response":[],"_postman_id":"a04a0161-2bcd-4be5-9272-ac392455b278"}],"event":[{"listen":"prerequest","script":{"id":"1b967fe0-96f8-4a7d-9dcd-29294e6fabce","type":"text/javascript","exec":["// TODO: convert pm.variables.get to collectionVariables lookup","// const collectionVariables = pm.variables.toObject();","","if (pm.variables.has('auth-type') == false) {","    throw new Error('\"auth-type\" not found in Variables (Required)');","}","const authType = pm.variables.get('auth-type');","// console.log(`authType in variables is: ${authType}`);","","const headerNameAuth = 'Authorization';","","if (authType == 'basic') {","    // Create basic signature","","    if (pm.variables.has('sc-username') == false) {","        console.error('\"sc-username\" not found in Variables (Required for auth-type: basic)')","        throw '\"sc-username\" not found in Variables (Required for auth-type: basic)';","    }","","    if (pm.variables.has('sc-password') == false) {","        console.error();","        throw '\"sc-password\" not found in Variables (Required for auth-type: basic)';","    }","","    const username = pm.variables.get('sc-username');","    const password = pm.variables.get('sc-password');","","    const combinedCredentials = `${username}:${password}`;","    const base64EncodedCombinedCredentials = new Buffer(combinedCredentials).toString('base64');","","    const headerValueAuth = `Basic ${base64EncodedCombinedCredentials}`;","","    // console.log(`HEADER value for ${authType} auth created as\\n${headerValueAuth}`);","","    pm.request.headers.add({","        'key': headerNameAuth,","        'value': headerValueAuth","    });","","}","else if (authType == 'hmac') {","","    // Reference for SC-HMAC signing: https://www.apidocs.smartclean.io/hmac.html","","    if (pm.variables.has('sc-hmac-access-key') == false) {","        throw new Error('\"sc-hmac-access-key\" not found in Variables (Required for auth-type: hmac)');","    }","    if (pm.variables.has('sc-hmac-secret-key') == false) {","        throw new Error('\"sc-hmac-secret-key\" not found in Variables (Required for auth-type: hmac)');","    }","    if (pm.variables.has('sc-hmac-prefix') == false) {","        throw new Error('\"sc-hmac-prefix\" not found in Variables (Required for auth-type: hmac)');","    }","","    let currentUnixTimeSeconds = Math.floor(Date.now() / 1000);","","    if (pm.variables.has('header-name-sc-time')) {","        const headerNameXScTime = pm.variables.get('header-name-sc-time')","        pm.request.headers.add({","            'key': headerNameXScTime,","            'value': currentUnixTimeSeconds","        });","    }","// 07042022: Identity no longer required","    // if (pm.variables.has('header-name-sc-identity')) {","    //     const headerNameXScIdentity = pm.variables.get('header-name-sc-identity');","","    //     if (pm.variables.has('header-value-sc-identity') == false) {","    //         throw new Error('\"sc-header-value-x-sc-identity\" not found in Variables (Required as sc-header-name-sc-identity-is found in variables.)');","    //         }","","    //     const headerValueXScIdentity = pm.variables.get('header-value-sc-identity');","","    //     pm.request.headers.add({","    //         'key': headerNameXScIdentity,","    //         'value': headerValueXScIdentity","    //     });","    // }","    ","    // console.log('Request URL is:')","    // console.log(pm.request.url);","","    const scModule = pm.request.url.path[0]","    // console.log('Module from URL path is:')","    // console.log(scModule);","","    const requestQueryOp = pm.request.url.query.get('op')","    // console.log('\"op\" from URL queryparams is:')","    // console.log(requestQueryOp);","    ","    const accessKey = pm.variables.get('sc-hmac-access-key');","    // console.log(`access key is: ${accessKey}`);","","    const propId = pm.variables.get('propid');","","    const stringToSign = `${scModule}/${propId}/${requestQueryOp}/${accessKey}/${currentUnixTimeSeconds}`;","","    console.log('String to Sign created as:');","    // console.log(stringToSign);","","    const secretKey = pm.variables.get('sc-hmac-secret-key');","    // console.log(`secret key is: ${secretKey}`);","","    const scHmacPrefix = pm.variables.get('sc-hmac-prefix');","    // console.log(`sc-hmac-prefix is: ${scHmacPrefix}`);","","    const hmacSignature = CryptoJS.enc.Hex.stringify(CryptoJS.HmacSHA256(stringToSign, secretKey));","","    const headerValueAuth = `${scHmacPrefix};${accessKey};${hmacSignature}`;","","    // console.log(`HEADER value for ${authType} auth created as\\n${authHeaderValue}`);","","    pm.request.headers.add({","        'key': headerNameAuth,","        'value': headerValueAuth","    });","} ","else {","    throw new Error(`Variable \"auth-type\" ${authType} is invalid (Valid types: \"basic\" or \"hmac\")`);","}"]}},{"listen":"test","script":{"id":"fcdd470b-49fb-4637-9c3e-7110f31fa15f","type":"text/javascript","exec":[""]}}],"variable":[{"id":"9134295a-7232-4f38-94f1-40b67399b8bd","key":"sc-username","value":"abhishek"},{"id":"a2456515-6750-406c-b541-d8dc0e894c94","key":"sc-password","value":"Abhishek123#"},{"id":"6b26708f-bb69-4b6e-ae5d-71c81280d7c6","key":"org","value":"SMARTCLEAN"},{"id":"a87a30cc-9b37-4463-a93e-60d8a0bfe8ec","key":"propid","value":"d2ff1cc0ee104abba3a8ba030c72cd06"},{"id":"d6e7594f-74db-448b-96f9-9c4eb96f4eb9","key":"buildingId","value":"45ea1d38775046dbbdc955362b8834b1"},{"id":"22fa6474-8427-4b0d-8e5f-92d2aff42b11","key":"zone id","value":"726a401e5005453d9b44d65d808a85f3"},{"id":"2aee4bfb-1d73-4d9f-996d-ecc273e32eb9","key":"workforce seat id","value":"d2ff1cc0ee104abba3a8ba030c72cd06_001"},{"id":"cdffca8b-e942-4198-bb1d-8b30546ab8b4","key":"auth-type","value":"basic"},{"id":"03e3f247-8a4b-47e5-aa26-101505945f77","key":"base-url","value":"https://console.smartclean.io/prod/v2"},{"id":"11c01c79-96c9-44f9-aa0b-e4fa74ad7344","key":"sc-hmac-access-key","value":"XPMDYoojwDbLD8HRywgO/pByP5QAQvPc6cQdow2BQ4aDHQKeI6Elf"},{"id":"ed146c55-2e5b-4f41-a7f3-92c104f94fab","key":"sc-hmac-secret-key","value":"2iEKnW7xZeljrpIaDSOFdbP3lLM2DtGl"},{"id":"588f7652-e212-4991-9aed-8cfecf4d9f74","key":"grids-version","value":"v1"},{"id":"f12b37c5-58b5-4ca5-9c69-0749bc04ec54","key":"devicemanagement-version","value":"v1"},{"id":"8414eb38-633a-48cd-b3a8-5c4c08052aa7","key":"metrics-version","value":"v4"},{"id":"a7d256ce-4226-4cbb-8eb8-cbe50af0e8f0","key":"workforcemanagement-version","value":"v1"},{"id":"fcd7bec2-3f5e-44a5-a85e-33b72f0162dc","key":"sc-hmac-prefix","value":"SCHMAC_V1"},{"id":"769ed26b-c7ff-4654-9791-71993e69b351","key":"header-name-sc-time","value":"x-sc-time"},{"id":"38b8cade-0079-477f-bda2-90a7d5cfe219","key":"workforce get_tasks start_time","value":"1656814618"},{"id":"b534dc68-6827-4bc7-886b-0a3f1155ddf7","key":"workforce get_tasks end_time","value":"1656987418"},{"id":"62d08088-fb67-4d29-b65a-fcf6d1dd1055","key":"workforce get_tasks maximum_number_of_tasks","value":"4"},{"id":"aa710713-9628-4f7e-a82f-d5ccef6a545a","key":"deviceAliasID","value":"<device slot id>"}]}