{"info":{"_postman_id":"feda3ae9-877f-48a1-9352-db2018a2a5ea","name":"Conteo Api","description":"<html><head></head><body><p>Habität is a product that makes it possible to optimize the use of office spaces and make structural and energy costs more efficient.</p>\n<p>Habitat Conteo API is organized around <a href=\"https://desktop.postman.com/?desktopVersion=9.13.0&amp;userId=15241250&amp;teamId=286745\">REST</a>. Our API has predictable resource-oriented URLs, accepts <a href=\"https://desktop.postman.com/?desktopVersion=9.13.0&amp;userId=15241250&amp;teamId=286745\">JSON-encoded</a> bodies, returns <a href=\"https://desktop.postman.com/?desktopVersion=9.13.0&amp;userId=15241250&amp;teamId=286745\">JSON-encoded</a> responses, and uses standard HTTP response codes, authentication, and verbs (<strong>POST</strong>, <strong>GET</strong>, <strong>PUT</strong>, <strong>PATCH</strong>, and <strong>DELETE</strong>).</p>\n<p>Habitat Conteo API is an optional module and extends Habitat Core API. The Conteo module is focused on montorization of the occupancy of spaces through devices that count the number of persons within an area (mainly cameras on the areas entrances/exits).</p>\n<p>This API is use to manage:</p>\n<ul>\n<li><strong>Devices</strong>: Sensors that monitorize the <em>zones</em> occupancy .</li>\n<li><strong>Location</strong>: Exact device position on the floor's plan.</li>\n<li><strong>Alarms</strong>: Notifications when the occupancy of a zone goes higher or lower than a given percentage threshold.</li>\n<li><strong>Zones</strong>: Delimited enclosed spaces to quantify capacity and occupancy.</li>\n</ul>\n<p>All Habitat resources (except for the authentication endpoints) are protected with <a href=\"https://desktop.postman.com/?desktopVersion=9.14.0&amp;userId=9323336&amp;teamId=286745\">OAuth 2.0 Bearer Tokens</a> sent on the request as an <code>Authorization: Bearer</code> header. If a request doesn't include the Bearer token, Habität will answer with a <strong>401 Unauthorized</strong> HTTP error code.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"1314913","collectionId":"feda3ae9-877f-48a1-9352-db2018a2a5ea","publishedId":"TVmPBH7n","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2022-04-08T12:09:10.000Z"},"item":[{"name":"(outdatedDoc)auth","item":[{"name":"Amazon Cognito","item":[{"name":"Cognito auth","event":[{"listen":"test","script":{"id":"96b30dd5-074f-4c89-913d-e1dc7c0ac551","exec":["pm.globals.set(\"token\", pm.response.json()[\"access_token\"]);"],"type":"text/javascript"}}],"id":"e87ca898-95d5-44fd-939f-4b882c6c34b2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{idp_client_id}}"},{"key":"password","value":"{{idp_client_secret}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"scope","value":"{{idp_scope}}","description":"<p>Required. Allowed scope given to the client</p>\n","type":"text"},{"key":"grant_type","value":"client_credentials","description":"<p>Required. Must be 'client_credentials'</p>\n","type":"text"}]},"url":"{{idp_host}}/oauth2/token","description":"<p>Obtains an access_token through <strong>Amazon Cognito</strong> needed to perform requests to Habitat services.<br />This is used to authenticate services that launch some processes without the intervention of any user.</p>\n<p>The response could be one of:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>200 OK</strong></th>\n<th><strong>Successful authorization</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>400 Bad Request</strong></td>\n<td><strong>Invalid parameters</strong></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["oauth2","token"],"host":["{{idp_host}}"],"query":[],"variable":[]}},"response":[{"id":"53782928-5468-44ac-8776-794bbd8e3ae6","name":"200 OK","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"scope","value":"{{idp_scope}}","description":"Required. Allowed scope given to the client","type":"text"},{"key":"grant_type","value":"client_credentials","description":"Required. Must be 'client_credentials'","type":"text"}]},"url":"{{idp_host}}/oauth2/token"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 10 Jun 2022 07:09:40 GMT"},{"key":"Content-Type","value":"application/json;charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"XSRF-TOKEN=e7c1d567-bbc5-4e30-8219-3948bb3c168a; Path=/; Secure; HttpOnly; SameSite=Lax"},{"key":"x-amz-cognito-request-id","value":"420aae93-330e-4df9-b48c-0112e5b56dbc"},{"key":"X-Application-Context","value":"application:prod:8443"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=31536000 ; includeSubDomains"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Server","value":"Server"}],"cookie":[],"responseTime":null,"body":"{\n    \"access_token\": \"eyJraWQiOiI1NWxJbzFtWWtcL3B0U1JuY1d2NEFEWkprZHpURjF3cFQ5Y2MzV0ZNVCszTT0iLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOiJwMG9pbTY2cHAxMGlqYjViM2ZjN3M2MWVrIiwidG9rZW5fdXNlIjoiYWNjZXNzIiwic2NvcGUiOiJoYWJpdGF0LXBvYy1hcHBcL2Z1bGxfYWNjZXNzIiwiYXV0aF90aW1lIjoxNjU0ODQ0OTgwLCJpc3MiOiJodHRwczpcL1wvY29nbml0by1pZHAuZXUtd2VzdC0xLmFtYXpvbmF3cy5jb21cL2V1LXdlc3QtMV9Na1FCTWs4RVAiLCJleHAiOjE2NTQ4NDg1ODAsImlhdCI6MTY1NDg0NDk4MCwidmVyc2lvbiI6MiwianRpIjoiNmQ5MGZiMDktZjhmOS00ZjdhLTljNmQtMTU5ZTM2NGU1YWVjIiwiY2xpZW50X2lkIjoicDBvaW02NnBwMTBpamI1YjNmYzdzNjFlayJ9.WJ8ZqJSXwZge5stsA5Tw6OTax8wCci7NQP4fJwLwmMsdyuWn8nUEbgrL_Zrqi9TLZtj-aLMFIjcoSgp11ib1vpYGMoiWPyCYTT-mcoG7MN0MqIWl0WmuvHBSWtWoJkaICHrxhQc1xr2JgMKX2Ct7FLqQ0APLi52rXnBCBvNPeABnluT4_cLcKnGxnuos5Ofh-W4TG-etphd2clA6E_0_15vjziHQEtYTXSXkZR2YT5v3ArwPqrcvPYbdVzaI1DmF_MrBd0ryqDrhGLFZswXLdBS47-vX6-Ioi_-MJDyUzHpPMyz_ArNV578hXzALVZSv3xjgZoSgknw13SSa4W3zXQ\",\n    \"expires_in\": 3600,\n    \"token_type\": \"Bearer\"\n}"},{"id":"2f31a358-edc5-4ab6-9f73-a9935c9a2d18","name":"400 Bad Request","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"scope","value":"{{idp_scope}}","description":"Required. Allowed scope given to the client","type":"text"},{"key":"grant_type","value":"oauth_token","description":"Required. Must be 'client_credentials'","type":"text"}]},"url":"{{idp_host}}/oauth2/token"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 10 Jun 2022 10:10:28 GMT"},{"key":"Content-Type","value":"application/json;charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"XSRF-TOKEN=229e61b6-bd39-4149-ab68-76e5d5d52c20; Path=/; Secure; HttpOnly; SameSite=Lax"},{"key":"x-amz-cognito-request-id","value":"16127a49-f53d-4ddd-853d-b5bd9f31008f"},{"key":"X-Application-Context","value":"application:prod:8443"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=31536000 ; includeSubDomains"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Server","value":"Server"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"unsupported_grant_type\"\n}"}],"_postman_id":"e87ca898-95d5-44fd-939f-4b882c6c34b2"}],"id":"fcdedd20-51bb-4c2a-b7f3-6d29755d40c5","description":"<p>This section contains request used for:</p>\n<ul>\n<li>Application (server to server communication) request of IdP access_tokens</li>\n</ul>\n<p>By using <strong>Amazon Cognito</strong> IdP.</p>\n","_postman_id":"fcdedd20-51bb-4c2a-b7f3-6d29755d40c5","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"953fd251-c5f7-4826-87dc-4dc41f773b9d","id":"953fd251-c5f7-4826-87dc-4dc41f773b9d","name":"(outdatedDoc)auth","type":"folder"}}},{"name":"Microsoft AD FS","item":[{"name":"AD FS auth","event":[{"listen":"test","script":{"id":"96b30dd5-074f-4c89-913d-e1dc7c0ac551","exec":["pm.globals.set(\"token\", pm.response.json()[\"access_token\"]);"],"type":"text/javascript"}}],"id":"f0acb8c9-2811-4085-a39c-8fdb651f0677","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"scope","value":"{{idp_scope}}","description":"<p>Optional. Allowed scope given to the client</p>\n","type":"text","disabled":true},{"key":"grant_type","value":"client_credentials","description":"<p>Required. Must be 'client_credentials'</p>\n","type":"text"},{"key":"client_id","value":"{{idp_client_id}}","description":"<p>Required. Client ID of the AD FS app client</p>\n","type":"text"},{"key":"client_secret","value":"{{idp_client_secret}}","description":"<p>Required. Client secret of the AD FS app client</p>\n","type":"text"}]},"url":"{{idp_host}}/oauth2/token","description":"<p>Obtains an access_token through <strong>Microsoft AD FS</strong> needed to perform requests to Habitat services.<br />This is used to authenticate services that launch some processes without the intervention of any user.</p>\n<p>The response could be one of:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>200 OK</strong></th>\n<th><strong>Successful authorization</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>400 Bad Request</strong></td>\n<td><strong>Invalid parameters</strong></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["oauth2","token"],"host":["{{idp_host}}"],"query":[],"variable":[]}},"response":[{"id":"b14a828f-f5f6-4ffc-ba25-371c57b85195","name":"200 OK","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"scope","value":"{{idp_scope}}","description":"Optional. Allowed scope given to the client","type":"text","disabled":true},{"key":"grant_type","value":"client_credentials","description":"Required. Must be 'client_credentials'","type":"text"},{"key":"client_id","value":"{{idp_client_id}}","description":"Required. Client ID of the AD FS app client","type":"text"},{"key":"client_secret","value":"{{idp_client_secret}}","description":"Required. Client secret of the AD FS app client","type":"text"}]},"url":"{{idp_host}}/oauth2/token"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-store"},{"key":"Pragma","value":"no-cache"},{"key":"Content-Length","value":"993"},{"key":"Content-Type","value":"application/json;charset=UTF-8"},{"key":"Server","value":"Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0"},{"key":"Date","value":"Mon, 13 Jun 2022 09:35:54 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"access_token\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6Imwxd2hWZTRvWDYtWFB4SVgyZ2Npbnd1ck1IWSJ9.eyJhdWQiOiJtaWNyb3NvZnQ6aWRlbnRpdHlzZXJ2ZXI6YWQ5Nzk2NDQtN2M5Mi00MTY0LWE2YTYtNTUzMDhjZDRiZDRhIiwiaXNzIjoiaHR0cDovL2FkZnNwcm9kNDAuZXZlcmlzLmNvbS9hZGZzL3NlcnZpY2VzL3RydXN0IiwiaWF0IjoxNjU1MTEyOTU1LCJleHAiOjE2NTUxMTY1NTUsImFwcHR5cGUiOiJDb25maWRlbnRpYWwiLCJhcHBpZCI6ImFkOTc5NjQ0LTdjOTItNDE2NC1hNmE2LTU1MzA4Y2Q0YmQ0YSIsImF1dGhtZXRob2QiOiJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL3dzLzIwMDgvMDYvaWRlbnRpdHkvYXV0aGVudGljYXRpb25tZXRob2QvcGFzc3dvcmQiLCJhdXRoX3RpbWUiOiIyMDIyLTA2LTEzVDA5OjM1OjU1LjM5M1oiLCJ2ZXIiOiIxLjAifQ.lhZyOBuqzT_Bj2j9tI-cSTpkj1WpOSZ0L6DDndzenSWmyYcspxsZPLsEsuXb7INcXLbgP-BA9qNdpCcR99SuEal8Sb5NMtIkmiFG57o1Z37dWMJi3KNwApXot3Fcz_Zmd5dmDLNfEbPq_KOM0FfKGGwP64XAyoqRztHHrl-1QJbMxa7HxNfweGws1-qESq60s8L5gqoCDOeMIkW9RW5Ne3CZozwkK6T3vAQAxhEUDSEtvKh6ZnTFKE9m3Zor0CdZfWYgsfKu7XvjgmIbx4dg4zCoO-uoW6EqTds138TFCNYXG1wB5yi_TNwt3rVn0Je5ejEYjGq9cY1_NZ9VOcKdVQ\",\n    \"token_type\": \"bearer\",\n    \"expires_in\": 3600\n}"},{"id":"b2c2b7ae-1bd8-4e20-be6a-2e5c76b2684a","name":"400 Bad Request","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"scope","value":"{{idp_scope}}","description":"Optional. Allowed scope given to the client","type":"text","disabled":true},{"key":"grant_type","value":"client_credentials","description":"Required. Must be 'client_credentials'","type":"text"},{"key":"client_id","value":"{{idp_client_id}}","description":"Required. Client ID of the AD FS app client","type":"text"},{"key":"client_secret","value":"{{idp_client_secret}}","description":"Required. Client secret of the AD FS app client","type":"text"}]},"url":"{{idp_host}}/oauth2/token"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-store"},{"key":"Pragma","value":"no-cache"},{"key":"Content-Length","value":"173"},{"key":"Content-Type","value":"application/json;charset=UTF-8"},{"key":"Server","value":"Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0"},{"key":"Date","value":"Mon, 13 Jun 2022 09:36:12 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"invalid_client\",\n    \"error_description\": \"MSIS9607: The 'client_id' parameter in the request is invalid. No registered client is found with this identifier.\"\n}"}],"_postman_id":"f0acb8c9-2811-4085-a39c-8fdb651f0677"}],"id":"5bb9fe7f-335d-4bda-b0e1-06c5fd38460f","description":"<p>This section contains request used for:</p>\n<ul>\n<li>Application (server to server communication) request of IdP access_tokens</li>\n</ul>\n<p>By using <strong>Microsoft AD FS</strong> IdP.</p>\n","_postman_id":"5bb9fe7f-335d-4bda-b0e1-06c5fd38460f","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"953fd251-c5f7-4826-87dc-4dc41f773b9d","id":"953fd251-c5f7-4826-87dc-4dc41f773b9d","name":"(outdatedDoc)auth","type":"folder"}}},{"name":"(deprecated) auth users","event":[{"listen":"test","script":{"id":"6fdf0fa9-1bcf-4d04-90cf-17011c1734cb","exec":["pm.globals.set(\"token\", pm.response.json()[\"token\"]);"],"type":"text/javascript"}}],"id":"5344de03-0ed1-44a5-a9af-d3777249e873","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"myuser@mydomain.com\",\n    \"password\": \"P@ssw0rd\"\n}"},"url":"{{host}}/habitat/v2/auth/users","description":"<p>Obtain a Bearer token using user credentials.</p>\n<p>Both <strong>name</strong> and <strong>password</strong> are strings and <em>required</em> fields.</p>\n<p>The response could be one of:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>200 OK</strong></th>\n<th><strong>Successful authorization</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>403 Forbidden</strong></td>\n<td><strong>Wrong credentials</strong></td>\n</tr>\n<tr>\n<td><strong>400 Bad Request</strong></td>\n<td><strong>Required parameter is missing</strong></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"953fd251-c5f7-4826-87dc-4dc41f773b9d","id":"953fd251-c5f7-4826-87dc-4dc41f773b9d","name":"(outdatedDoc)auth","type":"folder"}},"urlObject":{"path":["habitat","v2","auth","users"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"789b9e36-f4a8-4360-a885-61be9fec206d","name":"Ok","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"name\": \"Lauretta52@yahoo.com\",\n\t\"password\": \"j5xrYBILmS9Y0sV\"\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/habitat/v2/auth/users"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 16 Feb 2022 14:38:42 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Content-Length","value":"216"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"token\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJpc3MiOiJoYWJpdGF0LmV2ZXJpc2lvdC5jb20iLCJleHAiOjE2NDY3NDY4NjMsInVzZXJJZCI6MX0.S5MUdj_CYNuSrODfY4-isD6LXPA2a2CvxuZubTDJk9aYjG3JzMTvwDrwG0itcwaaooOR0S-3SrF0VkwsWp88LA\"\n}"},{"id":"dfe9c228-53e9-47ef-b511-fd125ab57d7e","name":"400 Bad Request","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"name\": \"Antonia_Greenfelder@hotmail.com\"\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/habitat/v2/auth/users"},"status":"Bad Request","code":400,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Tue, 22 Mar 2022 08:43:10 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Content-Length","value":"357"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":""},{"id":"92f2c82a-b889-4c9a-a432-3d7283b4322e","name":"403 Forbidden","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"name\": \"Pearlie_Will@yahoo.com\",\n\t\"password\": \"U3jjCYEZlj7kz58\"\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/habitat/v2/auth/users"},"status":"Forbidden","code":403,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Tue, 22 Mar 2022 08:29:20 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Content-Length","value":"0"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"5344de03-0ed1-44a5-a9af-d3777249e873"},{"name":"(deprecated) servers auth","event":[{"listen":"test","script":{"id":"6fdf0fa9-1bcf-4d04-90cf-17011c1734cb","exec":["pm.globals.set(\"token\", pm.response.json()[\"token\"]);"],"type":"text/javascript"}}],"id":"e53936e8-712f-4924-b703-3e560e2272d6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"key\": \"b16c2bbe-69bb-4006-91c2-874062bc3216\"\n}"},"url":"{{host}}/habitat/v2/auth/servers","description":"<p>Obtain a Bearer token using <em>API Key</em> credential.<br />This is used to authenticate services that launch some processes without the intervention of any user.</p>\n<p><strong>key</strong> parameter is required.</p>\n<p>The response could be one of:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>200 OK</strong></th>\n<th><strong>Successful authorization</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>403 Forbidden</strong></td>\n<td><strong>Wrong credentials</strong></td>\n</tr>\n<tr>\n<td><strong>400 Bad Request</strong></td>\n<td><strong>Required parameter is missing</strong></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"953fd251-c5f7-4826-87dc-4dc41f773b9d","id":"953fd251-c5f7-4826-87dc-4dc41f773b9d","name":"(outdatedDoc)auth","type":"folder"}},"urlObject":{"path":["habitat","v2","auth","servers"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"13957ab9-f0ce-4e7f-ad1b-c7cf3e3526c6","name":"Ok","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"key\": \"9abcf618-544b-47c7-a71b-1e21a29df038\"\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/habitat/v2/auth/servers"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 16 Feb 2022 14:38:42 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Content-Length","value":"216"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"token\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJpc3MiOiJoYWJpdGF0LmV2ZXJpc2lvdC5jb20iLCJrZXlJZCI6MSwiZXhwIjoxNjQ2NzQ3MzExfQ.nY3bray3lUkCBzzexW_pb2I-66F2yv7geGcL_5faxV3wdZuu33yfY4z3_uIpnf0oAv3swKKworWfH1JOuWTo7g\"\n}"},{"id":"666d513e-e7c6-4e05-9041-93add0746e86","name":"400 Bad Request","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"url":"{{host}}/habitat/v2/auth/servers"},"status":"Bad Request","code":400,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Tue, 22 Mar 2022 08:43:10 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Content-Length","value":"357"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":""},{"id":"d11a1681-42d1-4783-9a08-67e36ef6db27","name":"403 Forbidden","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"key\": \"f0ab907d-b59f-49bb-84e4-31dd15d477f4\"\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/habitat/v2/auth/servers"},"status":"Forbidden","code":403,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Tue, 22 Mar 2022 08:29:20 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Content-Length","value":"0"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"e53936e8-712f-4924-b703-3e560e2272d6"}],"id":"953fd251-c5f7-4826-87dc-4dc41f773b9d","description":"<p>Before using the Habitat Esite API, you’ll need to obtain an Authorization Token. All Habitat resources are protected with <a href=\"https://tools.ietf.org/html/rfc6750#section-2.1\">OAuth 2.0 Bearer Tokens</a> sent on the request as an <code>Authorization: Bearer</code> header.</p>\n<p>There are two different authorization endpoints:</p>\n<ul>\n<li><strong>users auth</strong>: Authorization is performed by Habität users credentials (name and password).</li>\n<li><strong>servers auth</strong>: Authorization is performed via <em>API Key.</em> This is though to be used to secure communication between Habität modules and also for server-side applications which runs processes without the need of interaction by any user.</li>\n</ul>\n<p>By default, tokens issued by Habität expire in a day.</p>\n","auth":{"type":"noauth","isInherited":false},"_postman_id":"953fd251-c5f7-4826-87dc-4dc41f773b9d"},{"name":"devices","item":[{"name":"get devices","id":"2482f024-e636-4e43-bdcc-ad08722b2ae5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{host}}/v2/devices","description":"<p>Returns all devices created on the module.</p>\n<p><strong>DevicesRead</strong> permission is required.</p>\n<p>The response could be one of:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>200 OK</strong></th>\n<th></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>403 Forbidden</strong></td>\n<td><strong>User without DevicesRead</strong> <strong>permission</strong></td>\n</tr>\n<tr>\n<td><strong>401 Unauthorized</strong></td>\n<td><strong>Missing Bearer token</strong></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"feda3ae9-877f-48a1-9352-db2018a2a5ea","id":"feda3ae9-877f-48a1-9352-db2018a2a5ea","name":"Conteo Api","type":"collection"}},"urlObject":{"path":["v2","devices"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"1e68fcde-d66e-4a50-817b-26f39d0c0809","name":"Ok","originalRequest":{"method":"GET","header":[],"url":"{{host}}/v2/devices"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 28 Jun 2021 13:40:48 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"mac\": \"69:52:75:dc:48:5d\",\n        \"location\": 95,\n        \"sensorMasterKey\": \"11e8c324-e535-4b62-b75f-2bdff8d03817\",\n        \"creationDate\": \"2020-11-11T08:40:40.753\",\n        \"installationDate\": \"2020-12-01T08:04:38.461\",\n        \"ipAddress\": \"253.68.157.6\",\n        \"ipDate\": null,\n        \"orientation\": 0\n    },\n    {\n        \"mac\": \"c8:29:e3:67:b2:17\",\n        \"location\": 237,\n        \"sensorMasterKey\": \"963a0865-d537-4ca9-977f-57683e75cad8\",\n        \"creationDate\": \"2020-05-22T11:14:59.751\",\n        \"installationDate\": \"2020-05-25T07:11:18.894\",\n        \"ipAddress\": \"154.122.191.101\",\n        \"ipDate\": \"2021-11-22T09:00:32.096\",\n        \"orientation\": 180\n    }\n]"},{"id":"6a827e78-559c-4bed-9da9-e221dbff4daa","name":"401 Unauthorized","originalRequest":{"method":"GET","header":[],"url":"{{host}}/v2/devices"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Wed, 16 Feb 2022 14:17:35 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Content-Length","value":"0"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"}],"cookie":[],"responseTime":null,"body":null},{"id":"908c56aa-2f11-4f63-a973-4428203f3a03","name":"403 Forbidden (User without specific permission)","originalRequest":{"method":"GET","header":[],"url":"{{host}}/v2/devices"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 18 Feb 2022 08:26:05 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"reason\": \"Not allowed to read\"\n}"}],"_postman_id":"2482f024-e636-4e43-bdcc-ad08722b2ae5"},{"name":"get device by mac","id":"41bed2cc-8681-4d7f-9e7a-18a63af9cbad","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{host}}/v2/devices/:mac","description":"<p>Returns an specific device by its mac.</p>\n<p><strong>DevicesRead</strong> permission is required.</p>\n<p>The response could be one of:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>200 OK</strong></th>\n<th></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>403 Forbidden</strong></td>\n<td><strong>User without DevicesRead permission</strong></td>\n</tr>\n<tr>\n<td><strong>404 Not Found</strong></td>\n<td><strong>Device MAC Address not found on database</strong></td>\n</tr>\n<tr>\n<td><strong>401 Unauthorized</strong></td>\n<td><strong>Missing Bearer token</strong></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"feda3ae9-877f-48a1-9352-db2018a2a5ea","id":"feda3ae9-877f-48a1-9352-db2018a2a5ea","name":"Conteo Api","type":"collection"}},"urlObject":{"path":["v2","devices",":mac"],"host":["{{host}}"],"query":[],"variable":[{"description":{"content":"<p>MAC Address of the device to retrieve</p>\n","type":"text/plain"},"type":"string","value":"12345FGH2","key":"mac"}]}},"response":[{"id":"374b5af4-7277-41b6-95b9-ad2d83d3f153","name":"Ok","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v2/devices/:mac","host":["{{host}}"],"path":["v2","devices",":mac"],"variable":[{"key":"mac","value":"12345FGH2","description":"MAC Address of the device to retrieve"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 28 Jun 2021 13:41:23 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"mac\": \"12345FGH2\",\n    \"location\": 981,\n    \"sensorMasterKey\": \"d810dcb5-a349-4936-9e09-554ebf1cfb6b\",\n    \"creationDate\": \"2020-11-11T08:40:40.753\",\n    \"installationDate\": \"2020-12-01T08:04:38.461\",\n    \"ipAddress\": \"241.141.83.171\",\n    \"ipDate\": null,\n    \"orientation\": 0\n}"},{"id":"9bdf2552-7e2d-4aae-be91-7c25ae882f10","name":"401 Unauthorized","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v2/devices/:mac","host":["{{host}}"],"path":["v2","devices",":mac"],"variable":[{"key":"mac","value":"e0:a6:e8:f6:65:d3","type":"string","description":"MAC Address of the device to retrieve"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Wed, 16 Feb 2022 14:17:47 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Content-Length","value":"0"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"}],"cookie":[],"responseTime":null,"body":null},{"id":"cab5609f-ce15-4426-90b4-263f4cbb56c3","name":"403 Forbidden (User without specific permission)","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v2/devices/:mac","host":["{{host}}"],"path":["v2","devices",":mac"],"variable":[{"key":"mac","value":"03:db:92:c0:f6:99","type":"string","description":"MAC Address of the device to retrieve"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 18 Feb 2022 08:27:59 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"reason\": \"Not allowed to read\"\n}"},{"id":"ae5e6e6a-14d3-448f-b54e-fe81e3ac1a8c","name":"404 Not Found","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v2/devices/:mac","host":["{{host}}"],"path":["v2","devices",":mac"],"variable":[{"key":"mac","value":"a3:8a:04:3e:5d:2d","type":"string","description":"MAC Address of the device to retrieve"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Wed, 16 Feb 2022 14:43:38 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Content-Length","value":"0"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"41bed2cc-8681-4d7f-9e7a-18a63af9cbad"},{"name":"create device","id":"9c7b6ed9-d49e-45ff-8463-b5b9b8f191dc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"mac\": \"7d:df:f4:1d:7c:45\",\n    \"location\": 468,\n    \"sensorMasterKey\": \"8b7cfddc-ce0b-4fdd-be95-28bf02ef9ec8\"\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/v2/devices","description":"<p>Creates a new device in the module.</p>\n<p>Requirements:</p>\n<ul>\n<li>You need to have created a <em>Location</em> (See \"create location \").</li>\n<li><strong>DevicesWrite</strong> permission</li>\n</ul>\n<p>Fields:</p>\n<ul>\n<li><strong>mac</strong>: Required. String. MAC Address of the device</li>\n<li><strong>location</strong>: Optional. Int. Id of the location of the device.</li>\n<li><strong>sensorMasterKey</strong>: Required. String. Master key of the device</li>\n</ul>\n<p>The response could be one of:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>200 OK</strong></th>\n<th></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>403 Forbidden</strong></td>\n<td><strong>User without DevicesWrite permission</strong></td>\n</tr>\n<tr>\n<td><strong>401 Unauthorized</strong></td>\n<td><strong>Missing Bearer token</strong></td>\n</tr>\n<tr>\n<td><strong>400 Bad Request</strong></td>\n<td><strong>Invalid request parameters or duplicated MAC in database</strong></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"feda3ae9-877f-48a1-9352-db2018a2a5ea","id":"feda3ae9-877f-48a1-9352-db2018a2a5ea","name":"Conteo Api","type":"collection"}},"urlObject":{"path":["v2","devices"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"7537fb2c-e6aa-415c-bcb9-fb4798ab0041","name":"Ok","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"mac\": \"80:1F:12:76:4F:A9\",\n    \"location\": 5,\n    \"sensorMasterKey\": \"3111b13918\"\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/v2/devices"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 16 Feb 2022 14:55:41 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"mac\": \"80:1F:12:76:4F:A9\",\n    \"location\": 5,\n    \"sensorMasterKey\": \"3111b13918\",\n    \"creationDate\": \"2022-02-16T14:55:41.877\",\n    \"installationDate\": null,\n    \"ipAddress\": null,\n    \"ipDate\": null,\n    \"orientation\": 0\n}"},{"id":"8025b47a-3836-4e11-b6fb-04b13e50b055","name":"400 Bad Request","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"location\": 5,\n    \"sensorMasterKey\": \"cb438e6d-8d70-4d16-8d82-1679f55ac7ef\"\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/v2/devices"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 16 Feb 2022 15:10:24 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Connection","value":"close"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":""},{"id":"31215097-a00d-4757-a98c-32c2edd91e12","name":"401 Unauthorized","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"mac\": \"82:ab:72:d9:c5:4b\",\n    \"location\": 810,\n    \"sensorMasterKey\": \"1233dd96-73e4-44de-a86b-d778ecfb0e2c\"\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/v2/devices"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Wed, 16 Feb 2022 14:17:53 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Content-Length","value":"0"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"}],"cookie":[],"responseTime":null,"body":null},{"id":"c859d7e7-f687-4d3f-9d92-f315bbcc85e7","name":"403 Forbidden","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"mac\": \"99:1e:1e:79:a0:0b\",\n    \"location\": 772,\n    \"sensorMasterKey\": \"14273806-333d-4589-8993-b1ef4e62a6d5\"\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/v2/devices"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 22 Mar 2022 10:15:21 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"reason\": \"Not allowed to write\"\n}"}],"_postman_id":"9c7b6ed9-d49e-45ff-8463-b5b9b8f191dc"},{"name":"modify device","id":"846f53ee-5ba3-46a7-a562-99698f8f0577","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"location\": 30\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/v2/devices/:mac","description":"<p>Modify fields of the device.</p>\n<p><strong>DevicesWrite</strong> permission is required.</p>\n<p>Currently only the <em>location</em> parameter can be changed.</p>\n<p>The response could be one of:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>200 OK</strong></th>\n<th></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>403 Forbidden</strong></td>\n<td><strong>User without DevicesWrite permission</strong></td>\n</tr>\n<tr>\n<td><strong>404 Not Found</strong></td>\n<td><strong>Device MAC Address not found in database</strong></td>\n</tr>\n<tr>\n<td><strong>401 Unauthorized</strong></td>\n<td><strong>Missing Bearer token</strong></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"feda3ae9-877f-48a1-9352-db2018a2a5ea","id":"feda3ae9-877f-48a1-9352-db2018a2a5ea","name":"Conteo Api","type":"collection"}},"urlObject":{"path":["v2","devices",":mac"],"host":["{{host}}"],"query":[],"variable":[{"description":{"content":"<p>MAC Address of the device to modify</p>\n","type":"text/plain"},"type":"string","value":"12345FGH2","key":"mac"}]}},"response":[{"id":"fe48b21d-34fe-42ef-afc7-68eef7f09614","name":"Ok","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"location\": 35\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/v2/devices/:mac","host":["{{host}}"],"path":["v2","devices",":mac"],"variable":[{"key":"mac","value":"80:1F:12:76:4F:A9","type":"string","description":"MAC Address of the device to modify"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 16 Feb 2022 14:59:30 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"mac\": \"80:1F:12:76:4F:A9\",\n    \"location\": 35,\n    \"sensorMasterKey\": \"f0739646-37ce-424b-b8df-c6573555abdd\",\n    \"creationDate\": \"2022-02-16T14:55:41.877\",\n    \"installationDate\": \"2022-02-16T14:59:30.799\",\n    \"ipAddress\": null,\n    \"ipDate\": null,\n    \"orientation\": 0\n}"},{"id":"44ce8fe2-3dcd-4c5c-9d6f-f4620833f8fb","name":"401 Unauthorized","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"location\": 599\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/v2/devices/:mac","host":["{{host}}"],"path":["v2","devices",":mac"],"variable":[{"key":"mac","value":"64:aa:14:f7:a0:09","type":"string","description":"MAC Address of the device to modify"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Wed, 16 Feb 2022 14:18:08 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Content-Length","value":"0"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"}],"cookie":[],"responseTime":null,"body":null},{"id":"892dabbd-ffe9-43f3-bddd-fd416b4317ed","name":"403 Forbidden (User without specific permission)","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"location\": 589\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/v2/devices/:mac","host":["{{host}}"],"path":["v2","devices",":mac"],"variable":[{"key":"mac","value":"99:7e:d8:7f:20:3b","type":"string","description":"MAC Address of the device to modify"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 18 Feb 2022 08:28:17 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"reason\": \"Not allowed to write\"\n}"},{"id":"d8dcc44f-beb9-4cd5-9dd6-e3c9e708a0eb","name":"404 Not Found","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"location\": 316\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/v2/devices/:mac","host":["{{host}}"],"path":["v2","devices",":mac"],"variable":[{"key":"mac","value":"3b:f0:79:a2:8d:b6","type":"string","description":"MAC Address of the device to modify"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Wed, 16 Feb 2022 14:18:08 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Content-Length","value":"0"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"846f53ee-5ba3-46a7-a562-99698f8f0577"}],"id":"e909f688-0f54-4a83-b24a-852aaccd1671","description":"<p>Requests related to <em>devices</em>.</p>\n<p>Conteo devices measure the <em>zones occupancy</em>. The most common devices are cameras placed on the zones entrances/exits for counting the amount of people that enter or leave the zone.</p>\n","_postman_id":"e909f688-0f54-4a83-b24a-852aaccd1671","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"feda3ae9-877f-48a1-9352-db2018a2a5ea","id":"feda3ae9-877f-48a1-9352-db2018a2a5ea","name":"Conteo Api","type":"collection"}}},{"name":"locations","item":[{"name":"get locations","id":"6510a1f2-e52b-4e0a-b3fc-a1dd7bdfc954","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{host}}/v2/locations","description":"<p>Returns the locations of the module</p>\n<p><strong>LocationsRead</strong> permission is required.</p>\n<p>Locations can be filtered (optionally) by floor</p>\n<p>The response could be one of:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>200 OK</strong></th>\n<th></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>403 Forbidden</strong></td>\n<td><strong>User without LocationsRead</strong> <strong>permission</strong></td>\n</tr>\n<tr>\n<td><strong>401 Unauthorized</strong></td>\n<td><strong>Missing Bearer token</strong></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"feda3ae9-877f-48a1-9352-db2018a2a5ea","id":"feda3ae9-877f-48a1-9352-db2018a2a5ea","name":"Conteo Api","type":"collection"}},"urlObject":{"path":["v2","locations"],"host":["{{host}}"],"query":[{"disabled":true,"description":{"content":"<p>Id of the floor for filtering locations</p>\n","type":"text/plain"},"key":"floor","value":"26"}],"variable":[]}},"response":[{"id":"98d0a52e-9d86-4b58-b5e4-4da0d8ca83f9","name":"Ok","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v2/locations","host":["{{host}}"],"path":["v2","locations"],"query":[{"key":"floor","value":"26","description":"Id of the floor for filtering locations","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 28 Jun 2021 13:48:46 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 5,\n        \"code\": \"MN0ABAREXT00\",\n        \"description\": \"Puerta de Barajas 1\",\n        \"type\": \"Standby\",\n        \"zone1\": 8,\n        \"zone2\": 11,\n        \"floor\": 26,\n        \"x\": 44.5117,\n        \"y\": 42.6383\n    }\n]"},{"id":"d00002bd-a91a-4126-8f2a-b3dafd6fa70a","name":"401 Unauthorized","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v2/locations?floor=26","host":["{{host}}"],"path":["v2","locations"],"query":[{"key":"floor","value":"26","description":"Id of the floor for filtering locations"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Wed, 16 Feb 2022 14:23:23 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Content-Length","value":"0"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"}],"cookie":[],"responseTime":null,"body":null},{"id":"813fe783-337a-4a0f-ba6f-9d22ec4384db","name":"403 Forbidden (User without specific permission)","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v2/locations","host":["{{host}}"],"path":["v2","locations"],"query":[{"key":"floor","value":"26","description":"Id of the floor for filtering locations","disabled":true}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 18 Feb 2022 08:44:44 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"reason\": \"Not allowed to read\"\n}"}],"_postman_id":"6510a1f2-e52b-4e0a-b3fc-a1dd7bdfc954"},{"name":"get location by id","id":"8112bef0-a795-474d-abbe-98476dc55939","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{host}}/v2/locations/:location","description":"<p>Returns specific location by its id.</p>\n<p><strong>LocationsRead</strong> permission is required.</p>\n<p>The response could be one of:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>200 OK</strong></th>\n<th></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>403 Forbidden</strong></td>\n<td><strong>User without LocationsRead permission</strong></td>\n</tr>\n<tr>\n<td><strong>404 Not Found</strong></td>\n<td><strong>Id of the location not found on database</strong></td>\n</tr>\n<tr>\n<td><strong>401 Unauthorized</strong></td>\n<td><strong>Missing Bearer token</strong></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"feda3ae9-877f-48a1-9352-db2018a2a5ea","id":"feda3ae9-877f-48a1-9352-db2018a2a5ea","name":"Conteo Api","type":"collection"}},"urlObject":{"path":["v2","locations",":location"],"host":["{{host}}"],"query":[],"variable":[{"description":{"content":"<p>Id of the location to retrieve</p>\n","type":"text/plain"},"type":"string","value":"42","key":"location"}]}},"response":[{"id":"e29bf148-e00f-40b1-9936-fc5517fc8582","name":"Ok","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v2/locations/:location","host":["{{host}}"],"path":["v2","locations",":location"],"variable":[{"key":"location","value":"84","description":"Id of the location to retrieve"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 28 Jun 2021 13:49:22 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 84,\n    \"code\": \"MN0ABAREXT00\",\n    \"description\": \"Puerta de Barajas 1\",\n    \"type\": \"Standby\",\n    \"zone1\": 8,\n    \"zone2\": 11,\n    \"floor\": 26,\n    \"x\": 44.5117,\n    \"y\": 42.6383\n}"},{"id":"3e4cc352-910d-480f-9037-d32fe08083b7","name":"401 Unauthorized","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v2/locations/:location","host":["{{host}}"],"path":["v2","locations",":location"],"variable":[{"key":"location","value":"818","type":"string","description":"Id of the location to retrieve"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Wed, 16 Feb 2022 14:23:33 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Content-Length","value":"0"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"}],"cookie":[],"responseTime":null,"body":null},{"id":"4ac0c13d-1fae-4638-b6c3-a0dec86474da","name":"403 Forbidden (User without specific permission)","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v2/locations/:location","host":["{{host}}"],"path":["v2","locations",":location"],"variable":[{"key":"location","value":"85","type":"string","description":"Id of the location to retrieve"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 18 Feb 2022 08:46:37 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"reason\": \"Not allowed to read\"\n}"},{"id":"b8aed49f-7726-4ddd-8609-5a65e9320133","name":"404 Not Found","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v2/locations/:location","host":["{{host}}"],"path":["v2","locations",":location"],"variable":[{"key":"location","value":"386","type":"string","description":"Id of the location to retrieve"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Wed, 16 Feb 2022 15:17:54 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Content-Length","value":"0"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"8112bef0-a795-474d-abbe-98476dc55939"},{"name":"create location","id":"5ad4a584-b155-4a6c-98f8-2bab4e1b13f2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"code\": \"MN5LT\",\n    \"description\": \"Location of floor 26\",\n    \"type\": \"Standby\",\n    \"zone1\": 8,\n    \"zone2\": 9,\n    \"floor\": 26,\n    \"x\": 0.0,\n    \"y\": 0.0\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/v2/locations","description":"<p>Creates a new location in the module.</p>\n<p>Requirements:</p>\n<ul>\n<li>You need to previously create a Floor (See \"create Floor\" from Habitat Core API).</li>\n<li><strong>LocationsWrite</strong> permission</li>\n</ul>\n<p>Fields:</p>\n<ul>\n<li><strong>code</strong>: Required. String. Code of the location</li>\n<li><strong>description</strong>: Required. String. Description of the location</li>\n<li><strong>type</strong>: Optional. String. Type of the location. Can be one of this enumerated values: <em>In</em>, <em>Out</em>, <em>Transition</em>, <em>Standby</em>. If not specified, <em>Standby</em> will be used</li>\n<li><strong>zone1</strong>: Int. Zone id of the first zone to monitorize</li>\n<li><strong>zone2</strong>: Int. Zone id of the second zone to monitorize</li>\n<li><strong>floor</strong>: Required. Int. Floor of the location</li>\n<li><strong>x</strong>: Required. Float. X coordinate of the location</li>\n<li><strong>y</strong>: Required. Float. Y coordinate of the location</li>\n</ul>\n<p>The response could be one of:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>200 OK</strong></th>\n<th></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>403 Forbidden</strong></td>\n<td><strong>User without LocationsWrite permission</strong></td>\n</tr>\n<tr>\n<td><strong>401 Unauthorized</strong></td>\n<td><strong>Missing Bearer token</strong></td>\n</tr>\n<tr>\n<td><strong>400 Bad Request</strong></td>\n<td><strong>Invalid request parameters or duplicated location code</strong></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"feda3ae9-877f-48a1-9352-db2018a2a5ea","id":"feda3ae9-877f-48a1-9352-db2018a2a5ea","name":"Conteo Api","type":"collection"}},"urlObject":{"path":["v2","locations"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"edc84ac4-3744-4e2a-b56c-86b389b5fae5","name":"Ok","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"code\": \"MN5LT\",\n    \"description\": \"Location of floor 26\",\n    \"type\": \"Standby\",\n    \"zone1\": 8,\n    \"zone2\": 9,\n    \"floor\": 26,\n    \"x\": 25.0,\n    \"y\": 0.0\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/v2/locations"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 16 Feb 2022 15:18:11 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 50,\n    \"code\": \"MN5LT\",\n    \"description\": \"Location of floor 26\",\n    \"type\": \"Standby\",\n    \"zone1\": 8,\n    \"zone2\": 9,\n    \"floor\": 26,\n    \"x\": 25.0,\n    \"y\": 0.0\n}"},{"id":"6759b9d9-3069-47fc-a689-c6f69fc4ccde","name":"400 Bad Request (duplicated)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"code\": \"MN5LT\",\n    \"description\": \"Location of floor 26\",\n    \"x\": 25.0,\n    \"y\": 0.0\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/v2/locations"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 16 Feb 2022 15:23:55 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Connection","value":"close"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":""},{"id":"769c752b-fb6c-4c2c-ad87-113f3ea7ed73","name":"401 Unauthorized","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"code\": \"MN5LT\",\n    \"description\": \"Location of floor 26\",\n    \"type\": \"Standby\",\n    \"zone1\": 8,\n    \"zone2\": 9,\n    \"floor\": 26,\n    \"x\": 25.0,\n    \"y\": 0.0\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/v2/locations"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Wed, 16 Feb 2022 14:23:42 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Content-Length","value":"0"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"}],"cookie":[],"responseTime":null,"body":null},{"id":"b4c47b15-ef29-4a8c-aa75-325ed44ad218","name":"403 Forbidden (User without specific permission)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"code\": \"MN5LT\",\n    \"description\": \"Location of floor 26\",\n    \"type\": \"Standby\",\n    \"zone1\": 8,\n    \"zone2\": 9,\n    \"floor\": 26,\n    \"x\": 25.0,\n    \"y\": 0.0\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/v2/locations"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 18 Feb 2022 08:46:44 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"reason\": \"Not allowed to write\"\n}"}],"_postman_id":"5ad4a584-b155-4a6c-98f8-2bab4e1b13f2"}],"id":"d20c3c71-617a-4c7d-a7a7-a003fd8baff7","description":"<p>Requests for manadgement of <em>locations</em></p>\n<p>Conteo locations controls the position of the different devices in the floor's plan and which <em>zones</em> they monitorize</p>\n","_postman_id":"d20c3c71-617a-4c7d-a7a7-a003fd8baff7","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"feda3ae9-877f-48a1-9352-db2018a2a5ea","id":"feda3ae9-877f-48a1-9352-db2018a2a5ea","name":"Conteo Api","type":"collection"}}},{"name":"user","item":[{"name":"configured alarms","item":[{"name":"TEST","item":[{"name":"get occupation alarms Normal","id":"1ce67c7a-aa9f-40c0-bba1-663b76c3ccc5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"{{host}}/v2/user/occupationAlarms?orderBy=date&start=2019-11-30T14:30","description":"<p>Returns the occupation alarms notifications and the total alarms notifications that has been triggered for the authenticated user.</p>\n<p>The results can be filtered by <em>start</em> and <em>end</em> date and ordered by triggered date.</p>\n<p>The results are paginated with the optional parameters <em>page</em> and <em>perPage</em>. By default, the first 50 items are returned.</p>\n<p>The response could be one of:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>200 OK</strong></th>\n<th></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>401 Unauthorized</strong></td>\n<td><strong>Missing Bearer token</strong></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["v2","user","occupationAlarms"],"host":["{{host}}"],"query":[{"disabled":true,"description":{"content":"<p>Filter data by end date (default to current)</p>\n","type":"text/plain"},"key":"end","value":"2022-11-30T14:57"},{"disabled":true,"description":{"content":"<p>Page index</p>\n","type":"text/plain"},"key":"page","value":"1"},{"disabled":true,"description":{"content":"<p>Items per page</p>\n","type":"text/plain"},"key":"perPage","value":"50"},{"description":{"content":"<p>Order the results (newer first)</p>\n","type":"text/plain"},"key":"orderBy","value":"date"},{"key":"start","value":"2019-11-30T14:30"}],"variable":[]}},"response":[{"id":"06dc730f-5e73-4b11-ac76-e8c4b23fd689","name":"Ok","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v2/user/occupationAlarms?start=2019-11-30T14:30&orderBy=date","host":["{{host}}"],"path":["v2","user","occupationAlarms"],"query":[{"key":"start","value":"2019-11-30T14:30","description":"Filter data by start date (default to current minus one day)"},{"key":"end","value":"2020-11-30T14:57","description":"Filter data by end date (default to current)","type":"text","disabled":true},{"key":"page","value":"1","description":"Page index","type":"text","disabled":true},{"key":"perPage","value":"50","description":"Items per page","type":"text","disabled":true},{"key":"orderBy","value":"date","description":"Order the results (newer first)"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 28 Jun 2021 13:50:22 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"total\": 1,\n    \"occupationAlarmsList\":[\n        {\n            \"id\": 9947,\n            \"configuredAlarm\": 154,\n            \"date\": \"2021-06-28T11:37:25.502\",\n            \"occupation\": 2\n        }\n    ]\n\n}"},{"id":"5a0f0bbb-c25f-4985-8aac-f77d6496fb3e","name":"401 Unauthorized","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v2/user/occupationAlarms?start=2019-11-30T14:30&end=2020-11-30T14:57&page=1&perPage=50&orderBy=date","host":["{{host}}"],"path":["v2","user","occupationAlarms"],"query":[{"key":"start","value":"2019-11-30T14:30","description":"Filter data by start date (default to current minus one day)"},{"key":"end","value":"2020-11-30T14:57","description":"Filter data by end date (default to current)","type":"text"},{"key":"page","value":"1","description":"Page index","type":"text"},{"key":"perPage","value":"50","description":"Items per page","type":"text"},{"key":"orderBy","value":"date","description":"Order the results (newer first)"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Wed, 16 Feb 2022 14:26:33 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Content-Length","value":"0"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"1ce67c7a-aa9f-40c0-bba1-663b76c3ccc5"},{"name":"get occupation alarms NEW","id":"4b1292e8-0c19-4283-aa75-cfb77a4fee1c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"{{host}}/v2/user/occupationAlarms/new?start=2019-11-30T14:30&orderBy=date","description":"<p>Returns the occupation alarms notifications and the total alarms notifications that has been triggered for the authenticated user.</p>\n<p>The results can be filtered by <em>start</em> and <em>end</em> date and ordered by triggered date.</p>\n<p>The results are paginated with the optional parameters <em>page</em> and <em>perPage</em>. By default, the first 50 items are returned.</p>\n<p>The response could be one of:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>200 OK</strong></th>\n<th></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>401 Unauthorized</strong></td>\n<td><strong>Missing Bearer token</strong></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["v2","user","occupationAlarms","new"],"host":["{{host}}"],"query":[{"key":"start","value":"2019-11-30T14:30"},{"disabled":true,"description":{"content":"<p>Filter data by end date (default to current)</p>\n","type":"text/plain"},"key":"end","value":"2020-11-30T14:57"},{"disabled":true,"description":{"content":"<p>Page index</p>\n","type":"text/plain"},"key":"page","value":"1"},{"disabled":true,"description":{"content":"<p>Items per page</p>\n","type":"text/plain"},"key":"perPage","value":"50"},{"description":{"content":"<p>Order the results (newer first)</p>\n","type":"text/plain"},"key":"orderBy","value":"date"}],"variable":[]}},"response":[{"id":"690eac22-da83-440f-862e-c3e87385aa52","name":"Ok","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v2/user/occupationAlarms?start=2019-11-30T14:30&orderBy=date","host":["{{host}}"],"path":["v2","user","occupationAlarms"],"query":[{"key":"start","value":"2019-11-30T14:30","description":"Filter data by start date (default to current minus one day)"},{"key":"end","value":"2020-11-30T14:57","description":"Filter data by end date (default to current)","type":"text","disabled":true},{"key":"page","value":"1","description":"Page index","type":"text","disabled":true},{"key":"perPage","value":"50","description":"Items per page","type":"text","disabled":true},{"key":"orderBy","value":"date","description":"Order the results (newer first)"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 28 Jun 2021 13:50:22 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"total\": 1,\n    \"occupationAlarmsList\":[\n        {\n            \"id\": 9947,\n            \"configuredAlarm\": 154,\n            \"date\": \"2021-06-28T11:37:25.502\",\n            \"occupation\": 2\n        }\n    ]\n\n}"},{"id":"f578c373-a7d1-46b1-bc27-8cfd678a2fe5","name":"401 Unauthorized","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v2/user/occupationAlarms?start=2019-11-30T14:30&end=2020-11-30T14:57&page=1&perPage=50&orderBy=date","host":["{{host}}"],"path":["v2","user","occupationAlarms"],"query":[{"key":"start","value":"2019-11-30T14:30","description":"Filter data by start date (default to current minus one day)"},{"key":"end","value":"2020-11-30T14:57","description":"Filter data by end date (default to current)","type":"text"},{"key":"page","value":"1","description":"Page index","type":"text"},{"key":"perPage","value":"50","description":"Items per page","type":"text"},{"key":"orderBy","value":"date","description":"Order the results (newer first)"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Wed, 16 Feb 2022 14:26:33 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Content-Length","value":"0"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"4b1292e8-0c19-4283-aa75-cfb77a4fee1c"}],"id":"f638e7f6-1054-4c2e-b9f0-a50ed7810cc0","_postman_id":"f638e7f6-1054-4c2e-b9f0-a50ed7810cc0","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"feda3ae9-877f-48a1-9352-db2018a2a5ea","id":"feda3ae9-877f-48a1-9352-db2018a2a5ea","name":"Conteo Api","type":"collection"}}},{"name":"get configured alarms","id":"4106efa2-9b88-48cf-96fa-e5e9141dad55","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{host}}/v2/user/configuredAlarms","description":"<p>Returns the configured alarms by the user.</p>\n<p>The response could be one of:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>200 OK</strong></th>\n<th></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>401 Unauthorized</strong></td>\n<td><strong>Missing Bearer token</strong></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"feda3ae9-877f-48a1-9352-db2018a2a5ea","id":"feda3ae9-877f-48a1-9352-db2018a2a5ea","name":"Conteo Api","type":"collection"}},"urlObject":{"path":["v2","user","configuredAlarms"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"40f7f997-4793-4c57-8dc4-0e242c7b5ae6","name":"Ok","originalRequest":{"method":"GET","header":[],"url":"{{host}}/v2/user/configuredAlarms"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 28 Jun 2021 13:49:36 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 154,\n        \"name\": \"HighOccupancyWest\",\n        \"description\": \"Alarm when occupancy of west is higher than 60%\",\n        \"delay\": 0,\n        \"subType\": \"HigherCapacity\",\n        \"user\": 69,\n        \"zone\": 17,\n        \"validityStart\": \"05:00\",\n        \"validityEnd\": \"22:00\",\n        \"occupancyRate\": 60,\n        \"active\": true,\n        \"creationDate\": \"2021-06-14T12:00:04.887\",\n        \"lastReadDate\": null\n    }\n]"},{"id":"68a1da1f-3089-4e5d-a8ce-13d355ed8d6a","name":"401 Unauthorized","originalRequest":{"method":"GET","header":[],"url":"{{host}}/v2/user/configuredAlarms"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Wed, 16 Feb 2022 14:23:53 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Content-Length","value":"0"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"4106efa2-9b88-48cf-96fa-e5e9141dad55"},{"name":"get configured alarm by id","id":"21955135-acfc-4a8a-9a95-a5c190ea0ce0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{host}}/v2/user/configuredAlarms/:alarm","description":"<p>Returns an specific alarm configured by the user, with its id</p>\n<p>The response could be one of:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>200 OK</strong></th>\n<th></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>404 Not Found</strong></td>\n<td><strong>Id of the alarm not found on database</strong></td>\n</tr>\n<tr>\n<td><strong>401 Unauthorized</strong></td>\n<td><strong>Missing Bearer token</strong></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"feda3ae9-877f-48a1-9352-db2018a2a5ea","id":"feda3ae9-877f-48a1-9352-db2018a2a5ea","name":"Conteo Api","type":"collection"}},"urlObject":{"path":["v2","user","configuredAlarms",":alarm"],"host":["{{host}}"],"query":[],"variable":[{"id":"dc104876-e8b3-40ee-ae43-34a83dece4d5","description":{"content":"<p>Id of the configured alarm</p>\n","type":"text/plain"},"type":"string","value":"84","key":"alarm"}]}},"response":[{"id":"48b0522c-b989-4be6-805f-3a22818457e2","name":"Ok","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://dev.everisiot.com/habitatv2/conteo/api/v2/user/configuredAlarms/:alarm","protocol":"https","host":["dev","everisiot","com"],"path":["habitatv2","conteo","api","v2","user","configuredAlarms",":alarm"],"variable":[{"key":"alarm","value":"54","description":"Id of the configured alarm"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 28 Jun 2021 13:50:07 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 54,\n    \"name\": \"HighOccupancyWest\",\n    \"description\": \"Alarm when occupancy of west is higher than 60%\",\n    \"delay\": 0,\n    \"subType\": \"HigherCapacity\",\n    \"user\": 69,\n    \"zone\": 17,\n    \"validityStart\": \"05:00\",\n    \"validityEnd\": \"22:00\",\n    \"occupancyRate\": 60,\n    \"active\": true,\n    \"creationDate\": \"2021-06-14T12:00:04.887\",\n    \"lastReadDate\": null\n}"},{"id":"cf1e0331-ad96-4c41-8935-83d9481a12e0","name":"401 Unauthorized","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v2/user/configuredAlarms/:alarm","host":["{{host}}"],"path":["v2","user","configuredAlarms",":alarm"],"variable":[{"key":"alarm","value":"140","type":"string","description":"Id of the configured alarm"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Wed, 16 Feb 2022 14:25:59 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Content-Length","value":"0"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"}],"cookie":[],"responseTime":null,"body":null},{"id":"9fd14989-c46a-471b-92db-1f04a759520c","name":"404 Not Found","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v2/user/configuredAlarms/:alarm","host":["{{host}}"],"path":["v2","user","configuredAlarms",":alarm"],"variable":[{"key":"alarm","value":"590","type":"string","description":"Id of the configured alarm"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Wed, 16 Feb 2022 15:32:17 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Content-Length","value":"0"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"21955135-acfc-4a8a-9a95-a5c190ea0ce0"},{"name":"configure alarm","id":"e531b1ed-bae6-4be5-ae53-73bb5459cc91","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"LowOccupancyEast\",\n    \"description\":  \"Alarm when occupancy of east side is lower than 10%\",\n    \"delay\": 5,\n    \"subType\": \"LowerCapacity\",\n    \"zone\": 30,\n    \"validityStart\": \"08:00\",\n    \"validityEnd\": \"15:00\",\n    \"occupancyRate\": 10\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/v2/user/configuredAlarms","description":"<p>Creates a new alarm configuration for the loged user.</p>\n<p>Fields in body are:</p>\n<ul>\n<li><strong>name</strong>: Required. String. Name of the configured alarm</li>\n<li><strong>description</strong>: Optional. String. Description of the configured alarm</li>\n<li><strong>delay</strong>: Required. Int. Delay time in minutes</li>\n<li><strong>subType</strong>: Required. String. Subtype of the alarm, whether to trigger the alarm when the occupation goes higher or lower a given threshold (enumerated value \"HigherCapacity\", \"LowerCapacity\")</li>\n<li><strong>zone</strong>: Required. Int. Id of the zone whose occupancy rises the alarm.</li>\n<li><strong>validityStart</strong>: Required. String. Hour of the day of the begining of validity in format HH:mm. Occupancy before this hour won't raise any alarm</li>\n<li><strong>validityEnd</strong>: Required. String. Hour of the day of the end of validity in format HH:mm. Occupancy after this hour won't raise any alarm</li>\n<li><strong>occupancyRate</strong>: Required. Int. Percentage of occupancy to trigger the alarm. This value should be a number in the range (0, 100)</li>\n</ul>\n<p>The headers needed to audit this functionality are shown below:</p>\n<ul>\n<li>x-audit-functionality: Identifier of the functionality permormed. In this case: 48 (CreateOccupancyAlarm)</li>\n<li>x-audit-user: Identifier of the user that has permormed the functionality.</li>\n<li>x-audit-timestamp: Timestamp of the performed functionality.</li>\n</ul>\n<p>The response could be one of:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>200 OK</strong></th>\n<th></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>401 Unauthorized</strong></td>\n<td><strong>Missing Bearer token</strong></td>\n</tr>\n<tr>\n<td><strong>400 Bad Request</strong></td>\n<td><strong>Invalid request parameters or duplicated alarm name in database</strong></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"feda3ae9-877f-48a1-9352-db2018a2a5ea","id":"feda3ae9-877f-48a1-9352-db2018a2a5ea","name":"Conteo Api","type":"collection"}},"urlObject":{"path":["v2","user","configuredAlarms"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"fb70d909-32dc-4a76-8843-73ba2ba220f6","name":"Ok","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"LowOccupancyEast\",\n    \"description\":  \"Alarm when occupancy of east side is lower than 10%\",\n    \"delay\": 5,\n    \"subType\": \"LowerCapacity\",\n    \"zone\": 30,\n    \"validityStart\": \"08:00\",\n    \"validityEnd\": \"15:00\",\n    \"occupancyRate\": 10\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/v2/user/configuredAlarms"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 16 Feb 2022 15:43:23 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 357,\n    \"name\": \"LowOccupancyEast\",\n    \"description\": \"Alarm when occupancy of east side is lower than 10%\",\n    \"delay\": 5,\n    \"subType\": \"LowerCapacity\",\n    \"user\": 1,\n    \"zone\": 30,\n    \"validityStart\": \"08:00\",\n    \"validityEnd\": \"15:00\",\n    \"occupancyRate\": 10,\n    \"active\": true,\n    \"creationDate\": \"2022-02-16T15:43:23.495\",\n    \"lastReadDate\": null\n}"},{"id":"b9736562-4aef-4158-ba35-cfefab825fac","name":"400 Bad Request (duplicated)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"LowOccupancyEast\",\n    \"description\":  \"Alarm when occupancy of east side is lower than 10%\",\n    \"delay\": 5,\n    \"subType\": \"LowerCapacity\",\n    \"zone\": 30,\n    \"validityStart\": \"08:00\",\n    \"validityEnd\": \"15:00\",\n    \"occupancyRate\": 10\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/v2/user/configuredAlarms"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 17 Feb 2022 11:12:33 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Connection","value":"close"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":""},{"id":"47d9e0b9-5b0d-4b8c-80a1-ab88c82c15fb","name":"401 Unauthorized","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"LowOccupancyEast\",\n    \"description\":  \"Alarm when occupancy of east side is lower than 10%\",\n    \"delay\": 5,\n    \"subType\": \"LowerCapacity\",\n    \"zone\": 30,\n    \"validityStart\": \"08:00\",\n    \"validityEnd\": \"15:00\",\n    \"occupancyRate\": 10\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/v2/user/configuredAlarms"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Wed, 16 Feb 2022 14:26:11 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Content-Length","value":"0"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"e531b1ed-bae6-4be5-ae53-73bb5459cc91"},{"name":"delete configured alarm","id":"c14ee524-659f-4a11-9f14-a2bbd69c016c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{host}}/v2/user/configuredAlarms/:alarm","description":"<p>Deletes a configured alarm of the authenticated user by its id.</p>\n<p>The headers needed to audit this functionality are shown below:</p>\n<ul>\n<li>x-audit-functionality: Identifier of the functionality permormed. In this case: 49 (DeleteOccupancyAlarm)</li>\n<li>x-audit-user: Identifier of the user that has permormed the functionality.</li>\n<li>x-audit-timestamp: Timestamp of the performed functionality.</li>\n</ul>\n<p>The response could be one of:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>200 OK</strong></th>\n<th></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>401 Unauthorized</strong></td>\n<td><strong>Missing Bearer token</strong></td>\n</tr>\n<tr>\n<td><strong>404 Not Found</strong></td>\n<td><strong>Alarm Id Not Found in database</strong></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"feda3ae9-877f-48a1-9352-db2018a2a5ea","id":"feda3ae9-877f-48a1-9352-db2018a2a5ea","name":"Conteo Api","type":"collection"}},"urlObject":{"path":["v2","user","configuredAlarms",":alarm"],"host":["{{host}}"],"query":[],"variable":[{"description":{"content":"<p>Id of the configured alarm to be deleted</p>\n","type":"text/plain"},"type":"string","value":"94","key":"alarm"}]}},"response":[{"id":"f111be02-f8e3-4c82-b6b5-438074839670","name":"Ok","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{host}}/v2/user/configuredAlarms/:alarm","host":["{{host}}"],"path":["v2","user","configuredAlarms",":alarm"],"variable":[{"key":"alarm","value":"445","type":"string","description":"Id of the configured alarm to be deleted"}]}},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Wed, 16 Feb 2022 15:43:39 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Content-Length","value":"0"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"}],"cookie":[],"responseTime":null,"body":null},{"id":"3becb714-c3bd-4b57-93c5-5bcc66c9f065","name":"401 Unauthorized","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{host}}/v2/user/configuredAlarms/:alarm","host":["{{host}}"],"path":["v2","user","configuredAlarms",":alarm"],"variable":[{"key":"alarm","value":"193","type":"string","description":"Id of the configured alarm to be deleted"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Wed, 16 Feb 2022 14:26:18 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Content-Length","value":"0"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"}],"cookie":[],"responseTime":null,"body":null},{"id":"fe882eb2-17f4-4cc6-935a-05b4455f23a2","name":"404 Not Found","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{host}}/v2/user/configuredAlarms/:alarm","host":["{{host}}"],"path":["v2","user","configuredAlarms",":alarm"],"variable":[{"key":"alarm","value":"105","type":"string","description":"Id of the configured alarm to be deleted"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Wed, 16 Feb 2022 15:43:59 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Content-Length","value":"0"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"c14ee524-659f-4a11-9f14-a2bbd69c016c"},{"name":"modify configured alarm","id":"548a924c-540e-4fa6-a29e-72d273d08de8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"active\": false,\n    \"lastReadDate\": \"2020-11-30T15:00\"\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/v2/user/configuredAlarms/:alarm","description":"<p>Modify a configured alarm of the user. The fields that can be changed are:</p>\n<ul>\n<li><strong>active</strong>: Optional. Boolean. Enables/disables the alarm</li>\n<li><strong>lastReadDate</strong>: Optional. Date. Sets the last read date for the alarm. This can be useful to hide some alarms from the UI if already readed previously.</li>\n</ul>\n<p>The response could be one of:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>200 OK</strong></th>\n<th></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>404 Not Found</strong></td>\n<td><strong>Alarm ID not found in database</strong></td>\n</tr>\n<tr>\n<td><strong>401 Unauthorized</strong></td>\n<td><strong>Missing Bearer token</strong></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["v2","user","configuredAlarms",":alarm"],"host":["{{host}}"],"query":[],"variable":[{"description":{"content":"<p>Id of the configured alarm to modfy</p>\n","type":"text/plain"},"type":"string","value":"84","key":"alarm"}]}},"response":[{"id":"6615b9e6-4d72-4af1-94bc-82b187ecc190","name":"Ok","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"active\": false,\n    \"lastReadDate\": \"2020-11-30T15:00\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/v2/user/configuredAlarms/:alarm","host":["{{host}}"],"path":["v2","user","configuredAlarms",":alarm"],"variable":[{"key":"alarm","value":"358","type":"string","description":"Id of the configured alarm to modfy"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 17 Feb 2022 11:19:32 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 358,\n    \"name\": \"HighOccupancyWest\",\n    \"description\": \"Alarm when occupancy of west is higher than 60%\",\n    \"delay\": 0,\n    \"subType\": \"HigherCapacity\",\n    \"user\": 69,\n    \"zone\": 17,\n    \"validityStart\": \"05:00\",\n    \"validityEnd\": \"22:00\",\n    \"occupancyRate\": 60,\n    \"active\": false,\n    \"creationDate\": \"2022-02-17T11:12:22.609\",\n    \"lastReadDate\": \"2020-11-30T15:00:00\"\n}"},{"id":"d8307a7c-2aff-41a5-b77d-bbaf42c618a2","name":"401 Unauthorized","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"active\": false,\n    \"lastReadDate\": \"2020-11-30T15:00\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/v2/user/configuredAlarms/:alarm","host":["{{host}}"],"path":["v2","user","configuredAlarms",":alarm"],"variable":[{"key":"alarm","value":"943","type":"string","description":"Id of the configured alarm to modfy"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Wed, 16 Feb 2022 14:26:25 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Content-Length","value":"0"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"}],"cookie":[],"responseTime":null,"body":null},{"id":"dc0c604d-01ec-44f4-ae5c-b5378525515f","name":"404 Not Found","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"active\": false,\n    \"lastReadDate\": \"2020-11-30T15:00\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/v2/user/configuredAlarms/:alarm","host":["{{host}}"],"path":["v2","user","configuredAlarms",":alarm"],"variable":[{"key":"alarm","value":"609","type":"string","description":"Id of the configured alarm to modfy"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Thu, 17 Feb 2022 11:19:46 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Content-Length","value":"0"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"548a924c-540e-4fa6-a29e-72d273d08de8"}],"id":"5ed5a4a4-37db-4eb5-8736-cb1d6e7ace80","description":"<p>Requests related to alarms configured by the current authenticated user in the API</p>\n<p>Conteo alarms refers to notifications when an occupancy of a given zone goes higher or lower than a threshold (percentage of maximum capacity of the zone)</p>\n","_postman_id":"5ed5a4a4-37db-4eb5-8736-cb1d6e7ace80","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"feda3ae9-877f-48a1-9352-db2018a2a5ea","id":"feda3ae9-877f-48a1-9352-db2018a2a5ea","name":"Conteo Api","type":"collection"}}},{"name":"get occupation alarms","id":"3ceabcf8-2c2b-4a23-b573-60fbae49f022","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"{{host}}/v2/user/occupationAlarms?orderBy=date&start=2019-11-30T14:30","description":"<p>Returns the occupation alarms notifications and the total alarms notifications that has been triggered for the authenticated user.</p>\n<p>The results can be filtered by <em>start</em> and <em>end</em> date and ordered by triggered date.</p>\n<p>The results are paginated with the optional parameters <em>page</em> and <em>perPage</em>. By default, the first 50 items are returned.</p>\n<p>The response could be one of:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>200 OK</strong></th>\n<th></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>401 Unauthorized</strong></td>\n<td><strong>Missing Bearer token</strong></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["v2","user","occupationAlarms"],"host":["{{host}}"],"query":[{"disabled":true,"description":{"content":"<p>Filter data by end date (default to current)</p>\n","type":"text/plain"},"key":"end","value":"2020-11-30T14:57"},{"disabled":true,"description":{"content":"<p>Page index</p>\n","type":"text/plain"},"key":"page","value":"1"},{"disabled":true,"description":{"content":"<p>Items per page</p>\n","type":"text/plain"},"key":"perPage","value":"50"},{"description":{"content":"<p>Order the results (newer first)</p>\n","type":"text/plain"},"key":"orderBy","value":"date"},{"key":"start","value":"2019-11-30T14:30"}],"variable":[]}},"response":[{"id":"a66547b7-9b40-4c9d-9ef4-f48aa865fd4c","name":"Ok","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v2/user/occupationAlarms?start=2019-11-30T14:30&orderBy=date","host":["{{host}}"],"path":["v2","user","occupationAlarms"],"query":[{"key":"start","value":"2019-11-30T14:30","description":"Filter data by start date (default to current minus one day)"},{"key":"end","value":"2020-11-30T14:57","description":"Filter data by end date (default to current)","type":"text","disabled":true},{"key":"page","value":"1","description":"Page index","type":"text","disabled":true},{"key":"perPage","value":"50","description":"Items per page","type":"text","disabled":true},{"key":"orderBy","value":"date","description":"Order the results (newer first)"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 28 Jun 2021 13:50:22 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"total\": 1,\n    \"occupationAlarmsList\":[\n        {\n            \"id\": 9947,\n            \"configuredAlarm\": 154,\n            \"date\": \"2021-06-28T11:37:25.502\",\n            \"occupation\": 2\n        }\n    ]\n\n}"},{"id":"6dae57ae-03ff-44c5-b82b-f518034277df","name":"401 Unauthorized","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v2/user/occupationAlarms?start=2019-11-30T14:30&end=2020-11-30T14:57&page=1&perPage=50&orderBy=date","host":["{{host}}"],"path":["v2","user","occupationAlarms"],"query":[{"key":"start","value":"2019-11-30T14:30","description":"Filter data by start date (default to current minus one day)"},{"key":"end","value":"2020-11-30T14:57","description":"Filter data by end date (default to current)","type":"text"},{"key":"page","value":"1","description":"Page index","type":"text"},{"key":"perPage","value":"50","description":"Items per page","type":"text"},{"key":"orderBy","value":"date","description":"Order the results (newer first)"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Wed, 16 Feb 2022 14:26:33 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Content-Length","value":"0"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"3ceabcf8-2c2b-4a23-b573-60fbae49f022"}],"id":"457270f7-89a7-47a8-ba00-6682cd73e71b","description":"<p>Requests related to the current authenticated user in the module</p>\n","_postman_id":"457270f7-89a7-47a8-ba00-6682cd73e71b","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"feda3ae9-877f-48a1-9352-db2018a2a5ea","id":"feda3ae9-877f-48a1-9352-db2018a2a5ea","name":"Conteo Api","type":"collection"}}},{"name":"users","item":[{"name":"TEST","item":[{"name":"set user module permissions Copy","id":"6f59603e-5f93-4f36-8e2f-1da7dbaf5d51","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"[\n    \"DevicesRead\",\n    \"DevicesWrite\",\n    \"HistoricalRead\",\n    \"HumanTrackingDataRead\",\n    \"LocationsRead\",\n    \"LocationsWrite\",\n    \"ZonesRead\",\n    \"ZonesWrite\"\n]","options":{"raw":{"language":"json"}}},"url":"{{host}}/v2/users/:user/permissions","description":"<p>Change the conteo module permissions for he user.</p>\n<p><strong>UsersAdmin</strong> (Core module) permission is required</p>\n<p>The body is an array of permissions.</p>\n<ul>\n<li><strong>DevicesRead</strong>: Read permissions on devices collection</li>\n<li><strong>DevicesWrite</strong>: Write permissions on devices collection</li>\n<li><strong>HistoricalRead</strong>: Read permissions on historical requests</li>\n<li><strong>LocationsRead</strong>: Read permissions on locations collection</li>\n<li><strong>LocationsWrite</strong>: Write permissions on locations collection</li>\n<li><strong>ZonesRead</strong>: Read permissions on zones collection</li>\n<li><strong>ZonesWrite</strong>: Write permissions on zones collection</li>\n</ul>\n<p>The headers needed to audit this functionality are shown below:</p>\n<ul>\n<li>x-audit-functionality: Identifier of the functionality permormed. In this case: 36 (ModifyUserConteoPermits)</li>\n<li>x-audit-user: Identifier of the user that has permormed the functionality.</li>\n<li>x-audit-timestamp: Timestamp of the performed functionality.</li>\n</ul>\n<p>The response could be one of:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>200 OK</strong></th>\n<th></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>403 Forbidden</strong></td>\n<td><strong>UsersAdmin permission is required</strong></td>\n</tr>\n<tr>\n<td><strong>401 Unauthorized</strong></td>\n<td><strong>Missing Bearer token</strong></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"feda3ae9-877f-48a1-9352-db2018a2a5ea","id":"feda3ae9-877f-48a1-9352-db2018a2a5ea","name":"Conteo Api","type":"collection"}},"urlObject":{"path":["v2","users",":user","permissions"],"host":["{{host}}"],"query":[],"variable":[{"id":"7cb16123-38e1-4278-9f75-d32ba91ce111","description":{"content":"<p>Id of the user for whom modify permission</p>\n","type":"text/plain"},"type":"string","value":"1","key":"user"}]}},"response":[{"id":"3581bbbf-f069-4a20-bb89-96ba22549072","name":"Ok","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"[\n    \"DevicesRead\",\n    \"LocationsRead\",\n    \"ZonesRead\",\n    \"ZonesWrite\"\n]","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/v2/users/:user/permissions","host":["{{host}}"],"path":["v2","users",":user","permissions"],"variable":[{"key":"user","value":"238","type":"string","description":"Id of the user for whom modify permission"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 16 Feb 2022 14:31:23 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Content-Length","value":"0"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"}],"cookie":[],"responseTime":null,"body":"[\n    \"DevicesRead\",\n    \"LocationsRead\",\n    \"ZonesRead\",\n    \"ZonesWrite\"\n]"},{"id":"e6e153e9-5767-4508-b136-dc887da08b16","name":"401 Unauthorized","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"[\n    \"DevicesRead\",\n    \"ZonesRead\",\n    \"ZonesWrite\"\n]","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/v2/users/:user/permissions","host":["{{host}}"],"path":["v2","users",":user","permissions"],"variable":[{"key":"user","value":"185","type":"string","description":"Id of the user for whom modify permission"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Wed, 16 Feb 2022 14:31:23 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Content-Length","value":"0"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"}],"cookie":[],"responseTime":null,"body":null},{"id":"f49e1f2f-204a-42af-8475-30a4656096d3","name":"403 Forbidden","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"[\n    \"DevicesRead\",\n    \"LocationsRead\",\n    \"ZonesRead\",\n    \"ZonesWrite\"\n]","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/v2/users/:user/permissions","host":["{{host}}"],"path":["v2","users",":user","permissions"],"variable":[{"key":"user","value":"913","type":"string","description":"Id of the user for whom modify permission"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Wed, 16 Feb 2022 14:31:23 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Content-Length","value":"0"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"6f59603e-5f93-4f36-8e2f-1da7dbaf5d51"},{"name":"set user module permissions NEW","id":"b9216fe8-7e1e-4c89-8c63-9e5d25eac667","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"[\n    \"DevicesRead\",\n    \"DevicesWrite\",\n    \"HistoricalRead\",\n    \"HumanTrackingDataRead\",\n    \"LocationsRead\",\n    \"LocationsWrite\",\n    \"ZonesRead\",\n    \"ZonesWrite\"\n]","options":{"raw":{"language":"json"}}},"url":"{{host}}/v2/users/:user/permissions/new","description":"<p>Change the conteo module permissions for he user.</p>\n<p><strong>UsersAdmin</strong> (Core module) permission is required</p>\n<p>The body is an array of permissions.</p>\n<ul>\n<li><strong>DevicesRead</strong>: Read permissions on devices collection</li>\n<li><strong>DevicesWrite</strong>: Write permissions on devices collection</li>\n<li><strong>HistoricalRead</strong>: Read permissions on historical requests</li>\n<li><strong>LocationsRead</strong>: Read permissions on locations collection</li>\n<li><strong>LocationsWrite</strong>: Write permissions on locations collection</li>\n<li><strong>ZonesRead</strong>: Read permissions on zones collection</li>\n<li><strong>ZonesWrite</strong>: Write permissions on zones collection</li>\n</ul>\n<p>The headers needed to audit this functionality are shown below:</p>\n<ul>\n<li>x-audit-functionality: Identifier of the functionality permormed. In this case: 36 (ModifyUserConteoPermits)</li>\n<li>x-audit-user: Identifier of the user that has permormed the functionality.</li>\n<li>x-audit-timestamp: Timestamp of the performed functionality.</li>\n</ul>\n<p>The response could be one of:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>200 OK</strong></th>\n<th></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>403 Forbidden</strong></td>\n<td><strong>UsersAdmin permission is required</strong></td>\n</tr>\n<tr>\n<td><strong>401 Unauthorized</strong></td>\n<td><strong>Missing Bearer token</strong></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"feda3ae9-877f-48a1-9352-db2018a2a5ea","id":"feda3ae9-877f-48a1-9352-db2018a2a5ea","name":"Conteo Api","type":"collection"}},"urlObject":{"path":["v2","users",":user","permissions","new"],"host":["{{host}}"],"query":[],"variable":[{"id":"7cb16123-38e1-4278-9f75-d32ba91ce111","description":{"content":"<p>Id of the user for whom modify permission</p>\n","type":"text/plain"},"type":"string","value":"1","key":"user"}]}},"response":[{"id":"4b793629-8dbc-4631-af12-8625f15774c6","name":"Ok","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"[\n    \"DevicesRead\",\n    \"LocationsRead\",\n    \"ZonesRead\",\n    \"ZonesWrite\"\n]","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/v2/users/:user/permissions","host":["{{host}}"],"path":["v2","users",":user","permissions"],"variable":[{"key":"user","value":"15","type":"string","description":"Id of the user for whom modify permission"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 16 Feb 2022 14:31:23 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Content-Length","value":"0"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"}],"cookie":[],"responseTime":null,"body":"[\n    \"DevicesRead\",\n    \"LocationsRead\",\n    \"ZonesRead\",\n    \"ZonesWrite\"\n]"},{"id":"5b4e7381-07eb-47f1-89da-48cb350f094b","name":"401 Unauthorized","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"[\n    \"DevicesRead\",\n    \"ZonesRead\",\n    \"ZonesWrite\"\n]","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/v2/users/:user/permissions","host":["{{host}}"],"path":["v2","users",":user","permissions"],"variable":[{"key":"user","value":"235","type":"string","description":"Id of the user for whom modify permission"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Wed, 16 Feb 2022 14:31:23 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Content-Length","value":"0"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"}],"cookie":[],"responseTime":null,"body":null},{"id":"b0fb88cb-f283-467f-a5a4-5711a76b88ac","name":"403 Forbidden","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"[\n    \"DevicesRead\",\n    \"LocationsRead\",\n    \"ZonesRead\",\n    \"ZonesWrite\"\n]","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/v2/users/:user/permissions","host":["{{host}}"],"path":["v2","users",":user","permissions"],"variable":[{"key":"user","value":"854","type":"string","description":"Id of the user for whom modify permission"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Wed, 16 Feb 2022 14:31:23 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Content-Length","value":"0"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"b9216fe8-7e1e-4c89-8c63-9e5d25eac667"}],"id":"8b177823-c908-4cb4-9b17-9d097a90274a","_postman_id":"8b177823-c908-4cb4-9b17-9d097a90274a","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"feda3ae9-877f-48a1-9352-db2018a2a5ea","id":"feda3ae9-877f-48a1-9352-db2018a2a5ea","name":"Conteo Api","type":"collection"}}},{"name":"get user module permissions","id":"e3e85be4-ef05-47fb-b580-561dd490465c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{host}}/v2/users/:user/permissions","description":"<p>Gets the module permissions of the user.</p>\n<p><strong>UsersAdmin</strong> (Core module) permission is required</p>\n<p>The result is an array of String with values:</p>\n<ul>\n<li><strong>DevicesRead</strong>: Read permissions on devices collection</li>\n<li><strong>DevicesWrite</strong>: Write permissions on devices collection</li>\n<li><strong>HistoricalRead</strong>: Read permissions on historical requests</li>\n<li><strong>LocationsRead</strong>: Read permissions on locations collection</li>\n<li><strong>LocationsWrite</strong>: Write permissions on locations collection</li>\n<li><strong>ZonesRead</strong>: Read permissions on zones collection</li>\n<li><strong>ZonesWrite</strong>: Write permissions on zones collection</li>\n</ul>\n<p>The response could be one of:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>200 OK</strong></th>\n<th></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>403 Forbidden</strong></td>\n<td><strong>UsersAdmin permission is required</strong></td>\n</tr>\n<tr>\n<td><strong>400 Bad Request</strong></td>\n<td><strong>User id not found in database</strong></td>\n</tr>\n<tr>\n<td><strong>401 Unauthorized</strong></td>\n<td><strong>Missing Bearer token</strong></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"feda3ae9-877f-48a1-9352-db2018a2a5ea","id":"feda3ae9-877f-48a1-9352-db2018a2a5ea","name":"Conteo Api","type":"collection"}},"urlObject":{"path":["v2","users",":user","permissions"],"host":["{{host}}"],"query":[],"variable":[{"description":{"content":"<p>Id of the user to retrieve conteo permissions</p>\n","type":"text/plain"},"type":"string","value":"1","key":"user"}]}},"response":[{"id":"e55e6f8e-90d8-4ad5-b57e-39e6e2dbd2ba","name":"Ok","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v2/users/:user/permissions","host":["{{host}}"],"path":["v2","users",":user","permissions"],"variable":[{"key":"user","value":"1","type":"string","description":"Id of the user to retrieve conteo permissions"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 23 Mar 2022 16:27:35 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"[\n    \"DevicesRead\",\n    \"DevicesWrite\",\n    \"HistoricalRead\",\n    \"LocationsRead\",\n    \"LocationsWrite\",\n    \"ZonesRead\",\n    \"ZonesWrite\"\n]"},{"id":"4876b68f-8faa-444a-88ed-533f07b49820","name":"400 Bad Request","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v2/users/:user/permissions","host":["{{host}}"],"path":["v2","users",":user","permissions"],"variable":[{"key":"user","value":"846","type":"string","description":"Id of the user to retrieve conteo permissions"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 23 Mar 2022 16:29:40 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Connection","value":"close"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":""},{"id":"b495ad96-b719-4cf9-92ac-480bb526b2eb","name":"401 Unauthorized","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v2/users/:user/permissions","host":["{{host}}"],"path":["v2","users",":user","permissions"],"variable":[{"key":"user","value":"920","type":"string","description":"Id of the user to retrieve conteo permissions"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 28 Jun 2021 13:51:04 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Connection","value":"close"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":""},{"id":"e415f79c-cce7-4db9-bfdb-e0d297b2eca6","name":"403 Forbidden","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v2/users/:user/permissions","host":["{{host}}"],"path":["v2","users",":user","permissions"],"variable":[{"key":"user","value":"313","type":"string","description":"Id of the user to retrieve conteo permissions"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 28 Jun 2021 13:51:04 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Connection","value":"close"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"e3e85be4-ef05-47fb-b580-561dd490465c"},{"name":"set user module permissions","id":"b0527d66-4921-4bf2-a24e-e95d51608a8d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"[\n    \"DevicesRead\",\n    \"DevicesWrite\",\n    \"HistoricalRead\",\n    \"HumanTrackingDataRead\",\n    \"LocationsRead\",\n    \"LocationsWrite\",\n    \"ZonesRead\",\n    \"ZonesWrite\"\n]","options":{"raw":{"language":"json"}}},"url":"{{host}}/v2/users/:user/permissions","description":"<p>Change the conteo module permissions for he user.</p>\n<p><strong>UsersAdmin</strong> (Core module) permission is required</p>\n<p>The body is an array of permissions.</p>\n<ul>\n<li><strong>DevicesRead</strong>: Read permissions on devices collection</li>\n<li><strong>DevicesWrite</strong>: Write permissions on devices collection</li>\n<li><strong>HistoricalRead</strong>: Read permissions on historical requests</li>\n<li><strong>LocationsRead</strong>: Read permissions on locations collection</li>\n<li><strong>LocationsWrite</strong>: Write permissions on locations collection</li>\n<li><strong>ZonesRead</strong>: Read permissions on zones collection</li>\n<li><strong>ZonesWrite</strong>: Write permissions on zones collection</li>\n</ul>\n<p>The headers needed to audit this functionality are shown below:</p>\n<ul>\n<li>x-audit-functionality: Identifier of the functionality permormed. In this case: 36 (ModifyUserConteoPermits)</li>\n<li>x-audit-user: Identifier of the user that has permormed the functionality.</li>\n<li>x-audit-timestamp: Timestamp of the performed functionality.</li>\n</ul>\n<p>The response could be one of:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>200 OK</strong></th>\n<th></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>403 Forbidden</strong></td>\n<td><strong>UsersAdmin permission is required</strong></td>\n</tr>\n<tr>\n<td><strong>401 Unauthorized</strong></td>\n<td><strong>Missing Bearer token</strong></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["v2","users",":user","permissions"],"host":["{{host}}"],"query":[],"variable":[{"description":{"content":"<p>Id of the user for whom modify permission</p>\n","type":"text/plain"},"type":"string","value":"1","key":"user"}]}},"response":[{"id":"2e1b001b-99e9-4ee7-a99b-dbeca4365ef7","name":"Ok","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"[\n    \"DevicesRead\",\n    \"LocationsRead\",\n    \"ZonesRead\",\n    \"ZonesWrite\"\n]","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/v2/users/:user/permissions","host":["{{host}}"],"path":["v2","users",":user","permissions"],"variable":[{"key":"user","value":"818","type":"string","description":"Id of the user for whom modify permission"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 16 Feb 2022 14:31:23 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Content-Length","value":"0"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"}],"cookie":[],"responseTime":null,"body":"[\n    \"DevicesRead\",\n    \"LocationsRead\",\n    \"ZonesRead\",\n    \"ZonesWrite\"\n]"},{"id":"a2c9f8c5-52de-4880-a12a-2d1e025256a3","name":"401 Unauthorized","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"[\n    \"DevicesRead\",\n    \"ZonesRead\",\n    \"ZonesWrite\"\n]","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/v2/users/:user/permissions","host":["{{host}}"],"path":["v2","users",":user","permissions"],"variable":[{"key":"user","value":"972","type":"string","description":"Id of the user for whom modify permission"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Wed, 16 Feb 2022 14:31:23 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Content-Length","value":"0"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"}],"cookie":[],"responseTime":null,"body":null},{"id":"ffb91c4e-ba4f-41d6-a9a9-40e27936c2e6","name":"403 Forbidden","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"[\n    \"DevicesRead\",\n    \"LocationsRead\",\n    \"ZonesRead\",\n    \"ZonesWrite\"\n]","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/v2/users/:user/permissions","host":["{{host}}"],"path":["v2","users",":user","permissions"],"variable":[{"key":"user","value":"279","type":"string","description":"Id of the user for whom modify permission"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Wed, 16 Feb 2022 14:31:23 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Content-Length","value":"0"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"b0527d66-4921-4bf2-a24e-e95d51608a8d"}],"id":"3908e978-ecdc-47bd-9c9a-8db48a649c2a","description":"<p>Requests related to manadgement of users of the module and their permissions</p>\n","event":[{"listen":"prerequest","script":{"id":"d108b4a0-5d5b-4b8b-901f-475d71c80250","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"40c6403c-a511-4fea-abc0-a789d0b21f0c","type":"text/javascript","exec":[""]}}],"_postman_id":"3908e978-ecdc-47bd-9c9a-8db48a649c2a","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"feda3ae9-877f-48a1-9352-db2018a2a5ea","id":"feda3ae9-877f-48a1-9352-db2018a2a5ea","name":"Conteo Api","type":"collection"}}},{"name":"zones","item":[{"name":"TEST","item":[{"name":"modify zone Copy","id":"3518a2b2-4a55-4b2d-b876-3114a3af9e30","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"alias\": \"SRR\",\n    \"name\": \"Serrano\",\n    \"maxOccupation\": 40\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/v2/zones/:zone","description":"<p>Request to modify fields of the zone.</p>\n<p><strong>ZonesWrite</strong> permission is required.</p>\n<p>The parameters that are subject of modification are:</p>\n<ul>\n<li><strong>alias</strong></li>\n<li><strong>name</strong></li>\n<li><strong>maxOccupation</strong></li>\n</ul>\n<p>The headers needed to audit this functionality are shown below:</p>\n<ul>\n<li>x-audit-functionality: Identifier of the functionality permormed. In this case: 46 (ModifyZone)</li>\n<li>x-audit-user: Identifier of the user that has permormed the functionality.</li>\n<li>x-audit-timestamp: Timestamp of the performed functionality.</li>\n</ul>\n<p>The response could be one of:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>200 OK</strong></th>\n<th></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>403 Forbidden</strong></td>\n<td><strong>User without ZonesWrite permission</strong></td>\n</tr>\n<tr>\n<td><strong>404 Not Found</strong></td>\n<td><strong>Zone ID not found in database</strong></td>\n</tr>\n<tr>\n<td><strong>401 Unauthorized</strong></td>\n<td><strong>Missing Bearer token</strong></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"feda3ae9-877f-48a1-9352-db2018a2a5ea","id":"feda3ae9-877f-48a1-9352-db2018a2a5ea","name":"Conteo Api","type":"collection"}},"urlObject":{"path":["v2","zones",":zone"],"host":["{{host}}"],"query":[],"variable":[{"id":"70e9837c-45dd-4e4a-9010-2c50a52239f0","description":{"content":"<p>Id of the zone to modify</p>\n","type":"text/plain"},"type":"string","value":"34","key":"zone"}]}},"response":[{"id":"d633fe03-8c8b-4d6c-b32f-e787c1c852b5","name":"Ok","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"alias\": \"SRR\",\n    \"name\": \"Serrano\",\n    \"maxOccupation\": 40\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/v2/zones/:zone","host":["{{host}}"],"path":["v2","zones",":zone"],"variable":[{"key":"zone","value":"141","type":"string","description":"Id of the zone to modify"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 23 Mar 2022 16:55:51 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 141,\n    \"name\": \"Serrano\",\n    \"alias\": \"SRR\",\n    \"description\": \"Building's entrance\",\n    \"floor\": 27,\n    \"occupation\": 0,\n    \"maxOccupation\": 40,\n    \"path\": \"52.297900069011355,-66.00516844460643 7.438525578726749,-65.83329344655937 7.782275574820884,-16.505169007051 52.297900069011355,-16.333294009003932\",\n    \"type\": \"Occupation\"\n}"},{"id":"f40dcec4-54d5-4eae-8353-aa00ff5d7cc5","name":"401 Unauthorized","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"alias\": \"SRR\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/v2/zones/:zone","host":["{{host}}"],"path":["v2","zones",":zone"],"variable":[{"key":"zone","value":"841","type":"string","description":"Id of the zone to modify"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Wed, 16 Feb 2022 14:31:50 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Content-Length","value":"0"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"}],"cookie":[],"responseTime":null,"body":null},{"id":"2bc64ea9-f463-4c8d-a6df-36cf925abda6","name":"403 Forbidden (User without specific permission)","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"alias\": \"SRR\",\n    \"maxOccupation\": 40\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/v2/zones/:zone","host":["{{host}}"],"path":["v2","zones",":zone"],"variable":[{"key":"zone","value":"827","type":"string","description":"Id of the zone to modify"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 18 Feb 2022 08:47:19 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"reason\": \"Not allowed to write\"\n}"},{"id":"6b299669-a5d3-4f92-8432-37ca745d0abd","name":"404 Not Found","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"maxOccupation\": 40\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/v2/zones/:zone","host":["{{host}}"],"path":["v2","zones",":zone"],"variable":[{"key":"zone","value":"932","type":"string","description":"Id of the zone to modify"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 18 Feb 2022 08:47:19 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"reason\": \"Not allowed to write\"\n}"}],"_postman_id":"3518a2b2-4a55-4b2d-b876-3114a3af9e30"},{"name":"modify zone NEW","id":"df0ee0fb-a665-4b73-b578-e1d716ae9828","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"alias\": \"SRR\",\n    \"name\": \"Serrano\",\n    \"maxOccupation\": 40\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/v2/zones/new/:zone","description":"<p>Request to modify fields of the zone.</p>\n<p><strong>ZonesWrite</strong> permission is required.</p>\n<p>The parameters that are subject of modification are:</p>\n<ul>\n<li><strong>alias</strong></li>\n<li><strong>name</strong></li>\n<li><strong>maxOccupation</strong></li>\n</ul>\n<p>The headers needed to audit this functionality are shown below:</p>\n<ul>\n<li>x-audit-functionality: Identifier of the functionality permormed. In this case: 46 (ModifyZone)</li>\n<li>x-audit-user: Identifier of the user that has permormed the functionality.</li>\n<li>x-audit-timestamp: Timestamp of the performed functionality.</li>\n</ul>\n<p>The response could be one of:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>200 OK</strong></th>\n<th></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>403 Forbidden</strong></td>\n<td><strong>User without ZonesWrite permission</strong></td>\n</tr>\n<tr>\n<td><strong>404 Not Found</strong></td>\n<td><strong>Zone ID not found in database</strong></td>\n</tr>\n<tr>\n<td><strong>401 Unauthorized</strong></td>\n<td><strong>Missing Bearer token</strong></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"feda3ae9-877f-48a1-9352-db2018a2a5ea","id":"feda3ae9-877f-48a1-9352-db2018a2a5ea","name":"Conteo Api","type":"collection"}},"urlObject":{"path":["v2","zones","new",":zone"],"host":["{{host}}"],"query":[],"variable":[{"type":"any","value":"34","key":"zone"}]}},"response":[{"id":"3e750197-4de3-4fdc-b6d9-e5aa05ec35e2","name":"Ok","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"alias\": \"SRR\",\n    \"name\": \"Serrano\",\n    \"maxOccupation\": 40\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/v2/zones/:zone","host":["{{host}}"],"path":["v2","zones",":zone"],"variable":[{"key":"zone","value":"141","type":"string","description":"Id of the zone to modify"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 23 Mar 2022 16:55:51 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 141,\n    \"name\": \"Serrano\",\n    \"alias\": \"SRR\",\n    \"description\": \"Building's entrance\",\n    \"floor\": 27,\n    \"occupation\": 0,\n    \"maxOccupation\": 40,\n    \"path\": \"52.297900069011355,-66.00516844460643 7.438525578726749,-65.83329344655937 7.782275574820884,-16.505169007051 52.297900069011355,-16.333294009003932\",\n    \"type\": \"Occupation\"\n}"},{"id":"24a4711e-c043-4363-907e-6026a187ebf1","name":"401 Unauthorized","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"alias\": \"SRR\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/v2/zones/:zone","host":["{{host}}"],"path":["v2","zones",":zone"],"variable":[{"key":"zone","value":"703","type":"string","description":"Id of the zone to modify"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Wed, 16 Feb 2022 14:31:50 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Content-Length","value":"0"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"}],"cookie":[],"responseTime":null,"body":null},{"id":"209616a2-3f85-4ae6-9d23-732122c5e632","name":"403 Forbidden (User without specific permission)","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"alias\": \"SRR\",\n    \"maxOccupation\": 40\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/v2/zones/:zone","host":["{{host}}"],"path":["v2","zones",":zone"],"variable":[{"key":"zone","value":"627","type":"string","description":"Id of the zone to modify"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 18 Feb 2022 08:47:19 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"reason\": \"Not allowed to write\"\n}"},{"id":"4ea6dcad-b132-4a3c-9c1b-211a8318cb00","name":"404 Not Found","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"maxOccupation\": 40\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/v2/zones/:zone","host":["{{host}}"],"path":["v2","zones",":zone"],"variable":[{"key":"zone","value":"743","type":"string","description":"Id of the zone to modify"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 18 Feb 2022 08:47:19 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"reason\": \"Not allowed to write\"\n}"}],"_postman_id":"df0ee0fb-a665-4b73-b578-e1d716ae9828"}],"id":"8ad60ad6-ffc9-4a2c-bc75-ef027f455dcc","_postman_id":"8ad60ad6-ffc9-4a2c-bc75-ef027f455dcc","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"feda3ae9-877f-48a1-9352-db2018a2a5ea","id":"feda3ae9-877f-48a1-9352-db2018a2a5ea","name":"Conteo Api","type":"collection"}}},{"name":"get zones","id":"aeb9e8af-7e94-41ea-beef-da353d447bba","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{host}}/v2/zones","description":"<p>Returns all the zones of the module.</p>\n<p><strong>ZonesRead</strong> permission is required.</p>\n<p>Zones can be filtered (optionally) by floor or type (Occupation)</p>\n<p>The response could be one of:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>200 OK</strong></th>\n<th></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>403 Forbidden</strong></td>\n<td><strong>User without ZonesRead</strong> <strong>permission</strong></td>\n</tr>\n<tr>\n<td><strong>401 Unauthorized</strong></td>\n<td><strong>Missing Bearer token</strong></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"feda3ae9-877f-48a1-9352-db2018a2a5ea","id":"feda3ae9-877f-48a1-9352-db2018a2a5ea","name":"Conteo Api","type":"collection"}},"urlObject":{"path":["v2","zones"],"host":["{{host}}"],"query":[{"disabled":true,"description":{"content":"<p>Id of the floor</p>\n","type":"text/plain"},"key":"floor","value":"26"},{"disabled":true,"description":{"content":"<p>Type of the zone</p>\n","type":"text/plain"},"key":"type","value":"Occupation"}],"variable":[]}},"response":[{"id":"d3f33190-a1bd-4836-9eda-ae171e4aaada","name":"Ok","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v2/zones?floor=26","host":["{{host}}"],"path":["v2","zones"],"query":[{"key":"floor","value":"26","description":"Id of the floor"},{"key":"type","value":"Occupation","description":"Type of the zone","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 28 Jun 2021 14:01:04 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 8,\n        \"name\": \"Barajas\",\n        \"alias\": \"Barajas\",\n        \"description\": \"Building's reception\",\n        \"floor\": 26,\n        \"occupation\": 11,\n        \"maxOccupation\": 120,\n        \"path\": \"7.056232712193408,-55.69439932875887 54.32186003101283,-55.69439932875887 54.83748505630905,-15.647522364086411 8.087482762785832,-15.991272380950551\",\n        \"type\": \"Occupation\"\n    }\n]"},{"id":"c0c9352b-8bd9-4931-80ca-3f6eea4c586e","name":"401 Unauthorized","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v2/zones?type=Occupation","host":["{{host}}"],"path":["v2","zones"],"query":[{"key":"floor","value":"26","description":"Id of the floor","disabled":true},{"key":"type","value":"Occupation","description":"Type of the zone"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Wed, 16 Feb 2022 14:31:31 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Content-Length","value":"0"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"}],"cookie":[],"responseTime":null,"body":null},{"id":"5156e659-cc92-4e9f-97b8-18da28794207","name":"403 Forbidden (User without specific permission)","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v2/zones?floor=26&type=Occupation","host":["{{host}}"],"path":["v2","zones"],"query":[{"key":"floor","value":"26","description":"Id of the floor"},{"key":"type","value":"Occupation","description":"Type of the zone"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 18 Feb 2022 08:46:57 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"reason\": \"Not allowed to read\"\n}"}],"_postman_id":"aeb9e8af-7e94-41ea-beef-da353d447bba"},{"name":"get zone by id","id":"957e419f-0706-4390-a045-5f1cdedf21b5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{host}}/v2/zones/:zone","description":"<p>Returns an specific zone by its id.</p>\n<p><strong>ZonesRead</strong> permission is required.</p>\n<p>The response could be one of:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>200 OK</strong></th>\n<th></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>403 Forbidden</strong></td>\n<td><strong>User without ZonesRead permission</strong></td>\n</tr>\n<tr>\n<td><strong>404 Not Found</strong></td>\n<td><strong>Id of the zone not found on database</strong></td>\n</tr>\n<tr>\n<td><strong>401 Unauthorized</strong></td>\n<td><strong>Missing Bearer token</strong></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"feda3ae9-877f-48a1-9352-db2018a2a5ea","id":"feda3ae9-877f-48a1-9352-db2018a2a5ea","name":"Conteo Api","type":"collection"}},"urlObject":{"path":["v2","zones",":zone"],"host":["{{host}}"],"query":[],"variable":[{"description":{"content":"<p>Id of the zone to retrieve</p>\n","type":"text/plain"},"type":"string","value":"19","key":"zone"}]}},"response":[{"id":"e5e36835-df34-4da2-92f7-084eb48e29b8","name":"Ok","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v2/zones/:zone","host":["{{host}}"],"path":["v2","zones",":zone"],"variable":[{"key":"zone","value":"54","description":"Id of the zone to retrieve"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 28 Jun 2021 14:07:48 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 54,\n    \"name\": \"Barajas\",\n    \"alias\": \"Barajas\",\n    \"description\": \"Building's reception\",\n    \"floor\": 26,\n    \"occupation\": 14,\n    \"maxOccupation\": 120,\n    \"path\": \"7.056232712193408,-55.69439932875887 54.32186003101283,-55.69439932875887 54.83748505630905,-15.647522364086411 8.087482762785832,-15.991272380950551\",\n    \"type\": \"Occupation\"\n}"},{"id":"8fc7252c-9409-461f-be44-68affa92aa59","name":"401 Unauthorized","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v2/zones/:zone","host":["{{host}}"],"path":["v2","zones",":zone"],"variable":[{"key":"zone","value":"672","type":"string","description":"Id of the zone to retrieve"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Wed, 16 Feb 2022 14:31:38 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Content-Length","value":"0"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"}],"cookie":[],"responseTime":null,"body":null},{"id":"5ffa5388-28e7-4a48-b5b3-f248fd902d2e","name":"403 Forbidden","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v2/zones/:zone","host":["{{host}}"],"path":["v2","zones",":zone"],"variable":[{"key":"zone","value":"260","type":"string","description":"Id of the zone to retrieve"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 18 Feb 2022 08:47:03 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"reason\": \"Not allowed to read\"\n}"},{"id":"52565252-cc65-42a8-ab36-af1d0c1687f4","name":"404 Not Found","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{host}}/v2/zones/:zone","host":["{{host}}"],"path":["v2","zones",":zone"],"variable":[{"key":"zone","value":"382","type":"string","description":"Id of the zone to retrieve"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Thu, 17 Feb 2022 11:40:57 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Content-Length","value":"0"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"957e419f-0706-4390-a045-5f1cdedf21b5"},{"name":"create zone","id":"94ab97dc-2206-4a1b-ab02-2f5a57f99a8d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Baraja\",\n    \"alias\": \"BRJ\",\n    \"description\": \"Building's entrance\",\n    \"floor\": 27,\n    \"maxOccupation\": 100,\n    \"path\": \"52.297900069011355,-66.00516844460643 7.438525578726749,-65.83329344655937 7.782275574820884,-16.505169007051 52.297900069011355,-16.333294009003932\",\n    \"type\": \"Occupation\"\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/v2/zones","description":"<p>Creates a new zone in the module.</p>\n<p>Requirements:</p>\n<ul>\n<li>You need to previously create a Floor (See \"create Floor\" from Habitat Core API).</li>\n<li><strong>ZonesWrite</strong> permission</li>\n</ul>\n<p>Fields:</p>\n<ul>\n<li><strong>name</strong>: Required. String. Name of the zone</li>\n<li><strong>alias</strong>: Optional. String. Alias of the zone</li>\n<li><strong>description</strong>: Required. String. Description of the zone</li>\n<li><strong>floor</strong>: Required. Int. Id of the floor where the zone is located</li>\n<li><strong>maxOccupation</strong>: Required. Int. Maximum occupation of this zone</li>\n<li><strong>path</strong>: Required. String. Path coordinates of the enclosed polygon of the zone. List of vertex coordinates on the X and Y axis, separated by commas. For example, in order to create a square of size 3 at the origin on coordiantes, the path could be: \"0,0 0,3 3,3 3, 0\", which is translated as: \"First vertex at X=0,Y=0. Second vertex at X=0,Y=3. Third vertex at X=3,Y=3. Fourth vetex at X=3,Y=0\"</li>\n<li><strong>type</strong>: Required. String. Type of the zone. At the moment, the only possible value is \"Occupation\"</li>\n</ul>\n<p>The headers needed to audit this functionality are shown below:</p>\n<ul>\n<li>x-audit-functionality: Identifier of the functionality permormed. In this case: 45 (CreateZone)</li>\n<li>x-audit-user: Identifier of the user that has permormed the functionality.</li>\n<li>x-audit-timestamp: Timestamp of the performed functionality.</li>\n</ul>\n<p>The response could be one of:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>200 OK</strong></th>\n<th></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>403 Forbidden</strong></td>\n<td><strong>User without ZonesWrite permission</strong></td>\n</tr>\n<tr>\n<td><strong>401 Unauthorized</strong></td>\n<td><strong>Missing Bearer token</strong></td>\n</tr>\n<tr>\n<td><strong>400 Bad Request</strong></td>\n<td><strong>Invalid request parameters or duplicated zone name</strong></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"feda3ae9-877f-48a1-9352-db2018a2a5ea","id":"feda3ae9-877f-48a1-9352-db2018a2a5ea","name":"Conteo Api","type":"collection"}},"urlObject":{"path":["v2","zones"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"2e5ac208-fd1b-46c7-b5a5-90c2bb3dacc4","name":"Ok","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Baraja\",\n    \"alias\": \"BRJ\",\n    \"description\": \"Building's entrance\",\n    \"floor\": 27,\n    \"maxOccupation\": 100,\n    \"path\": \"52.297900069011355,-66.00516844460643 7.438525578726749,-65.83329344655937 7.782275574820884,-16.505169007051 52.297900069011355,-16.333294009003932\",\n    \"type\": \"Occupation\"\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/v2/zones"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 23 Mar 2022 16:51:57 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 661,\n    \"name\": \"Baraja\",\n    \"alias\": \"BRJ\",\n    \"description\": \"Building's entrance\",\n    \"floor\": 27,\n    \"occupation\": 0,\n    \"maxOccupation\": 100,\n    \"path\": \"52.297900069011355,-66.00516844460643 7.438525578726749,-65.83329344655937 7.782275574820884,-16.505169007051 52.297900069011355,-16.333294009003932\",\n    \"type\": \"Occupation\"\n}"},{"id":"56a17777-a08c-4a58-a19f-0961f7e893c0","name":"400 Bad Request","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Baraja\",\n    \"path\": \"52.297900069011355,-66.00516844460643 7.438525578726749,-65.83329344655937 7.782275574820884,-16.505169007051 52.297900069011355,-16.333294009003932\",\n    \"type\": \"Occupation\"\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/v2/zones"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 18 Feb 2022 08:47:10 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":""},{"id":"8df480d5-0e95-4c36-bca0-e7fe52f5006f","name":"401 Unauthorized","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Baraja\",\n    \"alias\": \"BRJ\",\n    \"description\": \"Building's entrance\",\n    \"floor\": 27,\n    \"maxOccupation\": 100,\n    \"path\": \"52.297900069011355,-66.00516844460643 7.438525578726749,-65.83329344655937 7.782275574820884,-16.505169007051 52.297900069011355,-16.333294009003932\",\n    \"type\": \"Occupation\"\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/v2/zones"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Wed, 16 Feb 2022 14:31:44 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Content-Length","value":"0"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"}],"cookie":[],"responseTime":null,"body":null},{"id":"d14e631e-907f-4c39-8133-fe90e2ea2b39","name":"403 Forbidden (User without specific permission)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Baraja\",\n    \"alias\": \"BRJ\",\n    \"description\": \"Building's entrance\",\n    \"floor\": 27,\n    \"maxOccupation\": 100,\n    \"path\": \"52.297900069011355,-66.00516844460643 7.438525578726749,-65.83329344655937 7.782275574820884,-16.505169007051 52.297900069011355,-16.333294009003932\",\n    \"type\": \"Occupation\"\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/v2/zones"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 18 Feb 2022 08:47:10 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"reason\": \"Not allowed to write\"\n}"}],"_postman_id":"94ab97dc-2206-4a1b-ab02-2f5a57f99a8d"},{"name":"modify zone","id":"1feb0ea2-25ff-47c3-a7d3-bc449d38f4f4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"alias\": \"SRR\",\n    \"name\": \"Serrano\",\n    \"maxOccupation\": 40\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/v2/zones/:zone","description":"<p>Request to modify fields of the zone.</p>\n<p><strong>ZonesWrite</strong> permission is required.</p>\n<p>The parameters that are subject of modification are:</p>\n<ul>\n<li><strong>alias</strong></li>\n<li><strong>name</strong></li>\n<li><strong>maxOccupation</strong></li>\n</ul>\n<p>The headers needed to audit this functionality are shown below:</p>\n<ul>\n<li>x-audit-functionality: Identifier of the functionality permormed. In this case: 46 (ModifyZone)</li>\n<li>x-audit-user: Identifier of the user that has permormed the functionality.</li>\n<li>x-audit-timestamp: Timestamp of the performed functionality.</li>\n</ul>\n<p>The response could be one of:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>200 OK</strong></th>\n<th></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>403 Forbidden</strong></td>\n<td><strong>User without ZonesWrite permission</strong></td>\n</tr>\n<tr>\n<td><strong>404 Not Found</strong></td>\n<td><strong>Zone ID not found in database</strong></td>\n</tr>\n<tr>\n<td><strong>401 Unauthorized</strong></td>\n<td><strong>Missing Bearer token</strong></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["v2","zones",":zone"],"host":["{{host}}"],"query":[],"variable":[{"description":{"content":"<p>Id of the zone to modify</p>\n","type":"text/plain"},"type":"string","value":"34","key":"zone"}]}},"response":[{"id":"eed9b85c-af76-4272-9c6e-0f8bcca405b3","name":"Ok","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"alias\": \"SRR\",\n    \"name\": \"Serrano\",\n    \"maxOccupation\": 40\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/v2/zones/:zone","host":["{{host}}"],"path":["v2","zones",":zone"],"variable":[{"key":"zone","value":"141","type":"string","description":"Id of the zone to modify"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 23 Mar 2022 16:55:51 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 141,\n    \"name\": \"Serrano\",\n    \"alias\": \"SRR\",\n    \"description\": \"Building's entrance\",\n    \"floor\": 27,\n    \"occupation\": 0,\n    \"maxOccupation\": 40,\n    \"path\": \"52.297900069011355,-66.00516844460643 7.438525578726749,-65.83329344655937 7.782275574820884,-16.505169007051 52.297900069011355,-16.333294009003932\",\n    \"type\": \"Occupation\"\n}"},{"id":"e14a13f0-404f-48ec-b67b-56c2e4fba253","name":"401 Unauthorized","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"alias\": \"SRR\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/v2/zones/:zone","host":["{{host}}"],"path":["v2","zones",":zone"],"variable":[{"key":"zone","value":"785","type":"string","description":"Id of the zone to modify"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Wed, 16 Feb 2022 14:31:50 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Content-Length","value":"0"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"}],"cookie":[],"responseTime":null,"body":null},{"id":"6048b039-54e8-46a0-ba1e-65d50c0cacb5","name":"403 Forbidden (User without specific permission)","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"alias\": \"SRR\",\n    \"maxOccupation\": 40\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/v2/zones/:zone","host":["{{host}}"],"path":["v2","zones",":zone"],"variable":[{"key":"zone","value":"227","type":"string","description":"Id of the zone to modify"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 18 Feb 2022 08:47:19 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"reason\": \"Not allowed to write\"\n}"},{"id":"76ba2829-2eb7-4e51-a995-cb2e852d0360","name":"404 Not Found","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"maxOccupation\": 40\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{host}}/v2/zones/:zone","host":["{{host}}"],"path":["v2","zones",":zone"],"variable":[{"key":"zone","value":"110","type":"string","description":"Id of the zone to modify"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 18 Feb 2022 08:47:19 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"reason\": \"Not allowed to write\"\n}"}],"_postman_id":"1feb0ea2-25ff-47c3-a7d3-bc449d38f4f4"},{"name":"delete zone","id":"c6c36620-e23b-4e6d-95c5-463ffc268f8c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{host}}/v2/zones/:zone","description":"<p>The headers needed to audit this functionality are shown below:</p>\n<ul>\n<li>x-audit-functionality: Identifier of the functionality permormed. In this case: 47 (DeleteZone)</li>\n<li>x-audit-user: Identifier of the user that has permormed the functionality.</li>\n<li>x-audit-timestamp: Timestamp of the performed functionality.</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"feda3ae9-877f-48a1-9352-db2018a2a5ea","id":"feda3ae9-877f-48a1-9352-db2018a2a5ea","name":"Conteo Api","type":"collection"}},"urlObject":{"path":["v2","zones",":zone"],"host":["{{host}}"],"query":[],"variable":[{"description":{"content":"<p>Id of the zone </p>\n","type":"text/plain"},"type":"any","value":"74","key":"zone"}]}},"response":[{"id":"e6c67ca5-6726-4909-b179-1b99ec004d1a","name":"Ok","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{host}}/v2/zones/:zone","host":["{{host}}"],"path":["v2","zones",":zone"],"variable":[{"key":"zone","value":"74","description":"Id of the zone "}]}},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Tue, 22 Feb 2022 10:08:51 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Content-Length","value":"0"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"}],"cookie":[],"responseTime":null,"body":null},{"id":"073e2e48-b6c4-4371-a0b0-eeaca5b8ce5f","name":"404 Not Found","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{host}}/v2/zones/:zone","host":["{{host}}"],"path":["v2","zones",":zone"],"variable":[{"key":"zone","value":"0","description":"Id of the zone "}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Tue, 22 Feb 2022 10:11:39 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Content-Length","value":"31"},{"key":"Content-Type","value":"text/plain; charset=UTF-8"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"}],"cookie":[],"responseTime":null,"body":"The zone specified don't exist."}],"_postman_id":"c6c36620-e23b-4e6d-95c5-463ffc268f8c"}],"id":"b4cc28d4-caaa-4631-9898-d6b27685358c","description":"<p>Requests for manadgement of zones, delimited enclosed spaces to quantify capacity and occupancy.</p>\n","_postman_id":"b4cc28d4-caaa-4631-9898-d6b27685358c","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"feda3ae9-877f-48a1-9352-db2018a2a5ea","id":"feda3ae9-877f-48a1-9352-db2018a2a5ea","name":"Conteo Api","type":"collection"}}},{"name":"health","item":[{"name":"get health","id":"e45eaaeb-46d9-4750-93ab-99b46f1af7ef","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{host}}/v2/health","description":"<p>Checks if Habität conteo module is running normally. If the response has a status code of <strong>200 OK</strong> the service is correctly working. Elsewhere, there is some issue with the service that needs to be addressed.</p>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"52f82a11-1bc2-4158-a479-14e844163d65","id":"52f82a11-1bc2-4158-a479-14e844163d65","name":"health","type":"folder"}},"urlObject":{"path":["v2","health"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"8be30dd3-4580-4743-9f2a-25ce3c580fed","name":"Ok","originalRequest":{"method":"GET","header":[],"url":"{{host}}/v2/health"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Thu, 17 Feb 2022 11:41:17 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Content-Length","value":"2"},{"key":"Content-Type","value":"text/plain; charset=UTF-8"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"}],"cookie":[],"responseTime":null,"body":"OK"}],"_postman_id":"e45eaaeb-46d9-4750-93ab-99b46f1af7ef"}],"id":"52f82a11-1bc2-4158-a479-14e844163d65","description":"<p>Requests that allow to monitorize the status of the service.</p>\n","auth":{"type":"noauth","isInherited":false},"event":[{"listen":"prerequest","script":{"id":"8a5667de-10ad-4b87-b762-177c40fd1e72","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"0bf63d0e-c7f1-4198-838c-6ac681138229","type":"text/javascript","exec":[""]}}],"_postman_id":"52f82a11-1bc2-4158-a479-14e844163d65"}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]}},"event":[{"listen":"prerequest","script":{"id":"e3ce0ba6-e976-45be-9312-c4a368798488","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"5cbe201a-3e91-4eff-b1f9-833663389863","type":"text/javascript","exec":[""]}}],"variable":[{"key":"user","value":"myuser@mydomain.com"},{"key":"password","value":"P@ssw0rd"},{"key":"device","value":"12345FGH2"},{"key":"api-key","value":"123456","type":"string"}]}