{"info":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","description":"<html><head></head><body><p>This documentation and tool set will cover the capabilities of the API. There are many use cases for this API, from provisioning and resource management to reporting and even real time call control. This tool will allow access to the API assuming you have been given valid access information in terms of client_id and client_secret and have a user to use.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"27163173","collectionId":"abbd9333-b69a-4b82-b994-29501c2a4320","publishedId":"2s93sabZGp","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"38A6De"},"publishDate":"2024-02-29T20:09:36.000Z"},"item":[{"name":"Authentication","item":[{"name":"Oauth2TokenBased","item":[{"name":"CreateTokenPasswordOauth2","event":[{"listen":"test","script":{"id":"39988c50-7463-400a-a3f0-cb113245457b","exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"access_token\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"expires_in\": {","        \"type\": \"number\",","        \"description\": \"&lt;p&gt;Seconds remaining until token expiration.&lt;\\/p&gt;\"","    },","    \"scope\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Subscriber\\u2019s scope of access. NULL if legacy credentials were validated but legacy window is not active.&lt;\\/p&gt;\"","    },","    \"domain\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Domain of the user.&lt;\\/p&gt;\"","    },","    \"token_type\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Type of token granted.&lt;\\/p&gt;\"","    },","    \"refresh_token\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Oauth refresh token, used to get a new access token.&lt;\\/p&gt;\"","    },","    \"legacy\": {","        \"type\": \"boolean\",","        \"description\": \"&lt;p&gt;Is the responding API in legacy window?&lt;\\/p&gt;\"","    },","    \"legacy_expires_days\": {","        \"type\": \"number\",","        \"description\": \"&lt;p&gt;Days remaining in legacy window, if active.&lt;\\/p&gt;\"","    },","    \"recover\": {","        \"type\": \"boolean\",","        \"description\": \"&lt;p&gt;Was a recovery email dispatched? Returned only if API is not in Legacy window and legacy credentials were validated.&lt;\\/p&gt;\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['oauth2'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}","","var jsonData = JSON.parse(responseBody)","","postman.setEnvironmentVariable(\"access_token\", jsonData.access_token);","","postman.setEnvironmentVariable(\"refresh_token\", jsonData.refresh_token);",""],"type":"text/javascript"}},{"listen":"prerequest","script":{"id":"7fd8fdb4-892b-494e-8451-1363c94dd2bf","exec":[""],"type":"text/javascript"}}],"id":"274c6862-cd4d-4977-997b-1b1f8c1fa8b2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","description":"<p>json or xml</p>\n","type":"text"},{"key":"grant_type","value":"{{grant_type}}","description":"<p>password or access_token</p>\n","type":"text"},{"key":"client_id","value":"{{client_id}}","type":"text"},{"key":"client_secret","value":"{{client_secret}}","type":"text"},{"key":"username","value":"{{username}}","description":"<p>username 111@domain</p>\n","type":"text"},{"key":"password","value":"{{password}}","description":"<p>password</p>\n","type":"text"}]},"url":"https://oclnk.co/oauth2/token/","description":"<p>Generate access token with subscriber credentials</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":["oauth2","token",""],"host":["https://oclnk.co"],"query":[],"variable":[]}},"response":[{"id":"2512baa6-63b1-4c9d-af71-243f3bc9b1f6","name":"CreateTokenPasswordOauth2","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","description":"json or xml","type":"text"},{"key":"grant_type","value":"{{createtokenpasswordoauth2_grant_type}}","description":"password or access_token","type":"text"},{"key":"client_id","value":"{{createtokenpasswordoauth2_client_id}}","type":"text"},{"key":"client_secret","value":"{{createtokenpasswordoauth2_client_secret}}","type":"text"},{"key":"username","value":"{{createtokenpasswordoauth2_username}}","description":"username 111@domain","type":"text"},{"key":"password","value":"{{createtokenpasswordoauth2_password}}","description":"password","type":"text"}]},"url":"https://oclnk.co/oauth2/token/"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\r\n    \"access_token\": \"TOKEN_HERE\",\r\n    \"apiversion\": \"Version: 43.3.4\",\r\n    \"client_id\": \"jdoe_oclnk_proxy\",\r\n    \"department\": \"Accounting\",\r\n    \"displayName\": \"John Doe\",\r\n    \"domain\": \"onecloud\",\r\n    \"expires_in\": 3600,\r\n    \"group\": \"TelWare\",\r\n    \"login\": \"1234@onecloud\",\r\n    \"refresh_token\": \"REFRESH_TOKEN_HERE\",\r\n    \"scope\": \"Modern User\",\r\n    \"site\": \"Corporate\",\r\n    \"territory\": \"TelWare\",\r\n    \"token_type\": \"Bearer\",\r\n    \"uid\": \"1234@onecloud\",\r\n    \"user\": \"1234\",\r\n    \"user_email\": \"support@onecloud.us\",\r\n    \"username\": \"1234@onecloud\"\r\n}"}],"_postman_id":"274c6862-cd4d-4977-997b-1b1f8c1fa8b2"},{"name":"CreateTokenRefreshOauth2","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"access_token\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"expires_in\": {","        \"type\": \"number\",","        \"description\": \"&lt;p&gt;Seconds remaining until token expiration.&lt;\\/p&gt;\"","    },","    \"scope\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Subscriber\\u2019s scope of access. NULL if legacy credentials were validated but legacy window is not active.&lt;\\/p&gt;\"","    },","    \"domain\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Domain of the user.&lt;\\/p&gt;\"","    },","    \"token_type\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Type of token granted.&lt;\\/p&gt;\"","    },","    \"refresh_token\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Oauth refresh token, used to get a new access token.&lt;\\/p&gt;\"","    },","    \"legacy\": {","        \"type\": \"boolean\",","        \"description\": \"&lt;p&gt;Is the responding API in legacy window?&lt;\\/p&gt;\"","    },","    \"legacy_expires_days\": {","        \"type\": \"number\",","        \"description\": \"&lt;p&gt;Days remaining in legacy window, if active.&lt;\\/p&gt;\"","    },","    \"recover\": {","        \"type\": \"boolean\",","        \"description\": \"&lt;p&gt;Was a recovery email dispatched? Returned only if API is not in Legacy window and legacy credentials were validated.&lt;\\/p&gt;\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['oauth2'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}","","var jsonData = JSON.parse(responseBody)","postman.setEnvironmentVariable(\"access_token\", jsonData.access_token);","postman.setEnvironmentVariable(\"refresh_token\", jsonData.refresh_token);",""],"type":"text/javascript","id":"17099a78-d321-481e-ae7e-43534d7d57df"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"33601ef6-6c11-4529-aa45-bf2f69ac60ae"}}],"id":"42693f31-a39f-4ce5-a6c5-b3bbeaeee071","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","description":"<p>json or xml</p>\n","type":"text"},{"key":"grant_type","value":"refresh_token","description":"<p>password or access_token</p>\n","type":"text"},{"key":"client_id","value":"{{client_id}}","type":"text"},{"key":"client_secret","value":"{{client_secret}}","type":"text"},{"key":"refresh_token","value":"{{refresh_token}}","description":"<p>You can use a valid refresh token or JWT token here t{{refresh_token}} or {{jwt_token}}</p>\n","type":"text"}]},"url":"https://oclnk.co/oauth2/token/","description":"<p>Exchange refresh token for new access token</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":["oauth2","token",""],"host":["https://oclnk.co"],"query":[],"variable":[]}},"response":[{"id":"ba3e0b2b-c3a6-476a-89e1-63d70a489b0c","name":"CreateTokenRefreshOauth2","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","description":"json or xml","type":"text"},{"key":"grant_type","value":"refresh_token","description":"password or access_token","type":"text"},{"key":"client_id","value":"{{client_id}}","type":"text"},{"key":"client_secret","value":"{{client_secret}}","type":"text"},{"key":"refresh_token","value":"{{refresh_token}}","description":"You can use a valid refresh token or JWT token here t{{refresh_token}} or {{jwt_token}}","type":"text"}]},"url":"https://oclnk.co/oauth2/token/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 08 Jun 2023 18:46:03 GMT"},{"key":"Server","value":"Apache/2.4.48 (Ubuntu)"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET, POST,OPTION"},{"key":"Access-Control-Allow-Headers","value":"X-Requested-By,Content-Type,Authorization"},{"key":"X-Powered-By","value":"onecloud"},{"key":"Cache-Control","value":"no-store"},{"key":"Pragma","value":"no-cache"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Length","value":"296"},{"key":"Keep-Alive","value":"timeout=2, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"client_id\": \"lucas_testing\",\n    \"territory\": \"Demo\",\n    \"domain\": \"telware\",\n    \"uid\": \"3101@telware\",\n    \"expires\": \"1686420498\",\n    \"scope\": \"Office Manager\",\n    \"token_type\": \"Bearer\",\n    \"rate_limit\": \"0\",\n    \"login\": \"3101@telware\",\n    \"user_email\": \"support@telware.com\",\n    \"displayName\": \"Lucas King\",\n    \"access_token\": \"ACCESS_TOKEN_HERE\",\n    \"expires_in\": 3600,\n    \"refresh_token\": \"REFRESH_TOKEN_HERE\",\n    \"apiversion\": \"Version: 43.3.5\"\n}"}],"_postman_id":"42693f31-a39f-4ce5-a6c5-b3bbeaeee071"}],"id":"f493c0d5-24c5-476d-a9cf-543cff6e5d28","description":"<p>Token Based authentication using Oauth2 is ideal for server to server communications</p>\n","_postman_id":"f493c0d5-24c5-476d-a9cf-543cff6e5d28","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}}},{"name":"JWT","item":[{"name":"GetUserJWT","event":[{"listen":"prerequest","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;\r","\r","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");\r","\r","tests[\"Has Content-Type\"] = contentTypeHeaderExists;\r","\r","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");\r","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");\r","\r","if (contentIsXml) {\r","    tests[\"Content-Type is text/xml\"] = true;\r","} else if(contentIsJson) {\r","    tests[\"Content-Type is application/json\"] = true;\r","} else {\r","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;\r","}\r","\r","pm.test(\"Valid JSON\", () => {\r","  const jsonData = pm.response.json();\r","  pm.expect(jsonData).to.be.an(\"object\");\r","  pm.expect(jsonData.token).to.be.a(\"string\");\r","  pm.environment.set('jwt_token', jsonData['token']);\r","});\r","\r",""],"type":"text/javascript","id":"d019d8ac-50fc-43f5-97f9-414e1fa96045"}}],"id":"3ffc00bd-6dd3-4f4a-9c21-888bd363a4ac","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{client_id}}"},{"key":"password","value":"{{client_secret}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","description":"<p>json or xml</p>\n","type":"text"},{"key":"grant_type","value":"password","description":"<p>password or access_token</p>\n","type":"text"},{"key":"username","value":"{{username}}","description":"<p>username 111@domain</p>\n","type":"text"},{"key":"password","value":"{{password}}","description":"<p>password</p>\n","type":"text"}]},"url":"https://oclnk.co/oauth2/onecloudJs/","description":"<p>After getting a JWT token decode it and look for <code>\"user_scope\": \"mfa_required\"</code>, if it exists make an additional call with GetUserMfaVerified and the client's one-time password to get validated JWT.</p>\n<p>NOTE: The Response will include a Set-Cookie parameter, its important that you send this cookie as a Header on all subsequent requests using the JWT for authorization. example <code>Cookie: ns-1111-DOMAIN=e03580cb66eb5f54a18b041b4944df15</code></p>\n","urlObject":{"path":["oauth2","onecloudJs",""],"host":["https://oclnk.co"],"query":[],"variable":[]}},"response":[{"id":"ba653881-f211-4de3-8f41-df2ea324cccb","name":"GetUserJWT","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","description":"json or xml","type":"text"},{"key":"grant_type","value":"password","description":"password or access_token","type":"text"},{"key":"username","value":"{{username}}","description":"username 111@domain","type":"text"},{"key":"password","value":"{{password}}","description":"password","type":"text"}]},"url":"https://oclnk.co/oauth2/onecloudJs/"},"_postman_previewlanguage":"Text","header":[{"key":"Set-Cookie","value":"ns-DOMAIN-1111=bnMtRE9NQUlOLTExMTEK; expires=Sat, 29-Apr-2022 19:08:28 GMT; Max-Age=86400; path=/; domain=.myonecloud.com; secure","description":"","type":"text"},{"key":"","value":"","description":"","type":"text"},{"key":"","value":"","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\r\n    \"token\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdWQiOiJucyIsImV4cCI6MTY2Mjc5NTMwOCwiaWF0IjoxNjYyNzA4OTA4LCJpc3MiOiJvY2xuay5jbyIsInN1YiI6IjExMTFAZG9tYWluIiwidGltZV9vdXQiOjg2NDAwMDAwLCJkb21haW4iOiJvbmVjbG91ZCIsInRlcnJpdG9yeSI6IkRlbW8iLCJ1c2VyIjoiMTExMSIsInVzZXJfZW1haWwiOiJ1c2VyQG9uZWNsb3VkLmNvbSIsInVzZXJfc2NvcGUiOiJtZmFfcmVxdWlyZWQiLCJkaXNwbGF5TmFtZSI6IkJvYiIsImRlcGFydG1lbnQiOiJUZWNoIiwibG9naW4iOiIxMTExQGRvbWFpbiIsIm1mYV92ZW5kb3IiOiJnb29nbGUiLCJtZmFfdHlwZSI6ImF1dGhlbnRpY2F0b3IifQ.tYLvoqh4whtiAxM-6nna41mAro2_lE-byQ1AHF0vVzI\"\r\n}"}],"_postman_id":"3ffc00bd-6dd3-4f4a-9c21-888bd363a4ac"},{"name":"GetUserMfaVerifiedJWT","id":"0ec2a722-3f43-4bb0-a14b-426758477124","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{client_id}}"},{"key":"password","value":"{{client_secret}}"}]},"isInherited":false},"method":"POST","header":[{"key":"format","value":"json","type":"text"},{"key":"grant_type","value":"mfa","type":"text"},{"key":"mfa_vendor","value":"google","type":"text"},{"key":"mfa_type","value":"authenticator","type":"text"},{"key":"passcode","value":"","description":"<p>User's One Time Password from Authenticator application</p>\n","type":"text"},{"key":"ns_id_type","value":"subscriber","type":"text"},{"key":"access_token","value":"{{jwt_token}}","type":"text"}],"url":"https://oclnk.co/oauth2/onecloudJs/","description":"<p>After you get a JWT token from GetUserJWT and you decode the token, you make see <code>\"user_scope\": \"mfa_required\"</code> in which case you need to send the token in the request to get through MFA validation.</p>\n","urlObject":{"path":["oauth2","onecloudJs",""],"host":["https://oclnk.co"],"query":[],"variable":[]}},"response":[],"_postman_id":"0ec2a722-3f43-4bb0-a14b-426758477124"},{"name":"GetRefreshedJWT","id":"f9826d0e-c158-4843-805c-2806811d0a6a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{client_id}}"},{"key":"password","value":"{{client_secret}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"formet","value":"json","type":"text"},{"key":"grant_type","value":"refresh_token","type":"text"},{"key":"username","value":"{{username}}","type":"text"},{"key":"refresh_token","value":"{{jwt_token}}","type":"text"}]},"url":"https://oclnk.co/oauth2/onecloudJs/","description":"<p>Get a new JWT token before the last one expires.</p>\n","urlObject":{"path":["oauth2","onecloudJs",""],"host":["https://oclnk.co"],"query":[],"variable":[]}},"response":[],"_postman_id":"f9826d0e-c158-4843-805c-2806811d0a6a"}],"id":"a894a529-f5bf-4ece-857a-e7b4b99adf92","description":"<p>The JWT method of authentication is ideal for user/client to server applications. The JWT token can be used in place of all {{access_token}} variables.</p>\n","_postman_id":"a894a529-f5bf-4ece-857a-e7b4b99adf92","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}}},{"name":"MfaSetup","item":[{"name":"CreateOtpQrCode","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;\r","\r","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");\r","\r","tests[\"Has Content-Type\"] = contentTypeHeaderExists;\r","\r","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");\r","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");\r","\r","if (contentIsXml) {\r","    tests[\"Content-Type is text/xml\"] = true;\r","} else if(contentIsJson) {\r","    tests[\"Content-Type is application/json\"] = true;\r","} else {\r","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;\r","}\r","\r","pm.test(\"Valid JSON\", () => {\r","  const jsonData = pm.response.json();\r","  pm.expect(jsonData).to.be.an(\"object\");\r","  pm.expect(jsonData.secret).to.be.a(\"string\");\r","  pm.expect(jsonData.title).to.be.a(\"string\");\r","  pm.expect(jsonData.applicationName).to.be.a(\"string\");\r","  pm.expect(jsonData.qrCodeUrl).to.be.a(\"string\");\r","  pm.expect(jsonData.apiversion).to.be.a(\"string\");\r","  pm.environment.set('CreateMfaQrCode.secret', jsonData['secret']);\r","});"],"type":"text/javascript","id":"65e5fb75-c896-4dc5-879c-7822b636a4e9"}}],"id":"75a7787b-0ca3-41f7-9a49-6d75534d52cc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"https://oclnk.co/?object=oauth&action=genAuthenticator&format=json&tag={{username}}&title=OneCloud","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"oauth"},{"key":"action","value":"genAuthenticator"},{"key":"format","value":"json"},{"key":"tag","value":"{{username}}"},{"key":"title","value":"OneCloud"}],"variable":[]}},"response":[],"_postman_id":"75a7787b-0ca3-41f7-9a49-6d75534d52cc"},{"name":"EnrollOtpQrCode","event":[{"listen":"prerequest","script":{"exec":["var encodedpw = encodeURIComponent(pm.environment.get(\"password\"));\r","pm.environment.set(\"encoded password\", encodedpw);\r","var encodedun = encodeURIComponent(pm.environment.get(\"username\"));\r","pm.environment.set(\"encoded username\", encodedun);"],"type":"text/javascript","id":"2cd5e08f-9d4f-4e4b-b9a4-0980925b26ff"}},{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;\r","\r","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");\r","\r","tests[\"Has Content-Type\"] = contentTypeHeaderExists;\r","\r","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");\r","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");\r","\r","if (contentIsXml) {\r","    tests[\"Content-Type is text/xml\"] = true;\r","} else if(contentIsJson) {\r","    tests[\"Content-Type is application/json\"] = true;\r","} else {\r","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;\r","}\r","\r","pm.test(\"Valid JSON\", () => {\r","  const jsonData = pm.response.json();\r","  pm.expect(jsonData).to.be.an(\"object\");\r","});"],"type":"text/javascript","id":"1a9077c0-5b62-4081-a250-8e7e6b67b7f6"}}],"id":"1cad0998-4f9b-40db-8a4d-b925524d71a9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"https://oclnk.co/?object=oauth&action=mfaEnroll&ns_id_type=subscriber&mfa_key={{CreateMfaQrCode.secret}}&mfa_vendor=google&mfa_type=authenticator&mfa_passcode={{currentOTP}}&username={{encoded username}}&password={{encoded password}}&ns_id={{encoded username}}","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"oauth"},{"key":"action","value":"mfaEnroll"},{"key":"ns_id_type","value":"subscriber"},{"key":"mfa_key","value":"{{CreateMfaQrCode.secret}}"},{"key":"mfa_vendor","value":"google"},{"key":"mfa_type","value":"authenticator"},{"key":"mfa_passcode","value":"{{currentOTP}}"},{"key":"username","value":"{{encoded username}}"},{"key":"password","value":"{{encoded password}}"},{"key":"ns_id","value":"{{encoded username}}"}],"variable":[]}},"response":[],"_postman_id":"1cad0998-4f9b-40db-8a4d-b925524d71a9"},{"name":"DeleteOtpSecret","id":"259f25dc-0868-4a14-950e-2686f3f324c7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"https://oclnk.co/?object=mfa&action=delete&user={{username}}&domain={{domain}}&currentpassword={{password}}&nsidtype=subscriber&mfavendor=google&mfatype=authenticator&nsid={{username}}","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"mfa"},{"key":"action","value":"delete"},{"key":"user","value":"{{username}}"},{"key":"domain","value":"{{domain}}"},{"key":"currentpassword","value":"{{password}}"},{"key":"nsidtype","value":"subscriber"},{"key":"mfavendor","value":"google"},{"key":"mfatype","value":"authenticator"},{"key":"nsid","value":"{{username}}"}],"variable":[]}},"response":[],"_postman_id":"259f25dc-0868-4a14-950e-2686f3f324c7"}],"id":"afb843d0-fee7-4dce-9c92-eb6fefb3b53e","_postman_id":"afb843d0-fee7-4dce-9c92-eb6fefb3b53e","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}}}],"id":"74e64891-4763-4526-b91c-a5108e1b1f32","_postman_id":"74e64891-4763-4526-b91c-a5108e1b1f32","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}}},{"name":"Address","item":[{"name":"Copy_Endpoint_to_DomainAddress","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['address'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"f33891ff-1677-42cf-800d-d6bba58b62ff"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"d7e1b020-60da-4039-ab30-9d12a0a4f7a1"}}],"id":"32bbd67a-4203-4bc5-b288-51f65ad3d725","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","description":"<p>json or xml</p>\n","type":"text"},{"key":"original_domain","value":"","description":"<p>Domain address is being copied from</p>\n","type":"text"},{"key":"to_domain","value":"","description":"<p>Domain address is being copied to</p>\n","type":"text"},{"key":"original_address_id","value":"","description":"<p>Address id of address being copied</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=address&action=copyEndpoint","description":"<p>Copy Endpoint to Domain</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"address"},{"key":"action","value":"copyEndpoint"}],"variable":[]}},"response":[],"_postman_id":"32bbd67a-4203-4bc5-b288-51f65ad3d725"},{"name":"CountAddress","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"total\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Total number of Addresses in the specified Domain.&lt;\\/p&gt;\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple([jsonData], schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"3fc08482-08da-4247-ba49-7c787392b799"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"ce87f279-bcee-4d47-ac51-7584adf810ac"}}],"id":"0bddadc4-ddfa-4de3-ae57-1e74d0dcc600","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","description":"<p>json or xml</p>\n","type":"text"},{"key":"address_id","value":"","description":"<p>Hash of the address</p>\n","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Identifies Domain from which to count address.</p>\n","type":"text"},{"key":"address_name","value":"","description":"<p>Identifies address_name from which to count addresses.</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=address&action=count","description":"<p>Count Addresses</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"address"},{"key":"action","value":"count"}],"variable":[]}},"response":[{"id":"42cf6345-cb30-4dff-8488-5932be3aa215","name":"CountAddress","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","description":"json or xml","type":"text"},{"key":"address_id","value":"","description":"Hash of the address","type":"text"},{"key":"domain","value":"{{domain}}","description":"Identifies Domain from which to count address.\n\n","type":"text"},{"key":"address_name","value":"","description":"Identifies address_name from which to count addresses.\n\n","type":"text"}]},"url":{"raw":"https://oclnk.co/?object=address&action=count","host":["https://oclnk.co"],"path":[""],"query":[{"key":"object","value":"address"},{"key":"action","value":"count"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 01 Jun 2023 17:42:26 GMT"},{"key":"Server","value":"Apache/2.4.48 (Ubuntu)"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"11"},{"key":"Keep-Alive","value":"timeout=2, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"total\": 2\n}"}],"_postman_id":"0bddadc4-ddfa-4de3-ae57-1e74d0dcc600"},{"name":"CreateAddress","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"d8725ff3-5942-4458-8390-2851ac2da4b8"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"30bd12d2-0274-428c-bbb3-9737333f39cc"}}],"id":"61ea3316-9802-4406-95b6-eb1b64479b3f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","description":"<p>json or xml</p>\n","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Identifies new Address's Domain.</p>\n","type":"text"},{"key":"user","value":"{{user}}","description":"<p>Identifies new Address's user.</p>\n","type":"text"},{"key":"address_name","value":"","description":"<p>A descriptive name of the address being added</p>\n","type":"text"},{"key":"caller_name","value":"","description":"<p>Caller ID Name associated with the address</p>\n","type":"text"},{"key":"address_line_1","value":"","description":"<p>Line 1 of new address</p>\n","type":"text"},{"key":"address_line_2","value":"","description":"<p>Line 2 of new address</p>\n","type":"text"},{"key":"city","value":"","description":"<p>City of new address</p>\n","type":"text"},{"key":"state_code","value":"","description":"<p>State code of new address</p>\n","type":"text"},{"key":"zip","value":"","description":"<p>ZIP code of new address</p>\n","type":"text"},{"key":"country_code","value":"","description":"<p>Country of new address</p>\n","type":"text"},{"key":"public_ip","value":"","type":"text"},{"key":"location","value":"","description":"<p>A more specific, non-validated indicator of location (ie, near the big painting, at the front desk, send office along the west window, etc)</p>\n","type":"text"},{"key":"standardized","value":"","description":"<p>A json object to string set to that has been the validated form of the address (to be sent as the PIDF-LO address)</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=address&action=create","description":"<p>Create an Address</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"address"},{"key":"action","value":"create"}],"variable":[]}},"response":[],"_postman_id":"61ea3316-9802-4406-95b6-eb1b64479b3f"},{"name":"Create_EndpointAddress","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"4a825e36-04a7-4412-90f2-a5afb583acc5"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"70db8e20-474c-4171-b7cc-c7f5449f009c"}}],"id":"864690ad-698f-4429-b385-7ec94681a299","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","description":"<p>json or xml</p>\n","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>domain of address being created</p>\n","type":"text"},{"key":"call_back_number","value":"","description":"<p>Callback number associated with address endpoint</p>\n","type":"text"},{"key":"caller_name","value":"","description":"<p>Caller name associated with address endpoint</p>\n","type":"text"},{"key":"location_id","value":"","description":"<p>Location ID that already exists on carrier side, or will be created with appropriate and valid address input</p>\n","type":"text"},{"key":"carrier","value":"","type":"text"},{"key":"preferred_language","value":"","type":"text","disabled":true},{"key":"house_number","value":"","description":"<p>House number of new endpoint address</p>\n","type":"text","disabled":true},{"key":"street_name","value":"","description":"<p>Street name of new address</p>\n","type":"text","disabled":true},{"key":"street_suffix","value":"","description":"<p>Street suffix of new address</p>\n","type":"text","disabled":true},{"key":"address_line_2","value":"","description":"<p>Line 2 of new address</p>\n","type":"text","disabled":true},{"key":"city","value":"","description":"<p>City of new address</p>\n","type":"text","disabled":true},{"key":"zipcode","value":"","description":"<p>ZIP code of new address</p>\n","type":"text","disabled":true},{"key":"state_code","value":"","description":"<p>Ex: CA, PN, AZ</p>\n","type":"text","disabled":true},{"key":"country","value":"","description":"<p>Accepted values: United States</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=address&action=createAddressEndpoint","description":"<p>Create Address Endpoint</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"address"},{"key":"action","value":"createAddressEndpoint"}],"variable":[]}},"response":[],"_postman_id":"864690ad-698f-4429-b385-7ec94681a299"},{"name":"DeleteAddress","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"d98f23a7-b2fa-49bc-8733-2dc7ad13938e"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"c31a0baa-d1fb-44dd-97fb-34c2d74a8cb9"}}],"id":"ee8b69a9-1874-402c-96a5-6e23505a9dfc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","description":"<p>json or xml</p>\n","type":"text"},{"key":"address_id","value":"","description":"<p>Hash of the address</p>\n","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Identifies Address to delete by Domain.</p>\n","type":"text"},{"key":"address_name","value":"","type":"text"}]},"url":"https://oclnk.co/?object=address&action=delete","description":"<p>Delete Address</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"address"},{"key":"action","value":"delete"}],"variable":[]}},"response":[],"_postman_id":"ee8b69a9-1874-402c-96a5-6e23505a9dfc"},{"name":"Delete_EndpointAddress","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"6fcdf6ec-c638-40ba-be5b-6658cda87c53"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"9b3e1cdb-1aa7-4895-a894-e1da5cbb2bbd"}}],"id":"2d0e5e9c-2dfa-43a6-9674-267228b1b2ed","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","description":"<p>json or xml</p>\n","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Domain of address endpoint to be deleted</p>\n","type":"text"},{"key":"address_id","value":"","description":"<p>This should correspond with the Endpoint ID on the carrier's side</p>\n","type":"text"},{"key":"carrier","value":"","type":"text"}]},"url":"https://oclnk.co/?object=address&action=deleteAddressEndpoint","description":"<p>Delete Address Endpoint</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"address"},{"key":"action","value":"deleteAddressEndpoint"}],"variable":[]}},"response":[],"_postman_id":"2d0e5e9c-2dfa-43a6-9674-267228b1b2ed"},{"name":"DuplicateAddress","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['address'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"be000e13-5701-42ed-af7e-5b11e9bc7b88"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"9f6ae4c9-9b45-4f7b-aa93-fa5dcda75e12"}}],"id":"00a7cd75-bbde-4df7-bdf9-9fe1382d79f8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","description":"<p>json or xml</p>\n","type":"text"},{"key":"address_id","value":"","description":"<p>Hash that is address' id</p>\n","type":"text"},{"key":"user","value":"{{user}}","type":"text"},{"key":"address_name","value":"","description":"<p>Name of duplicated address</p>\n","type":"text"},{"key":"location","value":"","description":"<p>Location description of duplicated address</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=address&action=duplicate","description":"<p>Duplicate an Address</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"address"},{"key":"action","value":"duplicate"}],"variable":[]}},"response":[],"_postman_id":"00a7cd75-bbde-4df7-bdf9-9fe1382d79f8"},{"name":"ReadAddress","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['address'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"263f92ee-df30-47a1-a9c5-2e6eef9c01f3"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"c4315778-8f1f-46cf-bb0b-5645f04ec81e"}}],"id":"a3d593c9-214c-4f8a-b9fb-38ce7c50a495","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"address_id","value":"","description":"<p>ID of address to be read</p>\n","type":"text","disabled":true},{"key":"domain","value":"{{domain}}","description":"<p>Domain from which to read addresses</p>\n","type":"text"},{"key":"user","value":"","description":"<p>User from which to read addresses</p>\n","type":"text","disabled":true},{"key":"address_name","value":"","description":"<p>Descriptive address name</p>\n","type":"text","disabled":true},{"key":"caller_name","value":"","description":"<p>Caller ID Name associated with address</p>\n","type":"text","disabled":true},{"key":"start","value":"","type":"text","disabled":true},{"key":"show_all_personal","value":"","type":"text","disabled":true},{"key":"limit","value":"","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=address&action=read","description":"<p>Read Address</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"description":{"content":"<p>json or xml</p>\n","type":"text/plain"},"key":"object","value":"address"},{"key":"action","value":"read"}],"variable":[]}},"response":[{"id":"857d1b6e-21a8-4df8-9222-d82507b99bc8","name":"ReadAddress","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"address_id","value":"","description":"ID of address to be read","type":"text","disabled":true},{"key":"domain","value":"{{domain}}","description":"Domain from which to read addresses","type":"text"},{"key":"user","value":"","description":"User from which to read addresses","type":"text","disabled":true},{"key":"address_name","value":"","description":"Descriptive address name","type":"text","disabled":true},{"key":"caller_name","value":"","description":"Caller ID Name associated with address","type":"text","disabled":true},{"key":"start","value":"","type":"text","disabled":true},{"key":"show_all_personal","value":"","type":"text","disabled":true},{"key":"limit","value":"","type":"text","disabled":true}]},"url":{"raw":"https://oclnk.co/?object=address&action=read","host":["https://oclnk.co"],"path":[""],"query":[{"key":"object","value":"address","description":"json or xml"},{"key":"action","value":"read"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 08 Jun 2023 17:05:34 GMT"},{"key":"Server","value":"Apache/2.4.48 (Ubuntu)"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Length","value":"715"},{"key":"Keep-Alive","value":"timeout=2, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"address_id\": \"a-6476316b6afea\",\n        \"domain\": \"apidocumentation\",\n        \"user\": \"*\",\n        \"address_name\": \"OneCloud Corporate\",\n        \"caller_name\": \"OneCloud\",\n        \"address_line_1\": \"1824 Industrial Center Cir\",\n        \"address_line_2\": \"\",\n        \"city\": \"Charlotte\",\n        \"state_code\": \"NC\",\n        \"zip\": \"28213\",\n        \"country_code\": \"US\",\n        \"location\": \"\",\n        \"public_ip\": \"74.219.23.50\",\n        \"standardized\": \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?><presence xmlns=\\\"urn:ietf:params:xml:ns:pidf\\\" xmlns:gp=\\\"urn:ietf:params:xml:ns:pidf:geopriv10\\\" xmlns:gbp=\\\"urn:ietf:params:xml:ns:pidf:geopriv10:basicPolicy\\\" xmlns:cl=\\\"urn:ietf:params:xml:ns:pidf:geopriv10:civicAddr\\\" xmlns:gml=\\\"http://www.opengis.net/gml\\\" xmlns:dm=\\\"urn:ietf:params:xml:ns:pidf:data-model\\\" entity=\\\"pres:e-cfcs@911.inteliquent.net\\\"> <tuple id=\\\"c5320ea4a6e846069344c526db2b33ae\\\"> <timestamp>2023-05-30T17:30:51+0000</timestamp> <status> <gp:geopriv> <gp:location-info> <cl:civicAddress><cl:country>US</cl:country><cl:a1>NC</cl:a1><cl:a3>Charlotte</cl:a3><cl:rd>Industrial Center</cl:rd><cl:sts>Cir</cl:sts><cl:hno>1824</cl:hno><cl:loc></cl:loc><cl:nam>OneCloud Corporate</cl:nam><cl:pc>28213</cl:pc></cl:civicAddress></gp:location-info> <gp:usage-rules> <gp:retransmission-allowed>yes</gp:retransmission-allowed> <gp:retention-expires/> </gp:usage-rules></gp:geopriv> </status> </tuple></presence>\",\n        \"carrier\": \"inteliquent\",\n        \"sub_count\": 12,\n        \"pretty_print\": \"1824 Industrial Center Cir  \\r\\nCharlotte, NC 28213, US\",\n        \"site_default\": true,\n        \"domain_default\": true\n    }\n]"}],"_postman_id":"a3d593c9-214c-4f8a-b9fb-38ce7c50a495"},{"name":"Read_EndpointsAddress","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"address_id\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Endpoint ID on the carrier side. Use this in order to delete the endpoint.&lt;\\/p&gt;\"","    },","    \"domain\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"address_name\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"caller_name\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"address_line_1\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"address_line_2\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"city\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"state_code\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"zip\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"country_code\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"location\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"public_ip\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"standardized\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"carrier\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Carrier that is associated with the endpoint&lt;\\/p&gt;\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['address'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"c2c751c8-5ee7-4bb7-a26c-8871b6c227d7"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"99892b3e-1935-484c-b366-296089399cfc"}}],"id":"7f7ee7c5-1893-43b5-9e19-2f0e5c2cc5ad","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","description":"<p>json or xml</p>\n","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Domain from which to read endpoints</p>\n","type":"text"},{"key":"carrier","value":"","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=address&action=readAddressEndpoint","description":"<p>Read Address Endpoints</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"address"},{"key":"action","value":"readAddressEndpoint"}],"variable":[]}},"response":[{"id":"7ebef451-035c-4519-8f06-38b73ec27e67","name":"Read_EndpointsAddress","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","description":"json or xml","type":"text"},{"key":"domain","value":"{{domain}}","description":"Domain from which to read endpoints","type":"text"},{"key":"carrier","value":"","type":"text","disabled":true}]},"url":{"raw":"https://oclnk.co/?object=address&action=readAddressEndpoint","host":["https://oclnk.co"],"path":[""],"query":[{"key":"object","value":"address"},{"key":"action","value":"readAddressEndpoint"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 08 Jun 2023 18:23:46 GMT"},{"key":"Server","value":"Apache/2.4.48 (Ubuntu)"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Length","value":"290"},{"key":"Keep-Alive","value":"timeout=2, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"address_id\": \"8009219680\",\n        \"domain\": \"apidocumentation\",\n        \"user\": \"address_endpoint\",\n        \"address_name\": \"OneCloud Corporate\",\n        \"caller_name\": \"OneCloud\",\n        \"address_line_1\": \"1824 Industrial Center Cir\",\n        \"address_line_2\": \"\",\n        \"city\": \"Charlotte\",\n        \"state_code\": \"NC\",\n        \"zip\": \"28213\",\n        \"country_code\": \"US\",\n        \"location\": \"\",\n        \"public_ip\": \"\",\n        \"standardized\": \"\",\n        \"carrier\": \"inteliquent\",\n        \"sub_count\": 11,\n        \"sub_count_total\": 11,\n        \"multiple\": false,\n        \"pretty_print\": \"1824 Industrial Center Cir\\r\\n \\r\\nCharlotte, NC 28213, US\"\n    }\n]"}],"_postman_id":"7f7ee7c5-1893-43b5-9e19-2f0e5c2cc5ad"},{"name":"UpdateAddress","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"68911fbf-f0ee-4190-8ea7-b471c8d78f1c"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"2f5d5f20-c2b9-4555-9589-ed176f3e8bad"}}],"id":"519b0e4f-4103-4c97-b03d-0c4f978dfc55","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","description":"<p>json or xml</p>\n","type":"text"},{"key":"address_id","value":"","description":"<p>Identifies Address's ID to change.</p>\n","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Identifies Address's Domain.</p>\n","type":"text"},{"key":"address_name","value":"","description":"<p>Descriptive name for address</p>\n","type":"text"},{"key":"caller_name","value":"","description":"<p>Caller ID Name associated with address</p>\n","type":"text"},{"key":"address_line_1","value":"","description":"<p>Line 1 of updated address</p>\n","type":"text"},{"key":"address_line_2","value":"","description":"<p>Line 2 of updated address</p>\n","type":"text"},{"key":"city","value":"","description":"<p>City of updated address</p>\n","type":"text"},{"key":"state_code","value":"","description":"<p>State code of updated address (ex. NC, MN, etc.)</p>\n","type":"text"},{"key":"zip","value":"","description":"<p>ZIP code of updated address</p>\n","type":"text"},{"key":"country_code","value":"","description":"<p>Country Code of updated address</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=address&action=update","description":"<p>Update Address</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"address"},{"key":"action","value":"update"}],"variable":[]}},"response":[],"_postman_id":"519b0e4f-4103-4c97-b03d-0c4f978dfc55"},{"name":"Update_User_EndpointsAddress","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['address'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"9d5a45d6-659b-4f68-adb7-49c6132410e5"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"bd99950f-c6a8-445c-985b-565f468db180"}}],"id":"abe8a117-fc51-4c21-b5a2-fafc9945c5a4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","description":"<p>json or xml</p>\n","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Identifies Address's Domain.</p>\n","type":"text"},{"key":"site","value":"{{site}}","description":"<p>Site associated with updated endpoint address</p>\n","type":"text"},{"key":"callid_emgr","value":"","description":"<p>Caller ID number associated with endpoint address</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=address&action=applyEndpoints","description":"<p>Update User Endpoints</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"address"},{"key":"action","value":"applyEndpoints"}],"variable":[]}},"response":[],"_postman_id":"abe8a117-fc51-4c21-b5a2-fafc9945c5a4"},{"name":"ValidateAddress","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['address'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"d3b4939a-bfda-4625-87a3-929b4c8d937d"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"d29b1648-8322-4b4b-b019-833b68367f5d"}}],"id":"6ce15651-0f1c-4e14-905b-e68d9f382c0f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","description":"<p>json or xml</p>\n","type":"text"},{"key":"domain","value":"{{validateaddress_domain}}","description":"<p>Domain for address</p>\n","type":"text"},{"key":"address_name","value":"{{validateaddress_address_name}}","description":"<p>Descriptive name for address</p>\n","type":"text"},{"key":"caller_name","value":"{{validateaddress_caller_name}}","description":"<p>Caller ID Name for address</p>\n","type":"text"},{"key":"address_line_1","value":"{{validateaddress_address_line_1}}","description":"<p>Line 1 of address</p>\n","type":"text"},{"key":"address_line_2","value":"{{validateaddress_address_line_2}}","description":"<p>Line 2 of address</p>\n","type":"text"},{"key":"city","value":"{{validateaddress_city}}","description":"<p>City of address</p>\n","type":"text"},{"key":"state_code","value":"{{validateaddress_state_code}}","description":"<p>State code of updated address (ex. NC, MN, etc.)</p>\n","type":"text"},{"key":"zip","value":"{{validateaddress_zip}}","description":"<p>ZIP code of address</p>\n","type":"text"},{"key":"country_code","value":"{{validateaddress_country_code}}","description":"<p>Country code of address</p>\n","type":"text"},{"key":"address_id","value":"{{validateaddress_address_id}}","description":"<p>Hashed ID of address</p>\n","type":"text"},{"key":"location","value":"{{validateaddress_location}}","description":"<p>A more specific, non-validated indicator of location (ie, near the big painting, at the front desk, send office along the west window, etc)</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=address&action=validate","description":"<p>Validate an Address</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"address"},{"key":"action","value":"validate"}],"variable":[]}},"response":[],"_postman_id":"6ce15651-0f1c-4e14-905b-e68d9f382c0f"}],"id":"74397e43-af5e-49a1-b86d-1ed580f99301","_postman_id":"74397e43-af5e-49a1-b86d-1ed580f99301","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}}},{"name":"Agent","item":[{"name":"CountAgent","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"total\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Number of Agents in the specified Callqueue.&lt;\\/p&gt;\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple([jsonData], schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"9938eae0-c31d-4e65-9151-e135aae8f350"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"eae9a958-9c99-466a-a1a4-63cf5acd863b"}}],"id":"586f2dda-cac6-4f30-9286-09e513426218","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","description":"<p>json or xml</p>\n","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Domain to search</p>\n","type":"text"},{"key":"queue","value":"{{queue}}","description":"<p>Call queue containing the agents to search</p>\n","type":"text"},{"key":"device","value":"{{device}}","description":"<p>Filters Agents to count by their Device.</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=agent&action=count","description":"<p>Count Agents in a Callqueue</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"agent"},{"key":"action","value":"count"}],"variable":[]}},"response":[{"id":"f6d0607a-0b0a-4bcc-90b9-2a8ebf1c8214","name":"CountAgent","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","description":"json or xml","type":"text"},{"key":"domain","value":"{{countagent_domain}}","description":"Domain to search","type":"text"},{"key":"queue","value":"{{countagent_queue}}","description":"Call queue containing the agents to search","type":"text"},{"key":"device","value":"{{countagent_device}}","description":"Filters Agents to count by their Device.","type":"text","disabled":true}]},"url":{"raw":"https://oclnk.co/?object=agent&action=count","host":["https://oclnk.co"],"path":[""],"query":[{"key":"object","value":"agent"},{"key":"action","value":"count"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 30 May 2023 17:24:19 GMT"},{"key":"Server","value":"Apache/2.4.48 (Ubuntu)"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"11"},{"key":"Keep-Alive","value":"timeout=2, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"total\": 5\n}"}],"_postman_id":"586f2dda-cac6-4f30-9286-09e513426218"},{"name":"CreateAgent","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"30786103-04dc-45e6-9c7c-c104d8eee40a"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"44ca4662-e4fb-4699-bbad-83c0b5c4bd2d"}}],"id":"2fed855b-8125-4b9b-9c22-b8828adebc99","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","description":"<p>json or xml</p>\n","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Domain under which to create agent</p>\n","type":"text"},{"key":"queue","value":"{{queue}}","description":"<p>Call queue under which to create agent</p>\n","type":"text"},{"key":"device","value":"{{device}}","description":"<p>User's device to create as agent</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=agent&action=create","description":"<p>Create an Agent in a Callqueue</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"agent"},{"key":"action","value":"create"}],"variable":[]}},"response":[{"id":"8a06e876-150f-47d7-8c6a-a8f855d24d67","name":"CreateAgent","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","description":"json or xml","type":"text"},{"key":"domain","value":"{{domain}}","description":"Domain under which to create agent","type":"text"},{"key":"queue","value":"{{queue}}","description":"Call queue under which to create agent","type":"text"},{"key":"device","value":"{{device}}","description":"User's device to create as agent","type":"text"}]},"url":{"raw":"https://oclnk.co/?object=agent&action=create","host":["https://oclnk.co"],"path":[""],"query":[{"key":"object","value":"agent"},{"key":"action","value":"create"}]}},"status":"Accepted","code":202,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Tue, 30 May 2023 18:24:14 GMT"},{"key":"Server","value":"Apache/2.4.48 (Ubuntu)"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Powered-By","value":"onecloud"},{"key":"Content-Length","value":"0"},{"key":"Keep-Alive","value":"timeout=2, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"text/plain;charset=UTF-8"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"2fed855b-8125-4b9b-9c22-b8828adebc99"},{"name":"DeleteAgent","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"9c24d2a1-3d9e-43cd-bcd7-9f95407ba8bc"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"babc2b26-c524-4ab6-8641-f97fbf864a46"}}],"id":"4b30b5d7-8277-4b0b-a58c-2c7a52dbc90d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","description":"<p>json or xml</p>\n","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Domain under which to delete agent</p>\n","type":"text"},{"key":"queue","value":"{{queue}}","description":"<p>Queue under which to delete agent</p>\n","type":"text"},{"key":"device","value":"{{device}}","description":"<p>Device of agent to be deleted</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=agent&action=delete","description":"<p>Delete Agents in a Callqueue</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"agent"},{"key":"action","value":"delete"}],"variable":[]}},"response":[{"id":"0c31d394-5f89-46f2-a744-18378c551311","name":"DeleteAgent","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","description":"json or xml","type":"text"},{"key":"domain","value":"{{deleteagent_domain}}","description":"Domain under which to delete agent","type":"text"},{"key":"queue","value":"{{deleteagent_queue}}","description":"Queue under which to delete agent","type":"text"},{"key":"device","value":"{{deleteagent_device}}","description":"Device of agent to be deleted","type":"text"}]},"url":{"raw":"https://oclnk.co/?object=agent&action=delete","host":["https://oclnk.co"],"path":[""],"query":[{"key":"object","value":"agent"},{"key":"action","value":"delete"}]}},"status":"Accepted","code":202,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Tue, 30 May 2023 18:24:51 GMT"},{"key":"Server","value":"Apache/2.4.48 (Ubuntu)"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Powered-By","value":"onecloud"},{"key":"Content-Length","value":"0"},{"key":"Keep-Alive","value":"timeout=2, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"text/plain;charset=UTF-8"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"4b30b5d7-8277-4b0b-a58c-2c7a52dbc90d"},{"name":"ReadAgent","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"device_aor\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Device used by Agent&lt;\\/p&gt;\"","    },","    \"huntgroup_name\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;huntgroup\\/callqueue name for the agent&lt;\\/p&gt;\"","    },","    \"huntgroup_domain\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;domain for the agent&lt;\\/p&gt;\"","    },","    \"entry_option\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Login status for the agent&lt;\\/p&gt;\"","    },","    \"wrap_up_sec\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Wrap-up time for Agent in seconds.&lt;\\/p&gt;\"","    },","    \"auto_ans\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Specifies whether or not an Agent auto answers.&lt;\\/p&gt;\"","    },","    \"entry_order\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Entry order for Agent&lt;\\/p&gt;\"","    },","    \"entry_priority\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Entry priority for Agent&lt;\\/p&gt;\"","    },","    \"call_limit\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Agent call limit&lt;\\/p&gt;\"","    },","    \"confirm_required\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Specifies whether agent will confirm required&lt;\\/p&gt;\"","    },","    \"entry_device\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Agent entry device&lt;\\/p&gt;\"","    },","    \"entry_status\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Agent entry status (active status)&lt;\\/p&gt;\"","    },","    \"owner_user\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Agent owner_user&lt;\\/p&gt;\"","    },","    \"owner_domain\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Agent owner_domain&lt;\\/p&gt;\"","    },","    \"session_count\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Agent session count&lt;\\/p&gt;\"","    },","    \"error_info\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Agent error info&lt;\\/p&gt;\"","    },","    \"last_update\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Agent last update&lt;\\/p&gt;\"","    },","    \"device\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Agent device&lt;\\/p&gt;\"","    },","    \"stat\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Agent stat&lt;\\/p&gt;\"","    },","    \"sub_firstname\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Agent subscriber first name&lt;\\/p&gt;\"","    },","    \"sub_lastname\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Agent subscriber last name&lt;\\/p&gt;\"","    },","    \"sub_login\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Agent subscriber login&lt;\\/p&gt;\"","    },","    \"sub_fullname\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Agent subscriber full name&lt;\\/p&gt;\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['agent'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"a920e8a3-2c38-4bb2-a036-23f3a5103f1a"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"f568ce14-84b6-4922-b240-ef97f5344ce6"}}],"id":"76832427-ad41-417a-b3de-35aba25085c6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","description":"<p>json or xml</p>\n","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Domain in which agents reside</p>\n","type":"text"},{"key":"queue_name","value":"{{queue}}","description":"<p>Queue name</p>\n","type":"text"},{"key":"queue_list","value":"","description":"<p>Filter search using a list of Agent queue names. Names should be written separated by commas with no spaces in between.</p>\n","type":"text","disabled":true},{"key":"device","value":"","description":"<p>Filter search by device suffix used by agents</p>\n","type":"text","disabled":true},{"key":"period","value":"","description":"<p>Filter search by lsat time an Agent was updated</p>\n","type":"text","disabled":true},{"key":"stats","value":"","description":"<p>A comma separated list of statistics to return with the list of agents. Example CH,TT,MC</p>\n","type":"text","disabled":true},{"key":"start_date","value":"","description":"<p>Datetime for beginning of query range. Ideal input format: yyyy-mm-dd HH:ii:ss</p>\n","type":"text","disabled":true},{"key":"end_date","value":"","description":"<p>Datetime for end of query range. Ideal input format: yyyy-mm-dd HH:ii:ss</p>\n","type":"text","disabled":true},{"key":"range_interval","value":"","description":"<p>The offset to get to GMT for this users reports. Example \"7 HOUR\" for pdt</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=agent&action=read","description":"<p>Read Agents in a Callqueue</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"agent"},{"key":"action","value":"read"}],"variable":[]}},"response":[{"id":"6c2403cf-ff86-4a94-9fe7-bf22a3b08c11","name":"ReadAgent","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","description":"json or xml","type":"text"},{"key":"domain","value":"{{domain}}","description":"Domain in which agents reside","type":"text"},{"key":"queue_name","value":"{{queue}}","description":"Queue name","type":"text"},{"key":"queue_list","value":"","description":"Filter search using a list of Agent queue names. Names should be written separated by commas with no spaces in between.","type":"text","disabled":true},{"key":"device","value":"","description":"Filter search by device suffix used by agents","type":"text","disabled":true},{"key":"period","value":"","description":"Filter search by lsat time an Agent was updated","type":"text","disabled":true},{"key":"stats","value":"","description":"A comma separated list of statistics to return with the list of agents. Example CH,TT,MC","type":"text","disabled":true},{"key":"start_date","value":"","description":"Datetime for beginning of query range. Ideal input format: yyyy-mm-dd HH:ii:ss","type":"text","disabled":true},{"key":"end_date","value":"","description":"Datetime for end of query range. Ideal input format: yyyy-mm-dd HH:ii:ss","type":"text","disabled":true},{"key":"range_interval","value":"","description":"The offset to get to GMT for this users reports. Example \"7 HOUR\" for pdt","type":"text","disabled":true}]},"url":{"raw":"https://oclnk.co/?object=agent&action=read","host":["https://oclnk.co"],"path":[""],"query":[{"key":"object","value":"agent"},{"key":"action","value":"read"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 30 May 2023 18:27:51 GMT"},{"key":"Server","value":"Apache/2.4.48 (Ubuntu)"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Length","value":"426"},{"key":"Keep-Alive","value":"timeout=2, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"device_aor\": \"1001@apidocumentation\",\n        \"huntgroup_name\": \"8003\",\n        \"huntgroup_domain\": \"apidocumentation\",\n        \"entry_option\": \"immediate\",\n        \"wrap_up_sec\": \"0\",\n        \"auto_ans\": \"no\",\n        \"entry_order\": \"1\",\n        \"entry_priority\": \"0\",\n        \"call_limit\": \"1\",\n        \"confirm_required\": \"no\",\n        \"entry_device\": \"oos\",\n        \"entry_status\": \"unavailable\",\n        \"owner_user\": \"\",\n        \"owner_domain\": \"\",\n        \"session_count\": \"0\",\n        \"error_info\": \"\",\n        \"last_update\": \"2023-05-30 17:51:10\",\n        \"max_sms\": \"0\",\n        \"last_dispatch_ts\": \"0\",\n        \"device\": \"1001\",\n        \"stat\": \"unavailable\",\n        \"sub_user\": \"1001\",\n        \"agent_type\": \"subscriber\",\n        \"sub_domain\": \"apidocumentation\",\n        \"sub_login\": \"1001@apidocumentation\",\n        \"sub_fullname\": \"Cai Guzman\",\n        \"sub_firstname\": \"Cai\",\n        \"sub_lastname\": \"Guzman\",\n        \"sub_group\": \"Billing\",\n        \"sub_site\": \"Corporate\",\n        \"sub_scope\": \"Basic User\",\n        \"sub_portal_status\": \"\"\n    },\n    {\n        \"device_aor\": \"1002@apidocumentation\",\n        \"huntgroup_name\": \"8003\",\n        \"huntgroup_domain\": \"apidocumentation\",\n        \"entry_option\": \"immediate\",\n        \"wrap_up_sec\": \"0\",\n        \"auto_ans\": \"no\",\n        \"entry_order\": \"1\",\n        \"entry_priority\": \"0\",\n        \"call_limit\": \"1\",\n        \"confirm_required\": \"no\",\n        \"entry_device\": \"oos\",\n        \"entry_status\": \"unavailable\",\n        \"owner_user\": \"\",\n        \"owner_domain\": \"\",\n        \"session_count\": \"0\",\n        \"error_info\": \"\",\n        \"last_update\": \"2023-05-30 17:51:10\",\n        \"max_sms\": \"0\",\n        \"last_dispatch_ts\": \"0\",\n        \"device\": \"1002\",\n        \"stat\": \"unavailable\",\n        \"sub_user\": \"1002\",\n        \"agent_type\": \"subscriber\",\n        \"sub_domain\": \"apidocumentation\",\n        \"sub_login\": \"1002@apidocumentation\",\n        \"sub_fullname\": \"Ameer Schultz\",\n        \"sub_firstname\": \"Ameer\",\n        \"sub_lastname\": \"Schultz\",\n        \"sub_group\": \"Billing\",\n        \"sub_site\": \"Corporate\",\n        \"sub_scope\": \"Basic User\",\n        \"sub_portal_status\": \"\"\n    }\n]"}],"_postman_id":"76832427-ad41-417a-b3de-35aba25085c6"},{"name":"UpdateAgent","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"d68a690c-1c7b-42c2-9b4d-84d66f8eb1d8"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"58e4b58a-444a-40cc-9f83-0b96eb99e246"}}],"id":"391ccda7-7677-4383-bf02-99b3e3472f44","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","description":"<p>json or xml</p>\n","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Name of domain containing the Agent(s) to update.</p>\n","type":"text"},{"key":"queue","value":"{{queue}}","description":"<p>Name of Callqueue containing the Agents(s) to update.</p>\n","type":"text"},{"key":"device","value":"{{device}}","description":"<p>Device of Agent to update. If an agent with the specified device does not exist, one will be created.</p>\n","type":"text"},{"key":"huntgroup_name","value":"","description":"<p>New value to update for Agent.</p>\n","type":"text"},{"key":"huntgroup_domain","value":"","description":"<p>New value to update for Agent.</p>\n","type":"text"},{"key":"entry_option","value":"","description":"<p>New value to update for Agent.</p>\n","type":"text"},{"key":"wrap_up_sec","value":"","description":"<p>New value to update for Agent.</p>\n","type":"text"},{"key":"auto_ans","value":"","description":"<p>New value to update for Agent.</p>\n","type":"text"},{"key":"entry_order","value":"","description":"<p>New value to update for Agent.</p>\n","type":"text"},{"key":"entry_priority","value":"","description":"<p>New value to update for Agent.</p>\n","type":"text"},{"key":"call_limit","value":"","description":"<p>New value to update for Agent.</p>\n","type":"text"},{"key":"confirm_required","value":"","description":"<p>New value to update for Agent.</p>\n","type":"text"},{"key":"entry_device","value":"","description":"<p>New value to update for Agent.</p>\n","type":"text"},{"key":"entry_status","value":"","description":"<p>New value to update for Agent.</p>\n","type":"text"},{"key":"owner_user","value":"","description":"<p>New value to update for Agent.</p>\n","type":"text"},{"key":"owner_domain","value":"","description":"<p>New value to update for Agent.</p>\n","type":"text"},{"key":"session_count","value":"","description":"<p>New value to update for Agent.</p>\n","type":"text"},{"key":"error_info","value":"","description":"<p>New value to update for Agent.</p>\n","type":"text"},{"key":"last_update","value":"","description":"<p>New value to update for Agent.</p>\n","type":"text"},{"key":"stat","value":"","description":"<p>New value to update for Agent.</p>\n","type":"text"},{"key":"sub_firstname","value":"","description":"<p>New value to update for Agent.</p>\n","type":"text"},{"key":"sub_lastname","value":"","description":"<p>New value to update for Agent.</p>\n","type":"text"},{"key":"sub_login","value":"","description":"<p>New value to update for Agent.</p>\n","type":"text"},{"key":"sub_fullname","value":"","description":"<p>New value to update for Agent.</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=agent&action=update","description":"<p>Update Agents in a Callqueue</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"agent"},{"key":"action","value":"update"}],"variable":[]}},"response":[{"id":"e427418c-e1b3-4fa7-8b34-b39da05838d3","name":"UpdateAgent","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","description":"json or xml","type":"text"},{"key":"domain","value":"{{domain}}","description":"Name of domain containing the Agent(s) to update.","type":"text"},{"key":"queue","value":"{{queue}}","description":"Name of Callqueue containing the Agents(s) to update.","type":"text"},{"key":"device","value":"{{device}}","description":"Device of Agent to update. If an agent with the specified device does not exist, one will be created.","type":"text"},{"key":"huntgroup_name","value":"8003","description":"New value to update for Agent.","type":"text"},{"key":"huntgroup_domain","value":"apidocumentation","description":"New value to update for Agent.","type":"text"},{"key":"entry_option","value":"immediate","description":"New value to update for Agent.","type":"text"},{"key":"wrap_up_sec","value":"0","description":"New value to update for Agent.","type":"text"},{"key":"auto_ans","value":"no","description":"New value to update for Agent.","type":"text"},{"key":"entry_order","value":"1","description":"New value to update for Agent.","type":"text"},{"key":"entry_priority","value":"0","description":"New value to update for Agent.","type":"text"},{"key":"call_limit","value":"2","description":"New value to update for Agent.","type":"text"},{"key":"confirm_required","value":"no","description":"New value to update for Agent.","type":"text"},{"key":"entry_device","value":"","description":"New value to update for Agent.","type":"text"},{"key":"entry_status","value":"unavailable","description":"New value to update for Agent.","type":"text"},{"key":"owner_user","value":"","description":"New value to update for Agent.","type":"text"},{"key":"owner_domain","value":"","description":"New value to update for Agent.","type":"text"},{"key":"session_count","value":"0","description":"New value to update for Agent.","type":"text"},{"key":"error_info","value":"","description":"New value to update for Agent.","type":"text"},{"key":"last_update","value":"2023-05-30 17:51:10","description":"New value to update for Agent.","type":"text"},{"key":"stat","value":"unavailable","description":"New value to update for Agent.","type":"text"},{"key":"sub_firstname","value":"Cai","description":"New value to update for Agent.","type":"text"},{"key":"sub_lastname","value":"Guzman","description":"New value to update for Agent.","type":"text"},{"key":"sub_login","value":"1001@apidocumentation","description":"New value to update for Agent.","type":"text"},{"key":"sub_fullname","value":"Cai Guzman","description":"New value to update for Agent.","type":"text"}]},"url":{"raw":"https://oclnk.co/?object=agent&action=update","host":["https://oclnk.co"],"path":[""],"query":[{"key":"object","value":"agent"},{"key":"action","value":"update"}]}},"status":"Accepted","code":202,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Tue, 30 May 2023 18:36:51 GMT"},{"key":"Server","value":"Apache/2.4.48 (Ubuntu)"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Powered-By","value":"onecloud"},{"key":"Content-Length","value":"0"},{"key":"Keep-Alive","value":"timeout=2, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"text/plain;charset=UTF-8"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"391ccda7-7677-4383-bf02-99b3e3472f44"},{"name":"UpdateStatusAgent","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"7f46ca6d-8cc1-482e-9913-efbc9bd24690"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"719e314a-c70f-4c4f-93e3-cefacc107c8c"}}],"id":"736e3c6c-42d3-489a-9653-25bdf259c5f8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","description":"<p>json or xml</p>\n","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Name of domain containing the Agent(s) to update.</p>\n","type":"text"},{"key":"queue","value":"{{queue}}","description":"<p>Name of a Callqueue containing the Agents(s) to update.</p>\n","type":"text"},{"key":"device","value":"{{device}}","description":"<p>Device of Agent to update. If an agent with the specified device does not exist, one will be created.</p>\n","type":"text"},{"key":"entry_action","value":"","description":"<p>A new action requesting the status change of a agent. make_im is equivalent to \"log in to all queue\". make_av is equivalent to \"make available in all queues for 1 call\", \"make_ma\" is \"Log out of all queues\", \"update\" will request the core switch to reprocess the specific status of the requested queue, useful if needing to log into only 1 queue</p>\n<p>Allowed values: \"make_im\", \"make_av\", \"make_ma\", \"update\"</p>\n","type":"text"},{"key":"entry_option","value":"","description":"<p>Used to set a entry or login status for the device in a queue. Only needed when using \"update\" or \"make_av\" for entry_action</p>\n<p>Allowed values: \"immediate\", \"available\", \"manual\"</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=agent&action=update","description":"<p>Change status of Agent in a Callqueue</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"agent"},{"key":"action","value":"update"}],"variable":[]}},"response":[{"id":"a4339a8f-e51a-4106-ad2e-a9501a3abbb5","name":"UpdateStatusAgent","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","description":"json or xml","type":"text"},{"key":"domain","value":"{{domain}}","description":"Name of domain containing the Agent(s) to update.\n\n","type":"text"},{"key":"queue","value":"{{queue}}","description":"Name of a Callqueue containing the Agents(s) to update.","type":"text"},{"key":"device","value":"{{device}}","description":"Device of Agent to update. If an agent with the specified device does not exist, one will be created.","type":"text"},{"key":"entry_action","value":"","description":"A new action requesting the status change of a agent. make_im is equivalent to \"log in to all queue\". make_av is equivalent to \"make available in all queues for 1 call\", \"make_ma\" is \"Log out of all queues\", \"update\" will request the core switch to reprocess the specific status of the requested queue, useful if needing to log into only 1 queue\n\nAllowed values: \"make_im\", \"make_av\", \"make_ma\", \"update\"","type":"text"},{"key":"entry_option","value":"","description":"Used to set a entry or login status for the device in a queue. Only needed when using \"update\" or \"make_av\" for entry_action\n\nAllowed values: \"immediate\", \"available\", \"manual\"","type":"text","disabled":true}]},"url":{"raw":"https://oclnk.co/?object=agent&action=update","host":["https://oclnk.co"],"path":[""],"query":[{"key":"object","value":"agent"},{"key":"action","value":"update"}]}},"status":"Accepted","code":202,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Tue, 30 May 2023 18:39:04 GMT"},{"key":"Server","value":"Apache/2.4.48 (Ubuntu)"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Powered-By","value":"onecloud"},{"key":"Content-Length","value":"0"},{"key":"Keep-Alive","value":"timeout=2, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"text/plain;charset=UTF-8"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"736e3c6c-42d3-489a-9653-25bdf259c5f8"}],"id":"1b992893-e85c-4e3a-a1c1-130973693d75","_postman_id":"1b992893-e85c-4e3a-a1c1-130973693d75","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}}},{"name":"Agent_Log","item":[{"name":"CreateAgent_Log","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"96723e2d-17a3-4dd6-a697-3c65ee67729e"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"8f1045dd-f652-4033-a3cc-ed03135ef50e"}}],"id":"d6896cd9-1445-4c88-9316-88d04720483a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","description":"<p>json or xml</p>\n","type":"text"},{"key":"agent","value":"{{createagent_log_agent}}","description":"<p>Identifies Agent for which to create an Agentlog</p>\n","type":"text"},{"key":"user","value":"{{createagent_log_user}}","description":"<p>Identifies the User associated with the Agent.</p>\n","type":"text"},{"key":"domain","value":"{{createagent_log_domain}}","description":"<p>Specifies the Domain containing the User and Agent</p>\n","type":"text"},{"key":"mode","value":"{{createagent_log_mode}}","type":"text"},{"key":"loggedin_sec","value":"{{createagent_log_loggedin_sec}}","type":"text","disabled":true},{"key":"available_sec","value":"{{createagent_log_available_sec}}","type":"text","disabled":true},{"key":"unavailable_sec","value":"{{createagent_log_unavailable_sec}}","type":"text","disabled":true},{"key":"break_sec","value":"{{createagent_log_break_sec}}","type":"text","disabled":true},{"key":"lunch_sec","value":"{{createagent_log_lunch_sec}}","type":"text","disabled":true},{"key":"meeting_sec","value":"{{createagent_log_meeting_sec}}","type":"text","disabled":true},{"key":"other_sec","value":"{{createagent_log_other_sec}}","type":"text","disabled":true},{"key":"acw_sec","value":"{{createagent_log_acw_sec}}","type":"text","disabled":true},{"key":"web_sec","value":"{{createagent_log_web_sec}}","type":"text","disabled":true},{"key":"timestamp","value":"{{createagent_log_timestamp}}","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=agentlog&action=create","description":"<p>Create an Agentlog</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"agentlog"},{"key":"action","value":"create"}],"variable":[]}},"response":[],"_postman_id":"d6896cd9-1445-4c88-9316-88d04720483a"},{"name":"ReadAgent_Log","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"agent\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"domain\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"timestamp\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"mode\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"loggedin_sec\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"available_sec\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"unavailable_sec\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"break_sec\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"lunch_sec\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"meeting_sec\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"other_sec\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"acw_sec\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"web_sec\": {","        \"type\": \"string\",","        \"description\": \"\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['agent_log'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"de7eec33-57f0-448a-81e0-fefa790958c2"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"82670be8-b7bd-4a51-846d-922141a7fd0a"}}],"id":"bc47e4ca-cd4f-40ed-85b2-379cc404ac9f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","description":"<p>json or xml</p>\n","type":"text"},{"key":"domain","value":"apidocumentation","description":"<p>Identifies Domain from which to read Agentlogs.</p>\n","type":"text"},{"key":"find","value":"","type":"text","disabled":true},{"key":"select","value":"","type":"text","disabled":true},{"key":"queue_list","value":"","type":"text","disabled":true},{"key":"queue_name","value":"","type":"text","disabled":true},{"key":"start_date","value":"","description":"<p>Datetime for beginning of query range. Ideal input format: yyyy-mm-dd HH:ii:ss</p>\n","type":"text","disabled":true},{"key":"end_date","value":"","description":"<p>Datetime for end of query range. Ideal input format: yyyy-mm-dd HH:ii:ss</p>\n","type":"text","disabled":true},{"key":"range_interval","value":"","type":"text","disabled":true},{"key":"agent","value":"","type":"text","disabled":true},{"key":"user","value":"","type":"text","disabled":true},{"key":"start","value":"","type":"text","disabled":true},{"key":"limit","value":"","type":"text","disabled":true},{"key":"period","value":"","type":"text","disabled":true},{"key":"department","value":"","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=agentlog&action=read","description":"<p>Read Agent Logs in a Domain</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"agentlog"},{"key":"action","value":"read"}],"variable":[]}},"response":[],"_postman_id":"bc47e4ca-cd4f-40ed-85b2-379cc404ac9f"}],"id":"e5cb841e-324b-4e10-b3ed-406fa4ee040a","_postman_id":"e5cb841e-324b-4e10-b3ed-406fa4ee040a","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}}},{"name":"Answer_Rule","item":[{"name":"CountAnswer_Rule","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"total\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Total number of AnswerRules in the specified domain.&lt;\\/p&gt;\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple([jsonData], schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"674add3d-6cdb-456b-991a-2988f0fb0ecc"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"d1431ebf-57a5-473e-aab9-080a82274324"}}],"id":"a66dd05f-da41-47a7-b53d-e40d01699ffa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","description":"<p>json or xml</p>\n","type":"text"},{"key":"uid","value":"{{uid}}","description":"<p>User ID of user with AnswerRules to count.</p>\n","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Identifies domain containing AnswerRules to count.</p>\n","type":"text","disabled":true},{"key":"user","value":"{{user}}","description":"<p>Identifies user with AnswerRules to count.</p>\n","type":"text","disabled":true},{"key":"time_frame","value":"","description":"<p>Identifies AnswerRules to count by their time frame.</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=answerrule&action=count","description":"<p>Count AnswerRules</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"answerrule"},{"key":"action","value":"count"}],"variable":[]}},"response":[{"id":"edd0c164-10c6-4a4e-8654-577b15c047aa","name":"CountAnswer_Rule","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","description":"json or xml","type":"text"},{"key":"uid","value":"1001@apidocumentation","description":"User ID of user with AnswerRules to count.","type":"text"},{"key":"domain","value":"{{countanswer_rule_domain}}","description":"Identifies domain containing AnswerRules to count.","type":"text","disabled":true},{"key":"user","value":"{{countanswer_rule_user}}","description":"Identifies user with AnswerRules to count.","type":"text","disabled":true},{"key":"time_frame","value":"{{countanswer_rule_time_frame}}","description":"Identifies AnswerRules to count by their time frame.","type":"text","disabled":true}]},"url":{"raw":"https://oclnk.co/?object=answerrule&action=count","host":["https://oclnk.co"],"path":[""],"query":[{"key":"object","value":"answerrule"},{"key":"action","value":"count"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 30 May 2023 18:43:11 GMT"},{"key":"Server","value":"Apache/2.4.48 (Ubuntu)"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"11"},{"key":"Keep-Alive","value":"timeout=2, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"total\": 2\n}"}],"_postman_id":"a66dd05f-da41-47a7-b53d-e40d01699ffa"},{"name":"CreateAnswer_Rule","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"a83544e9-07cb-4de7-8436-cf948b630f03"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"e9470fd7-0054-4d76-91c3-b5c0593e896b"}}],"id":"dd877235-aebb-48a3-be55-24f9bf4a71f8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","description":"<p>json or xml</p>\n","type":"text"},{"key":"time_frame","value":"{{time_frame}}","description":"<p>Specifies time frame for new AnswerRule.</p>\n","type":"text"},{"key":"uid","value":"{{uid}}","description":"<p>Specifies User ID of user for which the AnswerRule applies.</p>\n","type":"text"},{"key":"user","value":"","description":"<p>Specifies user for new AnswerRule.</p>\n","type":"text","disabled":true},{"key":"domain","value":"","description":"<p>Specifies domain for new AnswerRule.</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=answerrule&action=create","description":"<p>Create an AnswerRule</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"answerrule"},{"key":"action","value":"create"}],"variable":[]}},"response":[],"_postman_id":"dd877235-aebb-48a3-be55-24f9bf4a71f8"},{"name":"DeleteAnswer_Rule","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"75d1c82d-4437-40b8-a442-169a86af5ce8"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"93e288f1-a498-465f-a5b0-682f04c3d71e"}}],"id":"80655a39-6612-4c18-9029-5194c99b6f88","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","description":"<p>json or xml</p>\n","type":"text"},{"key":"time_frame","value":"{{time_frame}}","description":"<p>Identifies AnswerRule to delete by time frame.</p>\n","type":"text"},{"key":"uid","value":"{{uid}}","description":"<p>User ID of User with AnswerRule to delete.</p>\n","type":"text","disabled":true},{"key":"user","value":"{{user}}","description":"<p>Identify AnswerRule to delete by User's extension.</p>\n","type":"text","disabled":true},{"key":"domain","value":"{{domain}}","description":"<p>Identify AnswerRule to delete by domain.</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=answerrule&action=delete","description":"<p>Delete an AnswerRule</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"answerrule"},{"key":"action","value":"delete"}],"variable":[]}},"response":[],"_postman_id":"80655a39-6612-4c18-9029-5194c99b6f88"},{"name":"ReadAnswer_Rule","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"domain\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"user\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"first_name\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"last_name\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"subscriber_login\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"pwd\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"pwd_hash\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"group\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"dir\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"email\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"presence\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"message\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"vmail_provisioned\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"vmail_enabled\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"vmail_greeting\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"vmail_notify\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"vmail_annc_time\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"vmail_annc_cid\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"vmail_sort_lifo\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"vmail_transcribe\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"data_limit\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"call_limit\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"dial_plan\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"dial_policy\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"area_code\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"callid_name\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"callid_nmbr\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"callid_emgr\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"no_answer_timeout\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"time_zone\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"dir_anc\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"dir_list\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"date_created\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"scope\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"rej_anony\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"directory_order\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"screen\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"srv_code\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"ntfy_missed_call\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"ntfy_data_limit\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"language\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"gauSession\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"last_update\": {","        \"type\": \"string\",","        \"description\": \"\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['answer_rule'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"287154eb-7d01-4cc4-9b5d-9733a4f6c948"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"1442c5eb-45b9-437f-8277-8947e65e6240"}}],"id":"6faf0c17-2b1a-4a2b-99f7-cc4f7b59de2c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"uid","value":"{{uid}}","description":"<p>Identifies User from which to read AnswerRules by User ID.</p>\n","type":"text"},{"key":"user","value":"","description":"<p>Identifies User from which to read AnswerRules by extension.</p>\n","type":"text","disabled":true},{"key":"domain","value":"{{domain}}","description":"<p>Identifies Users from which to read AnswerRules by domain.</p>\n","type":"text","disabled":true},{"key":"limit","value":"","description":"<p>Sets limit for number of AnswerRules returned.</p>\n","type":"text","disabled":true},{"key":"time_frame","value":"","description":"<p>Displays AnswerRules with the specified time frame.</p>\n","type":"text","disabled":true},{"key":"caller_match","value":"","type":"text","disabled":true},{"key":"for_numbers","value":"","type":"text","disabled":true},{"key":"fna_numbers","value":"","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=answerrule&action=read","description":"<p>Read a User's AnswerRules</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"answerrule"},{"key":"action","value":"read"}],"variable":[]}},"response":[{"id":"b245f563-a39d-4f0d-ac7c-88894671b9a6","name":"ReadAnswer_Rule","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"uid","value":"{{uid}}","description":"Identifies User from which to read AnswerRules by User ID.","type":"text"},{"key":"user","value":"","description":"Identifies User from which to read AnswerRules by extension.","type":"text","disabled":true},{"key":"domain","value":"","description":"Identifies Users from which to read AnswerRules by domain.","type":"text","disabled":true},{"key":"limit","value":"","description":"Sets limit for number of AnswerRules returned.","type":"text","disabled":true},{"key":"time_frame","value":"","description":"Displays AnswerRules with the specified time frame.","type":"text","disabled":true},{"key":"caller_match","value":"","type":"text","disabled":true},{"key":"for_numbers","value":"","type":"text","disabled":true},{"key":"fna_numbers","value":"","type":"text","disabled":true}]},"url":{"raw":"https://oclnk.co/?object=answerrule&action=read","host":["https://oclnk.co"],"path":[""],"query":[{"key":"object","value":"answerrule"},{"key":"action","value":"read"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 30 May 2023 18:47:12 GMT"},{"key":"Server","value":"Apache/2.4.48 (Ubuntu)"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Length","value":"346"},{"key":"Keep-Alive","value":"timeout=2, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"domain\": \"apidocumentation\",\n        \"user\": \"1001\",\n        \"time_frame\": \"Holidays\",\n        \"priority\": \"0\",\n        \"enable\": \"yes\",\n        \"dnd_control\": \"e\",\n        \"fbu_control\": \"d\",\n        \"fbu_parameters\": \"\",\n        \"fna_control\": \"d\",\n        \"fna_parameters\": \"\",\n        \"fnr_control\": \"d\",\n        \"fnr_parameters\": \"\",\n        \"foa_control\": \"d\",\n        \"foa_parameters\": \"\",\n        \"for_control\": \"d\",\n        \"for_parameters\": \"\",\n        \"scr_control\": \"d\",\n        \"sim_control\": \"d\",\n        \"sim_parameters\": \"\",\n        \"time_range_data\": [\n            {\n                \"owner_domain\": \"apidocumentation\",\n                \"owner\": \"*\",\n                \"time_frame\": \"Holidays\",\n                \"order\": \"0\",\n                \"date_from\": \"2023-05-29\",\n                \"date_to\": \"2023-05-29\",\n                \"days\": \"*\",\n                \"tod_from\": \"00:00\",\n                \"tod_to\": \"23:59\",\n                \"invert\": \"no\"\n            },\n            {\n                \"owner_domain\": \"apidocumentation\",\n                \"owner\": \"*\",\n                \"time_frame\": \"Holidays\",\n                \"order\": \"1\",\n                \"date_from\": \"2023-07-04\",\n                \"date_to\": \"2023-07-04\",\n                \"days\": \"*\",\n                \"tod_from\": \"00:00\",\n                \"tod_to\": \"23:59\",\n                \"invert\": \"no\"\n            },\n            {\n                \"owner_domain\": \"apidocumentation\",\n                \"owner\": \"*\",\n                \"time_frame\": \"Holidays\",\n                \"order\": \"2\",\n                \"date_from\": \"2023-09-04\",\n                \"date_to\": \"2023-09-04\",\n                \"days\": \"*\",\n                \"tod_from\": \"00:00\",\n                \"tod_to\": \"23:59\",\n                \"invert\": \"no\"\n            },\n            {\n                \"owner_domain\": \"apidocumentation\",\n                \"owner\": \"*\",\n                \"time_frame\": \"Holidays\",\n                \"order\": \"3\",\n                \"date_from\": \"2023-12-25\",\n                \"date_to\": \"2023-12-25\",\n                \"days\": \"*\",\n                \"tod_from\": \"00:00\",\n                \"tod_to\": \"23:59\",\n                \"invert\": \"no\"\n            }\n        ],\n        \"active\": false\n    },\n    {\n        \"domain\": \"apidocumentation\",\n        \"user\": \"1001\",\n        \"time_frame\": \"*\",\n        \"priority\": \"99\",\n        \"enable\": \"yes\",\n        \"dnd_control\": \"d\",\n        \"fbu_control\": \"d\",\n        \"fbu_parameters\": \"\",\n        \"fna_control\": \"d\",\n        \"fna_parameters\": \"\",\n        \"fnr_control\": \"d\",\n        \"fnr_parameters\": \"\",\n        \"for_control\": \"d\",\n        \"for_parameters\": \"\",\n        \"scr_control\": \"d\",\n        \"sim_control\": \"e\",\n        \"sim_parameters\": \"<OwnDevices> 1001\",\n        \"active\": true\n    }\n]"},{"id":"cf88ad03-45e5-46f5-9c40-3aa2d95a00cb","name":"ReadAnswer_Rule","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"uid","value":"{{uid}}","description":"Identifies User from which to read AnswerRules by User ID.","type":"text"},{"key":"user","value":"","description":"Identifies User from which to read AnswerRules by extension.","type":"text","disabled":true},{"key":"domain","value":"","description":"Identifies Users from which to read AnswerRules by domain.","type":"text","disabled":true},{"key":"limit","value":"","description":"Sets limit for number of AnswerRules returned.","type":"text","disabled":true},{"key":"time_frame","value":"","description":"Displays AnswerRules with the specified time frame.","type":"text","disabled":true},{"key":"caller_match","value":"","type":"text","disabled":true},{"key":"for_numbers","value":"","type":"text","disabled":true},{"key":"fna_numbers","value":"","type":"text","disabled":true}]},"url":{"raw":"https://oclnk.co/?object=answerrule&action=read","host":["https://oclnk.co"],"path":[""],"query":[{"key":"object","value":"answerrule"},{"key":"action","value":"read"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 30 May 2023 18:48:14 GMT"},{"key":"Server","value":"Apache/2.4.48 (Ubuntu)"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Length","value":"346"},{"key":"Keep-Alive","value":"timeout=2, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"domain\": \"apidocumentation\",\n        \"user\": \"1001\",\n        \"time_frame\": \"Holidays\",\n        \"priority\": \"0\",\n        \"enable\": \"yes\",\n        \"dnd_control\": \"e\",\n        \"fbu_control\": \"d\",\n        \"fbu_parameters\": \"\",\n        \"fna_control\": \"d\",\n        \"fna_parameters\": \"\",\n        \"fnr_control\": \"d\",\n        \"fnr_parameters\": \"\",\n        \"foa_control\": \"d\",\n        \"foa_parameters\": \"\",\n        \"for_control\": \"d\",\n        \"for_parameters\": \"\",\n        \"scr_control\": \"d\",\n        \"sim_control\": \"d\",\n        \"sim_parameters\": \"\",\n        \"time_range_data\": [\n            {\n                \"owner_domain\": \"apidocumentation\",\n                \"owner\": \"*\",\n                \"time_frame\": \"Holidays\",\n                \"order\": \"0\",\n                \"date_from\": \"2023-05-29\",\n                \"date_to\": \"2023-05-29\",\n                \"days\": \"*\",\n                \"tod_from\": \"00:00\",\n                \"tod_to\": \"23:59\",\n                \"invert\": \"no\"\n            },\n            {\n                \"owner_domain\": \"apidocumentation\",\n                \"owner\": \"*\",\n                \"time_frame\": \"Holidays\",\n                \"order\": \"1\",\n                \"date_from\": \"2023-07-04\",\n                \"date_to\": \"2023-07-04\",\n                \"days\": \"*\",\n                \"tod_from\": \"00:00\",\n                \"tod_to\": \"23:59\",\n                \"invert\": \"no\"\n            },\n            {\n                \"owner_domain\": \"apidocumentation\",\n                \"owner\": \"*\",\n                \"time_frame\": \"Holidays\",\n                \"order\": \"2\",\n                \"date_from\": \"2023-09-04\",\n                \"date_to\": \"2023-09-04\",\n                \"days\": \"*\",\n                \"tod_from\": \"00:00\",\n                \"tod_to\": \"23:59\",\n                \"invert\": \"no\"\n            },\n            {\n                \"owner_domain\": \"apidocumentation\",\n                \"owner\": \"*\",\n                \"time_frame\": \"Holidays\",\n                \"order\": \"3\",\n                \"date_from\": \"2023-12-25\",\n                \"date_to\": \"2023-12-25\",\n                \"days\": \"*\",\n                \"tod_from\": \"00:00\",\n                \"tod_to\": \"23:59\",\n                \"invert\": \"no\"\n            }\n        ],\n        \"active\": false\n    },\n    {\n        \"domain\": \"apidocumentation\",\n        \"user\": \"1001\",\n        \"time_frame\": \"*\",\n        \"priority\": \"99\",\n        \"enable\": \"yes\",\n        \"dnd_control\": \"d\",\n        \"fbu_control\": \"d\",\n        \"fbu_parameters\": \"\",\n        \"fna_control\": \"d\",\n        \"fna_parameters\": \"\",\n        \"fnr_control\": \"d\",\n        \"fnr_parameters\": \"\",\n        \"for_control\": \"d\",\n        \"for_parameters\": \"\",\n        \"scr_control\": \"d\",\n        \"sim_control\": \"e\",\n        \"sim_parameters\": \"<OwnDevices> 1001\",\n        \"active\": true\n    }\n]"}],"_postman_id":"6faf0c17-2b1a-4a2b-99f7-cc4f7b59de2c"},{"name":"ReorderAnswer_Rule","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['answer_rule'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"668dbc29-df9f-4593-b7b0-8bbc8c258f97"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"6a5628fa-1a23-4b6d-8b87-11c3eb6bc891"}}],"id":"9fea1d45-66f3-4814-8f98-26d467e9f8ce","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","description":"<p>json or xml</p>\n","type":"text"},{"key":"uid","value":"{{uid}}","description":"<p>Identifies AnswerRule to update by User ID of User.</p>\n","type":"text"},{"key":"user","value":"{{user}}","description":"<p>Identifies AnswerRule to update by User Name of User.</p>\n","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Identifies AnswerRule to update by domain.</p>\n","type":"text"},{"key":"priority","value":"{{reorderanswer_rule_priority}}","description":"<p>Coma separated array of time frames in order of priority.</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=answerrule&action=reorder","description":"<p>Reorder AnswerRule</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"answerrule"},{"key":"action","value":"reorder"}],"variable":[]}},"response":[],"_postman_id":"9fea1d45-66f3-4814-8f98-26d467e9f8ce"},{"name":"UpdateAnswer_Rule","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"89c3e734-ebda-4eb0-961d-e31d69a5b971"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"d9e28fcb-111b-45d8-be51-1a6e3e77cb34"}}],"id":"c1946144-46d7-4b42-a71d-01c4304f6879","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","description":"<p>json or xml</p>\n","type":"text"},{"key":"time_frame","value":"{{time_frame}}","description":"<p>Identifies AnswerRule to update by time frame.</p>\n","type":"text"},{"key":"uid","value":"{{uid}}","description":"<p>Identifies AnswerRule to update by User ID of User.</p>\n","type":"text"},{"key":"user","value":"{{user}}","description":"<p>Identifies AnswerRule to update by User Name of User.</p>\n","type":"text","disabled":true},{"key":"domain","value":"{{domain}}","description":"<p>Identifies AnswerRule to update by domain.</p>\n","type":"text","disabled":true},{"key":"rej_parameters","value":"","type":"text","disabled":true},{"key":"rej_control","value":"","type":"text","disabled":true},{"key":"acp_parameters","value":"","type":"text","disabled":true},{"key":"acp_control","value":"","type":"text","disabled":true},{"key":"deletesok","value":"","type":"text","disabled":true},{"key":"enable","value":"","type":"text","disabled":true},{"key":"order","value":"","type":"text","disabled":true},{"key":"first_name","value":"","type":"text","disabled":true},{"key":"last_name","value":"","type":"text","disabled":true},{"key":"subscriber_login","value":"","type":"text","disabled":true},{"key":"pwd","value":"","type":"text","disabled":true},{"key":"pwd_hash","value":"","type":"text","disabled":true},{"key":"group","value":"","type":"text","disabled":true},{"key":"dir","value":"","type":"text","disabled":true},{"key":"email","value":"","type":"text","disabled":true},{"key":"presence","value":"","type":"text","disabled":true},{"key":"vmail_enabled","value":"","type":"text","disabled":true},{"key":"vmail_greeting","value":"","type":"text","disabled":true},{"key":"vmail_notify","value":"","type":"text","disabled":true},{"key":"vmail_annc_cid","value":"","type":"text","disabled":true},{"key":"vmail_sort_lifo","value":"","type":"text","disabled":true},{"key":"vmail_transcribe","value":"","type":"text","disabled":true},{"key":"data_limit","value":"","type":"text","disabled":true},{"key":"call_limit","value":"","type":"text","disabled":true},{"key":"dial_plan","value":"","type":"text","disabled":true},{"key":"dial_policy","value":"","type":"text","disabled":true},{"key":"area_code","value":"","type":"text","disabled":true},{"key":"callid_name","value":"","type":"text","disabled":true},{"key":"callid_nmbr","value":"","type":"text","disabled":true},{"key":"callid_emgr","value":"","type":"text","disabled":true},{"key":"no_answer_timeout","value":"","type":"text","disabled":true},{"key":"time_zone","value":"","type":"text","disabled":true},{"key":"dir_anc","value":"","type":"text","disabled":true},{"key":"dir_list","value":"","type":"text","disabled":true},{"key":"date_created","value":"","type":"text","disabled":true},{"key":"scope","value":"","type":"text","disabled":true},{"key":"rej_anony","value":"","type":"text","disabled":true},{"key":"directory_order","value":"","type":"text","disabled":true},{"key":"screen","value":"","type":"text","disabled":true},{"key":"srv_code","value":"","type":"text","disabled":true},{"key":"ntfy_missed_call","value":"","type":"text","disabled":true},{"key":"ntfy_data_limit","value":"","type":"text","disabled":true},{"key":"language","value":"","type":"text","disabled":true},{"key":"gauSession","value":"","type":"text","disabled":true},{"key":"last_update","value":"","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=answerrule&action=update","description":"<p>Update an AnswerRule</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"answerrule"},{"key":"action","value":"update"}],"variable":[]}},"response":[],"_postman_id":"c1946144-46d7-4b42-a71d-01c4304f6879"}],"id":"13a458c9-3ac8-4f78-9a6f-1cfbb6d1bcde","_postman_id":"13a458c9-3ac8-4f78-9a6f-1cfbb6d1bcde","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}}},{"name":"Audio","item":[{"name":"CountAudio","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"total\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Total number of Audio files in the specified Domain.&lt;\\/p&gt;\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple([jsonData], schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"e29fa203-824c-4d82-bb00-2c67f7f652d9"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"f1504e60-7bc3-4b05-85eb-e0d85c77b4fd"}}],"id":"265e8dfc-fd1d-4727-bdad-443789439616","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","description":"<p>json or xml</p>\n","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Identifies Domain from which to read Audio files.</p>\n","type":"text"},{"key":"user","value":"{{user}}","description":"<p>Identifies the User (by extension) that owns the Audio file to count.</p>\n","type":"text"},{"key":"type","value":"","description":"<p>Allowed values: moh, greeting, vmail/new, vmail/save, trash</p>\n","type":"text"},{"key":"index","value":"","description":"<p>Identifies index of the target type file.</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=audio&action=count","description":"<p>Count Audio files in a Domain</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"audio"},{"key":"action","value":"count"}],"variable":[]}},"response":[{"id":"7cf58342-6ad6-49ed-99e9-5d72d7f438aa","name":"CountAudio","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","description":"json or xml","type":"text"},{"key":"domain","value":"{{domain}}","description":"Identifies Domain from which to read Audio files.","type":"text"},{"key":"user","value":"{{user}}","description":"Identifies the User (by extension) that owns the Audio file to count.","type":"text"},{"key":"type","value":"vmail/new","description":"Allowed values: moh, greeting, vmail/new, vmail/save, trash","type":"text"},{"key":"index","value":"","description":"Identifies index of the target type file.","type":"text","disabled":true}]},"url":{"raw":"https://oclnk.co/?object=audio&action=count","host":["https://oclnk.co"],"path":[""],"query":[{"key":"object","value":"audio"},{"key":"action","value":"count"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 31 May 2023 12:50:48 GMT"},{"key":"Server","value":"Apache/2.4.48 (Ubuntu)"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"24"},{"key":"Keep-Alive","value":"timeout=2, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"count\": 1,\n    \"size\": 35564\n}"}],"_postman_id":"265e8dfc-fd1d-4727-bdad-443789439616"},{"name":"DeleteAudio","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"875a3378-b4ad-4956-bece-8e12329e164e"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"b9839467-0582-49fd-a70b-521a55028142"}}],"id":"1063dc55-0325-4708-b2a7-9565ab5f44ad","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","description":"<p>json or xml</p>\n","type":"text"},{"key":"owner_domain","value":"{{domain}}","description":"<p>Identifies Domain of Audio file to delete.</p>\n","type":"text"},{"key":"index","value":"","description":"<p>Identifies index of the target type file. (note: for voicemails this will typically just be the filename)</p>\n","type":"text"},{"key":"owner","value":"","description":"<p>Identifies User (by extension) that owns the Audio file.</p>\n","type":"text","disabled":true},{"key":"type","value":"","description":"<p>Allowed values: moh, greeting, vmail/new, vmail/save, trash</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=audio&action=delete","description":"<p>Delete an Audio File</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"audio"},{"key":"action","value":"delete"}],"variable":[]}},"response":[],"_postman_id":"1063dc55-0325-4708-b2a7-9565ab5f44ad"},{"name":"Link_DeleteAudio","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['audio'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"1a729130-0ea0-43b5-ae01-691ad5856230"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"6da7a90a-c5f3-4c0b-aca6-c18f720ce22d"}}],"id":"0d9407d1-825a-42e7-b421-737beb6955e1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"owner_domain","value":"{{domain}}","description":"<p>Identifies Domain of Audio file to delete.</p>\n","type":"text"},{"key":"index","value":"","description":"<p>Identifies index of the target type file.</p>\n","type":"text"},{"key":"owner","value":"","description":"<p>Identifies User (by extension) that owns the Audio file.</p>\n","type":"text"},{"key":"type","value":"","description":"<p>Allowed values: moh, greeting, vmail/new, vmail/save, trash</p>\n","type":"text","disabled":true},{"key":"auth","value":"","description":"<p>Auth key</p>\n","type":"text"},{"key":"time","value":"","description":"<p>Auth timestamp</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=audio&action=link_delete","description":"<p>Delete an Audio File via link auth</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"audio"},{"key":"action","value":"link_delete"}],"variable":[]}},"response":[],"_postman_id":"0d9407d1-825a-42e7-b421-737beb6955e1"},{"name":"Link_UpdateAudio","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['audio'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"db0b2f99-b437-488f-ba44-77510ad99d63"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"ad640836-34fd-40c3-8320-d79b98824972"}}],"id":"547e0c07-b38e-4839-b8d5-b19ef3728dee","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"owner_domain","value":"{{domain}}","description":"<p>Identifies Domain of Audio files to update.</p>\n","type":"text"},{"key":"index","value":"{{index}}","description":"<p>index of current file</p>\n","type":"text"},{"key":"owner","value":"{{owner}}","description":"<p>Set new owner for the Audio file. + * @apiParam {String} [owner] owner for the Audio file.</p>\n","type":"text","disabled":true},{"key":"type","value":"{{type}}","description":"<p>Set new owner for the Audio file. + * @apiParam {String} [owner] owner for the Audio file.</p>\n","type":"text","disabled":true},{"key":"auth","value":"{{auth}}","description":"<p>Auth key</p>\n","type":"text"},{"key":"time","value":"{{time}}","description":"<p>Auth timestamp</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=audio&action=link_update","description":"<p>Update an Audio file via link auth</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"audio"},{"key":"action","value":"link_update"}],"variable":[]}},"response":[],"_postman_id":"547e0c07-b38e-4839-b8d5-b19ef3728dee"},{"name":"PlayAudio","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['audio'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"e41178d6-f0c1-4aa0-ae0d-422a5f1c0262"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"a25deb88-3344-444d-bcf8-6097db8763d8"}}],"id":"b1ee5f08-9583-485b-956b-3ab2f37590f1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Identifies Domain from which to read Audio files.</p>\n","type":"text"},{"key":"user","value":"{{user}}","description":"<p>Identifies User (by extension) that owns the Audio files to read.</p>\n","type":"text"},{"key":"type","value":"{{type}}","description":"<p>The type of the audio file</p>\n<p>Allowed values: moh, greeting, vmail, vmail/new, vmail/save, trash</p>\n","type":"text","disabled":true},{"key":"file","value":"","description":"<p>Identifies the filename that owns the Audio files to read.</p>\n","type":"text","disabled":true},{"key":"index","value":"","description":"<p>Identifies index of the target type file.</p>\n","type":"text","disabled":true},{"key":"time","value":"","description":"<p>Time of auth token generation</p>\n","type":"text"},{"key":"auth","value":"","description":"<p>Auth Value</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=audio&action=play","description":"<p>Play/Download Audio files</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"audio"},{"key":"action","value":"play"}],"variable":[]}},"response":[],"_postman_id":"b1ee5f08-9583-485b-956b-3ab2f37590f1"},{"name":"ReadAudio","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['audio'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"7bc9c305-fa10-40cb-b5d3-bace332b3e78"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"90e8d561-d001-488e-809c-570fd988278b"}}],"id":"d2a8ea76-3a8d-491f-92ab-37aff3ad8af3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Identifies Domain from which to read Audio files.</p>\n","type":"text"},{"key":"user","value":"{{user}}","description":"<p>Identifies User (by extension) that owns the Audio files to read.</p>\n","type":"text","disabled":true},{"key":"index","value":"","description":"<p>Identifies index of the target type file.</p>\n","type":"text","disabled":true},{"key":"type","value":"{{type}}","description":"<p>Allowed values: moh, greeting, vmail/new, vmail/save, trash</p>\n","type":"text","disabled":true},{"key":"directurl","value":"","description":"<p>Give a temp direct URL instead of a PHP based URL</p>\n","type":"text","disabled":true},{"key":"fax","value":"","description":"<p>Request for Fax files</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=audio&action=read","description":"<p>Read Audio files in a Domain</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"audio"},{"key":"action","value":"read"}],"variable":[]}},"response":[],"_postman_id":"d2a8ea76-3a8d-491f-92ab-37aff3ad8af3"},{"name":"UpdateAudio","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"620c4988-2505-49ad-93bf-b70cbdcf7750"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"bd561557-3da7-422a-8df5-9ffbc44f7765"}}],"id":"8aad782f-96a4-44a3-bad4-4bbcf7b39b4a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"owner_domain","value":"{{domain}}","description":"<p>Identifies Domain of Audio files to update.</p>\n","type":"text"},{"key":"index","value":"{{index}}","description":"<p>index of current file</p>\n","type":"text"},{"key":"owner","value":"","description":"<p>Set new owner for the Audio file. + * @apiParam {String} [owner] owner for the Audio file.</p>\n","type":"text","disabled":true},{"key":"type","value":"","description":"<p>Sets new type for the Audio file.</p>\n","type":"text","disabled":true},{"key":"script","value":"","description":"<p>Sets script of the recording.</p>\n","type":"text","disabled":true},{"key":"forward","value":"","description":"<p>Allow you to enter another user in the same domain to forward a voicemail to.</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=audio&action=update","description":"<p>Update an Audio file</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"audio"},{"key":"action","value":"update"}],"variable":[]}},"response":[],"_postman_id":"8aad782f-96a4-44a3-bad4-4bbcf7b39b4a"},{"name":"UploadAudio","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['audio'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"ea68e4d3-b584-4529-8731-5b31d1883e81"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"5a8515f5-5b07-4b31-81cd-b2219c536c97"}}],"id":"52e04387-c187-4395-a4fe-44c97f82cd57","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"owner_domain","value":"{{domain}}","description":"<p>Identifies Domain of Audio file to upload.</p>\n","type":"text"},{"key":"owner","value":"{{owner}}","description":"<p>Identifies User (by extension) that owns the file to upload.</p>\n","type":"text"},{"key":"type","value":"{{type}}","description":"<p>Allowed values: moh, greeting, vmail/new, vmail/save, trash</p>\n","type":"text","disabled":true},{"key":"script","value":"{{script}}","description":"<p>Title of the written text that was recorded on this audio file (\"script\" as in play, movie or broadcast semantic meaning).</p>\n","type":"text"},{"key":"file","value":"{{file}}","description":"<p>A file object to upload</p>\n","type":"text"},{"key":"index","value":"{{index}}","description":"<p>Index of the target type file.</p>\n","type":"text"},{"key":"time","value":"","description":"<p>Used mostly for uploads of voicemail, can set the recorded time of the</p>\n","type":"text","disabled":true},{"key":"convert","value":"","description":"<p>Set to \"yes\" to let the API convert the file on upload. Accepted files are wav, mp3 and ogg</p>\n","type":"text","disabled":true},{"key":"FromName","value":"","description":"<p>Used mostly for uploads of voicemail, can you given to set the callerid name for the given vmail</p>\n","type":"text","disabled":true},{"key":"NmsAni","value":"","description":"<p>Used mostly for uploads of voicemail, can you given to set the callerid for the given vmail</p>\n","type":"text","disabled":true},{"key":"NmsRecDuration","value":"","description":"<p>Used mostly for uploads of voicemail, can you given to set duration of recording</p>\n","type":"text","disabled":true},{"key":"RecordTime","value":"","description":"<p>Ability to set the time of a audio files creation. Default will be the system time on the file.</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=audio&action=upload","description":"<p>Upload one Audio file</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"audio"},{"key":"action","value":"upload"}],"variable":[]}},"response":[],"_postman_id":"52e04387-c187-4395-a4fe-44c97f82cd57"}],"id":"08f0acd4-a058-44ed-8632-cab1e21dfd34","_postman_id":"08f0acd4-a058-44ed-8632-cab1e21dfd34","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}}},{"name":"CDR2","item":[{"name":"CountByDomainCDR2","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"total\": {","        \"type\": \"number\",","        \"description\": \"&lt;p&gt;Total number of calls&lt;\\/p&gt;\"","    },","    \"minutes\": {","        \"type\": \"number\",","        \"description\": \"&lt;p&gt;Total number of minutes&lt;\\/p&gt;\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple([jsonData], schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"f41c2fde-4fd3-497f-be23-3246d0aacb03"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"ccc68dd1-150a-4755-a29f-e36c29d16718"}}],"id":"21460790-9b72-4501-ac26-3839ea6bdeb7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"cdr_id","value":"","type":"text","disabled":true},{"key":"start_date","value":"{{start_date}}","description":"<p>Limit search by start date (Y-m-d H:i:s).</p>\n","type":"text"},{"key":"end_date","value":"{{end_date}}","description":"<p>Limit search by end date (Y-m-d H:i:s).</p>\n","type":"text"},{"key":"domain","value":"{{domain}}","type":"text"},{"key":"limit","value":"","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=cdr2&action=count","description":"<p>count CDR by Domain</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"cdr2"},{"key":"action","value":"count"}],"variable":[]}},"response":[{"id":"18355acc-cd8e-47f2-8249-7f8543206bac","name":"CountByDomainCDR2","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"cdr_id","value":"","type":"text","disabled":true},{"key":"start_date","value":"2023-05-30 0:0:0","description":"Limit search by start date (Y-m-d H:i:s).","type":"text"},{"key":"end_date","value":"2023-05-31 23:59:59","description":"Limit search by end date (Y-m-d H:i:s).","type":"text"},{"key":"domain","value":"{{domain}}","type":"text"},{"key":"limit","value":"","type":"text","disabled":true}]},"url":{"raw":"https://oclnk.co/?object=cdr2&action=count","host":["https://oclnk.co"],"path":[""],"query":[{"key":"object","value":"cdr2"},{"key":"action","value":"count"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 31 May 2023 13:23:26 GMT"},{"key":"Server","value":"Apache/2.4.48 (Ubuntu)"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"36"},{"key":"Keep-Alive","value":"timeout=2, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"total\": 3,\n    \"minutes\": 1,\n    \"seconds\": 42\n}"}],"_postman_id":"21460790-9b72-4501-ac26-3839ea6bdeb7"},{"name":"CountByGroupCDR2","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"total\": {","        \"type\": \"number\",","        \"description\": \"&lt;p&gt;Total number of calls&lt;\\/p&gt;\"","    },","    \"minutes\": {","        \"type\": \"number\",","        \"description\": \"&lt;p&gt;Total number of minutes&lt;\\/p&gt;\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple([jsonData], schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"23e7560e-ffe6-4a67-b996-5b2c451531e1"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"43b49bab-d1e4-467b-bca7-8faa13304087"}}],"id":"0f7d0285-693d-4db7-8285-395059a9a812","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"start_date","value":"{{start_date}}","description":"<p>Limit search by start date (Y-m-d H:i:s).</p>\n","type":"text"},{"key":"end_date","value":"{{end_date}}","description":"<p>Limit search by end date (Y-m-d H:i:s).</p>\n","type":"text"},{"key":"limit","value":"","type":"text","disabled":true},{"key":"orig_from_uri","value":"","type":"text"},{"key":"orig_to_user","value":"","type":"text","disabled":true},{"key":"group","value":"","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=cdr2&action=count","description":"<p>count CDR by Group</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"cdr2"},{"key":"action","value":"count"}],"variable":[]}},"response":[{"id":"55545750-8e47-49a7-8ad0-57a07bffdc37","name":"CountByGroupCDR2","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"start_date","value":"2023-05-30 0:0:0","description":"Limit search by start date (Y-m-d H:i:s).","type":"text"},{"key":"end_date","value":"2023-05-31 23:59:59","description":"Limit search by end date (Y-m-d H:i:s).","type":"text"},{"key":"limit","value":"","type":"text","disabled":true},{"key":"orig_from_uri","value":"","type":"text"},{"key":"orig_to_user","value":"","type":"text","disabled":true},{"key":"group","value":"","type":"text","disabled":true}]},"url":{"raw":"https://oclnk.co/?object=cdr2&action=count","host":["https://oclnk.co"],"path":[""],"query":[{"key":"object","value":"cdr2"},{"key":"action","value":"count"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 31 May 2023 13:24:51 GMT"},{"key":"Server","value":"Apache/2.4.48 (Ubuntu)"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"35"},{"key":"Keep-Alive","value":"timeout=2, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"total\": 0,\n    \"minutes\": 0,\n    \"seconds\": 0\n}"}],"_postman_id":"0f7d0285-693d-4db7-8285-395059a9a812"},{"name":"CountByTerritoryCDR2","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"total\": {","        \"type\": \"number\",","        \"description\": \"&lt;p&gt;Total number of calls&lt;\\/p&gt;\"","    },","    \"minutes\": {","        \"type\": \"number\",","        \"description\": \"&lt;p&gt;Total number of minutes&lt;\\/p&gt;\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple([jsonData], schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"ce0b7916-18c6-477c-bf80-ceded79b1e1d"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"32296472-0c20-48ba-95e1-229bd4e5444f"}}],"id":"0e07ef27-2063-420c-a387-da7813b2d066","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"start_date","value":"{{start_date}}","description":"<p>Limit search by start date (Y-m-d H:i:s).</p>\n","type":"text"},{"key":"end_date","value":"{{end_date}}","description":"<p>Limit search by end date (Y-m-d H:i:s).</p>\n","type":"text"},{"key":"territory","value":"{{territory}}","description":"<p>Identifies territory for which to Report CDRs.</p>\n","type":"text"},{"key":"cdr_id","value":"","type":"text","disabled":true},{"key":"limit","value":"","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=cdr2&action=count","description":"<p>count CDR by Territory</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"cdr2"},{"key":"action","value":"count"}],"variable":[]}},"response":[{"id":"4ba55656-9bc9-43b7-b4c2-bae72127b628","name":"CountByTerritoryCDR2","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"start_date","value":"{{start_date}}","description":"Limit search by start date (Y-m-d H:i:s).","type":"text"},{"key":"end_date","value":"{{end_date}}","description":"Limit search by end date (Y-m-d H:i:s).","type":"text"},{"key":"territory","value":"{{territory}}","description":"Identifies territory for which to Report CDRs.","type":"text"},{"key":"cdr_id","value":"","type":"text","disabled":true},{"key":"limit","value":"","type":"text","disabled":true}]},"url":{"raw":"https://oclnk.co/?object=cdr2&action=count","host":["https://oclnk.co"],"path":[""],"query":[{"key":"object","value":"cdr2"},{"key":"action","value":"count"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 31 May 2023 13:33:32 GMT"},{"key":"Server","value":"Apache/2.4.48 (Ubuntu)"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"36"},{"key":"Keep-Alive","value":"timeout=2, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"total\": 3,\n    \"minutes\": 1,\n    \"seconds\": 42\n}"}],"_postman_id":"0e07ef27-2063-420c-a387-da7813b2d066"},{"name":"CountByUserCDR2","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"total\": {","        \"type\": \"number\",","        \"description\": \"&lt;p&gt;Total number of calls&lt;\\/p&gt;\"","    },","    \"minutes\": {","        \"type\": \"number\",","        \"description\": \"&lt;p&gt;Total number of minutes&lt;\\/p&gt;\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple([jsonData], schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"e4746e0d-24a5-4d3e-b295-a9ec2c1fde34"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"7ded9919-6d51-4f43-a1dc-afad5a8574d5"}}],"id":"aaed8a2c-c6a9-428b-8e3e-2e7cd7a932e2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"start_date","value":"{{start_date}}","description":"<p>Limit search by start date (Y-m-d H:i:s).</p>\n","type":"text"},{"key":"end_date","value":"{{end_date}}","description":"<p>Limit search by end date (Y-m-d H:i:s).</p>\n","type":"text"},{"key":"limit","value":"","type":"text","disabled":true},{"key":"uid","value":"{{uid}}","type":"text"},{"key":"name","value":"{{countbyusercdr2_name}}","type":"text","disabled":true},{"key":"number","value":"{{countbyusercdr2_number}}","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=cdr2&action=count","description":"<p>count CDR by User</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"cdr2"},{"key":"action","value":"count"}],"variable":[]}},"response":[{"id":"4b507543-c38c-45ee-866b-dbe185e82335","name":"CountByUserCDR2","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"start_date","value":"{{start_date}}","description":"Limit search by start date (Y-m-d H:i:s).","type":"text"},{"key":"end_date","value":"{{end_date}}","description":"Limit search by end date (Y-m-d H:i:s).","type":"text"},{"key":"limit","value":"","type":"text","disabled":true},{"key":"uid","value":"{{uid}}","type":"text"},{"key":"name","value":"{{countbyusercdr2_name}}","type":"text","disabled":true},{"key":"number","value":"{{countbyusercdr2_number}}","type":"text","disabled":true}]},"url":{"raw":"https://oclnk.co/?object=cdr2&action=count","host":["https://oclnk.co"],"path":[""],"query":[{"key":"object","value":"cdr2"},{"key":"action","value":"count"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 31 May 2023 13:35:25 GMT"},{"key":"Server","value":"Apache/2.4.48 (Ubuntu)"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"36"},{"key":"Keep-Alive","value":"timeout=2, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"total\": 3,\n    \"minutes\": 1,\n    \"seconds\": 42\n}"}],"_postman_id":"aaed8a2c-c6a9-428b-8e3e-2e7cd7a932e2"},{"name":"OptimizeCdrsCDR2","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"domain\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;The domain owning the cdr.&lt;\\/p&gt;\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['cdr2'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"id":"0a50c30a-0704-4d44-856a-cf7fcc8585d4"}},{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"6112167a-c7b2-40f8-8018-9b104d8ec2f8"}}],"id":"45ba517c-d013-4db5-8ca5-7dba964c6fc0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"}]},"url":"https://oclnk.co/?object=cdr2&action=optimize","description":"<p>Optimize CDRs that are older than a certain date</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"cdr2"},{"key":"action","value":"optimize"}],"variable":[]}},"response":[],"_postman_id":"45ba517c-d013-4db5-8ca5-7dba964c6fc0"},{"name":"PurgeCdrsCDR2","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"domain\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;The domain owning the cdr.&lt;\\/p&gt;\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['cdr2'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"id":"80bf2ad2-de99-43ec-86ff-7f8215fec6ea"}},{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"e27a582e-2a02-4345-ad75-04d4ea9474c9"}}],"id":"7d3862b5-758c-4bfa-badc-845d62d005fc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"}]},"url":"https://oclnk.co/?object=cdr2&action=purge","description":"<p>Purge CDRs that are older than a certain date</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"cdr2"},{"key":"action","value":"purge"}],"variable":[]}},"response":[],"_postman_id":"7d3862b5-758c-4bfa-badc-845d62d005fc"},{"name":"ReadByDomainCDR2","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"domain\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;The domain owning the cdr.&lt;\\/p&gt;\"","    },","    \"territory\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;The Territory\\/Reseller that the domain belongs to.&lt;\\/p&gt;\"","    },","    \"type\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;type  0=Outbound, 1=Inbound, 2=Missed, 3=On-net&lt;\\/p&gt;\"","    },","    \"cdr_id\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;The unique ID that links back to the full CDR.&lt;\\/p&gt;\"","    },","    \"orig_sub\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;The user extension for the orig side of the call. May by null for inbound calls&lt;\\/p&gt;\"","    },","    \"orig_from_uri\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;The callerid for the call.&lt;\\/p&gt;\"","    },","    \"orig_from_name\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;The callerid name for the call.&lt;\\/p&gt;\"","    },","    \"orig_req_uri\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;The dialed number (sip uri) for the call. Should be available both inbound and outbound&lt;\\/p&gt;\"","    },","    \"orig_req_user\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;The dialed number just user for the call. Should be available both inbound and outbound&lt;\\/p&gt;\"","    },","    \"by_sub\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;The user extension for the by side of the call. May by null for calls without a transfer or user feature applied.&lt;\\/p&gt;\"","    },","    \"term_sub\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;The user extension for the term side of the call. May by null for outbound calls&lt;\\/p&gt;\"","    },","    \"term_to_uri\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;The connected termination device or number in full sip uri format&lt;\\/p&gt;\"","    },","    \"time_start\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Unixtimestamp\\/epoch for the start time of the call in GMT&lt;\\/p&gt;\"","    },","    \"time_answer\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Unixtimestamp\\/epoch for the answer time of the call in GMT&lt;\\/p&gt;\"","    },","    \"time_release\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Unixtimestamp\\/epoch for the end time of the call in GMT&lt;\\/p&gt;\"","    },","    \"duration\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;The duration of the call in seconds&lt;\\/p&gt;\"","    },","    \"time_talking\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;The duration of the call in seconds that was in talking state.&lt;\\/p&gt;\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['cdr2'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"73c2c259-2500-4299-85c7-e2230c8584a4"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"e24a5dd5-b612-47a7-8deb-78b68b25004c"}}],"id":"fddd8ab7-a9af-4a6a-9192-35d19a97cf7c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"cdr_id","value":"","type":"text","disabled":true},{"key":"start_date","value":"{{start_date}}","description":"<p>Limit search by start date (Y-m-d H:i:s).</p>\n","type":"text"},{"key":"end_date","value":"{{end_date}}","description":"<p>Limit search by end date (Y-m-d H:i:s).</p>\n","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Identifies Domain for which to count CDRs.</p>\n","type":"text"},{"key":"limit","value":"","description":"<p>Default value: 100</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=cdr2&action=read","description":"<p>Read CDR by Domain</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"cdr2"},{"key":"action","value":"read"}],"variable":[]}},"response":[{"id":"cc640d68-8d5d-4228-abf6-211b198a6881","name":"ReadByDomainCDR2","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"cdr_id","value":"","type":"text","disabled":true},{"key":"start_date","value":"{{start_date}}","description":"Limit search by start date (Y-m-d H:i:s).","type":"text"},{"key":"end_date","value":"{{end_date}}","description":"Limit search by end date (Y-m-d H:i:s).","type":"text"},{"key":"domain","value":"{{domain}}","description":"Identifies Domain for which to count CDRs.","type":"text"},{"key":"limit","value":"","description":"Default value: 100","type":"text","disabled":true}]},"url":{"raw":"https://oclnk.co/?object=cdr2&action=read","host":["https://oclnk.co"],"path":[""],"query":[{"key":"object","value":"cdr2"},{"key":"action","value":"read"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 31 May 2023 13:38:18 GMT"},{"key":"Server","value":"Apache/2.4.48 (Ubuntu)"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Length","value":"460"},{"key":"Keep-Alive","value":"timeout=2, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"domain\": \"apidocumentation\",\n        \"territory\": \"telware\",\n        \"type\": \"0\",\n        \"cdr_id\": \"1685538914c6d597b06a0d2f28ae19ac4fa30f6137\",\n        \"orig_sub\": \"1002\",\n        \"orig_from_uri\": \"sip:8009219680@apidocumentation\",\n        \"orig_from_name\": \"Ameer Schultz\",\n        \"orig_to_user\": \"9803459422\",\n        \"orig_req_uri\": \"sip:9803459422@apidocumentation\",\n        \"orig_req_user\": \"9803459422\",\n        \"by_sub\": null,\n        \"term_sub\": null,\n        \"term_to_uri\": \"sip:19803459422@apidocumentation\",\n        \"time_start\": \"1685538914\",\n        \"time_answer\": \"1685538921\",\n        \"time_release\": \"1685538947\",\n        \"duration\": \"26\",\n        \"time_talking\": \"26\",\n        \"hide\": \"0\",\n        \"tag\": \"\",\n        \"expected_trace\": true\n    },\n    {\n        \"domain\": \"apidocumentation\",\n        \"territory\": \"telware\",\n        \"type\": \"0\",\n        \"cdr_id\": \"16855388512a010f63f722a0b732e6f3266c094bd5\",\n        \"orig_sub\": \"1002\",\n        \"orig_from_uri\": \"sip:7045551002@apidocumentation\",\n        \"orig_from_name\": \"Ameer Schultz\",\n        \"orig_to_user\": \"9803459422\",\n        \"orig_req_uri\": \"sip:9803459422@apidocumentation\",\n        \"orig_req_user\": \"9803459422\",\n        \"by_sub\": null,\n        \"term_sub\": null,\n        \"term_to_uri\": \"sip:19803459422@apidocumentation\",\n        \"time_start\": \"1685538851\",\n        \"time_answer\": null,\n        \"time_release\": \"1685538852\",\n        \"duration\": \"0\",\n        \"time_talking\": \"0\",\n        \"hide\": \"0\",\n        \"tag\": \"\",\n        \"expected_trace\": true\n    },\n    {\n        \"domain\": \"apidocumentation\",\n        \"territory\": \"telware\",\n        \"type\": \"3\",\n        \"cdr_id\": \"16855371744fee13abd13d5e0c6b4c6d1afd0702de\",\n        \"orig_sub\": \"1003\",\n        \"orig_from_uri\": \"sip:1003@apidocumentation\",\n        \"orig_from_name\": \"Keanu Wright\",\n        \"orig_to_user\": \"1002\",\n        \"orig_req_uri\": \"sip:1002@apidocumentation\",\n        \"orig_req_user\": \"1002\",\n        \"by_sub\": \"1002\",\n        \"term_sub\": \"1002\",\n        \"term_to_uri\": \"VMail\",\n        \"time_start\": \"1685537174\",\n        \"time_answer\": \"1685537174\",\n        \"time_release\": \"1685537190\",\n        \"duration\": \"16\",\n        \"time_talking\": \"16\",\n        \"hide\": \"0\",\n        \"tag\": \"\",\n        \"expected_trace\": true\n    }\n]"}],"_postman_id":"fddd8ab7-a9af-4a6a-9192-35d19a97cf7c"},{"name":"ReadByGroupCDR2","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"domain\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;The domain owning the cdr.&lt;\\/p&gt;\"","    },","    \"grp\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;The group name that owns the call.&lt;\\/p&gt;\"","    },","    \"grp_type\": {","        \"type\": \"number\",","        \"description\": \"&lt;p&gt;0=department 1=Site&lt;\\/p&gt;\"","    },","    \"type\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;type  0=Outbound, 1=Inbound, 2=Missed, 3=On-net&lt;\\/p&gt;\"","    },","    \"cdr_id\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;The unique ID that links back to the full CDR.&lt;\\/p&gt;\"","    },","    \"orig_sub\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;The user extension for the orig side of the call. May by null for inbound calls&lt;\\/p&gt;\"","    },","    \"orig_from_uri\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;The callerid for the call.&lt;\\/p&gt;\"","    },","    \"orig_from_name\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;The callerid name for the call.&lt;\\/p&gt;\"","    },","    \"orig_req_uri\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;The dialed number (sip uri) for the call. Should be available both inbound and outbound&lt;\\/p&gt;\"","    },","    \"orig_req_user\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;The dialed number just user for the call. Should be available both inbound and outbound&lt;\\/p&gt;\"","    },","    \"by_sub\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;The user extension for the by side of the call. May by null for calls without a transfer or user feature applied.&lt;\\/p&gt;\"","    },","    \"term_sub\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;The user extension for the term side of the call. May by null for outbound calls&lt;\\/p&gt;\"","    },","    \"term_to_uri\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;The connected termination device or number in full sip uri format&lt;\\/p&gt;\"","    },","    \"time_start\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Unixtimestamp\\/epoch for the start time of the call in GMT&lt;\\/p&gt;\"","    },","    \"time_answer\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Unixtimestamp\\/epoch for the answer time of the call in GMT&lt;\\/p&gt;\"","    },","    \"time_release\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Unixtimestamp\\/epoch for the end time of the call in GMT&lt;\\/p&gt;\"","    },","    \"duration\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;The duration of the call in seconds&lt;\\/p&gt;\"","    },","    \"time_talking\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;The duration of the call in seconds that was in talking state.&lt;\\/p&gt;\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['cdr2'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"deee6ab6-93cf-49f0-82be-251102e52719"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"f051caab-d241-43b4-960a-6b24477e2e8f"}}],"id":"911a1b9a-45c2-41cc-884a-42d6ea5cc508","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Identifies domain for which to read CDRs.</p>\n","type":"text"},{"key":"group","value":"{{group}}","description":"<p>The group (dept or site) the cdr belongs to</p>\n","type":"text"},{"key":"start_date","value":"{{start_date}}","description":"<p>Limit search by start date (Y-m-d H:i:s).</p>\n","type":"text"},{"key":"end_date","value":"{{end_date}}","description":"<p>Limit search by end date (Y-m-d H:i:s).</p>\n","type":"text"},{"key":"limit","value":"","description":"<p>Default value: 100</p>\n","type":"text","disabled":true},{"key":"orig_from_uri","value":"{{uri}}","type":"text"},{"key":"orig_to_user","value":"","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=cdr2&action=read","description":"<p>Read CDR by Group</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"cdr2"},{"key":"action","value":"read"}],"variable":[]}},"response":[{"id":"cc3c2923-d7bb-4b20-b17f-2b40b676d93e","name":"ReadByGroupCDR2","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","description":"Identifies domain for which to read CDRs.","type":"text"},{"key":"group","value":"{{group}}","description":"The group (dept or site) the cdr belongs to","type":"text"},{"key":"start_date","value":"{{start_date}}","description":"Limit search by start date (Y-m-d H:i:s).","type":"text"},{"key":"end_date","value":"{{end_date}}","description":"Limit search by end date (Y-m-d H:i:s).","type":"text"},{"key":"limit","value":"","description":"Default value: 100","type":"text","disabled":true},{"key":"orig_from_uri","value":"{{uri}}","type":"text"},{"key":"orig_to_user","value":"","type":"text","disabled":true}]},"url":{"raw":"https://oclnk.co/?object=cdr2&action=read","host":["https://oclnk.co"],"path":[""],"query":[{"key":"object","value":"cdr2"},{"key":"action","value":"read"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 31 May 2023 13:56:06 GMT"},{"key":"Server","value":"Apache/2.4.48 (Ubuntu)"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Length","value":"295"},{"key":"Keep-Alive","value":"timeout=2, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"domain\": \"apidocumentation\",\n        \"grp\": \"Billing\",\n        \"grp_type\": \"0\",\n        \"type\": \"0\",\n        \"cdr_id\": \"1685538914c6d597b06a0d2f28ae19ac4fa30f6137\",\n        \"orig_sub\": \"1002\",\n        \"orig_from_uri\": \"sip:8009219680@apidocumentation\",\n        \"orig_from_name\": \"Ameer Schultz\",\n        \"orig_to_user\": \"9803459422\",\n        \"orig_req_uri\": \"sip:9803459422@apidocumentation\",\n        \"orig_req_user\": \"9803459422\",\n        \"by_sub\": null,\n        \"term_sub\": null,\n        \"term_to_uri\": \"sip:19803459422@apidocumentation\",\n        \"time_start\": \"1685538914\",\n        \"time_answer\": \"1685538921\",\n        \"time_release\": \"1685538947\",\n        \"duration\": \"26\",\n        \"time_talking\": \"26\",\n        \"hide\": \"0\",\n        \"tag\": \"\",\n        \"expected_trace\": true\n    }\n]"}],"_postman_id":"911a1b9a-45c2-41cc-884a-42d6ea5cc508"},{"name":"ReadByIdCDR2","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"id\": {","        \"type\": \"number\",","        \"description\": \"\"","    },","    \"hostname\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"mac\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"cdr_index\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"orig_callid\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"orig_ip\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"orig_match\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"orig_sub\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"orig_domain\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"orig_group\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"orig_from_uri\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"orig_from_name\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"orig_from_user\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"orig_from_host\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"orig_req_uri\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"orig_req_user\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"orig_req_host\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"orig_to_uri\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"orig_to_user\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"orig_to_host\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"by_action\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"by_sub\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"by_domain\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"by_group\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"by_uri\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"by_callid\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"term_callid\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"term_ip\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"term_match\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"term_sub\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"term_domain\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"term_to_uri\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"term_group\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"time_start\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"time_ringing\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"time_answer\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"time_release\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"time_talking\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"time_holding\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"duration\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"time_insert\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"time_disp\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"release_code\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"release_text\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"codec\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"rly_prt_0\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"rly_prt_a\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"rly_prt_b\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"rly_cnt_a\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"rly_cnt_b\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"image_codec\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"image_prt_0\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"image_prt_a\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"image_prt_b\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"image_cnt_a\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"video_codec\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"video_prt_0\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"image_cnt_b\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"video_prt_a\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"video_prt_b\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"video_cnt_a\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"video_cnt_b\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"disp_type\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"disposition\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"reason\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"notes\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"pac\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"orig_logi_uri\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"term_logi_uri\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"batch_tim_beg\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"batch_tim_ans\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"batch_dura\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"batch_hold\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"term_id\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"orig_id\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"route_to\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"by_id\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"orig_territory\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"orig_site\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"by_site\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"by_territory\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"term_territory\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"term_site\": {","        \"type\": \"string\",","        \"description\": \"\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['cdr2'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"567f51a6-8c38-4287-982e-52d6f7ef8434"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"5feec8c6-8c0e-42f8-b273-ae31f5030407"}}],"id":"36f2e602-cae2-4708-b52e-f24698fe3361","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"start_date","value":"{{start_date}}","description":"<p>Limit search by start date (Y-m-d H:i:s).</p>\n","type":"text"},{"key":"end_date","value":"{{end_date}}","description":"<p>Limit search by end date (Y-m-d H:i:s).</p>\n","type":"text"},{"key":"id","value":"","type":"text"},{"key":"hostname","value":"","type":"text","disabled":true},{"key":"limit","value":"{{readbyidcdr2_limit}}","description":"<p>Default value: 100</p>\n","type":"text","disabled":true},{"key":"orig_callid","value":"{{readbyidcdr2_orig_callid}}","description":"<p>The orig_callid id for a single call which will match the SIP callid</p>\n","type":"text","disabled":true},{"key":"term_callid","value":"{{readbyidcdr2_term_callid}}","description":"<p>The term_callid id for a single call which will match the SIP callid</p>\n","type":"text","disabled":true},{"key":"time_release","value":"{{readbyidcdr2_time_release}}","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=cdr2&action=read","description":"<p>Read CDR by ID</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"cdr2"},{"key":"action","value":"read"}],"variable":[]}},"response":[{"id":"380ec329-1d9d-44c6-8404-a74badbe220d","name":"ReadByIdCDR2","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"start_date","value":"{{start_date}}","description":"Limit search by start date (Y-m-d H:i:s).","type":"text"},{"key":"end_date","value":"{{end_date}}","description":"Limit search by end date (Y-m-d H:i:s).","type":"text"},{"key":"id","value":"1685538914c6d597b06a0d2f28ae19ac4fa30f6137","type":"text"},{"key":"hostname","value":"","type":"text","disabled":true},{"key":"limit","value":"{{readbyidcdr2_limit}}","description":"Default value: 100","type":"text","disabled":true},{"key":"orig_callid","value":"{{readbyidcdr2_orig_callid}}","description":"The orig_callid id for a single call which will match the SIP callid","type":"text","disabled":true},{"key":"term_callid","value":"{{readbyidcdr2_term_callid}}","description":"The term_callid id for a single call which will match the SIP callid","type":"text","disabled":true},{"key":"time_release","value":"{{readbyidcdr2_time_release}}","type":"text","disabled":true}]},"url":{"raw":"https://oclnk.co/?object=cdr2&action=read","host":["https://oclnk.co"],"path":[""],"query":[{"key":"object","value":"cdr2"},{"key":"action","value":"read"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 31 May 2023 13:43:21 GMT"},{"key":"Server","value":"Apache/2.4.48 (Ubuntu)"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Length","value":"902"},{"key":"Keep-Alive","value":"timeout=2, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"domain\": \"apidocumentation\",\n        \"territory\": \"telware\",\n        \"type\": \"0\",\n        \"cdr_id\": \"1685538914c6d597b06a0d2f28ae19ac4fa30f6137\",\n        \"orig_sub\": \"1002\",\n        \"orig_from_uri\": \"sip:8009219680@apidocumentation\",\n        \"orig_from_name\": \"Ameer Schultz\",\n        \"orig_to_user\": \"9803459422\",\n        \"orig_req_uri\": \"sip:9803459422@apidocumentation\",\n        \"orig_req_user\": \"9803459422\",\n        \"by_sub\": null,\n        \"term_sub\": null,\n        \"term_to_uri\": \"sip:19803459422@apidocumentation\",\n        \"time_start\": \"1685538914\",\n        \"time_answer\": \"1685538921\",\n        \"time_release\": \"1685538947\",\n        \"duration\": \"26\",\n        \"time_talking\": \"26\",\n        \"hide\": \"0\",\n        \"tag\": \"\",\n        \"CdrR\": {\n            \"id\": \"1685538914c6d597b06a0d2f28ae19ac4fa30f6137\",\n            \"hostname\": \"Sandbox-core1.telware.net\",\n            \"mac\": \"02:D8:CF:FB:38:1B\",\n            \"cdr_index\": \"0\",\n            \"orig_callid\": \"5l3sd4kp99pj90ougthp\",\n            \"orig_ip\": \"74.219.23.50\",\n            \"orig_match\": \"sip:1002wp@apidocumentation\",\n            \"orig_sub\": \"1002\",\n            \"orig_domain\": \"apidocumentation\",\n            \"orig_group\": \"Billing\",\n            \"orig_from_uri\": \"sip:8009219680@apidocumentation\",\n            \"orig_from_name\": \"OneCloud\",\n            \"orig_from_user\": \"8009219680\",\n            \"orig_from_host\": \"apidocumentation\",\n            \"orig_req_uri\": \"sip:9803459422@apidocumentation\",\n            \"orig_req_user\": \"9803459422\",\n            \"orig_req_host\": \"apidocumentation\",\n            \"orig_to_uri\": \"sip:9803459422@apidocumentation\",\n            \"orig_to_user\": \"9803459422\",\n            \"orig_to_host\": \"apidocumentation\",\n            \"by_action\": \"\",\n            \"by_sub\": null,\n            \"by_domain\": null,\n            \"by_group\": null,\n            \"by_uri\": null,\n            \"by_callid\": null,\n            \"term_callid\": \"20230531131514055664-21fcfa0d6d7741cdfffc132a42b85f78\",\n            \"term_ip\": \"18.204.154.1\",\n            \"term_match\": \"sip*@18.204.154.1\",\n            \"term_sub\": null,\n            \"term_domain\": \"*\",\n            \"term_to_uri\": \"sip:+19803459422@206.147.80.57\",\n            \"term_group\": null,\n            \"time_start\": \"1685538914\",\n            \"time_ringing\": \"1685538917\",\n            \"time_answer\": \"1685538921\",\n            \"time_release\": \"1685538947\",\n            \"time_talking\": \"26\",\n            \"time_holding\": \"0\",\n            \"duration\": \"26\",\n            \"time_insert\": null,\n            \"time_disp\": null,\n            \"release_code\": \"end\",\n            \"release_text\": \"Term: Bye\",\n            \"codec\": \"PCMU\",\n            \"rly_prt_0\": \"26220\",\n            \"rly_prt_a\": \"206.147.80.54:16184\",\n            \"rly_prt_b\": \"74.219.23.50:8445\",\n            \"rly_cnt_a\": \"233082\",\n            \"rly_cnt_b\": \"225104\",\n            \"image_codec\": null,\n            \"image_prt_0\": null,\n            \"image_prt_a\": null,\n            \"image_prt_b\": null,\n            \"image_cnt_a\": null,\n            \"image_cnt_b\": null,\n            \"video_codec\": null,\n            \"video_prt_0\": null,\n            \"video_prt_a\": null,\n            \"video_prt_b\": null,\n            \"video_cnt_a\": null,\n            \"video_cnt_b\": null,\n            \"disp_type\": null,\n            \"disposition\": null,\n            \"reason\": null,\n            \"notes\": null,\n            \"pac\": null,\n            \"orig_logi_uri\": \"sip:1002@apidocumentation\",\n            \"term_logi_uri\": \"sip:19803459422@apidocumentation\",\n            \"batch_tim_beg\": \"1685538914\",\n            \"batch_tim_ans\": \"1685538921\",\n            \"batch_hold\": \"0\",\n            \"batch_dura\": \"26\",\n            \"orig_id\": \"8009219680\",\n            \"term_id\": \"19803459422\",\n            \"by_id\": null,\n            \"route_to\": \"sip:1??????????@*\",\n            \"route_class\": \"0\",\n            \"orig_territory\": \"telware\",\n            \"orig_site\": \"Corporate\",\n            \"by_site\": null,\n            \"by_territory\": null,\n            \"term_territory\": null,\n            \"term_site\": null,\n            \"servedCallId\": \"\"\n        },\n        \"expected_trace\": true\n    }\n]"}],"_postman_id":"36f2e602-cae2-4708-b52e-f24698fe3361"},{"name":"ReadByTerritoryCDR2","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"domain\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;The domain owning the cdr.&lt;\\/p&gt;\"","    },","    \"territory\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;The Territory\\/Reseller that the domain belongs to.&lt;\\/p&gt;\"","    },","    \"type\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;type  0=Outbound, 1=Inbound, 2=Missed, 3=On-net&lt;\\/p&gt;\"","    },","    \"cdr_id\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;The unique ID that links back to the full CDR.&lt;\\/p&gt;\"","    },","    \"orig_sub\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;The user extension for the orig side of the call. May by null for inbound calls&lt;\\/p&gt;\"","    },","    \"orig_from_uri\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;The callerid for the call.&lt;\\/p&gt;\"","    },","    \"orig_from_name\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;The callerid name for the call.&lt;\\/p&gt;\"","    },","    \"orig_req_uri\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;The dialed number (sip uri) for the call. Should be available both inbound and outbound&lt;\\/p&gt;\"","    },","    \"orig_req_user\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;The dialed number just user for the call. Should be available both inbound and outbound&lt;\\/p&gt;\"","    },","    \"by_sub\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;The user extension for the by side of the call. May by null for calls without a transfer or user feature applied.&lt;\\/p&gt;\"","    },","    \"term_sub\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;The user extension for the term side of the call. May by null for outbound calls&lt;\\/p&gt;\"","    },","    \"term_to_uri\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;The connected termination device or number in full sip uri format&lt;\\/p&gt;\"","    },","    \"time_start\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Unixtimestamp\\/epoch for the start time of the call in GMT&lt;\\/p&gt;\"","    },","    \"time_answer\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Unixtimestamp\\/epoch for the answer time of the call in GMT&lt;\\/p&gt;\"","    },","    \"time_release\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Unixtimestamp\\/epoch for the end time of the call in GMT&lt;\\/p&gt;\"","    },","    \"duration\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;The duration of the call in seconds&lt;\\/p&gt;\"","    },","    \"time_talking\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;The duration of the call in seconds that was in talking state.&lt;\\/p&gt;\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['cdr2'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"341217ec-099a-4472-8112-8f77bc20b7ad"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"73c4f07a-7a97-4c02-be95-373be54afab8"}}],"id":"6a844972-4400-439a-b9d6-2734cb091c51","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"cdr_id","value":"","type":"text","disabled":true},{"key":"start_date","value":"{{start_date}}","description":"<p>Limit search by start date (Y-m-d H:i:s).</p>\n","type":"text"},{"key":"end_date","value":"{{end_date}}","description":"<p>Limit search by end date (Y-m-d H:i:s).</p>\n","type":"text"},{"key":"territory","value":"{{territory}}","description":"<p>Identifies Territory for which to read CDRs.</p>\n","type":"text"},{"key":"limit","value":"{{limit}}","description":"<p>Default value: 100</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=cdr2&action=read","description":"<p>Read CDR by Territory</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"cdr2"},{"key":"action","value":"read"}],"variable":[]}},"response":[{"id":"ded1ebb4-56ec-4f64-8e4c-3c991af0e606","name":"ReadByTerritoryCDR2","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"cdr_id","value":"","type":"text","disabled":true},{"key":"start_date","value":"{{start_date}}","description":"Limit search by start date (Y-m-d H:i:s).","type":"text"},{"key":"end_date","value":"{{end_date}}","description":"Limit search by end date (Y-m-d H:i:s).","type":"text"},{"key":"territory","value":"{{territory}}","description":"Identifies Territory for which to read CDRs.","type":"text"},{"key":"limit","value":"{{limit}}","description":"Default value: 100","type":"text","disabled":true}]},"url":{"raw":"https://oclnk.co/?object=cdr2&action=read","host":["https://oclnk.co"],"path":[""],"query":[{"key":"object","value":"cdr2"},{"key":"action","value":"read"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 31 May 2023 13:58:23 GMT"},{"key":"Server","value":"Apache/2.4.48 (Ubuntu)"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Length","value":"460"},{"key":"Keep-Alive","value":"timeout=2, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"domain\": \"apidocumentation\",\n        \"territory\": \"telware\",\n        \"type\": \"0\",\n        \"cdr_id\": \"1685538914c6d597b06a0d2f28ae19ac4fa30f6137\",\n        \"orig_sub\": \"1002\",\n        \"orig_from_uri\": \"sip:8009219680@apidocumentation\",\n        \"orig_from_name\": \"Ameer Schultz\",\n        \"orig_to_user\": \"9803459422\",\n        \"orig_req_uri\": \"sip:9803459422@apidocumentation\",\n        \"orig_req_user\": \"9803459422\",\n        \"by_sub\": null,\n        \"term_sub\": null,\n        \"term_to_uri\": \"sip:19803459422@apidocumentation\",\n        \"time_start\": \"1685538914\",\n        \"time_answer\": \"1685538921\",\n        \"time_release\": \"1685538947\",\n        \"duration\": \"26\",\n        \"time_talking\": \"26\",\n        \"hide\": \"0\",\n        \"tag\": \"\",\n        \"expected_trace\": true\n    },\n    {\n        \"domain\": \"apidocumentation\",\n        \"territory\": \"telware\",\n        \"type\": \"0\",\n        \"cdr_id\": \"16855388512a010f63f722a0b732e6f3266c094bd5\",\n        \"orig_sub\": \"1002\",\n        \"orig_from_uri\": \"sip:7045551002@apidocumentation\",\n        \"orig_from_name\": \"Ameer Schultz\",\n        \"orig_to_user\": \"9803459422\",\n        \"orig_req_uri\": \"sip:9803459422@apidocumentation\",\n        \"orig_req_user\": \"9803459422\",\n        \"by_sub\": null,\n        \"term_sub\": null,\n        \"term_to_uri\": \"sip:19803459422@apidocumentation\",\n        \"time_start\": \"1685538851\",\n        \"time_answer\": null,\n        \"time_release\": \"1685538852\",\n        \"duration\": \"0\",\n        \"time_talking\": \"0\",\n        \"hide\": \"0\",\n        \"tag\": \"\",\n        \"expected_trace\": true\n    },\n    {\n        \"domain\": \"apidocumentation\",\n        \"territory\": \"telware\",\n        \"type\": \"3\",\n        \"cdr_id\": \"16855371744fee13abd13d5e0c6b4c6d1afd0702de\",\n        \"orig_sub\": \"1003\",\n        \"orig_from_uri\": \"sip:1003@apidocumentation\",\n        \"orig_from_name\": \"Keanu Wright\",\n        \"orig_to_user\": \"1002\",\n        \"orig_req_uri\": \"sip:1002@apidocumentation\",\n        \"orig_req_user\": \"1002\",\n        \"by_sub\": \"1002\",\n        \"term_sub\": \"1002\",\n        \"term_to_uri\": \"VMail\",\n        \"time_start\": \"1685537174\",\n        \"time_answer\": \"1685537174\",\n        \"time_release\": \"1685537190\",\n        \"duration\": \"16\",\n        \"time_talking\": \"16\",\n        \"hide\": \"0\",\n        \"tag\": \"\",\n        \"expected_trace\": true\n    }\n]"}],"_postman_id":"6a844972-4400-439a-b9d6-2734cb091c51"},{"name":"ReadByUserCDR2","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"uid\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;The UID (user id) owning the call.&lt;\\/p&gt;\"","    },","    \"domain\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;The domain the user belongs to.&lt;\\/p&gt;\"","    },","    \"cdr_id\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;The unique ID that links back to the full CDR.&lt;\\/p&gt;\"","    },","    \"type\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;0=Outbound, 1=Inbound, 2=Missed&lt;\\/p&gt;\"","    },","    \"time_start\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Unixtimestamp\\/epoch for the start time of the call in GMT&lt;\\/p&gt;\"","    },","    \"time_answer\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Unixtimestamp\\/epoch for the answer time of the call in GMT&lt;\\/p&gt;\"","    },","    \"time_release\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Unixtimestamp\\/epoch for the end time of the call in GMT&lt;\\/p&gt;\"","    },","    \"duration\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;The duration of the call in seconds&lt;\\/p&gt;\"","    },","    \"orig_to_uri\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;The dialed number for the call&lt;\\/p&gt;\"","    },","    \"number\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;The remote number for the call&lt;\\/p&gt;\"","    },","    \"name\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;The remote name\\/cname for the call.&lt;\\/p&gt;\"","    },","    \"onnet\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;1=is onnet (inter domain), 0=offnet call&lt;\\/p&gt;\"","    },","    \"The\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;default will be to hide cdrs like click to call legs, set to &amp;quot;1&amp;quot; to show.&lt;\\/p&gt;\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['cdr2'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"517ab570-1673-475a-a7cd-69ad59e68d19"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"23b26bde-bee5-4418-8315-bef1e478a91c"}}],"id":"6fa85289-ee22-46e5-a23b-f90d130e2dc8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"start_date","value":"{{start_date}}","description":"<p>Limit search by start date (Y-m-d H:i:s).</p>\n","type":"text"},{"key":"end_date","value":"{{end_date}}","description":"<p>Limit search by end date (Y-m-d H:i:s).</p>\n","type":"text"},{"key":"limit","value":"","description":"<p>Default value: 100</p>\n","type":"text","disabled":true},{"key":"uid","value":"{{uid}}","description":"<p>The UID (user id) owning the call.</p>\n","type":"text"},{"key":"type","value":"","description":"<p>Allowed values: \"Inbound\", \"Outbound\", \"Missed\", \"Received\", \"On-net\", \"Off-net\", \"0\", \"1\", \"2\"</p>\n","type":"text","disabled":true},{"key":"showhidden","value":"","description":"<p>set to 1 if you want to show hidden cdrs like click to call legs</p>\n<p>Default value: 0</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=cdr2&action=read","description":"<p>Read CDR by User</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"cdr2"},{"key":"action","value":"read"}],"variable":[]}},"response":[{"id":"9c6386bd-bdbc-4bc4-83cf-1a90c26d93b8","name":"ReadByUserCDR2","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"start_date","value":"{{start_date}}","description":"Limit search by start date (Y-m-d H:i:s).","type":"text"},{"key":"end_date","value":"{{end_date}}","description":"Limit search by end date (Y-m-d H:i:s).","type":"text"},{"key":"limit","value":"","description":"Default value: 100","type":"text","disabled":true},{"key":"uid","value":"{{uid}}","description":"The UID (user id) owning the call.","type":"text"},{"key":"type","value":"","description":"Allowed values: \"Inbound\", \"Outbound\", \"Missed\", \"Received\", \"On-net\", \"Off-net\", \"0\", \"1\", \"2\"","type":"text","disabled":true},{"key":"showhidden","value":"","description":"set to 1 if you want to show hidden cdrs like click to call legs\n\nDefault value: 0","type":"text","disabled":true}]},"url":{"raw":"https://oclnk.co/?object=cdr2&action=read","host":["https://oclnk.co"],"path":[""],"query":[{"key":"object","value":"cdr2"},{"key":"action","value":"read"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 31 May 2023 15:39:41 GMT"},{"key":"Server","value":"Apache/2.4.48 (Ubuntu)"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Length","value":"348"},{"key":"Keep-Alive","value":"timeout=2, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"uid\": \"1002@apidocumentation\",\n        \"domain\": \"apidocumentation\",\n        \"cdr_id\": \"1685538914c6d597b06a0d2f28ae19ac4fa30f6137\",\n        \"type\": \"0\",\n        \"time_start\": \"1685538914\",\n        \"time_answer\": \"1685538921\",\n        \"time_release\": \"1685538947\",\n        \"duration\": \"26\",\n        \"orig_to_uri\": \"sip:9803459422@apidocumentation\",\n        \"number\": \"sip:19803459422@apidocumentation\",\n        \"name\": null,\n        \"onnet\": \"0\",\n        \"hide\": \"0\",\n        \"tag\": \"\",\n        \"expected_trace\": true\n    },\n    {\n        \"uid\": \"1002@apidocumentation\",\n        \"domain\": \"apidocumentation\",\n        \"cdr_id\": \"16855388512a010f63f722a0b732e6f3266c094bd5\",\n        \"type\": \"0\",\n        \"time_start\": \"1685538851\",\n        \"time_answer\": null,\n        \"time_release\": \"1685538852\",\n        \"duration\": \"0\",\n        \"orig_to_uri\": \"sip:9803459422@apidocumentation\",\n        \"number\": \"sip:19803459422@apidocumentation\",\n        \"name\": null,\n        \"onnet\": \"0\",\n        \"hide\": \"0\",\n        \"tag\": \"\",\n        \"expected_trace\": true\n    },\n    {\n        \"uid\": \"1002@apidocumentation\",\n        \"domain\": \"apidocumentation\",\n        \"cdr_id\": \"16855371744fee13abd13d5e0c6b4c6d1afd0702de\",\n        \"type\": \"2\",\n        \"time_start\": \"1685537174\",\n        \"time_answer\": \"1685537174\",\n        \"time_release\": \"1685537190\",\n        \"duration\": \"16\",\n        \"orig_to_uri\": \"sip:1002@apidocumentation\",\n        \"number\": \"1003\",\n        \"name\": \"Keanu Wright\",\n        \"onnet\": \"1\",\n        \"hide\": \"0\",\n        \"tag\": \"\",\n        \"expected_trace\": true\n    }\n]"}],"_postman_id":"6fa85289-ee22-46e5-a23b-f90d130e2dc8"},{"name":"ReportByDomainCDR2","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"Total\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;number of CDRs in the specified query.&lt;\\/p&gt;\"","    },","    \"OnNet\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Total number of OnNet calls.&lt;\\/p&gt;\"","    },","    \"OffNet\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Total number of OffNet calls.&lt;\\/p&gt;\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['cdr2'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"dff8effb-505a-4327-b215-055c1aa986d8"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"9597d24d-939c-4315-92c2-7f7f57af4b1d"}}],"id":"ac463d89-a6b4-4400-925f-c9271168d070","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"start_date","value":"{{start_date}}","description":"<p>Limit search by start date.(Y-m-d H:i:s).</p>\n","type":"text"},{"key":"end_date","value":"{{end_date}}","description":"<p>Limit search by end date.(Y-m-d H:i:s).</p>\n","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Identifies Domain for which to Report CDRs.</p>\n","type":"text"},{"key":"report_by","value":"","description":"<p>Get all CDR by Hourly or Daily.</p>\n<p>Default value: hourly</p>\n<p>Allowed values: \"hourly\", \"daily\"</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=cdr2&action=report","description":"<p>Report CDRs by Domain</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"cdr2"},{"key":"action","value":"report"}],"variable":[]}},"response":[{"id":"d1732f69-4234-4d1c-8b4a-d6fe938f301e","name":"ReportByDomainCDR2","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"start_date","value":"{{start_date}}","description":"Limit search by start date.(Y-m-d H:i:s).","type":"text"},{"key":"end_date","value":"{{end_date}}","description":"Limit search by end date.(Y-m-d H:i:s).","type":"text"},{"key":"domain","value":"{{domain}}","description":"Identifies Domain for which to Report CDRs.","type":"text"},{"key":"report_by","value":"","description":"Get all CDR by Hourly or Daily.\n\nDefault value: hourly\n\nAllowed values: \"hourly\", \"daily\"","type":"text","disabled":true}]},"url":{"raw":"https://oclnk.co/?object=cdr2&action=report","host":["https://oclnk.co"],"path":[""],"query":[{"key":"object","value":"cdr2"},{"key":"action","value":"report"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 31 May 2023 15:46:21 GMT"},{"key":"Server","value":"Apache/2.4.48 (Ubuntu)"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Length","value":"468"},{"key":"Keep-Alive","value":"timeout=2, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"1685404800\": {\n        \"type\": \"cd\",\n        \"apidocumentation\": {\n            \"onnetCalls\": \"0\",\n            \"offnetCalls\": \"0\",\n            \"totalDurationOnnet\": \"0\",\n            \"totalDurationOffnet\": \"0\",\n            \"date\": \"Tue, 30 May 2023 00:00:00 +0000\"\n        }\n    },\n    \"1685491200\": {\n        \"type\": \"cd\",\n        \"apidocumentation\": {\n            \"onnetCalls\": \"0\",\n            \"offnetCalls\": \"0\",\n            \"totalDurationOnnet\": \"0\",\n            \"totalDurationOffnet\": \"0\",\n            \"date\": \"Wed, 31 May 2023 00:00:00 +0000\"\n        }\n    },\n    \"1685577600\": {\n        \"type\": \"cd\",\n        \"apidocumentation\": {\n            \"onnetCalls\": \"0\",\n            \"offnetCalls\": \"0\",\n            \"totalDurationOnnet\": \"0\",\n            \"totalDurationOffnet\": \"0\",\n            \"date\": \"Thu, 01 Jun 2023 00:00:00 +0000\"\n        }\n    },\n    \"1685664000\": {\n        \"type\": \"cd\",\n        \"apidocumentation\": {\n            \"onnetCalls\": \"0\",\n            \"offnetCalls\": \"0\",\n            \"totalDurationOnnet\": \"0\",\n            \"totalDurationOffnet\": \"0\",\n            \"date\": \"Fri, 02 Jun 2023 00:00:00 +0000\"\n        }\n    },\n    \"1685750400\": {\n        \"type\": \"cd\",\n        \"apidocumentation\": {\n            \"onnetCalls\": \"0\",\n            \"offnetCalls\": \"0\",\n            \"totalDurationOnnet\": \"0\",\n            \"totalDurationOffnet\": \"0\",\n            \"date\": \"Sat, 03 Jun 2023 00:00:00 +0000\"\n        }\n    },\n    \"1685836800\": {\n        \"type\": \"cd\",\n        \"apidocumentation\": {\n            \"onnetCalls\": \"0\",\n            \"offnetCalls\": \"0\",\n            \"totalDurationOnnet\": \"0\",\n            \"totalDurationOffnet\": \"0\",\n            \"date\": \"Sun, 04 Jun 2023 00:00:00 +0000\"\n        }\n    },\n    \"1685923200\": {\n        \"type\": \"cd\",\n        \"apidocumentation\": {\n            \"onnetCalls\": \"0\",\n            \"offnetCalls\": \"0\",\n            \"totalDurationOnnet\": \"0\",\n            \"totalDurationOffnet\": \"0\",\n            \"date\": \"Mon, 05 Jun 2023 00:00:00 +0000\"\n        }\n    },\n    \"1686009600\": {\n        \"type\": \"cd\",\n        \"apidocumentation\": {\n            \"onnetCalls\": \"0\",\n            \"offnetCalls\": \"0\",\n            \"totalDurationOnnet\": \"0\",\n            \"totalDurationOffnet\": \"0\",\n            \"date\": \"Tue, 06 Jun 2023 00:00:00 +0000\"\n        }\n    },\n    \"1686096000\": {\n        \"type\": \"cd\",\n        \"apidocumentation\": {\n            \"onnetCalls\": \"0\",\n            \"offnetCalls\": \"0\",\n            \"totalDurationOnnet\": \"0\",\n            \"totalDurationOffnet\": \"0\",\n            \"date\": \"Wed, 07 Jun 2023 00:00:00 +0000\"\n        }\n    },\n    \"1686182400\": {\n        \"type\": \"cd\",\n        \"apidocumentation\": {\n            \"onnetCalls\": \"0\",\n            \"offnetCalls\": \"0\",\n            \"totalDurationOnnet\": \"0\",\n            \"totalDurationOffnet\": \"0\",\n            \"date\": \"Thu, 08 Jun 2023 00:00:00 +0000\"\n        }\n    },\n    \"1686268800\": {\n        \"type\": \"cd\",\n        \"apidocumentation\": {\n            \"onnetCalls\": \"0\",\n            \"offnetCalls\": \"0\",\n            \"totalDurationOnnet\": \"0\",\n            \"totalDurationOffnet\": \"0\",\n            \"date\": \"Fri, 09 Jun 2023 00:00:00 +0000\"\n        }\n    },\n    \"1686355200\": {\n        \"type\": \"cd\",\n        \"apidocumentation\": {\n            \"onnetCalls\": \"0\",\n            \"offnetCalls\": \"0\",\n            \"totalDurationOnnet\": \"0\",\n            \"totalDurationOffnet\": \"0\",\n            \"date\": \"Sat, 10 Jun 2023 00:00:00 +0000\"\n        }\n    },\n    \"1686441600\": {\n        \"type\": \"cd\",\n        \"apidocumentation\": {\n            \"onnetCalls\": \"0\",\n            \"offnetCalls\": \"0\",\n            \"totalDurationOnnet\": \"0\",\n            \"totalDurationOffnet\": \"0\",\n            \"date\": \"Sun, 11 Jun 2023 00:00:00 +0000\"\n        }\n    },\n    \"1686528000\": {\n        \"type\": \"cd\",\n        \"apidocumentation\": {\n            \"onnetCalls\": \"0\",\n            \"offnetCalls\": \"0\",\n            \"totalDurationOnnet\": \"0\",\n            \"totalDurationOffnet\": \"0\",\n            \"date\": \"Mon, 12 Jun 2023 00:00:00 +0000\"\n        }\n    },\n    \"1686614400\": {\n        \"type\": \"cd\",\n        \"apidocumentation\": {\n            \"onnetCalls\": \"0\",\n            \"offnetCalls\": \"0\",\n            \"totalDurationOnnet\": \"0\",\n            \"totalDurationOffnet\": \"0\",\n            \"date\": \"Tue, 13 Jun 2023 00:00:00 +0000\"\n        }\n    },\n    \"1686700800\": {\n        \"type\": \"cd\",\n        \"apidocumentation\": {\n            \"onnetCalls\": \"0\",\n            \"offnetCalls\": \"0\",\n            \"totalDurationOnnet\": \"0\",\n            \"totalDurationOffnet\": \"0\",\n            \"date\": \"Wed, 14 Jun 2023 00:00:00 +0000\"\n        }\n    },\n    \"1686787200\": {\n        \"type\": \"cd\",\n        \"apidocumentation\": {\n            \"onnetCalls\": \"0\",\n            \"offnetCalls\": \"0\",\n            \"totalDurationOnnet\": \"0\",\n            \"totalDurationOffnet\": \"0\",\n            \"date\": \"Thu, 15 Jun 2023 00:00:00 +0000\"\n        }\n    },\n    \"1686873600\": {\n        \"type\": \"cd\",\n        \"apidocumentation\": {\n            \"onnetCalls\": \"0\",\n            \"offnetCalls\": \"0\",\n            \"totalDurationOnnet\": \"0\",\n            \"totalDurationOffnet\": \"0\",\n            \"date\": \"Fri, 16 Jun 2023 00:00:00 +0000\"\n        }\n    },\n    \"1686960000\": {\n        \"type\": \"cd\",\n        \"apidocumentation\": {\n            \"onnetCalls\": \"0\",\n            \"offnetCalls\": \"0\",\n            \"totalDurationOnnet\": \"0\",\n            \"totalDurationOffnet\": \"0\",\n            \"date\": \"Sat, 17 Jun 2023 00:00:00 +0000\"\n        }\n    },\n    \"1687046400\": {\n        \"type\": \"cd\",\n        \"apidocumentation\": {\n            \"onnetCalls\": \"0\",\n            \"offnetCalls\": \"0\",\n            \"totalDurationOnnet\": \"0\",\n            \"totalDurationOffnet\": \"0\",\n            \"date\": \"Sun, 18 Jun 2023 00:00:00 +0000\"\n        }\n    },\n    \"1687132800\": {\n        \"type\": \"cd\",\n        \"apidocumentation\": {\n            \"onnetCalls\": \"0\",\n            \"offnetCalls\": \"0\",\n            \"totalDurationOnnet\": \"0\",\n            \"totalDurationOffnet\": \"0\",\n            \"date\": \"Mon, 19 Jun 2023 00:00:00 +0000\"\n        }\n    },\n    \"1687219200\": {\n        \"type\": \"cd\",\n        \"apidocumentation\": {\n            \"onnetCalls\": \"0\",\n            \"offnetCalls\": \"0\",\n            \"totalDurationOnnet\": \"0\",\n            \"totalDurationOffnet\": \"0\",\n            \"date\": \"Tue, 20 Jun 2023 00:00:00 +0000\"\n        }\n    },\n    \"1687305600\": {\n        \"type\": \"cd\",\n        \"apidocumentation\": {\n            \"onnetCalls\": \"0\",\n            \"offnetCalls\": \"0\",\n            \"totalDurationOnnet\": \"0\",\n            \"totalDurationOffnet\": \"0\",\n            \"date\": \"Wed, 21 Jun 2023 00:00:00 +0000\"\n        }\n    },\n    \"1687392000\": {\n        \"type\": \"cd\",\n        \"apidocumentation\": {\n            \"onnetCalls\": \"0\",\n            \"offnetCalls\": \"0\",\n            \"totalDurationOnnet\": \"0\",\n            \"totalDurationOffnet\": \"0\",\n            \"date\": \"Thu, 22 Jun 2023 00:00:00 +0000\"\n        }\n    },\n    \"1687478400\": {\n        \"type\": \"cd\",\n        \"apidocumentation\": {\n            \"onnetCalls\": \"0\",\n            \"offnetCalls\": \"0\",\n            \"totalDurationOnnet\": \"0\",\n            \"totalDurationOffnet\": \"0\",\n            \"date\": \"Fri, 23 Jun 2023 00:00:00 +0000\"\n        }\n    },\n    \"1687564800\": {\n        \"type\": \"cd\",\n        \"apidocumentation\": {\n            \"onnetCalls\": \"0\",\n            \"offnetCalls\": \"0\",\n            \"totalDurationOnnet\": \"0\",\n            \"totalDurationOffnet\": \"0\",\n            \"date\": \"Sat, 24 Jun 2023 00:00:00 +0000\"\n        }\n    },\n    \"1687651200\": {\n        \"type\": \"cd\",\n        \"apidocumentation\": {\n            \"onnetCalls\": \"0\",\n            \"offnetCalls\": \"0\",\n            \"totalDurationOnnet\": \"0\",\n            \"totalDurationOffnet\": \"0\",\n            \"date\": \"Sun, 25 Jun 2023 00:00:00 +0000\"\n        }\n    },\n    \"1687737600\": {\n        \"type\": \"cd\",\n        \"apidocumentation\": {\n            \"onnetCalls\": \"0\",\n            \"offnetCalls\": \"0\",\n            \"totalDurationOnnet\": \"0\",\n            \"totalDurationOffnet\": \"0\",\n            \"date\": \"Mon, 26 Jun 2023 00:00:00 +0000\"\n        }\n    },\n    \"1687824000\": {\n        \"type\": \"cd\",\n        \"apidocumentation\": {\n            \"onnetCalls\": \"0\",\n            \"offnetCalls\": \"0\",\n            \"totalDurationOnnet\": \"0\",\n            \"totalDurationOffnet\": \"0\",\n            \"date\": \"Tue, 27 Jun 2023 00:00:00 +0000\"\n        }\n    },\n    \"1687910400\": {\n        \"type\": \"cd\",\n        \"apidocumentation\": {\n            \"onnetCalls\": \"0\",\n            \"offnetCalls\": \"0\",\n            \"totalDurationOnnet\": \"0\",\n            \"totalDurationOffnet\": \"0\",\n            \"date\": \"Wed, 28 Jun 2023 00:00:00 +0000\"\n        }\n    },\n    \"1687996800\": {\n        \"type\": \"cd\",\n        \"apidocumentation\": {\n            \"onnetCalls\": \"0\",\n            \"offnetCalls\": \"0\",\n            \"totalDurationOnnet\": \"0\",\n            \"totalDurationOffnet\": \"0\",\n            \"date\": \"Thu, 29 Jun 2023 00:00:00 +0000\"\n        }\n    },\n    \"1688083200\": {\n        \"type\": \"cd\",\n        \"apidocumentation\": {\n            \"onnetCalls\": \"0\",\n            \"offnetCalls\": \"0\",\n            \"totalDurationOnnet\": \"0\",\n            \"totalDurationOffnet\": \"0\",\n            \"date\": \"Fri, 30 Jun 2023 00:00:00 +0000\"\n        }\n    }\n}"}],"_postman_id":"ac463d89-a6b4-4400-925f-c9271168d070"},{"name":"ReportByGroupCDR2","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"Total\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;number of CDRs in the specified query.&lt;\\/p&gt;\"","    },","    \"OnNet\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Total number of OnNet calls.&lt;\\/p&gt;\"","    },","    \"OffNet\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Total number of OffNet calls.&lt;\\/p&gt;\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['cdr2'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"98018b3f-eb8b-435a-8cf3-d15be8ac9116"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"4f8544ca-9ad3-47d9-a002-f0425d5dfd6c"}}],"id":"b85d90f1-2754-420b-a5b1-87079fd1d9fb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"start_date","value":"{{start_date}}","description":"<p>Limit search by start date.(Y-m-d H:i:s).</p>\n","type":"text"},{"key":"end_date","value":"{{end_date}}","description":"<p>Limit search by end date.(Y-m-d H:i:s).</p>\n","type":"text"},{"key":"group_by","value":"{{group_by}}","description":"<p>Get all by Group</p>\n<p>Default value: domain</p>\n<p>Allowed values: \"domain\", \"reseller\", \"hostname\", \"by_site\", \"by_dept\", \"cluster\"</p>\n","type":"text"},{"key":"report_by","value":"{{report_by}}","description":"<p>Get all CDR by Hourly or Daily.</p>\n<p>Default value: hourly</p>\n<p>Allowed values: \"hourly\", \"daily\"</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=cdr2&action=report","description":"<p>Report CDRs by Group</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"cdr2"},{"key":"action","value":"report"}],"variable":[]}},"response":[{"id":"313c83fd-137c-4a99-bc24-e21bfbe78555","name":"ReportByGroupCDR2","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"start_date","value":"{{start_date}}","description":"Limit search by start date.(Y-m-d H:i:s).","type":"text"},{"key":"end_date","value":"{{end_date}}","description":"Limit search by end date.(Y-m-d H:i:s).","type":"text"},{"key":"group_by","value":"{{group_by}}","description":"Get all by Group\n\nDefault value: domain\n\nAllowed values: \"domain\", \"reseller\", \"hostname\", \"by_site\", \"by_dept\", \"cluster\"","type":"text"},{"key":"report_by","value":"{{report_by}}","description":"Get all CDR by Hourly or Daily.\n\nDefault value: hourly\n\nAllowed values: \"hourly\", \"daily\"","type":"text","disabled":true}]},"url":{"raw":"https://oclnk.co/?object=cdr2&action=report","host":["https://oclnk.co"],"path":[""],"query":[{"key":"object","value":"cdr2"},{"key":"action","value":"report"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 31 May 2023 15:46:46 GMT"},{"key":"Server","value":"Apache/2.4.48 (Ubuntu)"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Length","value":"464"},{"key":"Keep-Alive","value":"timeout=2, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"1685404800\": [\n        {\n            \"0\": {\n                \"onnetCalls\": \"0\",\n                \"offnetCalls\": \"0\",\n                \"totalDurationOnnet\": \"0\",\n                \"totalDurationOffnet\": \"0\",\n                \"date\": \"Tue, 30 May 2023 00:00:00 +0000\"\n            },\n            \"type\": \"c\"\n        }\n    ],\n    \"1685491200\": [\n        {\n            \"0\": {\n                \"onnetCalls\": \"0\",\n                \"offnetCalls\": \"0\",\n                \"totalDurationOnnet\": \"0\",\n                \"totalDurationOffnet\": \"0\",\n                \"date\": \"Wed, 31 May 2023 00:00:00 +0000\"\n            },\n            \"type\": \"c\"\n        }\n    ],\n    \"1685577600\": [\n        {\n            \"0\": {\n                \"onnetCalls\": \"0\",\n                \"offnetCalls\": \"0\",\n                \"totalDurationOnnet\": \"0\",\n                \"totalDurationOffnet\": \"0\",\n                \"date\": \"Thu, 01 Jun 2023 00:00:00 +0000\"\n            },\n            \"type\": \"c\"\n        }\n    ],\n    \"1685664000\": [\n        {\n            \"0\": {\n                \"onnetCalls\": \"0\",\n                \"offnetCalls\": \"0\",\n                \"totalDurationOnnet\": \"0\",\n                \"totalDurationOffnet\": \"0\",\n                \"date\": \"Fri, 02 Jun 2023 00:00:00 +0000\"\n            },\n            \"type\": \"c\"\n        }\n    ],\n    \"1685750400\": [\n        {\n            \"0\": {\n                \"onnetCalls\": \"0\",\n                \"offnetCalls\": \"0\",\n                \"totalDurationOnnet\": \"0\",\n                \"totalDurationOffnet\": \"0\",\n                \"date\": \"Sat, 03 Jun 2023 00:00:00 +0000\"\n            },\n            \"type\": \"c\"\n        }\n    ],\n    \"1685836800\": [\n        {\n            \"0\": {\n                \"onnetCalls\": \"0\",\n                \"offnetCalls\": \"0\",\n                \"totalDurationOnnet\": \"0\",\n                \"totalDurationOffnet\": \"0\",\n                \"date\": \"Sun, 04 Jun 2023 00:00:00 +0000\"\n            },\n            \"type\": \"c\"\n        }\n    ],\n    \"1685923200\": [\n        {\n            \"0\": {\n                \"onnetCalls\": \"0\",\n                \"offnetCalls\": \"0\",\n                \"totalDurationOnnet\": \"0\",\n                \"totalDurationOffnet\": \"0\",\n                \"date\": \"Mon, 05 Jun 2023 00:00:00 +0000\"\n            },\n            \"type\": \"c\"\n        }\n    ],\n    \"1686009600\": [\n        {\n            \"0\": {\n                \"onnetCalls\": \"0\",\n                \"offnetCalls\": \"0\",\n                \"totalDurationOnnet\": \"0\",\n                \"totalDurationOffnet\": \"0\",\n                \"date\": \"Tue, 06 Jun 2023 00:00:00 +0000\"\n            },\n            \"type\": \"c\"\n        }\n    ],\n    \"1686096000\": [\n        {\n            \"0\": {\n                \"onnetCalls\": \"0\",\n                \"offnetCalls\": \"0\",\n                \"totalDurationOnnet\": \"0\",\n                \"totalDurationOffnet\": \"0\",\n                \"date\": \"Wed, 07 Jun 2023 00:00:00 +0000\"\n            },\n            \"type\": \"c\"\n        }\n    ],\n    \"1686182400\": [\n        {\n            \"0\": {\n                \"onnetCalls\": \"0\",\n                \"offnetCalls\": \"0\",\n                \"totalDurationOnnet\": \"0\",\n                \"totalDurationOffnet\": \"0\",\n                \"date\": \"Thu, 08 Jun 2023 00:00:00 +0000\"\n            },\n            \"type\": \"c\"\n        }\n    ],\n    \"1686268800\": [\n        {\n            \"0\": {\n                \"onnetCalls\": \"0\",\n                \"offnetCalls\": \"0\",\n                \"totalDurationOnnet\": \"0\",\n                \"totalDurationOffnet\": \"0\",\n                \"date\": \"Fri, 09 Jun 2023 00:00:00 +0000\"\n            },\n            \"type\": \"c\"\n        }\n    ],\n    \"1686355200\": [\n        {\n            \"0\": {\n                \"onnetCalls\": \"0\",\n                \"offnetCalls\": \"0\",\n                \"totalDurationOnnet\": \"0\",\n                \"totalDurationOffnet\": \"0\",\n                \"date\": \"Sat, 10 Jun 2023 00:00:00 +0000\"\n            },\n            \"type\": \"c\"\n        }\n    ],\n    \"1686441600\": [\n        {\n            \"0\": {\n                \"onnetCalls\": \"0\",\n                \"offnetCalls\": \"0\",\n                \"totalDurationOnnet\": \"0\",\n                \"totalDurationOffnet\": \"0\",\n                \"date\": \"Sun, 11 Jun 2023 00:00:00 +0000\"\n            },\n            \"type\": \"c\"\n        }\n    ],\n    \"1686528000\": [\n        {\n            \"0\": {\n                \"onnetCalls\": \"0\",\n                \"offnetCalls\": \"0\",\n                \"totalDurationOnnet\": \"0\",\n                \"totalDurationOffnet\": \"0\",\n                \"date\": \"Mon, 12 Jun 2023 00:00:00 +0000\"\n            },\n            \"type\": \"c\"\n        }\n    ],\n    \"1686614400\": [\n        {\n            \"0\": {\n                \"onnetCalls\": \"0\",\n                \"offnetCalls\": \"0\",\n                \"totalDurationOnnet\": \"0\",\n                \"totalDurationOffnet\": \"0\",\n                \"date\": \"Tue, 13 Jun 2023 00:00:00 +0000\"\n            },\n            \"type\": \"c\"\n        }\n    ],\n    \"1686700800\": [\n        {\n            \"0\": {\n                \"onnetCalls\": \"0\",\n                \"offnetCalls\": \"0\",\n                \"totalDurationOnnet\": \"0\",\n                \"totalDurationOffnet\": \"0\",\n                \"date\": \"Wed, 14 Jun 2023 00:00:00 +0000\"\n            },\n            \"type\": \"c\"\n        }\n    ],\n    \"1686787200\": [\n        {\n            \"0\": {\n                \"onnetCalls\": \"0\",\n                \"offnetCalls\": \"0\",\n                \"totalDurationOnnet\": \"0\",\n                \"totalDurationOffnet\": \"0\",\n                \"date\": \"Thu, 15 Jun 2023 00:00:00 +0000\"\n            },\n            \"type\": \"c\"\n        }\n    ],\n    \"1686873600\": [\n        {\n            \"0\": {\n                \"onnetCalls\": \"0\",\n                \"offnetCalls\": \"0\",\n                \"totalDurationOnnet\": \"0\",\n                \"totalDurationOffnet\": \"0\",\n                \"date\": \"Fri, 16 Jun 2023 00:00:00 +0000\"\n            },\n            \"type\": \"c\"\n        }\n    ],\n    \"1686960000\": [\n        {\n            \"0\": {\n                \"onnetCalls\": \"0\",\n                \"offnetCalls\": \"0\",\n                \"totalDurationOnnet\": \"0\",\n                \"totalDurationOffnet\": \"0\",\n                \"date\": \"Sat, 17 Jun 2023 00:00:00 +0000\"\n            },\n            \"type\": \"c\"\n        }\n    ],\n    \"1687046400\": [\n        {\n            \"0\": {\n                \"onnetCalls\": \"0\",\n                \"offnetCalls\": \"0\",\n                \"totalDurationOnnet\": \"0\",\n                \"totalDurationOffnet\": \"0\",\n                \"date\": \"Sun, 18 Jun 2023 00:00:00 +0000\"\n            },\n            \"type\": \"c\"\n        }\n    ],\n    \"1687132800\": [\n        {\n            \"0\": {\n                \"onnetCalls\": \"0\",\n                \"offnetCalls\": \"0\",\n                \"totalDurationOnnet\": \"0\",\n                \"totalDurationOffnet\": \"0\",\n                \"date\": \"Mon, 19 Jun 2023 00:00:00 +0000\"\n            },\n            \"type\": \"c\"\n        }\n    ],\n    \"1687219200\": [\n        {\n            \"0\": {\n                \"onnetCalls\": \"0\",\n                \"offnetCalls\": \"0\",\n                \"totalDurationOnnet\": \"0\",\n                \"totalDurationOffnet\": \"0\",\n                \"date\": \"Tue, 20 Jun 2023 00:00:00 +0000\"\n            },\n            \"type\": \"c\"\n        }\n    ],\n    \"1687305600\": [\n        {\n            \"0\": {\n                \"onnetCalls\": \"0\",\n                \"offnetCalls\": \"0\",\n                \"totalDurationOnnet\": \"0\",\n                \"totalDurationOffnet\": \"0\",\n                \"date\": \"Wed, 21 Jun 2023 00:00:00 +0000\"\n            },\n            \"type\": \"c\"\n        }\n    ],\n    \"1687392000\": [\n        {\n            \"0\": {\n                \"onnetCalls\": \"0\",\n                \"offnetCalls\": \"0\",\n                \"totalDurationOnnet\": \"0\",\n                \"totalDurationOffnet\": \"0\",\n                \"date\": \"Thu, 22 Jun 2023 00:00:00 +0000\"\n            },\n            \"type\": \"c\"\n        }\n    ],\n    \"1687478400\": [\n        {\n            \"0\": {\n                \"onnetCalls\": \"0\",\n                \"offnetCalls\": \"0\",\n                \"totalDurationOnnet\": \"0\",\n                \"totalDurationOffnet\": \"0\",\n                \"date\": \"Fri, 23 Jun 2023 00:00:00 +0000\"\n            },\n            \"type\": \"c\"\n        }\n    ],\n    \"1687564800\": [\n        {\n            \"0\": {\n                \"onnetCalls\": \"0\",\n                \"offnetCalls\": \"0\",\n                \"totalDurationOnnet\": \"0\",\n                \"totalDurationOffnet\": \"0\",\n                \"date\": \"Sat, 24 Jun 2023 00:00:00 +0000\"\n            },\n            \"type\": \"c\"\n        }\n    ],\n    \"1687651200\": [\n        {\n            \"0\": {\n                \"onnetCalls\": \"0\",\n                \"offnetCalls\": \"0\",\n                \"totalDurationOnnet\": \"0\",\n                \"totalDurationOffnet\": \"0\",\n                \"date\": \"Sun, 25 Jun 2023 00:00:00 +0000\"\n            },\n            \"type\": \"c\"\n        }\n    ],\n    \"1687737600\": [\n        {\n            \"0\": {\n                \"onnetCalls\": \"0\",\n                \"offnetCalls\": \"0\",\n                \"totalDurationOnnet\": \"0\",\n                \"totalDurationOffnet\": \"0\",\n                \"date\": \"Mon, 26 Jun 2023 00:00:00 +0000\"\n            },\n            \"type\": \"c\"\n        }\n    ],\n    \"1687824000\": [\n        {\n            \"0\": {\n                \"onnetCalls\": \"0\",\n                \"offnetCalls\": \"0\",\n                \"totalDurationOnnet\": \"0\",\n                \"totalDurationOffnet\": \"0\",\n                \"date\": \"Tue, 27 Jun 2023 00:00:00 +0000\"\n            },\n            \"type\": \"c\"\n        }\n    ],\n    \"1687910400\": [\n        {\n            \"0\": {\n                \"onnetCalls\": \"0\",\n                \"offnetCalls\": \"0\",\n                \"totalDurationOnnet\": \"0\",\n                \"totalDurationOffnet\": \"0\",\n                \"date\": \"Wed, 28 Jun 2023 00:00:00 +0000\"\n            },\n            \"type\": \"c\"\n        }\n    ],\n    \"1687996800\": [\n        {\n            \"0\": {\n                \"onnetCalls\": \"0\",\n                \"offnetCalls\": \"0\",\n                \"totalDurationOnnet\": \"0\",\n                \"totalDurationOffnet\": \"0\",\n                \"date\": \"Thu, 29 Jun 2023 00:00:00 +0000\"\n            },\n            \"type\": \"c\"\n        }\n    ],\n    \"1688083200\": [\n        {\n            \"0\": {\n                \"onnetCalls\": \"0\",\n                \"offnetCalls\": \"0\",\n                \"totalDurationOnnet\": \"0\",\n                \"totalDurationOffnet\": \"0\",\n                \"date\": \"Fri, 30 Jun 2023 00:00:00 +0000\"\n            },\n            \"type\": \"c\"\n        }\n    ],\n    \"1688169600\": [\n        {\n            \"0\": {\n                \"onnetCalls\": \"0\",\n                \"offnetCalls\": \"0\",\n                \"totalDurationOnnet\": \"0\",\n                \"totalDurationOffnet\": \"0\",\n                \"date\": \"Sat, 01 Jul 2023 00:00:00 +0000\"\n            },\n            \"type\": \"c\"\n        }\n    ]\n}"}],"_postman_id":"b85d90f1-2754-420b-a5b1-87079fd1d9fb"},{"name":"ReportByGroupTypeCDR2","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"Total\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;number of CDRs in the specified query.&lt;\\/p&gt;\"","    },","    \"OnNet\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Total number of OnNet calls.&lt;\\/p&gt;\"","    },","    \"OffNet\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Total number of OffNet calls.&lt;\\/p&gt;\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['cdr2'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"1cb065c5-4cf4-4f78-8ea4-6cbf1a9d4100"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"2f82c0c7-3903-4a8b-9ba4-217491aa78fa"}}],"id":"22ed2c65-da35-4a0c-8ab1-805b98c40465","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"start_date","value":"{{start_date}}","description":"<p>Limit search by start date.(Y-m-d H:i:s).</p>\n","type":"text"},{"key":"end_date","value":"{{end_date}}","description":"<p>Limit search by end date.(Y-m-d H:i:s).</p>\n","type":"text"},{"key":"group_type","value":"{{group_type}}","description":"<p>By site Or By Dept</p>\n","type":"text"},{"key":"grp","value":"{{grp}}","type":"text"},{"key":"report_by","value":"","description":"<p>Get all CDR by Hourly or Daily.</p>\n<p>Default value: hourly</p>\n<p>Allowed values: \"hour\", \"day\"</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=cdr2&action=report","description":"<p>Report CDRs by Group Type</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"cdr2"},{"key":"action","value":"report"}],"variable":[]}},"response":[],"_postman_id":"22ed2c65-da35-4a0c-8ab1-805b98c40465"},{"name":"ReportByHostnameCDR2","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"Total\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;number of CDRs in the specified query.&lt;\\/p&gt;\"","    },","    \"OnNet\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Total number of OnNet calls.&lt;\\/p&gt;\"","    },","    \"OffNet\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Total number of OffNet calls.&lt;\\/p&gt;\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['cdr2'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"b8508f30-3a69-4a82-8517-dc4719cc6210"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"16a01336-b8b4-4c50-ae1f-bf33171ce95a"}}],"id":"fa2ebb1a-fb22-494e-a888-8b38439c5754","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"start_date","value":"{{start_date}}","description":"<p>Limit search by start date.(Y-m-d H:i:s).</p>\n","type":"text"},{"key":"end_date","value":"{{end_date}}","description":"<p>Limit search by end date.(Y-m-d H:i:s).</p>\n","type":"text"},{"key":"hostname","value":"{{hostname}}","description":"<p>Identifies Host for which to Report CDRs.</p>\n","type":"text"},{"key":"report_by","value":"{{report_by}}","description":"<p>Get all CDR by Hourly or Daily.</p>\n<p>Default value: hourly</p>\n<p>Allowed values: \"hourly\", \"daily\"</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=cdr2&action=report","description":"<p>Report CDRs by Hostname</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"cdr2"},{"key":"action","value":"report"}],"variable":[]}},"response":[],"_postman_id":"fa2ebb1a-fb22-494e-a888-8b38439c5754"},{"name":"ReportByResellerCDR2","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"Total\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;number of CDRs in the specified query.&lt;\\/p&gt;\"","    },","    \"OnNet\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Total number of OnNet calls.&lt;\\/p&gt;\"","    },","    \"OffNet\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Total number of OffNet calls.&lt;\\/p&gt;\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['cdr2'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"7295ce1b-0edd-46e4-8c67-c5bfcb1fa556"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"cb8bd8dc-5390-4e66-8249-6b90b3544721"}}],"id":"b53f7f1f-a313-4971-bebd-0908d592efc4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"start_date","value":"{{start_date}}","description":"<p>Limit search by start date.(Y-m-d H:i:s).</p>\n","type":"text"},{"key":"end_date","value":"{{end_date}}","description":"<p>Limit search by end date.(Y-m-d H:i:s).</p>\n","type":"text"},{"key":"reseller","value":"{{reseller}}","description":"<p>Identifies territory for which to Report CDRs.</p>\n","type":"text"},{"key":"report_by","value":"","description":"<p>Get all CDR by Hourly or Daily.</p>\n<p>Default value: hour</p>\n<p>Allowed values: \"hour\", \"day\"</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=cdr2&action=report","description":"<p>Report CDRs by Reseller</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"cdr2"},{"key":"action","value":"report"}],"variable":[]}},"response":[{"id":"5efdd69e-d995-4cab-a6da-4e25344636f3","name":"ReportByResellerCDR2","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"start_date","value":"{{start_date}}","description":"Limit search by start date.(Y-m-d H:i:s).","type":"text"},{"key":"end_date","value":"{{end_date}}","description":"Limit search by end date.(Y-m-d H:i:s).","type":"text"},{"key":"reseller","value":"{{reseller}}","description":"Identifies territory for which to Report CDRs.","type":"text"},{"key":"report_by","value":"day","description":"Get all CDR by Hourly or Daily.\n\nDefault value: hour\n\nAllowed values: \"hour\", \"day\"","type":"text"}]},"url":{"raw":"https://oclnk.co/?object=cdr2&action=report","host":["https://oclnk.co"],"path":[""],"query":[{"key":"object","value":"cdr2"},{"key":"action","value":"report"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 31 May 2023 16:15:16 GMT"},{"key":"Server","value":"Apache/2.4.48 (Ubuntu)"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Length","value":"451"},{"key":"Keep-Alive","value":"timeout=2, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"1685404800\": {\n        \"type\": \"cr\",\n        \"telware\": {\n            \"onnetCalls\": \"0\",\n            \"offnetCalls\": \"0\",\n            \"totalDurationOnnet\": \"0\",\n            \"totalDurationOffnet\": \"0\",\n            \"date\": \"Tue, 30 May 2023 00:00:00 +0000\"\n        }\n    },\n    \"1685491200\": {\n        \"type\": \"cr\",\n        \"telware\": {\n            \"onnetCalls\": \"0\",\n            \"offnetCalls\": \"0\",\n            \"totalDurationOnnet\": \"0\",\n            \"totalDurationOffnet\": \"0\",\n            \"date\": \"Wed, 31 May 2023 00:00:00 +0000\"\n        }\n    },\n    \"1685577600\": {\n        \"type\": \"cr\",\n        \"telware\": {\n            \"onnetCalls\": \"0\",\n            \"offnetCalls\": \"0\",\n            \"totalDurationOnnet\": \"0\",\n            \"totalDurationOffnet\": \"0\",\n            \"date\": \"Thu, 01 Jun 2023 00:00:00 +0000\"\n        }\n    },\n    \"1685664000\": {\n        \"type\": \"cr\",\n        \"telware\": {\n            \"onnetCalls\": \"0\",\n            \"offnetCalls\": \"0\",\n            \"totalDurationOnnet\": \"0\",\n            \"totalDurationOffnet\": \"0\",\n            \"date\": \"Fri, 02 Jun 2023 00:00:00 +0000\"\n        }\n    },\n    \"1685750400\": {\n        \"type\": \"cr\",\n        \"telware\": {\n            \"onnetCalls\": \"0\",\n            \"offnetCalls\": \"0\",\n            \"totalDurationOnnet\": \"0\",\n            \"totalDurationOffnet\": \"0\",\n            \"date\": \"Sat, 03 Jun 2023 00:00:00 +0000\"\n        }\n    },\n    \"1685836800\": {\n        \"type\": \"cr\",\n        \"telware\": {\n            \"onnetCalls\": \"0\",\n            \"offnetCalls\": \"0\",\n            \"totalDurationOnnet\": \"0\",\n            \"totalDurationOffnet\": \"0\",\n            \"date\": \"Sun, 04 Jun 2023 00:00:00 +0000\"\n        }\n    },\n    \"1685923200\": {\n        \"type\": \"cr\",\n        \"telware\": {\n            \"onnetCalls\": \"0\",\n            \"offnetCalls\": \"0\",\n            \"totalDurationOnnet\": \"0\",\n            \"totalDurationOffnet\": \"0\",\n            \"date\": \"Mon, 05 Jun 2023 00:00:00 +0000\"\n        }\n    },\n    \"1686009600\": {\n        \"type\": \"cr\",\n        \"telware\": {\n            \"onnetCalls\": \"0\",\n            \"offnetCalls\": \"0\",\n            \"totalDurationOnnet\": \"0\",\n            \"totalDurationOffnet\": \"0\",\n            \"date\": \"Tue, 06 Jun 2023 00:00:00 +0000\"\n        }\n    },\n    \"1686096000\": {\n        \"type\": \"cr\",\n        \"telware\": {\n            \"onnetCalls\": \"0\",\n            \"offnetCalls\": \"0\",\n            \"totalDurationOnnet\": \"0\",\n            \"totalDurationOffnet\": \"0\",\n            \"date\": \"Wed, 07 Jun 2023 00:00:00 +0000\"\n        }\n    },\n    \"1686182400\": {\n        \"type\": \"cr\",\n        \"telware\": {\n            \"onnetCalls\": \"0\",\n            \"offnetCalls\": \"0\",\n            \"totalDurationOnnet\": \"0\",\n            \"totalDurationOffnet\": \"0\",\n            \"date\": \"Thu, 08 Jun 2023 00:00:00 +0000\"\n        }\n    },\n    \"1686268800\": {\n        \"type\": \"cr\",\n        \"telware\": {\n            \"onnetCalls\": \"0\",\n            \"offnetCalls\": \"0\",\n            \"totalDurationOnnet\": \"0\",\n            \"totalDurationOffnet\": \"0\",\n            \"date\": \"Fri, 09 Jun 2023 00:00:00 +0000\"\n        }\n    },\n    \"1686355200\": {\n        \"type\": \"cr\",\n        \"telware\": {\n            \"onnetCalls\": \"0\",\n            \"offnetCalls\": \"0\",\n            \"totalDurationOnnet\": \"0\",\n            \"totalDurationOffnet\": \"0\",\n            \"date\": \"Sat, 10 Jun 2023 00:00:00 +0000\"\n        }\n    },\n    \"1686441600\": {\n        \"type\": \"cr\",\n        \"telware\": {\n            \"onnetCalls\": \"0\",\n            \"offnetCalls\": \"0\",\n            \"totalDurationOnnet\": \"0\",\n            \"totalDurationOffnet\": \"0\",\n            \"date\": \"Sun, 11 Jun 2023 00:00:00 +0000\"\n        }\n    },\n    \"1686528000\": {\n        \"type\": \"cr\",\n        \"telware\": {\n            \"onnetCalls\": \"0\",\n            \"offnetCalls\": \"0\",\n            \"totalDurationOnnet\": \"0\",\n            \"totalDurationOffnet\": \"0\",\n            \"date\": \"Mon, 12 Jun 2023 00:00:00 +0000\"\n        }\n    },\n    \"1686614400\": {\n        \"type\": \"cr\",\n        \"telware\": {\n            \"onnetCalls\": \"0\",\n            \"offnetCalls\": \"0\",\n            \"totalDurationOnnet\": \"0\",\n            \"totalDurationOffnet\": \"0\",\n            \"date\": \"Tue, 13 Jun 2023 00:00:00 +0000\"\n        }\n    },\n    \"1686700800\": {\n        \"type\": \"cr\",\n        \"telware\": {\n            \"onnetCalls\": \"0\",\n            \"offnetCalls\": \"0\",\n            \"totalDurationOnnet\": \"0\",\n            \"totalDurationOffnet\": \"0\",\n            \"date\": \"Wed, 14 Jun 2023 00:00:00 +0000\"\n        }\n    },\n    \"1686787200\": {\n        \"type\": \"cr\",\n        \"telware\": {\n            \"onnetCalls\": \"0\",\n            \"offnetCalls\": \"0\",\n            \"totalDurationOnnet\": \"0\",\n            \"totalDurationOffnet\": \"0\",\n            \"date\": \"Thu, 15 Jun 2023 00:00:00 +0000\"\n        }\n    },\n    \"1686873600\": {\n        \"type\": \"cr\",\n        \"telware\": {\n            \"onnetCalls\": \"0\",\n            \"offnetCalls\": \"0\",\n            \"totalDurationOnnet\": \"0\",\n            \"totalDurationOffnet\": \"0\",\n            \"date\": \"Fri, 16 Jun 2023 00:00:00 +0000\"\n        }\n    },\n    \"1686960000\": {\n        \"type\": \"cr\",\n        \"telware\": {\n            \"onnetCalls\": \"0\",\n            \"offnetCalls\": \"0\",\n            \"totalDurationOnnet\": \"0\",\n            \"totalDurationOffnet\": \"0\",\n            \"date\": \"Sat, 17 Jun 2023 00:00:00 +0000\"\n        }\n    },\n    \"1687046400\": {\n        \"type\": \"cr\",\n        \"telware\": {\n            \"onnetCalls\": \"0\",\n            \"offnetCalls\": \"0\",\n            \"totalDurationOnnet\": \"0\",\n            \"totalDurationOffnet\": \"0\",\n            \"date\": \"Sun, 18 Jun 2023 00:00:00 +0000\"\n        }\n    },\n    \"1687132800\": {\n        \"type\": \"cr\",\n        \"telware\": {\n            \"onnetCalls\": \"0\",\n            \"offnetCalls\": \"0\",\n            \"totalDurationOnnet\": \"0\",\n            \"totalDurationOffnet\": \"0\",\n            \"date\": \"Mon, 19 Jun 2023 00:00:00 +0000\"\n        }\n    },\n    \"1687219200\": {\n        \"type\": \"cr\",\n        \"telware\": {\n            \"onnetCalls\": \"0\",\n            \"offnetCalls\": \"0\",\n            \"totalDurationOnnet\": \"0\",\n            \"totalDurationOffnet\": \"0\",\n            \"date\": \"Tue, 20 Jun 2023 00:00:00 +0000\"\n        }\n    },\n    \"1687305600\": {\n        \"type\": \"cr\",\n        \"telware\": {\n            \"onnetCalls\": \"0\",\n            \"offnetCalls\": \"0\",\n            \"totalDurationOnnet\": \"0\",\n            \"totalDurationOffnet\": \"0\",\n            \"date\": \"Wed, 21 Jun 2023 00:00:00 +0000\"\n        }\n    },\n    \"1687392000\": {\n        \"type\": \"cr\",\n        \"telware\": {\n            \"onnetCalls\": \"0\",\n            \"offnetCalls\": \"0\",\n            \"totalDurationOnnet\": \"0\",\n            \"totalDurationOffnet\": \"0\",\n            \"date\": \"Thu, 22 Jun 2023 00:00:00 +0000\"\n        }\n    },\n    \"1687478400\": {\n        \"type\": \"cr\",\n        \"telware\": {\n            \"onnetCalls\": \"0\",\n            \"offnetCalls\": \"0\",\n            \"totalDurationOnnet\": \"0\",\n            \"totalDurationOffnet\": \"0\",\n            \"date\": \"Fri, 23 Jun 2023 00:00:00 +0000\"\n        }\n    },\n    \"1687564800\": {\n        \"type\": \"cr\",\n        \"telware\": {\n            \"onnetCalls\": \"0\",\n            \"offnetCalls\": \"0\",\n            \"totalDurationOnnet\": \"0\",\n            \"totalDurationOffnet\": \"0\",\n            \"date\": \"Sat, 24 Jun 2023 00:00:00 +0000\"\n        }\n    },\n    \"1687651200\": {\n        \"type\": \"cr\",\n        \"telware\": {\n            \"onnetCalls\": \"0\",\n            \"offnetCalls\": \"0\",\n            \"totalDurationOnnet\": \"0\",\n            \"totalDurationOffnet\": \"0\",\n            \"date\": \"Sun, 25 Jun 2023 00:00:00 +0000\"\n        }\n    },\n    \"1687737600\": {\n        \"type\": \"cr\",\n        \"telware\": {\n            \"onnetCalls\": \"0\",\n            \"offnetCalls\": \"0\",\n            \"totalDurationOnnet\": \"0\",\n            \"totalDurationOffnet\": \"0\",\n            \"date\": \"Mon, 26 Jun 2023 00:00:00 +0000\"\n        }\n    },\n    \"1687824000\": {\n        \"type\": \"cr\",\n        \"telware\": {\n            \"onnetCalls\": \"0\",\n            \"offnetCalls\": \"0\",\n            \"totalDurationOnnet\": \"0\",\n            \"totalDurationOffnet\": \"0\",\n            \"date\": \"Tue, 27 Jun 2023 00:00:00 +0000\"\n        }\n    },\n    \"1687910400\": {\n        \"type\": \"cr\",\n        \"telware\": {\n            \"onnetCalls\": \"0\",\n            \"offnetCalls\": \"0\",\n            \"totalDurationOnnet\": \"0\",\n            \"totalDurationOffnet\": \"0\",\n            \"date\": \"Wed, 28 Jun 2023 00:00:00 +0000\"\n        }\n    },\n    \"1687996800\": {\n        \"type\": \"cr\",\n        \"telware\": {\n            \"onnetCalls\": \"0\",\n            \"offnetCalls\": \"0\",\n            \"totalDurationOnnet\": \"0\",\n            \"totalDurationOffnet\": \"0\",\n            \"date\": \"Thu, 29 Jun 2023 00:00:00 +0000\"\n        }\n    },\n    \"1688083200\": {\n        \"type\": \"cr\",\n        \"telware\": {\n            \"onnetCalls\": \"0\",\n            \"offnetCalls\": \"0\",\n            \"totalDurationOnnet\": \"0\",\n            \"totalDurationOffnet\": \"0\",\n            \"date\": \"Fri, 30 Jun 2023 00:00:00 +0000\"\n        }\n    }\n}"}],"_postman_id":"b53f7f1f-a313-4971-bebd-0908d592efc4"},{"name":"UpdateCDR2","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"6236e11a-a1f7-4063-b919-a52d3471d435"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"3bc55091-d3a1-4366-a586-fbdacf659483"}}],"id":"50576cbd-91f7-43ec-8d66-daaf497b1b77","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"cdr_id","value":"{{cdr_id}}","description":"<p>Uid</p>\n","type":"text"},{"key":"domain_name","value":"{{domain}}","description":"<p>domain</p>\n","type":"text"},{"key":"uid","value":"{{uid}}","description":"<p>uid</p>\n","type":"text"},{"key":"notes","value":"","type":"text","disabled":true},{"key":"disposition","value":"","type":"text","disabled":true},{"key":"reason","value":"","type":"text","disabled":true},{"key":"pac","value":"","type":"text","disabled":true},{"key":"time_disp","value":"","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=cdr2&action=update","description":"<p>Update a CDR</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"cdr2"},{"key":"action","value":"update"}],"variable":[]}},"response":[],"_postman_id":"50576cbd-91f7-43ec-8d66-daaf497b1b77"}],"id":"79d8abc9-e30a-47c4-a362-797f34cfd0a8","_postman_id":"79d8abc9-e30a-47c4-a362-797f34cfd0a8","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}}},{"name":"CDR_Export","item":[{"name":"CreateCDR_Export","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"b1a3a092-90d2-4aed-a561-57d0723dd1aa"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"7e421b47-a144-454c-b567-8542179b0fb6"}}],"id":"0b425593-f00c-4d56-b47d-490f54c5b1f6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"schedule_name","value":"","type":"text"},{"key":"domain","value":"{{domain}}","type":"text"},{"key":"reseller","value":"{{reseller}}","type":"text"},{"key":"user","value":"{{user}}","type":"text"},{"key":"cdr_format","value":"","type":"text"},{"key":"last_run_time","value":"","type":"text"},{"key":"next_run_time","value":"","type":"text"},{"key":"cdr_count","value":"","type":"text"},{"key":"server","value":"","type":"text"},{"key":"period","value":"","type":"text"}]},"url":"https://oclnk.co/?object=cdrexport&action=create","description":"<p>Create a new cdrexport</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"cdrexport"},{"key":"action","value":"create"}],"variable":[]}},"response":[],"_postman_id":"0b425593-f00c-4d56-b47d-490f54c5b1f6"},{"name":"DeleteCDR_Export","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"cf599bc6-6336-429d-8812-821a00a0afea"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"4895731a-9f79-488f-8e0a-20eb3e0687e6"}}],"id":"d5e2686d-a108-4976-9cb6-0d64850e07c9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"schedule_name","value":"{{schedule_name}}","type":"text"},{"key":"domain","value":"{{domain}}","type":"text"},{"key":"reseller","value":"{{reseller}}","type":"text"},{"key":"user","value":"{{user}}","type":"text"},{"key":"cdr_format","value":"{{cdr_format}}","type":"text"},{"key":"last_run_time","value":"","type":"text"},{"key":"next_run_time","value":"","type":"text"},{"key":"cdr_count","value":"","type":"text"}]},"url":"https://oclnk.co/?object=cdrexport&action=delete","description":"<p>Delete a cdrexport</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"cdrexport"},{"key":"action","value":"delete"}],"variable":[]}},"response":[],"_postman_id":"d5e2686d-a108-4976-9cb6-0d64850e07c9"},{"name":"DownloadCDR_Export","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['cdr_export'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"b1b147d8-5ea8-4d1a-a6a8-2d219f45a5ab"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"e297d262-3159-41c0-a7ac-6eebb3fbcc79"}}],"id":"665ef6af-c9f4-4bf4-8864-70aaeab2c474","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"schedule_name","value":"{{schedule_name}}","type":"text"},{"key":"domain","value":"{{domain}}","type":"text"},{"key":"reseller","value":"{{reseller}}","type":"text"},{"key":"user","value":"{{user}}","type":"text"},{"key":"cdr_format","value":"{{format}}","type":"text"},{"key":"last_run_time","value":"","type":"text"},{"key":"next_run_time","value":"","type":"text"},{"key":"cdr_count","value":"","type":"text"}]},"url":"https://oclnk.co/?object=cdrexport&action=download","description":"<p>Download a cdrexport</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"cdrexport"},{"key":"action","value":"download"}],"variable":[]}},"response":[],"_postman_id":"665ef6af-c9f4-4bf4-8864-70aaeab2c474"},{"name":"ReadCDR_Export","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['cdr_export'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"9b29f3d6-8837-45da-a5ed-5df5d1e43eb7"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"5ceffc4d-3d86-4729-9892-a4ea8efef281"}}],"id":"0301ce90-ba2f-49a5-8ec3-9e660984b6b8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","type":"text"},{"key":"reseller","value":"{{reseller}}","type":"text"},{"key":"schedule_name","value":"","type":"text"}]},"url":"https://oclnk.co/?object=cdrexport&action=read","description":"<p>Read Cdrexports</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"cdrexport"},{"key":"action","value":"read"}],"variable":[]}},"response":[{"id":"d800f9ef-3571-4466-be52-9c0d0bd39986","name":"ReadCDR_Export","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","type":"text"},{"key":"reseller","value":"{{reseller}}","type":"text"},{"key":"schedule_name","value":"ExportDaily","type":"text"}]},"url":{"raw":"https://oclnk.co/?object=cdrexport&action=read","host":["https://oclnk.co"],"path":[""],"query":[{"key":"object","value":"cdrexport"},{"key":"action","value":"read"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 08 Jun 2023 18:26:05 GMT"},{"key":"Server","value":"Apache/2.4.48 (Ubuntu)"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Length","value":"628"},{"key":"Keep-Alive","value":"timeout=2, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"schedule_name\": \"ExportDaily\",\n        \"domain\": \"apidocumentation\",\n        \"reseller\": \"telware\",\n        \"user\": \"\",\n        \"cdr_format\": \"Advanced\",\n        \"last_run_time\": \"2023-05-30 21:00:00\",\n        \"next_run_time\": \"2023-05-31 21:00:00\",\n        \"cdr_count\": \"19\",\n        \"server\": \"myonecloud.com\",\n        \"period\": \"1 day\",\n        \"path\": \"exports/ExportDaily_apidocumentation_2023-05-30 21:00:00_2023-05-31 21:00:00_Advanced__telware.csv\",\n        \"apiURL\": \"\",\n        \"deleteApiURL\": \"\"\n    },\n    {\n        \"schedule_name\": \"ExportDaily\",\n        \"domain\": \"apidocumentation\",\n        \"reseller\": \"telware\",\n        \"user\": \"\",\n        \"cdr_format\": \"Advanced\",\n        \"last_run_time\": \"2023-05-31 21:00:00\",\n        \"next_run_time\": \"2023-06-01 21:00:00\",\n        \"cdr_count\": \"0\",\n        \"server\": \"myonecloud.com\",\n        \"period\": \"1 day\",\n        \"path\": \"exports/ExportDaily_apidocumentation_2023-05-31 21:00:00_2023-06-01 21:00:00_Advanced__telware.csv\",\n        \"apiURL\": \"\",\n        \"deleteApiURL\": \"\"\n    },\n    {\n        \"schedule_name\": \"ExportDaily\",\n        \"domain\": \"apidocumentation\",\n        \"reseller\": \"telware\",\n        \"user\": \"\",\n        \"cdr_format\": \"Advanced\",\n        \"last_run_time\": \"2023-06-01 21:00:00\",\n        \"next_run_time\": \"2023-06-02 21:00:00\",\n        \"cdr_count\": \"0\",\n        \"server\": \"myonecloud.com\",\n        \"period\": \"1 day\",\n        \"path\": \"exports/ExportDaily_apidocumentation_2023-06-01 21:00:00_2023-06-02 21:00:00_Advanced__telware.csv\",\n        \"apiURL\": \"\",\n        \"deleteApiURL\": \"\"\n    }\n]"}],"_postman_id":"0301ce90-ba2f-49a5-8ec3-9e660984b6b8"},{"name":"UpdateCDR_Export","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"41a1b90c-4b4c-4c0e-9c1a-5e79d24bc6ea"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"80fbf69b-f7d7-4501-873a-1ab6b4f0b42f"}}],"id":"d43616b7-7c3c-4750-a39d-b5bef0ace84d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"schedule_name","value":"{{schedule_name}}","type":"text"},{"key":"domain","value":"{{domain}}","type":"text"},{"key":"reseller","value":"{{reseller}}","type":"text"},{"key":"user","value":"{{user}}","type":"text"},{"key":"cdr_format","value":"{{format}}","type":"text"},{"key":"last_run_time","value":"","type":"text"},{"key":"next_run_time","value":"","type":"text"},{"key":"cdr_count","value":"","type":"text"},{"key":"server","value":"","type":"text"}]},"url":"https://oclnk.co/?object=cdrexport&action=update","description":"<p>Update a new cdrexport</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"cdrexport"},{"key":"action","value":"update"}],"variable":[]}},"response":[],"_postman_id":"d43616b7-7c3c-4750-a39d-b5bef0ace84d"}],"id":"1e2122a8-01f9-49e1-8a18-b1c161f19867","_postman_id":"1e2122a8-01f9-49e1-8a18-b1c161f19867","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}}},{"name":"CDR_Schedule","item":[{"name":"CountCDR_Schedule","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [\"count\"],","        \"properties\": {","    \"count\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Count of how many cdrschedules&lt;\\/p&gt;\"","    },","    \"status\": {","        \"type\": \"string\",","        \"description\": \"\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple([jsonData], schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"e8071c53-7f1a-4fba-8123-f3f8aa3d985e"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"45945ceb-e9f3-4975-8f49-35f73124ed17"}}],"id":"631c91c0-faa1-4008-b008-a9671fa9b6e6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"schedule_name","value":"{{schedule_name}}","description":"<p>Identifies cdrSchedule from which to read info by name.</p>\n","type":"text","disabled":true},{"key":"user","value":"{{user}}","description":"<p>Identifies user from which to read info by name.</p>\n","type":"text","disabled":true},{"key":"reseller","value":"{{reseller}}","description":"<p>Identifies reseller from which to read info by name.</p>\n","type":"text","disabled":true},{"key":"domain","value":"{{domain}}","description":"<p>Identifies domain from which cdrSchedule is in.</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=cdrschedule&action=count","description":"<p>Count Schedules for Call Data records (CDRs)</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"cdrschedule"},{"key":"action","value":"count"}],"variable":[]}},"response":[{"id":"200b08f7-bbd3-4438-aaf2-7071c4e8fbc1","name":"CountCDR_Schedule","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"schedule_name","value":"{{schedule_name}}","description":"Identifies cdrSchedule from which to read info by name.","type":"text","disabled":true},{"key":"user","value":"{{user}}","description":"Identifies user from which to read info by name.","type":"text","disabled":true},{"key":"reseller","value":"{{reseller}}","description":"Identifies reseller from which to read info by name.","type":"text","disabled":true},{"key":"domain","value":"{{domain}}","description":"Identifies domain from which cdrSchedule is in.","type":"text"}]},"url":{"raw":"https://oclnk.co/?object=cdrschedule&action=count","host":["https://oclnk.co"],"path":[""],"query":[{"key":"object","value":"cdrschedule"},{"key":"action","value":"count"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 31 May 2023 16:29:52 GMT"},{"key":"Server","value":"Apache/2.4.48 (Ubuntu)"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"11"},{"key":"Keep-Alive","value":"timeout=2, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"total\": 2\n}"}],"_postman_id":"631c91c0-faa1-4008-b008-a9671fa9b6e6"},{"name":"CreateCDR_Schedule","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"3f229856-0bef-4312-9581-289a7f186a0b"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"c58ffbb7-fe37-45b3-a728-387ffc20d507"}}],"id":"74167729-9b9d-4a54-8646-4149611b578b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"schedule_name","value":"{{schedule_name}}","description":"<p>Specifies name of new cdrSchedule to be created.</p>\n","type":"text"},{"key":"reseller","value":"{{reseller}}","description":"<p>Reseller/territory name.</p>\n","type":"text","disabled":true},{"key":"domain","value":"{{domain}}","description":"<p>Domain of schedule.</p>\n","type":"text","disabled":true},{"key":"user","value":"","description":"<p>User of schedule.</p>\n","type":"text","disabled":true},{"key":"period","value":"","description":"<p>Period for schedule.</p>\n<p>Allowed values: \"1 minute\", \"5 minute\", \"15 minute\", \"30 minute\", \"1 hours\", \"4 hours\", \"6 hours\", \"8 hours\", \"12 hours\", \"1 day\", \"2 days\", \"1 week\", \"2 weeks\", \"1 month\", \"3 months\", \"6 months\"</p>\n","type":"text"},{"key":"cdrschedule_preset","value":"","type":"text","disabled":true},{"key":"time_start_preset","value":"","type":"text","disabled":true},{"key":"time_zone","value":"","type":"text","disabled":true},{"key":"cdr_format","value":"","description":"<p>Format of CDR schedule</p>\n<p>Default value: Standard</p>\n<p>Allowed values: \"Standard\", \"Advanced\"</p>\n","type":"text","disabled":true},{"key":"include_header","value":"","description":"<p>Whether to include header or not</p>\n<p>Default value: No</p>\n<p>Allowed values: \"Yes\", \"No\"</p>\n","type":"text","disabled":true},{"key":"inbound","value":"","description":"<p>Boolean, whether to show inBound or not</p>\n<p>Default value: No</p>\n<p>Allowed values: \"Yes\", \"No\"</p>\n","type":"text","disabled":true},{"key":"outbound","value":"","description":"<p>Boolean, whether to show outBound or not</p>\n<p>Default value: No</p>\n<p>Allowed values: \"Yes\", \"No\"</p>\n","type":"text","disabled":true},{"key":"offnet","value":"","description":"<p>Boolean, whether should be offnet only or not</p>\n<p>Allowed values: \"Yes\", \"No\"</p>\n","type":"text"},{"key":"script_enable","value":"","description":"<p>Boolean, whether scripts enabled or not</p>\n<p>Default value: No</p>\n<p>Allowed values: \"Yes\", \"No\"</p>\n","type":"text","disabled":true},{"key":"script_path","value":"","description":"<p>Path for the script</p>\n<p>Default value: n/a</p>\n","type":"text","disabled":true},{"key":"export_method","value":"","description":"<p>of export (email, SCP copy, FTP upload, sftp, backup locally)</p>\n<p>Default value: Method</p>\n<p>Allowed values: \"email\", \"scp copy\", \"ftp upload\", \"sftp\", \"backup locally\"</p>\n","type":"text"},{"key":"email","value":"","description":"<p>Email for the export</p>\n","type":"text","disabled":true},{"key":"hostname","value":"","type":"text","disabled":true},{"key":"remote_path","value":"","type":"text","disabled":true},{"key":"last_sequence_number","value":"","description":"<p>Segment number</p>\n","type":"text","disabled":true},{"key":"next_run_time","value":"","description":"<p>In format: 'Y-m-d H:i:s' eg. Year-Month-Day Hour:Minute:Second, 0000-00-00 00:00:00</p>\n","type":"text"},{"key":"send_email","value":"","description":"<p>Flag whether or not to send an email when the export completes</p>\n<p>Allowed values: \"yes\", \"no\"</p>\n","type":"text","disabled":true},{"key":"report_cycle","value":"","description":"<p>After what time period to repeat the export</p>\n<p>Allowed values: \"1 Day\", \"Week\", \"Month\", \"Year\"</p>\n","type":"text","disabled":true},{"key":"error_backoff","value":"","type":"text","disabled":true},{"key":"status","value":"","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=cdrschedule&action=create","description":"<p>Create a new cdrSchedule</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"cdrschedule"},{"key":"action","value":"create"}],"variable":[]}},"response":[],"_postman_id":"74167729-9b9d-4a54-8646-4149611b578b"},{"name":"DeleteCDR_Schedule","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"8e899351-441b-4eac-a7a5-4bb65522b0c6"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"dfafaaed-2b43-477c-b15d-79c5382c80f2"}}],"id":"b269f5f8-82cd-459c-bb10-92db343b88e6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"schedule_name","value":"{{schedule_name}}","description":"<p>Identifies cdrSchedule to delete by name.</p>\n","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Which domain the cdrSchedule resides</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=cdrschedule&action=delete","description":"<p>Delete an existing cdrSchedule</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"cdrschedule"},{"key":"action","value":"delete"}],"variable":[]}},"response":[],"_postman_id":"b269f5f8-82cd-459c-bb10-92db343b88e6"},{"name":"ReadCDR_Schedule","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [\"schedule_name\",\"domain\"],","        \"properties\": {","    \"schedule_name\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Specifies name of new cdrSchedule to be created.&lt;\\/p&gt;\"","    },","    \"reseller\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Reseller\\/territory name.&lt;\\/p&gt;\"","    },","    \"domain\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Domain of schedule.&lt;\\/p&gt;\"","    },","    \"user\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;User of schedule.&lt;\\/p&gt;\"","    },","    \"period\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Period for schedule.&lt;\\/p&gt;\"","    },","    \"cdr_format\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Format of schedule (Standard, Advanced, or any preconfigure format)&lt;\\/p&gt;\"","    },","    \"include_header\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Boolean, whether to add header or not&lt;\\/p&gt;\"","    },","    \"inbound\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Boolean, whether to show inBound or not&lt;\\/p&gt;\"","    },","    \"outbound\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Boolean, whether to show outBound or not&lt;\\/p&gt;\"","    },","    \"offnet\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Boolean, whether should be offnet only or not&lt;\\/p&gt;\"","    },","    \"prefixes\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"script_enable\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Boolean, whether scripts enabled or not&lt;\\/p&gt;\"","    },","    \"script_path\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Path for the script&lt;\\/p&gt;\"","    },","    \"export_method\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Method of export (email, SCP copy, FTP upload, sftp, backup locally)&lt;\\/p&gt;\"","    },","    \"email\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Email for the export&lt;\\/p&gt;\"","    },","    \"hostname\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"remote_path\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"username\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"password\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"last_sequence_number\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Segment number&lt;\\/p&gt;\"","    },","    \"last_run_time\": {","        \"type\": \"number\",","        \"description\": \"&lt;p&gt;In format: 'Y-m-d H:i:s' eg. Year-Month-Day Hour:Minute:Second, 0000-00-00 00:00:00&lt;\\/p&gt;\"","    },","    \"next_run_time\": {","        \"type\": \"number\",","        \"description\": \"&lt;p&gt;In format: 'Y-m-d H:i:s' eg. Year-Month-Day Hour:Minute:Second, 0000-00-00 00:00:00&lt;\\/p&gt;\"","    },","    \"error_backoff\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"status\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"send_email\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"report_cycle\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"previous_export_date\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"cdrschedule_preset\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"time_start_preset\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"time_zone\": {","        \"type\": \"string\",","        \"description\": \"\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['cdr_schedule'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"5890e366-ddcd-464c-8062-ef48d7008e9e"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"1155b196-641a-4074-a0d9-5c423b88c5b6"}}],"id":"785a9354-0dca-460b-aad2-97b5196f1f4e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"schedule_name","value":"{{schedule_name}}","description":"<p>Identifies cdrSchedule from which to read info by name.</p>\n","type":"text","disabled":true},{"key":"domain","value":"{{domain}}","description":"<p>Identifies domain from which cdrSchedule is in.</p>\n","type":"text","disabled":true},{"key":"reseller","value":"{{reseller}}","description":"<p>Identifies reseller from which cdrSchedule is in.</p>\n","type":"text","disabled":true},{"key":"sort","value":"","description":"<p>Sorting preference.</p>\n","type":"text","disabled":true},{"key":"limit","value":"","description":"<p>SNumber limit for the amount of Callqueue objects returned.</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=cdrschedule&action=read","description":"<p>Read Schedules for Call Data records (CDRs)</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"cdrschedule"},{"key":"action","value":"read"}],"variable":[]}},"response":[{"id":"bdb1b375-178c-4845-971f-5703e412241b","name":"ReadCDR_Schedule","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"schedule_name","value":"{{schedule_name}}","description":"Identifies cdrSchedule from which to read info by name.","type":"text","disabled":true},{"key":"domain","value":"{{domain}}","description":"Identifies domain from which cdrSchedule is in.","type":"text"},{"key":"reseller","value":"{{reseller}}","description":"Identifies reseller from which cdrSchedule is in.","type":"text","disabled":true},{"key":"sort","value":"","description":"Sorting preference.","type":"text","disabled":true},{"key":"limit","value":"","description":"SNumber limit for the amount of Callqueue objects returned.","type":"text","disabled":true}]},"url":{"raw":"https://oclnk.co/?object=cdrschedule&action=read","host":["https://oclnk.co"],"path":[""],"query":[{"key":"object","value":"cdrschedule"},{"key":"action","value":"read"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 31 May 2023 16:31:41 GMT"},{"key":"Server","value":"Apache/2.4.48 (Ubuntu)"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Length","value":"507"},{"key":"Keep-Alive","value":"timeout=2, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"schedule_name\": \"ExportDaily\",\n        \"reseller\": \"telware\",\n        \"domain\": \"apidocumentation\",\n        \"user\": \"\",\n        \"period\": \"1 day\",\n        \"cdr_format\": \"Advanced\",\n        \"include_header\": \"yes\",\n        \"inbound\": \"yes\",\n        \"outbound\": \"yes\",\n        \"offnet\": \"\",\n        \"prefixes\": \"\",\n        \"script_enable\": \"no\",\n        \"script_path\": \"n/a\",\n        \"export_method\": \"email\",\n        \"email\": \"test@test.com\",\n        \"hostname\": \"\",\n        \"remote_path\": \"\",\n        \"username\": \"\",\n        \"password\": \"\",\n        \"last_sequence_number\": \"0\",\n        \"last_run_time\": \"2023-05-30 21:00:00\",\n        \"next_run_time\": \"2023-05-31 21:00:00\",\n        \"cdrschedule_preset\": \"Daily\",\n        \"time_start_preset\": \"17:00\",\n        \"time_zone\": \"America/New_York\",\n        \"month_day\": \"01\",\n        \"weekday\": \"\",\n        \"error_backoff\": null,\n        \"status\": \"waiting\",\n        \"send_email\": \"yes\",\n        \"report_cycle\": \"1 Day\",\n        \"server\": null,\n        \"start_time\": null,\n        \"kill_time\": null,\n        \"previous_export_date\": null,\n        \"run_immediately\": \"\",\n        \"language\": \"en_us\",\n        \"trials\": \"0\"\n    },\n    {\n        \"schedule_name\": \"testExportMonthly\",\n        \"reseller\": \"telware\",\n        \"domain\": \"apidocumentation\",\n        \"user\": \"\",\n        \"period\": \"1 month\",\n        \"cdr_format\": \"Advanced\",\n        \"include_header\": \"yes\",\n        \"inbound\": \"yes\",\n        \"outbound\": \"yes\",\n        \"offnet\": \"\",\n        \"prefixes\": \"\",\n        \"script_enable\": \"no\",\n        \"script_path\": \"n/a\",\n        \"export_method\": \"do nothing\",\n        \"email\": \"\",\n        \"hostname\": \"\",\n        \"remote_path\": \"\",\n        \"username\": \"\",\n        \"password\": \"\",\n        \"last_sequence_number\": \"0\",\n        \"last_run_time\": \"2023-05-01 04:00:00\",\n        \"next_run_time\": \"2023-06-01 04:00:00\",\n        \"cdrschedule_preset\": \"Monthly\",\n        \"time_start_preset\": \"00:00\",\n        \"time_zone\": \"America/New_York\",\n        \"month_day\": \"01\",\n        \"weekday\": \"\",\n        \"error_backoff\": null,\n        \"status\": \"waiting\",\n        \"send_email\": \"yes\",\n        \"report_cycle\": \"1 Month\",\n        \"server\": null,\n        \"start_time\": null,\n        \"kill_time\": null,\n        \"previous_export_date\": null,\n        \"run_immediately\": \"\",\n        \"language\": \"en_us\",\n        \"trials\": \"0\"\n    }\n]"}],"_postman_id":"785a9354-0dca-460b-aad2-97b5196f1f4e"},{"name":"UpdateCDR_Schedule","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"db2db9bc-2152-4107-b1ac-11563f97a0cd"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"1e636a06-fd28-4a4d-8948-38dffd196bfd"}}],"id":"e6d0938b-0d4d-4c79-ae88-bfe9cf045412","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"schedule_name","value":"{{schedule_name}}","description":"<p>Specifies name of new cdrSchedule to be created.</p>\n","type":"text"},{"key":"reseller","value":"{{reseller}}","description":"<p>Reseller/territory name.</p>\n","type":"text","disabled":true},{"key":"domain","value":"{{domain}}","description":"<p>Domain of schedule.</p>\n","type":"text"},{"key":"user","value":"{{user}}","description":"<p>User of schedule.</p>\n","type":"text","disabled":true},{"key":"period","value":"","description":"<p>Period for schedule.</p>\n<p>Allowed values: \"1 minute\", \"5 minute\", \"15 minute\", \"30 minute\", \"1 hours\", \"4 hours\", \"6 hours\", \"8 hours\", \"12 hours\", \"1 day\", \"2 days\", \"1 week\", \"2 weeks\", \"1 month\", \"3 months\", \"6 months\"</p>\n","type":"text","disabled":true},{"key":"cdr_format","value":"","description":"<p>Format of schedule (Standard, Advanced, or any preconfigure format)</p>\n<p>Default value: Standard</p>\n","type":"text","disabled":true},{"key":"include_header","value":"","description":"<p>Format of schedule (Standard, Advanced, or any preconfigure format)</p>\n<p>Default value: Standard</p>\n","type":"text","disabled":true},{"key":"inbound","value":"","description":"<p>Format of schedule (Standard, Advanced, or any preconfigure format)</p>\n<p>Default value: Standard</p>\n","type":"text","disabled":true},{"key":"outbound","value":"","description":"<p>Boolean, whether to show outBound or not</p>\n<p>Default value: No</p>\n<p>Allowed values: \"Yes\", \"No\"</p>\n","type":"text","disabled":true},{"key":"offnet","value":"","description":"<p>Boolean, whether should be offnet only or not</p>\n<p>Default value: No</p>\n<p>Allowed values: \"Yes\", \"No\"</p>\n","type":"text"},{"key":"script_enable","value":"","description":"<p>Boolean, whether scripts enabled or not</p>\n<p>Default value: No</p>\n<p>Allowed values: \"Yes\", \"No\"</p>\n","type":"text","disabled":true},{"key":"script_path","value":"","description":"<p>Path for the script</p>\n<p>Default value: n/a</p>\n","type":"text","disabled":true},{"key":"export_method","value":"","description":"<p>Method of export (email, SCP copy, FTP upload, sftp, backup locally)</p>\n<p>Default value: email</p>\n<p>Allowed values: \"email\", \"scp copy\", \"ftp upload\", \"sftp\", \"backup locally\"</p>\n","type":"text"},{"key":"email","value":"","description":"<p>Email for the export</p>\n","type":"text","disabled":true},{"key":"hostname","value":"","type":"text","disabled":true},{"key":"remote_path","value":"","type":"text","disabled":true},{"key":"last_run_time","value":"","description":"<p>In format: 'Y-m-d H:i:s' eg. Year-Month-Day Hour:Minute:Second, 0000-00-00 00:00:00</p>\n","type":"text","disabled":true},{"key":"next_run_time","value":"","description":"<p>In format: 'Y-m-d H:i:s' eg. Year-Month-Day Hour:Minute:Second, 0000-00-00 00:00:00</p>\n","type":"text","disabled":true},{"key":"send_email","value":"","type":"text","disabled":true},{"key":"report_cycle","value":"","type":"text","disabled":true},{"key":"status","value":"","type":"text","disabled":true},{"key":"server","value":"","type":"text","disabled":true},{"key":"start_time","value":"","type":"text","disabled":true},{"key":"kill_time","value":"","type":"text","disabled":true},{"key":"previous_export_date","value":"","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=cdrschedule&action=update","description":"<p>Update a cdrSchedule</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"cdrschedule"},{"key":"action","value":"update"}],"variable":[]}},"response":[],"_postman_id":"e6d0938b-0d4d-4c79-ae88-bfe9cf045412"}],"id":"c70313f1-a53f-4afa-a00c-7094fe5c5002","_postman_id":"c70313f1-a53f-4afa-a00c-7094fe5c5002","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}}},{"name":"Call","item":[{"name":"AnswerCall","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['call'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"a2e149bc-7fba-4806-b9cc-f6bec2946a91"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"7af865b2-6212-45c1-ae75-928a24681f31"}}],"id":"fccd6fe5-4bd1-491f-96a5-52a05ccda2d1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"callid","value":"","description":"<p>SIP Call-ID of the call request to be answered.</p>\n","type":"text"},{"key":"uid","value":"{{uid}}","description":"<p>User ID for the subscriber monitoring the call.</p>\n","type":"text"},{"key":"destination","value":"","description":"<p>Destination/recipient to answer the call. The specific device that will answer. Use SIP account of the extension you want to reach. The destination device MUST be registered in the domain.</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=call&action=answer","description":"<p>Answer an incoming call</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"call"},{"key":"action","value":"answer"}],"variable":[]}},"response":[],"_postman_id":"fccd6fe5-4bd1-491f-96a5-52a05ccda2d1"},{"name":"CallToRecordCall","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['call'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"47e1286c-ff1e-4d9f-a222-4f287af22b71"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"8f4937bb-e59f-4d7d-a207-76f08c5e132a"}}],"id":"9ce7f46b-847a-41f8-ae18-48ebfeb8999f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"callid","value":"","description":"<p>SIP Call-ID which should be unique for the Call.</p>\n","type":"text"},{"key":"uid","value":"{{uid}}","description":"<p>User ID for the subscriber monitoring the Call.</p>\n","type":"text"},{"key":"destination","value":"","description":"<p>Destination/recipient for the Call.</p>\n","type":"text"},{"key":"type","value":"","description":"<p>Type of message to record. Options: moh, greeting</p>\n","type":"text"},{"key":"index","value":"","description":"<p>Index in which the recorded message is saved. Used to playback the message.</p>\n","type":"text"},{"key":"auto","value":"","description":"<p>Specifies if auto answer is enabled or disabled.</p>\n","type":"text","disabled":true},{"key":"ani","value":"","description":"<p>Automated number identification.</p>\n","type":"text","disabled":true},{"key":"script","value":"","description":"<p>The text to save as the description or script</p>\n","type":"text","disabled":true},{"key":"description","value":"","description":"<p>Description of message.</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=call&action=call_to_record","description":"<p>Record a message</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"call"},{"key":"action","value":"call_to_record"}],"variable":[]}},"response":[],"_postman_id":"9ce7f46b-847a-41f8-ae18-48ebfeb8999f"},{"name":"CountCall","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"total\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Number of active Calls.&lt;\\/p&gt;\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple([jsonData], schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"47fde1f0-1918-4c78-884a-d8cfda64191b"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"6c77ccc4-2591-4fe2-93e9-a4e637a78b77"}}],"id":"cdb6c114-1ab3-42e1-8f28-a66f9c0e52c4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Name of domain with active Calls to count.</p>\n","type":"text"},{"key":"groupby","value":"","type":"text","disabled":true},{"key":"territory","value":"{{territory}}","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=call&action=count","description":"<p>Count active Calls</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"call"},{"key":"action","value":"count"}],"variable":[]}},"response":[{"id":"42dcf699-1cae-4c05-b8ed-718336d99fa8","name":"CountCall","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","description":"Name of domain with active Calls to count.","type":"text"},{"key":"groupby","value":"","type":"text","disabled":true},{"key":"territory","value":"{{territory}}","type":"text","disabled":true}]},"url":{"raw":"https://oclnk.co/?object=call&action=count","host":["https://oclnk.co"],"path":[""],"query":[{"key":"object","value":"call"},{"key":"action","value":"count"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 31 May 2023 16:38:30 GMT"},{"key":"Server","value":"Apache/2.4.48 (Ubuntu)"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"1"},{"key":"Keep-Alive","value":"timeout=2, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"2"}],"_postman_id":"cdb6c114-1ab3-42e1-8f28-a66f9c0e52c4"},{"name":"DisconnectCall","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['call'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"14b564af-d3b8-4d80-91c0-6ef0bb68f1bf"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"5a9fe1a9-5660-4c08-97c5-027542cc8b6b"}}],"id":"1315f861-1947-4903-8542-47552c87d7cd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"callid","value":"","description":"<p>SIP Call-ID of the Call to disconnect.</p>\n","type":"text"},{"key":"uid","value":"{{uid}}","description":"<p>User ID for the subscriber monitoring the Call.</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=call&action=disconnect","description":"<p>Disconnect an active Call</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"call"},{"key":"action","value":"disconnect"}],"variable":[]}},"response":[],"_postman_id":"1315f861-1947-4903-8542-47552c87d7cd"},{"name":"HoldOrigCall","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['call'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"43b86dce-60eb-4992-99fe-b248396b022b"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"7b69a954-e2aa-47fb-9fa3-db54dfc8418a"}}],"id":"a9e3b502-c0cb-4965-8f39-5ff2ab49b646","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"callid","value":"","description":"<p>SIP Call-ID of the Call you want to place on hold.</p>\n","type":"text"},{"key":"uid","value":"{{uid}}","description":"<p>User ID for the subscriber monitoring the Call.</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=call&action=hold_orig","description":"<p>Place Call's source on hold</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"call"},{"key":"action","value":"hold_orig"}],"variable":[]}},"response":[],"_postman_id":"a9e3b502-c0cb-4965-8f39-5ff2ab49b646"},{"name":"HoldTermCall","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['call'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"b90ec308-30aa-477e-b13f-5e2a364af439"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"5dcca777-1d98-48ed-8d24-d03d1519dddb"}}],"id":"eb1d64d6-8d00-4b1d-8f7d-13e87215678f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"callid","value":"","description":"<p>SIP Call-ID of the Call you want to place on hold.</p>\n","type":"text"},{"key":"uid","value":"{{uid}}","description":"<p>User ID for the subscriber monitoring the Call.</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=call&action=hold_term","description":"<p>Place Call's recipient on hold</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"call"},{"key":"action","value":"hold_term"}],"variable":[]}},"response":[],"_postman_id":"eb1d64d6-8d00-4b1d-8f7d-13e87215678f"},{"name":"MakeCall","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['call'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"f8e2f8c1-1366-4113-ab39-2b6c52f8876b"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"8e8c7806-e702-4bbc-99e6-8657123ce261"}}],"id":"758e8702-9ce8-420f-be64-0233c5d2e34a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"callid","value":"","description":"<p>SIP Call-ID. Should be unique for each Call.</p>\n","type":"text"},{"key":"uid","value":"{{uid}}","description":"<p>User ID for the subscriber monitoring the Call.</p>\n","type":"text"},{"key":"destination","value":"","description":"<p>Destination/recipient for the Call. Use SIP account of the extension you're trying to reach.</p>\n","type":"text"},{"key":"origination","value":"","description":"<p>Source of the new call.</p>\n","type":"text","disabled":true},{"key":"application","value":"","description":"<p>Name of the Application. Default to \"call\"</p>\n","type":"text","disabled":true},{"key":"auto","value":"","description":"<p>Specify whether auto answer is enabled or disabled.</p>\n","type":"text","disabled":true},{"key":"cbani","value":"","description":"<p>ANI to be signalled at the Call Back</p>\n","type":"text","disabled":true},{"key":"ani","value":"","description":"<p>Automatic number identification. Grants the destination access to information about the call's origin.</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=call&action=call","description":"<p>Make a new Call</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"call"},{"key":"action","value":"call"}],"variable":[]}},"response":[],"_postman_id":"758e8702-9ce8-420f-be64-0233c5d2e34a"},{"name":"ParkCall","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"park\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;The park\\/queue the call has been moved to.&lt;\\/p&gt;\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['call'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"24bb5e0a-c2bc-47ae-bf9d-b37657972bda"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"df7ecd87-67f7-4d78-8f0e-677d44675f43"}}],"id":"a37db764-4b9d-45b3-b911-c04345396722","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"callid","value":"","description":"<p>SIP Call-ID of the Call to transfer.</p>\n","type":"text"},{"key":"uid","value":"{{uid}}","description":"<p>User ID for the subscriber monitoring the Call.</p>\n","type":"text"},{"key":"prefix","value":"","description":"<p>In the park case this will be a prefix used to match on dial translation</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=call&action=park","description":"<p>Dynamically park a call in a open park slot</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"call"},{"key":"action","value":"park"}],"variable":[]}},"response":[],"_postman_id":"a37db764-4b9d-45b3-b911-c04345396722"},{"name":"PlaybackCall","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['call'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"82018889-2738-4309-8bc7-66658835576e"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"19c0077e-fba8-4084-998c-bd32027ed6b8"}}],"id":"420b60fe-a927-493e-87f8-2f19d5d4531f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"callid","value":"","description":"<p>SIP Call-ID which should be unique for the Call.</p>\n","type":"text"},{"key":"uid","value":"{{uid}}","description":"<p>User ID for the subscriber monitoring the Call.</p>\n","type":"text"},{"key":"destination","value":"","description":"<p>Destination/recipient for the Call.</p>\n","type":"text"},{"key":"type","value":"","description":"<p>Type of message to record. Options: moh, greeting</p>\n","type":"text"},{"key":"index","value":"","description":"<p>Index where the message played is stored. Must match the index specified when the Call was recorded.</p>\n","type":"text"},{"key":"auto","value":"","description":"<p>Specifies if auto answer is enabled or disabled.</p>\n","type":"text","disabled":true},{"key":"ani","value":"","description":"<p>Ani to be used for the call.</p>\n","type":"text","disabled":true},{"key":"script","value":"","description":"<p>The text to be used</p>\n","type":"text","disabled":true},{"key":"description","value":"","description":"<p>Description of message.</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=call&action=call_to_playback","description":"<p>Playback a recorded message</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"call"},{"key":"action","value":"call_to_playback"}],"variable":[]}},"response":[],"_postman_id":"420b60fe-a927-493e-87f8-2f19d5d4531f"},{"name":"ReadCall","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"orig_callid\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;SIP Call-ID for the Call's origin.&lt;\\/p&gt;\"","    },","    \"orig_match\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;The originatiing device match for the call&lt;\\/p&gt;\"","    },","    \"orig_user\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;User responsible for originating call.&lt;\\/p&gt;\"","    },","    \"orig_domain\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Domain of Call's origin.&lt;\\/p&gt;\"","    },","    \"orig_uri\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Uniform resource identifier for the Call's origin.&lt;\\/p&gt;\"","    },","    \"orig_name\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Name of Call's origin.&lt;\\/p&gt;\"","    },","    \"ani\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Automatic number identification&lt;\\/p&gt;\"","    },","    \"dnis\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Dialed number identification service&lt;\\/p&gt;\"","    },","    \"by_action\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Method used to create Call.&lt;\\/p&gt;\"","    },","    \"by_user\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;User responsible for altering or initiating the call.&lt;\\/p&gt;\"","    },","    \"by_domain\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Domain responsible for altering or initiating the call.&lt;\\/p&gt;\"","    },","    \"by_callid\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;SIP Call-ID for potentially altered call like a transfer&lt;\\/p&gt;\"","    },","    \"term_callid\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;SIP Call-ID for the Call's destination.&lt;\\/p&gt;\"","    },","    \"term_user\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;User for the Call's destination.&lt;\\/p&gt;\"","    },","    \"term_domain\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Domain for the Call's destination.&lt;\\/p&gt;\"","    },","    \"term_uri\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Uniform resource identifier for Call's destination.&lt;\\/p&gt;\"","    },","    \"time_begin\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Timestamp for when the Call originated, output as mm\\/dd\\/yy hrs:min:sec&lt;\\/p&gt;\"","    },","    \"time_answer\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Timestamp for when the Call was answered, output as mm\\/dd\\/yy hrs:min:sec&lt;\\/p&gt;\"","    },","    \"orig_call_info\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Status for the Call's source. 'Progressing' if the Call is in progress, 'Active' if the Call has connected.&lt;\\/p&gt;\"","    },","    \"term_call_info\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Status for the Call's destination. 'Alerting' if the Call has not yet been accepted, 'Active' when the Call is accepted.&lt;\\/p&gt;\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['call'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"730df75f-77a9-40c8-8ff0-f5741aedf962"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"dcf231d0-5287-42b8-b2a7-4433c27466bc"}}],"id":"6b947ce9-840a-467f-bc6e-02fc17b40896","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Name of domain from which to read active Calls.</p>\n","type":"text"},{"key":"start","value":"","description":"<p>Offset from the beginning of the returned list.</p>\n<p>Default value: 0</p>\n","type":"text","disabled":true},{"key":"limit","value":"","description":"<p>Number limit for the amount of CDRs returned.</p>\n","type":"text","disabled":true},{"key":"sort","value":"","description":"<p>Sorting preference for Call list output. Default sorts by the time a call began in ascending order.</p>\n<p>Default value: time_start ASC</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=call&action=read","description":"<p>Read active Calls</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"call"},{"key":"action","value":"read"}],"variable":[]}},"response":[{"id":"089d7deb-8caf-44d8-83ee-f5b16f65ddfb","name":"ReadCall","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","description":"Name of domain from which to read active Calls.","type":"text"},{"key":"start","value":"","description":"Offset from the beginning of the returned list.\n\nDefault value: 0","type":"text","disabled":true},{"key":"limit","value":"","description":"Number limit for the amount of CDRs returned.","type":"text","disabled":true},{"key":"sort","value":"","description":"Sorting preference for Call list output. Default sorts by the time a call began in ascending order.\n\nDefault value: time_start ASC","type":"text","disabled":true}]},"url":{"raw":"https://oclnk.co/?object=call&action=read","host":["https://oclnk.co"],"path":[""],"query":[{"key":"object","value":"call"},{"key":"action","value":"read"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 31 May 2023 16:55:18 GMT"},{"key":"Server","value":"Apache/2.4.48 (Ubuntu)"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Length","value":"352"},{"key":"Keep-Alive","value":"timeout=2, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"hostname\": \"OneCloud\",\n        \"session_id\": \"20230531165411065176\",\n        \"orig_callid\": \"dukis5pu9spdv016i7c5\",\n        \"orig_match\": \"sip:1002wp@apidocumentation\",\n        \"orig_user\": \"1002\",\n        \"orig_domain\": \"apidocumentation\",\n        \"orig_uri\": \"sip:8009219680@apidocumentation\",\n        \"orig_name\": \"OneCloud\",\n        \"ani\": \"8009219680\",\n        \"dnis\": \"9803459422\",\n        \"by_action\": \"\",\n        \"by_user\": \"\",\n        \"by_domain\": \"\",\n        \"by_callid\": \"\",\n        \"term_callid\": \"20230531165411065177-21fcfa0d6d7741cdfffc132a42b85f78\",\n        \"term_user\": \"\",\n        \"term_domain\": \"*\",\n        \"term_uri\": \"sip:+17045984700@206.147.80.57\",\n        \"time_begin\": \"2023-05-31 16:54:11\",\n        \"time_answer\": \"2023-05-31 16:54:15\",\n        \"orig_call_info\": \"active\",\n        \"term_call_info\": \"active\",\n        \"media\": \"PCMU\"\n    }\n]"}],"_postman_id":"6b947ce9-840a-467f-bc6e-02fc17b40896"},{"name":"RecordStartCall","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['call'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"2df1973a-a7d1-4c2b-8e40-4fb67b70a2bf"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"93c57380-cd00-4ce4-b52e-c0359c26c862"}}],"id":"1c7f2b11-7e17-48d4-996e-7fc0d0864942","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"callid","value":"","description":"<p>SIP Call-ID of the Call to record.</p>\n","type":"text"},{"key":"uid","value":"{{uid}}","description":"<p>User ID for the subscriber monitoring the Call.</p>\n","type":"text"},{"key":"aor","value":"","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=call&action=record_on","description":"<p>Record an active Call</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"call"},{"key":"action","value":"record_on"}],"variable":[]}},"response":[],"_postman_id":"1c7f2b11-7e17-48d4-996e-7fc0d0864942"},{"name":"RecordStopCall","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['call'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"889c62fc-81ce-4168-80f7-72cab0e089cf"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"eb28ff21-5290-498b-a2e0-4ea3dc09fa47"}}],"id":"cbafa99e-61a5-491d-932e-7f72f85a96a7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"callid","value":"","description":"<p>SIP Call-ID of the Call you want to stop recording.</p>\n","type":"text"},{"key":"uid","value":"{{uid}}","description":"<p>User ID for the subscriber.</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=call&action=record_off","description":"<p>Stop recording a Call</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"call"},{"key":"action","value":"record_off"}],"variable":[]}},"response":[],"_postman_id":"cbafa99e-61a5-491d-932e-7f72f85a96a7"},{"name":"RecordStopCall","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['call'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"6510efec-490b-4cf4-9d98-29c57d636126"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"8fcea395-9d3f-43e3-bc92-8ab3e92662b1"}}],"id":"f7899a1a-a081-46da-8f90-1b9abcacba9b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"callid","value":"","type":"text"},{"key":"uid","value":"{{uid}}","type":"text"}]},"url":"https://oclnk.co/?object=call&action=record_unpause","description":"<p>Unpause recording a Call</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"call"},{"key":"action","value":"record_unpause"}],"variable":[]}},"response":[],"_postman_id":"f7899a1a-a081-46da-8f90-1b9abcacba9b"},{"name":"RejectCall","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['call'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"396da66b-46f4-46e7-b11f-4dbe7e82d709"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"5ca292e1-6ce8-47df-a73b-1c209b05ef1d"}}],"id":"45c4d92e-d9da-4a6b-8b62-d11ce9be2f94","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"callid","value":"","description":"<p>SIP Call-ID for the Call to reject.</p>\n","type":"text"},{"key":"uid","value":"{{uid}}","description":"<p>User ID for the subscriber monitoring the Call.</p>\n","type":"text"},{"key":"aor","value":"","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=call&action=reject","description":"<p>Reject a Call</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"call"},{"key":"action","value":"reject"}],"variable":[]}},"response":[],"_postman_id":"45c4d92e-d9da-4a6b-8b62-d11ce9be2f94"},{"name":"ReportCall","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"max\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;max number of active calls.&lt;\\/p&gt;\"","    },","    \"min\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;min number of active calls.&lt;\\/p&gt;\"","    },","    \"avg\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;average number of active calls.&lt;\\/p&gt;\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['call'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"fbe48188-1e51-4f16-8870-181e869bbc5f"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"69d32c12-4aac-4403-bc9f-30cdf0cfb703"}}],"id":"f2781d98-6d04-4d78-b034-30aeb7503bac","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"start_date","value":"{{start_date}}","description":"<p>Limit search by start date.(Y-m-d H:i:s).</p>\n","type":"text"},{"key":"end_date","value":"{{end_date}}","description":"<p>Limit search by end date.(Y-m-d H:i:s).</p>\n","type":"text"},{"key":"group_by","value":"domain","description":"<p>Get all by group</p>\n<p>Default value: domain</p>\n","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Name of domain from which to read active Calls.</p>\n","type":"text"},{"key":"hostname","value":"","description":"<p>Name of hostname from which to read active Calls.</p>\n","type":"text","disabled":true},{"key":"reseller","value":"{{reseller}}","type":"text","disabled":true},{"key":"cluster","value":"","type":"text","disabled":true},{"key":"site","value":"{{site}}","type":"text","disabled":true},{"key":"group","value":"{{group}}","type":"text","disabled":true},{"key":"connection","value":"","type":"text","disabled":true},{"key":"report_by","value":"","description":"<p>Get reports by.</p>\n<p>Default value: min</p>\n<p>Allowed values: \"hour\", \"day\", \"min\"</p>\n","type":"text"},{"key":"type","value":"","description":"<p>Get reports according to \"onnet, offnet or total\".</p>\n<p>Default value: onnet</p>\n<p>Allowed values: \"onnet\", \"offnet\"</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=call&action=report","description":"<p>Report active calls</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"call"},{"key":"action","value":"report"}],"variable":[]}},"response":[{"id":"62afe111-71c5-4d29-9859-215e5e6da62f","name":"ReportCall","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"start_date","value":"{{start_date}}","description":"Limit search by start date.(Y-m-d H:i:s).","type":"text"},{"key":"end_date","value":"{{end_date}}","description":"Limit search by end date.(Y-m-d H:i:s).","type":"text"},{"key":"group_by","value":"domain","description":"Get all by group\n\nDefault value: domain","type":"text"},{"key":"domain","value":"{{domain}}","description":"Name of domain from which to read active Calls.","type":"text"},{"key":"hostname","value":"","description":"Name of hostname from which to read active Calls.","type":"text","disabled":true},{"key":"reseller","value":"{{reseller}}","type":"text","disabled":true},{"key":"cluster","value":"","type":"text","disabled":true},{"key":"site","value":"{{site}}","type":"text","disabled":true},{"key":"group","value":"{{group}}","type":"text","disabled":true},{"key":"connection","value":"","type":"text","disabled":true},{"key":"report_by","value":"day","description":"Get reports by.\n\nDefault value: min\n\nAllowed values: \"hour\", \"day\", \"min\"","type":"text"},{"key":"type","value":"total","description":"Get reports according to \"onnet, offnet or total\".\n\nDefault value: onnet\n\nAllowed values: \"onnet\", \"offnet\"","type":"text"}]},"url":{"raw":"https://oclnk.co/?object=call&action=report","host":["https://oclnk.co"],"path":[""],"query":[{"key":"object","value":"call"},{"key":"action","value":"report"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 31 May 2023 17:05:14 GMT"},{"key":"Server","value":"Apache/2.4.48 (Ubuntu)"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Length","value":"11731"},{"key":"Keep-Alive","value":"timeout=2, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"1685404800\": [\n        {\n            \"0\": {\n                \"min\": \"0\",\n                \"max\": \"0\",\n                \"avg\": \"0\",\n                \"date\": \"Tue, 30 May 2023 00:00:00 +0000\"\n            },\n            \"type\": \"adapidocumentation\"\n        }\n    ]\n}"}],"_postman_id":"f2781d98-6d04-4d78-b034-30aeb7503bac"},{"name":"TransferCall","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['call'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"8a875a1d-0c02-4979-a834-0365dcac9b66"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"09978945-747e-45a1-ba64-f0df0f840bd7"}}],"id":"ab22d6e3-4fc8-4751-9db6-8c7fa9bbb194","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"callid","value":"","description":"<p>SIP Call-ID of the Call to transfer.</p>\n","type":"text"},{"key":"uid","value":"{{uid}}","description":"<p>User ID for the subscriber monitoring the Call.</p>\n","type":"text"},{"key":"destination","value":"","description":"<p>Destination where the Call is transferred. SIP account of the extension to transfer to.</p>\n","type":"text"},{"key":"hostname","value":"","description":"<p>Hostname of the destination session for supervised transfer.</p>\n","type":"text","disabled":true},{"key":"dest_sessionId","value":"","description":"<p>SessionId of the destination session for supervised transfer.</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=call&action=xfer","description":"<p>Transfer an active Call</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"call"},{"key":"action","value":"xfer"}],"variable":[]}},"response":[],"_postman_id":"ab22d6e3-4fc8-4751-9db6-8c7fa9bbb194"},{"name":"UnholdCall","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['call'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"ecee0f6d-19d9-401d-a977-f64f4e1abd57"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"a13b53dc-9f53-4651-a51e-a5ff74c5a1a0"}}],"id":"ca32354e-2ed2-4e68-bf96-e5b885be14f1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"callid","value":"","description":"<p>SessionId of the destination session for supervised transfer.</p>\n","type":"text"},{"key":"uid","value":"{{uid}}","description":"<p>User ID for the subscriber monitoring the Call.</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=call&action=unhold","description":"<p>Unhold a Call</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"call"},{"key":"action","value":"unhold"}],"variable":[]}},"response":[],"_postman_id":"ca32354e-2ed2-4e68-bf96-e5b885be14f1"},{"name":"record_pauseCall","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['call'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"b9136ff4-3f38-443b-9f83-24b478b2d129"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"ebe38961-7d01-405c-9fd1-46c3152905d5"}}],"id":"e739ebde-5acd-4b16-bdf3-0c3b6d980393","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"callid","value":"","description":"<p>SIP Call-ID of the Call to record.</p>\n","type":"text"},{"key":"uid","value":"{{uid}}","description":"<p>User ID for the subscriber monitoring the Call.</p>\n","type":"text"},{"key":"aor","value":"","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=call&action=record_pause","description":"<p>Pause a call recording</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"call"},{"key":"action","value":"record_pause"}],"variable":[]}},"response":[],"_postman_id":"e739ebde-5acd-4b16-bdf3-0c3b6d980393"}],"id":"3e26d627-8c3a-47e3-b3f9-eef08effdf7d","_postman_id":"3e26d627-8c3a-47e3-b3f9-eef08effdf7d","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}}},{"name":"Call_Center_Stats","item":[{"name":"ReadAgentLogCall_Center_Stats","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [\"L\",\"B\",\"M\",\"O\",\"W\",\"AM\",\"UM\",\"LI\",\"AAM\"],","        \"properties\": {","    \"L\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Lunch Minutes&lt;\\/p&gt;\"","    },","    \"B\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Break Minutes&lt;\\/p&gt;\"","    },","    \"M\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Meeting Minutes&lt;\\/p&gt;\"","    },","    \"O\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Other Minutes&lt;\\/p&gt;\"","    },","    \"W\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Web Minutes&lt;\\/p&gt;\"","    },","    \"AM\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Available Minutes&lt;\\/p&gt;\"","    },","    \"UM\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Unavailable Minutes&lt;\\/p&gt;\"","    },","    \"LI\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Logged in Minutes&lt;\\/p&gt;\"","    },","    \"AAM\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Adjusted Available Minutes (available_minutes - SUM(op_time_talking) - SUM(time_disp))&lt;\\/p&gt;\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['call_center_stats'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"3fe11fb7-81e3-4125-9ff7-2f81837fd84e"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"276dc929-c053-469d-9272-a299e5b48d3b"}}],"id":"199020cf-cc3b-41d4-8750-a1833cd74171","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Domain</p>\n","type":"text"},{"key":"type","value":"","description":"<p>Type (queue, agent, dnis)</p>\n","type":"text"},{"key":"start_date","value":"{{start_date}}","description":"<p>Date and time statistics will begin from (YYYY-MM-DD HH:MM:SS)</p>\n","type":"text"},{"key":"end_date","value":"{{end_date}}","description":"<p>Date and time statistics will end at (YYYY-MM-DD HH:MM:SS)</p>\n","type":"text"},{"key":"group","value":"","description":"<p>Group to filter by (Department)</p>\n","type":"text"},{"key":"fields","value":"","description":"<p>Fields in order to fill and get particular statistics for. Separate multiple fields with \",\"</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=statistics&action=read","description":"<p>Read Agent Log for Call Center</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"statistics"},{"key":"action","value":"read"}],"variable":[]}},"response":[{"id":"46648759-2d33-4d50-a35d-ee23e4868a66","name":"ReadAgentLogCall_Center_Stats","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","description":"Domain","type":"text"},{"key":"type","value":"agent","description":"Type (queue, agent, dnis)","type":"text"},{"key":"start_date","value":"{{start_date}}","description":"Date and time statistics will begin from (YYYY-MM-DD HH:MM:SS)","type":"text"},{"key":"end_date","value":"{{end_date}}","description":"Date and time statistics will end at (YYYY-MM-DD HH:MM:SS)","type":"text"},{"key":"group","value":"Billing","description":"Group to filter by (Department)","type":"text"},{"key":"fields","value":"co,tt,ch,aht,ast","description":"Fields in order to fill and get particular statistics for. Separate multiple fields with \",\"","type":"text"}]},"url":{"raw":"https://oclnk.co/?object=statistics&action=read","host":["https://oclnk.co"],"path":[""],"query":[{"key":"object","value":"statistics"},{"key":"action","value":"read"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 31 May 2023 20:13:59 GMT"},{"key":"Server","value":"Apache/2.4.48 (Ubuntu)"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Length","value":"89"},{"key":"Keep-Alive","value":"timeout=2, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"1002\": {\n        \"CO\": 7,\n        \"TT\": 0.37,\n        \"CH\": 7,\n        \"AHT\": 0.05,\n        \"ast\": 0\n    }\n}"}],"_postman_id":"199020cf-cc3b-41d4-8750-a1833cd74171"},{"name":"ReadDNISStatsCall_Center_Stats","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [\"VOL\",\"CH\",\"CO\",\"ACO\",\"VM\",\"FWD\",\"ATT\",\"AHT\",\"SL\",\"DT\",\"AC\",\"AAC\",\"AR\",\"AAR\",\"AAS\"],","        \"properties\": {","    \"VOL\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Volume&lt;\\/p&gt;\"","    },","    \"CH\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Calls Handled&lt;\\/p&gt;\"","    },","    \"CO\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Calls Offered&lt;\\/p&gt;\"","    },","    \"ACO\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Average Calls Offered&lt;\\/p&gt;\"","    },","    \"VM\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Amount forwarded to Voicemail&lt;\\/p&gt;\"","    },","    \"FWD\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Fowarded Call Count&lt;\\/p&gt;\"","    },","    \"ATT\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Average Talking Time&lt;\\/p&gt;\"","    },","    \"AHT\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Handle Time&lt;\\/p&gt;\"","    },","    \"SL\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;% Service Level&lt;\\/p&gt;\"","    },","    \"DT\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;% Dial Transfers&lt;\\/p&gt;\"","    },","    \"AC\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Abandoned Call Count&lt;\\/p&gt;\"","    },","    \"AAC\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Adjusted Abandoned Call Count&lt;\\/p&gt;\"","    },","    \"AR\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Abandon Rate&lt;\\/p&gt;\"","    },","    \"AAR\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Adjusted Abandon Rate&lt;\\/p&gt;\"","    },","    \"AAS\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Average Answer Speed&lt;\\/p&gt;\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['call_center_stats'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"8a0a51cb-f20e-4ad7-ae35-85205fdde281"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"8d70590d-68ae-4c52-aa15-52963fda5d2d"}}],"id":"9cd3bc81-6d76-418b-8c89-ce20513638df","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Domain</p>\n","type":"text"},{"key":"type","value":"queue","description":"<p>Type (queue, agent, dnis)</p>\n","type":"text"},{"key":"start_date","value":"{{start_date}}","description":"<p>Date and time statistics will begin from (YYYY-MM-DD HH:MM:SS)</p>\n","type":"text"},{"key":"end_date","value":"{{end_date}}","description":"<p>Date and time statistics will end at (YYYY-MM-DD HH:MM:SS)</p>\n","type":"text"},{"key":"fields","value":"ch","description":"<p>Fields in order to fill and get particular statistics for. Separate multiple fields with \",\"</p>\n","type":"text"},{"key":"queue","value":"8003","description":"<p>Extension of Queue to filter by</p>\n","type":"text"},{"key":"remove_zeros","value":"","description":"<p>Remove zeros from the results</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=statistics&action=read","description":"<p>Read DNIS Stats for Call Center</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"statistics"},{"key":"action","value":"read"}],"variable":[]}},"response":[{"id":"f6feb783-b2ac-4a56-b709-cb809023f7b5","name":"ReadDNISStatsCall_Center_Stats","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","description":"Domain","type":"text"},{"key":"type","value":"queue","description":"Type (queue, agent, dnis)","type":"text"},{"key":"start_date","value":"{{start_date}}","description":"Date and time statistics will begin from (YYYY-MM-DD HH:MM:SS)","type":"text"},{"key":"end_date","value":"{{end_date}}","description":"Date and time statistics will end at (YYYY-MM-DD HH:MM:SS)","type":"text"},{"key":"fields","value":"ch","description":"Fields in order to fill and get particular statistics for. Separate multiple fields with \",\"","type":"text"},{"key":"queue","value":"8003","description":"Extension of Queue to filter by","type":"text"},{"key":"remove_zeros","value":"","description":"Remove zeros from the results","type":"text"}]},"url":{"raw":"https://oclnk.co/?object=statistics&action=read","host":["https://oclnk.co"],"path":[""],"query":[{"key":"object","value":"statistics"},{"key":"action","value":"read"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 31 May 2023 20:22:30 GMT"},{"key":"Server","value":"Apache/2.4.48 (Ubuntu)"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"24"},{"key":"Keep-Alive","value":"timeout=2, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"8003\": {\n        \"CH\": 7\n    }\n}"}],"_postman_id":"9cd3bc81-6d76-418b-8c89-ce20513638df"},{"name":"ReadProcessEmailCall_Center_Stats","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"c66386fb-327d-43cb-a4b7-d55a7413fdae"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"1aea50cf-d646-4510-ab9c-e2438093bc18"}}],"id":"964c679e-d4b7-43cf-b372-4409c881f957","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Domain sending report</p>\n","type":"text"},{"key":"user","value":"{{user}}","description":"<p>User sending report</p>\n","type":"text"},{"key":"start_date","value":"{{start_date}}","description":"<p>Start of the report window</p>\n","type":"text"},{"key":"end_date","value":"{{end_date}}","description":"<p>End of the report window</p>\n","type":"text"},{"key":"range_interval","value":"","description":"<p>Timezone offset for time window. Example \"7 hour\" for pdt</p>\n","type":"text","disabled":true},{"key":"report","value":"","description":"<p>The type of report to run.</p>\n<p>Default value: custom</p>\n<p>Allowed values: \"month\", \"week\", \"day\", \"custom\"</p>\n","type":"text"},{"key":"template","value":"","description":"<p>The template for the report. 4 different types of reports are available.</p>\n<p>Allowed values: \"call_center_summary.php\", \"call_center_queue.php\", \"call_center_agent.php\", \"call_center_dnis.php\"</p>\n","type":"text"},{"key":"subject","value":"{{readprocessemailcall_center_stats_subject}}","description":"<p>The subject for the email or leave unset to take from template's meta \"title\" tag</p>\n","type":"text","disabled":true},{"key":"cclist","value":"{{readprocessemailcall_center_stats_cclist}}","description":"<p>List, semicolon separated for additional emails to send to.</p>\n","type":"text","disabled":true},{"key":"queue_fields","value":"{{readprocessemailcall_center_stats_queue_fields}}","description":"<p>The fields for the queues table</p>\n<p>Default value: NAME,AAS,SL,VOL</p>\n","type":"text","disabled":true},{"key":"agent_fields","value":"{{readprocessemailcall_center_stats_agent_fields}}","description":"<p>The fields for the queues table.</p>\n<p>Default value: NAME,CH,AHT</p>\n","type":"text","disabled":true},{"key":"dnis_fields","value":"{{readprocessemailcall_center_stats_dnis_fields}}","description":"<p>The fields for the queues table.</p>\n<p>Default value: DNIS,AAS,SL,VOL</p>\n","type":"text","disabled":true},{"key":"include_csv","value":"{{readprocessemailcall_center_stats_include_csv}}","description":"<p>Include csv raw data export in the email</p>\n<p>Default value: true,false</p>\n","type":"text","disabled":true},{"key":"queue_list","value":"{{readprocessemailcall_center_stats_queue_list}}","description":"<p>Include csv raw data export in the email</p>\n<p>Default value: true,false</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=email&action=create","description":"<p>Send Email Call Center Report</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"email"},{"key":"action","value":"create"}],"variable":[]}},"response":[],"_postman_id":"964c679e-d4b7-43cf-b372-4409c881f957"},{"name":"ReadQueueStatsCall_Center_Stats","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [\"VOL\",\"CH\",\"ATT\",\"CO\",\"VM\",\"ACO\",\"AHT\",\"AC\",\"AAS\",\"AWT\",\"SL\",\"DT\",\"AAC\",\"AR\",\"AAR\",\"FWD\",\"AST\"],","        \"properties\": {","    \"VOL\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Volume&lt;\\/p&gt;\"","    },","    \"CH\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Calls Handled&lt;\\/p&gt;\"","    },","    \"ATT\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Average Talk Time&lt;\\/p&gt;\"","    },","    \"CO\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Calls Offered&lt;\\/p&gt;\"","    },","    \"VM\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Amount forwarded to Voicemail&lt;\\/p&gt;\"","    },","    \"ACO\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Average Calls Offered&lt;\\/p&gt;\"","    },","    \"AHT\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Handle Time&lt;\\/p&gt;\"","    },","    \"AC\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Abandoned Call Count&lt;\\/p&gt;\"","    },","    \"AAS\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Average Answer Speed&lt;\\/p&gt;\"","    },","    \"AWT\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Average Wait Time (same as AAS)&lt;\\/p&gt;\"","    },","    \"SL\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;% Service Level&lt;\\/p&gt;\"","    },","    \"DT\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;% Dial Transfers&lt;\\/p&gt;\"","    },","    \"AAC\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Adjusted Abandoned Call Count&lt;\\/p&gt;\"","    },","    \"AR\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Abandon Rate&lt;\\/p&gt;\"","    },","    \"AAR\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Adjusted Abandon Rate&lt;\\/p&gt;\"","    },","    \"FWD\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Fowarded Call Count&lt;\\/p&gt;\"","    },","    \"AST\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Assisted Calls Handled&lt;\\/p&gt;\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['call_center_stats'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"d8bbe2e7-55ce-477c-8a55-9abc366d0799"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"3e0b8329-64d6-4927-b630-3f4779f6c6eb"}}],"id":"e2381caf-f952-40f5-aa12-06cd24a31b72","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Domain</p>\n","type":"text"},{"key":"type","value":"","description":"<p>Type (queue, agent, dnis)</p>\n","type":"text"},{"key":"start_date","value":"{{start_date}}","description":"<p>Date and time statistics will begin from (YYYY-MM-DD HH:MM:SS)</p>\n","type":"text"},{"key":"end_date","value":"{{end_date}}","description":"<p>Date and time statistics will begin from (YYYY-MM-DD HH:MM:SS)</p>\n","type":"text"},{"key":"queue","value":"{{queue}}","description":"<p>Allows for a filter of just a single queues data. Set to \"*\" if you want an aggregate for the domain</p>\n","type":"text"},{"key":"queue_list","value":"{{readqueuestatscall_center_stats_queue_list}}","description":"<p>Allows for a filter of certain queues. List can be comma separated for example 5202,5201</p>\n","type":"text","disabled":true},{"key":"fields","value":"{{readqueuestatscall_center_stats_fields}}","description":"<p>Fields in order to fill and get particular statistics for. Separate multiple fields with \",\"</p>\n","type":"text","disabled":true},{"key":"remove_zeros","value":"{{readqueuestatscall_center_stats_remove_zeros}}","description":"<p>Set to \"true\" if you want the API to return only rows with data.</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=statistics&action=read","description":"<p>Read Queue Stats for Call Center</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"statistics"},{"key":"action","value":"read"}],"variable":[]}},"response":[],"_postman_id":"e2381caf-f952-40f5-aa12-06cd24a31b72"},{"name":"ReadUserStatsCall_Center_Stats","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [\"CH\",\"ATT\",\"AH\",\"AHT\",\"TT\",\"MC\",\"AST\"],","        \"properties\": {","    \"CH\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Calls Handled&lt;\\/p&gt;\"","    },","    \"ATT\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Average Talk Time&lt;\\/p&gt;\"","    },","    \"AH\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Handle Time&lt;\\/p&gt;\"","    },","    \"AHT\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Average Handle Time&lt;\\/p&gt;\"","    },","    \"TT\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Talk Time&lt;\\/p&gt;\"","    },","    \"MC\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;The number of attempted dispatched calls to the agent that wen unanswered or received a busy\\/reject code.&lt;\\/p&gt;\"","    },","    \"AST\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Assisted Calls Handled&lt;\\/p&gt;\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['call_center_stats'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"f6bf0d91-bb51-42b9-ad96-e9af1f4f1dce"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"5a7d140f-8041-4a88-aa15-67dbb0514797"}}],"id":"5589cf44-21c0-486d-aef5-de591b23c2d2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{readuserstatscall_center_stats_domain}}","description":"<p>Domain</p>\n","type":"text"},{"key":"type","value":"{{readuserstatscall_center_stats_type}}","description":"<p>type</p>\n","type":"text"},{"key":"start_date","value":"{{readuserstatscall_center_stats_start_date}}","description":"<p>Date and time statistics will begin from (YYYY-MM-DD HH:MM:SS)</p>\n","type":"text"},{"key":"end_date","value":"{{readuserstatscall_center_stats_end_date}}","description":"<p>Date and time statistics will end at (YYYY-MM-DD HH:MM:SS)</p>\n","type":"text"},{"key":"fields","value":"{{readuserstatscall_center_stats_fields}}","description":"<p>Fields in order to fill and get particular statistics for. Separate multiple fields with \",\"</p>\n","type":"text"},{"key":"group","value":"{{readuserstatscall_center_stats_group}}","description":"<p>Group to filter by</p>\n","type":"text"},{"key":"queue","value":"{{readuserstatscall_center_stats_queue}}","description":"<p>Queue to filter by</p>\n","type":"text"},{"key":"remove_zeros","value":"{{readuserstatscall_center_stats_remove_zeros}}","description":"<p>Remove zeros in the statistics returned</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=statistics&action=read","description":"<p>Read User Stats for Call Center</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"statistics"},{"key":"action","value":"read"}],"variable":[]}},"response":[],"_postman_id":"5589cf44-21c0-486d-aef5-de591b23c2d2"}],"id":"60be46c8-62fe-433f-9524-8aea443c8c91","_postman_id":"60be46c8-62fe-433f-9524-8aea443c8c91","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}}},{"name":"Call_Queue","item":[{"name":"CreateCall_Queue","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"08048150-a77d-424d-b0a2-1ee4bcd2048f"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"ebe71df4-7197-4c52-ab77-ed4c08923087"}}],"id":"68e6bbaf-3a18-4890-961d-3b40087826e2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Domain where new Callqueue will be created.</p>\n","type":"text"},{"key":"queue","value":"{{queue}}","description":"<p>Name of Callqueue to be created.</p>\n","type":"text"},{"key":"description","value":"","description":"<p>Description of new Callqueue.</p>\n","type":"text","disabled":true},{"key":"max_time","value":"","description":"<p>Callqueue max time in minutes.</p>\n<p>Default value: 0</p>\n","type":"text","disabled":true},{"key":"wait_limit","value":"","description":"<p>Callqueue max wait limit in seconds.</p>\n<p>Default value: 0</p>\n","type":"text","disabled":true},{"key":"length_limit","value":"","description":"<p>Callqueue max length limit.</p>\n<p>Default value: 0</p>\n","type":"text","disabled":true},{"key":"agent_required","value":"","description":"<p>Sets whether an agent is required or not.</p>\n<p>Default value: no</p>\n","type":"text","disabled":true},{"key":"run_stats","value":"","description":"<p>Set whether or not stats should be run for the queue</p>\n","type":"text","disabled":true},{"key":"auto_logout","value":"","description":"<p>If enabled it will auto log out agents when they miss a call.</p>\n","type":"text","disabled":true},{"key":"callback_max_hours","value":"","description":"<p>Sets whether there is a callback limit. Set to 'Disabled if there is no limit, or a number specifying the callback limit in hours.</p>\n<p>Default value: Disabled</p>\n","type":"text","disabled":true},{"key":"options","value":"","description":"<p>Sets whether there is a callback limit. Set to 'Disabled if there is no limit, or a number specifying the callback limit in hours.</p>\n<p>Default value: Disabled</p>\n","type":"text","disabled":true},{"key":"queue_audio","value":"","description":"<p>If set to \"ringback\" the API will move a stock ringback file into the moh folder on queue creation.</p>\n<p>Default value: moh</p>\n","type":"text","disabled":true},{"key":"huntgroup_option","value":"","description":"<p>Different Options for hunting.</p>\n<p>Allowed values: \"Call Park\", \"1stAvail\", \"SRing\", \"SRingOrdered\", \"Linear\"</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=callqueue&action=create","description":"<p>Create a Callqueue in a Domain</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"callqueue"},{"key":"action","value":"create"}],"variable":[]}},"response":[],"_postman_id":"68e6bbaf-3a18-4890-961d-3b40087826e2"},{"name":"Create_Queued_CallCall_Queue","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"a8f3eb1c-282b-4303-955f-811afad5fc32"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"dc14d6ed-6b5b-461b-9688-745ecc773556"}}],"id":"27269da5-ad6e-43bc-98c6-d7b202abbede","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"uid","value":"","description":"<p>UID of the Callqueue to add call to.</p>\n","type":"text"},{"key":"queue","value":"","description":"<p>Name of Callqueue to add call to.</p>\n","type":"text"},{"key":"destination","value":"","description":"<p>Destination of the Call Bac</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=queuedcall&action=create","description":"<p>Create a Queued Call</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"queuedcall"},{"key":"action","value":"create"}],"variable":[]}},"response":[],"_postman_id":"27269da5-ad6e-43bc-98c6-d7b202abbede"},{"name":"DeleteCall_Queue","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"52bf40a6-34d0-4b04-81f5-eda75005db14"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"c218322d-7baf-4dd0-81aa-23c41dec929a"}}],"id":"3888e131-3f76-4b98-8063-41ff408a2dec","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Name of domain containing the Callqueue to delete.</p>\n","type":"text"},{"key":"queue","value":"","description":"<p>Name of Callqueue to delete.</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=callqueue&action=delete","description":"<p>Delete a Callqueue</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"callqueue"},{"key":"action","value":"delete"}],"variable":[]}},"response":[],"_postman_id":"3888e131-3f76-4b98-8063-41ff408a2dec"},{"name":"ReadCall_Queue","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"queue_name\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Name of Callqueue object.&lt;\\/p&gt;\"","    },","    \"domain\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Domain to which Callqueue belongs.&lt;\\/p&gt;\"","    },","    \"description\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Description of Callqueue object.&lt;\\/p&gt;\"","    },","    \"default_user\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Default user of Callqueue object.&lt;\\/p&gt;\"","    },","    \"queue_option\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"max_time\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Callqueue max time in minutes.&lt;\\/p&gt;\"","    },","    \"wait_limit\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Callqueue max wait limit in seconds.&lt;\\/p&gt;\"","    },","    \"length_limit\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Callqueue max length limit.&lt;\\/p&gt;\"","    },","    \"agent_required\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Specifies whether or not an agent is required for a Callqueue object.&lt;\\/p&gt;\"","    },","    \"callback_max_hours\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Specifies whether there is a callback limit. Set to 'Disabled if there is no limit or a number specifying the callback limit in hours.&lt;\\/p&gt;\"","    },","    \"queuedcall_count\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Number of queued calls for a Callqueue object.&lt;\\/p&gt;\"","    },","    \"agent_count\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Number of agents for a Callqueue object.&lt;\\/p&gt;\"","    },","    \"huntgroup_option\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"connect_to\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"run_stats\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"sring_1st\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"sring_inc\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"auto_logout\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Specifies whether or not auto logout is enabled.&lt;\\/p&gt;\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['call_queue'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"de0927fe-6e26-4413-ad84-678da2eab570"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"a238fc6e-b02b-4fd5-ad31-8398551de1a2"}}],"id":"4d2ca3a4-cacb-4e09-ada5-c918c2182ba1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Domain containing Callqueues to read.</p>\n","type":"text"},{"key":"queue_name","value":"{{queue}}","description":"<p>Search by Callqueue name. If not set, all existing Callqueues in the domain will be returned.</p>\n","type":"text","disabled":true},{"key":"type","value":"","description":"<p>Must be set to \"park\" for now.</p>\n","type":"text","disabled":true},{"key":"sort","value":"","description":"<p>Sorting preference for Callqueue list output. Default sorts alphabetically by Callqueue description in ascending order.</p>\n<p>Default value: description ASC</p>\n","type":"text","disabled":true},{"key":"start","value":"","description":"<p>Offset from the beginning of the returned list.</p>\n<p>Default value: 0</p>\n","type":"text","disabled":true},{"key":"limit","value":"","description":"<p>Number limit for the amount of Callqueue objects returned.</p>\n","type":"text","disabled":true},{"key":"list","value":"","description":"<p>If set, the output for each Callqueue object will be restricted to name and description.</p>\n","type":"text","disabled":true},{"key":"fields","value":"","description":"<p>Lists specified field as first data field for each Callqueue object.</p>\n","type":"text","disabled":true},{"key":"queue_list","value":"","description":"<p>Specifies a group of Callqueue objects to read using their queue name. Separate queue names using a comma with no spaces.</p>\n","type":"text","disabled":true},{"key":"agent","value":"","type":"text","disabled":true},{"key":"run_stats","value":"","description":"<p>Specifies a group of Callqueue objects to read using their queue name. Separate queue names using a comma with no spaces.</p>\n","type":"text","disabled":true},{"key":"stats","value":"","description":"<p>A comma separated list of statistics to return with the list of agents. Example VOL,CH,TT,VM,FWD,ATT,AAS,SL,AC</p>\n","type":"text","disabled":true},{"key":"start_date","value":"","description":"<p>A comma separated list of statistics to return with the list of agents. Example VOL,CH,TT,VM,FWD,ATT,AAS,SL,AC</p>\n","type":"text","disabled":true},{"key":"end_date","value":"","description":"<p>Datetime for end of query range. Ideal input format: yyyy-mm-dd HH:ii:ss</p>\n","type":"text","disabled":true},{"key":"range_interval","value":"","description":"<p>The offset to get to GMT for this users reports. Example \"7 HOUR\" for pdt</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=callqueue&action=read","description":"<p>Read a Callqueue in a Domain</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"callqueue"},{"key":"action","value":"read"}],"variable":[]}},"response":[{"id":"ed00ea42-5543-498b-b83a-382d810989c6","name":"ReadCall_Queue","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","description":"Domain containing Callqueues to read.","type":"text"},{"key":"queue_name","value":"{{queue}}","description":"Search by Callqueue name. If not set, all existing Callqueues in the domain will be returned.","type":"text","disabled":true},{"key":"type","value":"","description":"Must be set to \"park\" for now.","type":"text","disabled":true},{"key":"sort","value":"","description":"Sorting preference for Callqueue list output. Default sorts alphabetically by Callqueue description in ascending order.\n\nDefault value: description ASC","type":"text","disabled":true},{"key":"start","value":"","description":"Offset from the beginning of the returned list.\n\nDefault value: 0","type":"text","disabled":true},{"key":"limit","value":"","description":"Number limit for the amount of Callqueue objects returned.","type":"text","disabled":true},{"key":"list","value":"{{readcall_queue_list}}","description":"If set, the output for each Callqueue object will be restricted to name and description.","type":"text","disabled":true},{"key":"fields","value":"{{readcall_queue_fields}}","description":"Lists specified field as first data field for each Callqueue object.","type":"text","disabled":true},{"key":"queue_list","value":"{{readcall_queue_queue_list}}","description":"Specifies a group of Callqueue objects to read using their queue name. Separate queue names using a comma with no spaces.","type":"text","disabled":true},{"key":"agent","value":"{{readcall_queue_agent}}","type":"text","disabled":true},{"key":"run_stats","value":"{{readcall_queue_run_stats}}","description":"Specifies a group of Callqueue objects to read using their queue name. Separate queue names using a comma with no spaces.","type":"text","disabled":true},{"key":"stats","value":"{{readcall_queue_stats}}","description":"A comma separated list of statistics to return with the list of agents. Example VOL,CH,TT,VM,FWD,ATT,AAS,SL,AC","type":"text","disabled":true},{"key":"start_date","value":"{{readcall_queue_start_date}}","description":"A comma separated list of statistics to return with the list of agents. Example VOL,CH,TT,VM,FWD,ATT,AAS,SL,AC","type":"text","disabled":true},{"key":"end_date","value":"{{readcall_queue_end_date}}","description":"Datetime for end of query range. Ideal input format: yyyy-mm-dd HH:ii:ss","type":"text","disabled":true},{"key":"range_interval","value":"{{readcall_queue_range_interval}}","description":"The offset to get to GMT for this users reports. Example \"7 HOUR\" for pdt","type":"text","disabled":true}]},"url":{"raw":"https://oclnk.co/?object=callqueue&action=read","host":["https://oclnk.co"],"path":[""],"query":[{"key":"object","value":"callqueue"},{"key":"action","value":"read"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 02 Jun 2023 12:29:19 GMT"},{"key":"Server","value":"Apache/2.4.48 (Ubuntu)"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Length","value":"505"},{"key":"Keep-Alive","value":"timeout=2, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"queue_name\": \"8003\",\n        \"domain\": \"apidocumentation\",\n        \"description\": \"Billing\",\n        \"default_user\": \"\",\n        \"queue_option\": \"\",\n        \"max_time\": \"\",\n        \"wait_limit\": \"0\",\n        \"length_limit\": \"0\",\n        \"agent_required\": \"no\",\n        \"callback_max_hours\": \"0\",\n        \"queuedcall_count\": 0,\n        \"huntgroup_option\": \"Linear\",\n        \"connect_to\": \"15\",\n        \"run_stats\": \"yes\",\n        \"initiation_keyword\": \"HELP\",\n        \"initiation_message\": \"You have now entered the queue. An agent will be with you shortly.\",\n        \"initiation_needed_message\": \"Reply HELP to enter queue.\",\n        \"termination_keyword\": \"DONE\",\n        \"termination_message\": \"You have now exited the conversation. Thank you.\",\n        \"no_agents_message\": \"Sorry, there are no agents available right now. Please check at a later time.\",\n        \"subscriber_group\": \"Billing\",\n        \"site\": \"Corporate\",\n        \"agent_count\": 2,\n        \"agent_available_count\": 0\n    },\n    {\n        \"queue_name\": \"8001\",\n        \"domain\": \"apidocumentation\",\n        \"description\": \"CustomerService\",\n        \"default_user\": \"\",\n        \"queue_option\": \"none\",\n        \"max_time\": \"\",\n        \"wait_limit\": \"0\",\n        \"length_limit\": \"30\",\n        \"agent_required\": \"no\",\n        \"callback_max_hours\": \"0\",\n        \"queuedcall_count\": 0,\n        \"huntgroup_option\": \"SRing\",\n        \"connect_to\": \"15\",\n        \"run_stats\": \"yes\",\n        \"initiation_keyword\": \"HELP\",\n        \"initiation_message\": \"You have now entered the queue. An agent will be with you shortly.\",\n        \"initiation_needed_message\": \"Reply HELP to enter queue.\",\n        \"termination_keyword\": \"DONE\",\n        \"termination_message\": \"You have now exited the conversation. Thank you.\",\n        \"no_agents_message\": \"Sorry, there are no agents available right now. Please check at a later time.\",\n        \"subscriber_group\": \"Service\",\n        \"site\": \"Corporate\",\n        \"agent_count\": 3,\n        \"agent_available_count\": 0\n    },\n    {\n        \"queue_name\": \"8002\",\n        \"domain\": \"apidocumentation\",\n        \"description\": \"Sales\",\n        \"default_user\": \"\",\n        \"queue_option\": \"\",\n        \"max_time\": \"\",\n        \"wait_limit\": \"60\",\n        \"length_limit\": \"30\",\n        \"agent_required\": \"no\",\n        \"callback_max_hours\": \"0\",\n        \"queuedcall_count\": 0,\n        \"huntgroup_option\": \"Linear\",\n        \"connect_to\": \"15\",\n        \"run_stats\": \"yes\",\n        \"initiation_keyword\": \"HELP\",\n        \"initiation_message\": \"You have now entered the queue. An agent will be with you shortly.\",\n        \"initiation_needed_message\": \"Reply HELP to enter queue.\",\n        \"termination_keyword\": \"DONE\",\n        \"termination_message\": \"You have now exited the conversation. Thank you.\",\n        \"no_agents_message\": \"Sorry, there are no agents available right now. Please check at a later time.\",\n        \"subscriber_group\": \"Sales\",\n        \"site\": \"Corporate\",\n        \"agent_count\": 2,\n        \"agent_available_count\": 0\n    }\n]"}],"_postman_id":"4d2ca3a4-cacb-4e09-ada5-c918c2182ba1"},{"name":"ReportCall_Queue","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"orig_callid\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"op_term_to_uri\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"op_term_sub\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"op_term_domain\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"agent_firstname\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"agent_lastname\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"queue_name\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"gau_queue_avg_wait\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"domain\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"dnis\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"op_time_talking\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"op_duration\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"queue_duration\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"time_disp\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"op_time_start\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"queue_time_start\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"queue_time_rel\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"op_time_rel\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"op_time_answer\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"op_rel_text\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"queue_rel_text\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"orig_from_name\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"orig_from_user\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"orig_from_uri\": {","        \"type\": \"string\",","        \"description\": \"\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['call_queue'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"46bdd9b6-6228-4523-8458-14162a79b8aa"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"fa07cdac-6c61-4b12-8bab-dee2180a8d70"}}],"id":"78c2fed9-b528-4918-aa44-9c356eea7096","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"","type":"text","disabled":true},{"key":"domain","value":"{{domain}}","description":"<p>Identifies Domain from which to read Callqueue reports.</p>\n","type":"text"},{"key":"period","value":"","description":"<p>Allowed values: dayAndHour, dayAndHourAndMinute, day, month, minute</p>\n","type":"text","disabled":true},{"key":"type","value":"","description":"<p>Allowed values: queue_name, op_term_sub, dnis, domain</p>\n","type":"text","disabled":true},{"key":"logic","value":"","type":"text","disabled":true},{"key":"sla","value":"","type":"text","disabled":true},{"key":"op_term_sub","value":"","type":"text","disabled":true},{"key":"queue","value":"","type":"text"},{"key":"queue_list","value":"","type":"text","disabled":true},{"key":"range_interval","value":"","description":"<p>time offset in form of \"3 HOUR\" to give the requesters timezone offset to modify the given start_date and end_date to utc</p>\n","type":"text","disabled":true},{"key":"value_offset","value":"","description":"<p>Default will be to return values in UTC, but if you set value_offset to a format similar to range_interval the response will come in the localized timezone not utc</p>\n","type":"text","disabled":true},{"key":"start_date","value":"","description":"<p>Datetime for beginning of query range. Ideal input format: yyyy-mm-dd HH:ii:ss</p>\n","type":"text","disabled":true},{"key":"end_date","value":"","description":"<p>Datetime for end of query range. Ideal input format: yyyy-mm-dd HH:ii:ss</p>\n","type":"text","disabled":true},{"key":"read","value":"","type":"text","disabled":true},{"key":"stat","value":"","description":"<p>Allowed values: VOL, CH, CH.TT, AC, ATT, AWT, SL</p>\n","type":"text","disabled":true},{"key":"logic2","value":"","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=callqueuereport&action=read","description":"<p>Read Callqueue Reports in a Domain</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"callqueuereport"},{"key":"action","value":"read"}],"variable":[]}},"response":[{"id":"b8565e9d-d927-45a5-a9b9-b79a4a68e86a","name":"ReportCall_Queue","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"","type":"text","disabled":true},{"key":"domain","value":"{{domain}}","description":"Identifies Domain from which to read Callqueue reports.","type":"text"},{"key":"period","value":"","description":"Allowed values: dayAndHour, dayAndHourAndMinute, day, month, minute","type":"text","disabled":true},{"key":"type","value":"","description":"Allowed values: queue_name, op_term_sub, dnis, domain","type":"text","disabled":true},{"key":"logic","value":"","type":"text","disabled":true},{"key":"sla","value":"","type":"text","disabled":true},{"key":"op_term_sub","value":"","type":"text","disabled":true},{"key":"queue","value":"8003","type":"text"},{"key":"queue_list","value":"","type":"text","disabled":true},{"key":"range_interval","value":"","description":"time offset in form of \"3 HOUR\" to give the requesters timezone offset to modify the given start_date and end_date to utc","type":"text","disabled":true},{"key":"value_offset","value":"","description":"Default will be to return values in UTC, but if you set value_offset to a format similar to range_interval the response will come in the localized timezone not utc","type":"text","disabled":true},{"key":"start_date","value":"","description":"Datetime for beginning of query range. Ideal input format: yyyy-mm-dd HH:ii:ss","type":"text","disabled":true},{"key":"end_date","value":"","description":"Datetime for end of query range. Ideal input format: yyyy-mm-dd HH:ii:ss","type":"text","disabled":true},{"key":"read","value":"","type":"text","disabled":true},{"key":"stat","value":"","description":"Allowed values: VOL, CH, CH.TT, AC, ATT, AWT, SL","type":"text","disabled":true},{"key":"logic2","value":"","type":"text","disabled":true}]},"url":{"raw":"https://oclnk.co/?object=callqueuereport&action=read","host":["https://oclnk.co"],"path":[""],"query":[{"key":"object","value":"callqueuereport"},{"key":"action","value":"read"}]}},"status":"OK","code":200,"_postman_previewlanguage":"xml","header":[{"key":"Date","value":"Fri, 02 Jun 2023 17:59:09 GMT"},{"key":"Server","value":"Apache/2.4.48 (Ubuntu)"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Length","value":"135"},{"key":"Keep-Alive","value":"timeout=2, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"text/xml;charset=UTF-8"}],"cookie":[],"responseTime":null,"body":"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<xml>\n    <Callqueuereport>\n        <v1>0</v1>\n        <q>8003</q>\n        <n>Billing</n>\n        <h>2023-06-02-00</h>\n    </Callqueuereport>\n</xml>"}],"_postman_id":"78c2fed9-b528-4918-aa44-9c356eea7096"},{"name":"UpdateCall_Queue","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"1e042190-9297-4181-9754-f6edd589c247"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"2781ee1f-7e61-418f-92f2-80c3f64b7e59"}}],"id":"12d9e249-fca9-4818-89e5-2f35efc03e26","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Domain containing Callqueue to update.</p>\n","type":"text"},{"key":"queue","value":"{{queue}}","description":"<p>Name of Callqueue to update.</p>\n","type":"text"},{"key":"queue_option","value":"","description":"<p>New value for Callqueue's queue_option.</p>\n<p>Default value: none</p>\n","type":"text","disabled":true},{"key":"huntgroup_option","value":"","description":"<p>New value for Callqueue's huntgroup_option parameter.???Can't change to valid huntgroup input. Accepts garbage values.</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=callqueue&action=update","description":"<p>Update a Callqueue in a Domain</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"callqueue"},{"key":"action","value":"update"}],"variable":[]}},"response":[],"_postman_id":"12d9e249-fca9-4818-89e5-2f35efc03e26"}],"id":"0e07d689-b48e-4213-9274-e1fe155dbbff","_postman_id":"0e07d689-b48e-4213-9274-e1fe155dbbff","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}}},{"name":"Call_Queue_Stats","item":[{"name":"ReadCall_Queue_Stats","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"timestamp\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"hostname\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"domain\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"queue\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"gau_session\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"gau_queue_length\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"gau_queue_max_wait\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"gau_queue_avg_wait\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"gau_agent_total\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"gau_agent_available\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"gau_agent_Unavailable\": {","        \"type\": \"string\",","        \"description\": \"\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['call_queue_stats'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"3c57e4b6-efd3-4b3f-9fef-7a21012b409c"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"45318f43-f465-439b-9ab4-bf2cb52f2c22"}}],"id":"72bd6c44-081f-4353-9929-bcfbad33470f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"","description":"<p>Specifies the format of the return output.</p>\n<p>Default value: xml</p>\n","type":"text","disabled":true},{"key":"domain","value":"{{domain}}","description":"<p>Identifies Domain from which to read Callqueue Stats.</p>\n","type":"text"},{"key":"queue","value":"{{queue}}","description":"<p>Identifies Callqueue from which to read stats.</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=callqueuestat&action=read","description":"<p>Read Callqueue Stats in a Domain</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"callqueuestat"},{"key":"action","value":"read"}],"variable":[]}},"response":[{"id":"d194134e-f2a5-47a7-be8d-5e3d7f5146b3","name":"ReadCall_Queue_Stats","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"","description":"Specifies the format of the return output.\n\nDefault value: xml","type":"text","disabled":true},{"key":"domain","value":"{{domain}}","description":"Identifies Domain from which to read Callqueue Stats.","type":"text"},{"key":"queue","value":"{{queue}}","description":"Identifies Callqueue from which to read stats.","type":"text","disabled":true}]},"url":{"raw":"https://oclnk.co/?object=callqueuestat&action=read","host":["https://oclnk.co"],"path":[""],"query":[{"key":"object","value":"callqueuestat"},{"key":"action","value":"read"}]}},"status":"OK","code":200,"_postman_previewlanguage":"xml","header":[{"key":"Date","value":"Fri, 02 Jun 2023 18:01:16 GMT"},{"key":"Server","value":"Apache/2.4.48 (Ubuntu)"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Length","value":"281"},{"key":"Keep-Alive","value":"timeout=2, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"text/xml;charset=UTF-8"}],"cookie":[],"responseTime":null,"body":"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<xml>\n    <Callqueuestat>\n        <timestamp>2023-06-02 18:01:00</timestamp>\n        <hostname>myonecloud.com</hostname>\n        <domain>apidocumentation</domain>\n        <user>8003</user>\n        <gau_session>0</gau_session>\n        <gau_queue_length>0</gau_queue_length>\n        <gau_queue_max_wait>0</gau_queue_max_wait>\n        <gau_queue_avg_wait>0</gau_queue_avg_wait>\n        <gau_agent_total>2</gau_agent_total>\n        <gau_agent_available>0</gau_agent_available>\n        <gau_agent_Unavailable>2</gau_agent_Unavailable>\n    </Callqueuestat>\n    <Callqueuestat>\n        <timestamp>2023-06-02 18:01:00</timestamp>\n        <hostname>myonecloud.com</hostname>\n        <domain>apidocumentation</domain>\n        <user>8002</user>\n        <gau_session>0</gau_session>\n        <gau_queue_length>0</gau_queue_length>\n        <gau_queue_max_wait>0</gau_queue_max_wait>\n        <gau_queue_avg_wait>0</gau_queue_avg_wait>\n        <gau_agent_total>2</gau_agent_total>\n        <gau_agent_available>0</gau_agent_available>\n        <gau_agent_Unavailable>2</gau_agent_Unavailable>\n    </Callqueuestat>\n    <Callqueuestat>\n        <timestamp>2023-06-02 18:01:00</timestamp>\n        <hostname>myonecloud.com</hostname>\n        <domain>apidocumentation</domain>\n        <user>8001</user>\n        <gau_session>0</gau_session>\n        <gau_queue_length>0</gau_queue_length>\n        <gau_queue_max_wait>0</gau_queue_max_wait>\n        <gau_queue_avg_wait>0</gau_queue_avg_wait>\n        <gau_agent_total>2</gau_agent_total>\n        <gau_agent_available>0</gau_agent_available>\n        <gau_agent_Unavailable>2</gau_agent_Unavailable>\n    </Callqueuestat>\n</xml>"}],"_postman_id":"72bd6c44-081f-4353-9929-bcfbad33470f"}],"id":"26144c77-58e4-44d8-9fc2-03827c87ba26","_postman_id":"26144c77-58e4-44d8-9fc2-03827c87ba26","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}}},{"name":"Caller_ID_Emergency","item":[{"name":"ReadCaller_ID_Emergency","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"callid\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;The caller ID available for emergency&lt;\\/p&gt;\"","    },","    \"domain\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;The domain for the caller ID&lt;\\/p&gt;\"","    },","    \"tag\": {","        \"type\": \"string\",","        \"description\": \"\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['caller_id_emergency'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"7b0cb828-1889-4ec2-aece-1f7d2989d4bf"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"593bcdcb-3518-473a-af5b-14bdcbff4382"}}],"id":"6892c17d-02f0-47f5-94cf-319237296bda","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Name of Domain containing the caller ID(s) to read.</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=callidemgr&action=read","description":"<p>Read Emergency numbers for domain</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"callidemgr"},{"key":"action","value":"read"}],"variable":[]}},"response":[{"id":"ebcd8375-1690-4c15-8304-959db45b39bb","name":"ReadCaller_ID_Emergency","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"telware","description":"Name of Domain containing the caller ID(s) to read.","type":"text"}]},"url":{"raw":"https://oclnk.co/?object=callidemgr&action=read","host":["https://oclnk.co"],"path":[""],"query":[{"key":"object","value":"callidemgr"},{"key":"action","value":"read"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 08 Jun 2023 19:29:54 GMT"},{"key":"Server","value":"Apache/2.4.48 (Ubuntu)"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"53"},{"key":"Keep-Alive","value":"timeout=2, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"callid\": \"8009219680\",\n        \"domain\": \"apidocumentation\",\n        \"tag\": \"\"\n    }\n]"}],"_postman_id":"6892c17d-02f0-47f5-94cf-319237296bda"}],"id":"2de2735d-36cb-4264-a3e2-b97ce0198af2","_postman_id":"2de2735d-36cb-4264-a3e2-b97ce0198af2","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}}},{"name":"Callqueueemailreport","item":[{"name":"CreateCallqueueemailreport","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"c6e7a250-742d-4301-9191-2a602b44540e"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"fe9edb14-7dcb-4b4e-8824-698a7ab38f7b"}}],"id":"d31ff2a9-4a9e-4928-ab7e-97ce66f00bd9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"uid","value":"{{uid}}","description":"<p>Name of Domain containing the caller ID(s) to read.</p>\n","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Domain containing Callqueue email report</p>\n","type":"text"},{"key":"type","value":"","description":"<p>The type of report</p>\n<p>Allowed values: \"summary\", \"queue\", \"agent\", \"dialed\"</p>\n","type":"text"},{"key":"frequency","value":"","description":"<p>The frequency of report</p>\n<p>Allowed values: \"daily\", \"weekly\", \"monthly\"</p>\n","type":"text"},{"key":"range_interval","value":"","description":"<p>The offset to get to GMT for this users reports. Example \"7 HOUR\" for pdt</p>\n","type":"text"},{"key":"dom","value":"","description":"<p>The day of the month to report</p>\n<p>Size range: 0-28</p>\n","type":"text"},{"key":"dow","value":"","description":"<p>The day of the week to report (sunday=0 )</p>\n<p>Size range: 0-6</p>\n","type":"text"},{"key":"tod","value":"","description":"<p>The time of day</p>\n<p>Allowed values: \"MM:SS\"</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=callqueueemailreport&action=create","description":"<p>Create a email report request</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"callqueueemailreport"},{"key":"action","value":"create"}],"variable":[]}},"response":[],"_postman_id":"d31ff2a9-4a9e-4928-ab7e-97ce66f00bd9"},{"name":"DeleteCallqueueemailreport","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"a02164a0-7d2d-4bcb-980f-3a59f5354395"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"484f404d-bb69-49cc-baf7-a4b75a29726f"}}],"id":"02096cf9-20e7-499f-92c5-5499f583a39a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"uid","value":"{{deletecallqueueemailreport_uid}}","description":"<p>user id for the requested report</p>\n","type":"text"},{"key":"domain","value":"{{deletecallqueueemailreport_domain}}","description":"<p>Domain containing Callqueue email report</p>\n","type":"text"},{"key":"type","value":"{{deletecallqueueemailreport_type}}","description":"<p>The type of report</p>\n<p>Allowed values: \"summary\", \"queue\", \"agent\", \"dialed\"</p>\n","type":"text"},{"key":"frequency","value":"{{deletecallqueueemailreport_frequency}}","description":"<p>The type of report</p>\n<p>Allowed values: \"summary\", \"queue\", \"agent\", \"dialed\"</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=callqueueemailreport&action=delete","description":"<p>Delete a email report request</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"callqueueemailreport"},{"key":"action","value":"delete"}],"variable":[]}},"response":[],"_postman_id":"02096cf9-20e7-499f-92c5-5499f583a39a"},{"name":"ReadCallqueueemailreport","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['callqueueemailreport'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"309969d6-7c56-42b0-a74d-8dceb6d9195c"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"43e5d234-8da7-4559-b61a-4bc880826f4e"}}],"id":"299742e6-6a25-4d19-b4a4-18161c5d6f96","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"uid","value":"{{readcallqueueemailreport_uid}}","description":"<p>user id for the requested report</p>\n","type":"text"},{"key":"domain","value":"{{readcallqueueemailreport_domain}}","description":"<p>Domain containing Callqueue email report</p>\n","type":"text"},{"key":"type","value":"{{readcallqueueemailreport_type}}","description":"<p>The type of report to filter by</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=callqueueemailreport&action=read","description":"<p>Read a email report request</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"callqueueemailreport"},{"key":"action","value":"read"}],"variable":[]}},"response":[],"_postman_id":"299742e6-6a25-4d19-b4a4-18161c5d6f96"},{"name":"UpdateCallqueueemailreport","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"91600c60-258e-4a4a-857a-9f289783006d"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"8688919e-d7ae-4976-b859-9921b7c55dc9"}}],"id":"2e7c922d-dcda-4a72-8f36-bbecd3cae62d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"uid","value":"{{updatecallqueueemailreport_uid}}","description":"<p>user id for the requested report</p>\n","type":"text"},{"key":"domain","value":"{{updatecallqueueemailreport_domain}}","description":"<p>Domain containing Callqueue email report</p>\n","type":"text"},{"key":"type","value":"{{updatecallqueueemailreport_type}}","description":"<p>The type of report</p>\n<p>Allowed values: \"summary\", \"queue\", \"agent\", \"dialed\"</p>\n","type":"text"},{"key":"frequency","value":"{{updatecallqueueemailreport_frequency}}","description":"<p>The frequency of report</p>\n<p>Allowed values: \"daily\", \"weekly\", \"monthly\"</p>\n","type":"text"},{"key":"range_interval","value":"{{updatecallqueueemailreport_range_interval}}","description":"<p>The offset to get to GMT for this users reports. Example \"7 HOUR\" for pdt</p>\n","type":"text"},{"key":"dom","value":"{{updatecallqueueemailreport_dom}}","description":"<p>The day of the month to report</p>\n<p>Size range: 0-28</p>\n","type":"text"},{"key":"dow","value":"{{updatecallqueueemailreport_dow}}","description":"<p>The day of the week to report (sunday=0 )</p>\n<p>Size range: 0-6</p>\n","type":"text"},{"key":"tod","value":"{{updatecallqueueemailreport_tod}}","description":"<p>The day of the week to report (sunday=0 )</p>\n<p>Size range: 0-6</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=callqueueemailreport&action=update","description":"<p>Update a email report request</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"callqueueemailreport"},{"key":"action","value":"update"}],"variable":[]}},"response":[],"_postman_id":"2e7c922d-dcda-4a72-8f36-bbecd3cae62d"}],"id":"d8f4fe99-e0ae-45bd-b7d3-3748f0f104b5","_postman_id":"d8f4fe99-e0ae-45bd-b7d3-3748f0f104b5","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}}},{"name":"Chart","item":[{"name":"CountChart","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"total\": {","        \"type\": \"number\",","        \"description\": \"\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple([jsonData], schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"ed1b3e01-5452-4b24-ad94-4b7472ab2170"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"96d33a04-ac10-448a-a27b-fc14d3aa9286"}}],"id":"943c4667-7781-4407-b747-c0144fb73371","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Domain from which to read charts.</p>\n","type":"text"},{"key":"dashboard_id","value":"","description":"<p>Dashboard id of the parent dashboard</p>\n","type":"text","disabled":true},{"key":"type","value":"","description":"<p>Chart type. Must be a component supported by the onecloud-charts-library package</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=chart&action=count","description":"<p>Count Charts</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"chart"},{"key":"action","value":"count"}],"variable":[]}},"response":[{"id":"5ccf5a10-6ba3-4162-a49c-36cb7987bf09","name":"CountChart","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","description":"Domain from which to read charts.","type":"text"},{"key":"dashboard_id","value":"","description":"Dashboard id of the parent dashboard","type":"text","disabled":true},{"key":"type","value":"","description":"Chart type. Must be a component supported by the onecloud-charts-library package","type":"text","disabled":true}]},"url":{"raw":"https://oclnk.co/?object=chart&action=count","host":["https://oclnk.co"],"path":[""],"query":[{"key":"object","value":"chart"},{"key":"action","value":"count"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 05 Jun 2023 18:19:40 GMT"},{"key":"Server","value":"Apache/2.4.48 (Ubuntu)"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"12"},{"key":"Keep-Alive","value":"timeout=2, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"total\": 70\n}"}],"_postman_id":"943c4667-7781-4407-b747-c0144fb73371"},{"name":"CreateChart","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"5d3fff3b-b117-43f1-83e6-a8014794cd45"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"62494e62-fe35-4da8-8e2c-430192f0c42a"}}],"id":"4454f4dd-ab4e-431b-b388-06296dfa6119","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Domain from which to read charts.</p>\n","type":"text"},{"key":"name","value":"","description":"<p>Name/title of the chart</p>\n","type":"text"},{"key":"dashboard_id","value":"","description":"<p>Dashboard id of the parent dashboard</p>\n","type":"text"},{"key":"type","value":"","description":"<p>Chart type. Must be a component supported by the onecloud-charts-library package</p>\n","type":"text"},{"key":"description","value":"","type":"text","disabled":true},{"key":"properties","value":"","description":"<p>Chart type. Must be a component supported by the onecloud-charts-library package</p>\n","type":"text","disabled":true},{"key":"data_sources","value":"","description":"<p>Chart type. Must be a component supported by the onecloud-charts-library package</p>\n","type":"text","disabled":true},{"key":"status","value":"{{createchart_status}}","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=chart&action=create","description":"<p>Create Chart in a Dashboard</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"chart"},{"key":"action","value":"create"}],"variable":[]}},"response":[],"_postman_id":"4454f4dd-ab4e-431b-b388-06296dfa6119"},{"name":"DeleteChart","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"7aef5fb2-0286-480f-b18b-05da05bac4de"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"7612c001-15fd-4c77-acee-402eb4b822d0"}}],"id":"5133c13a-32c4-424f-8ff6-51df18feedcd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"id","value":"","description":"<p>Unique ID of the chart to be deleted</p>\n","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Domain from which to read charts.</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=chart&action=delete","description":"<p>Delete Chart</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"chart"},{"key":"action","value":"delete"}],"variable":[]}},"response":[],"_postman_id":"5133c13a-32c4-424f-8ff6-51df18feedcd"},{"name":"ListChart","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"id\": {","        \"type\": \"number\",","        \"description\": \"&lt;p&gt;Unique ID of the chart&lt;\\/p&gt;\"","    },","    \"name\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;User provided name\\/title of the chart&lt;\\/p&gt;\"","    },","    \"type\": {","        \"type\": \"string\",","        \"description\": \"\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['chart'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"6bf8cb00-a50c-408a-9d1f-4a16252b4fa5"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"e2d00c7d-5486-419c-952e-566b0d2447da"}}],"id":"5c8debcc-2a02-43a0-88a6-72e682f4cddd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Domain from which to read charts.</p>\n","type":"text"},{"key":"dashboard_id","value":"","description":"<p>The unique id of the parent dashboard</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=chart&action=list","description":"<p>List Charts</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"chart"},{"key":"action","value":"list"}],"variable":[]}},"response":[],"_postman_id":"5c8debcc-2a02-43a0-88a6-72e682f4cddd"},{"name":"ReadChart","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"id\": {","        \"type\": \"number\",","        \"description\": \"&lt;p&gt;Unique ID of the chart&lt;\\/p&gt;\"","    },","    \"dashboard_id\": {","        \"type\": \"number\",","        \"description\": \"&lt;p&gt;Unique ID of the parent dashboard&lt;\\/p&gt;\"","    },","    \"name\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;User provided name\\/title of the chart&lt;\\/p&gt;\"","    },","    \"type\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"description\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"properties\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;JSON object which describes visual and functional properties of the chart&lt;\\/p&gt;\"","    },","    \"data_sources\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;JSON object which describes the sources of the data to be visualized&lt;\\/p&gt;\"","    },","    \"status\": {","        \"type\": \"number\",","        \"description\": \"\"","    },","    \"created\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"modified\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"data_token\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;A specially generated oauthtoken used to request data for the chart&lt;\\/p&gt;\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['chart'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"4379c7b5-3913-43c0-849a-e079bb429cc7"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"888a8f45-d1e1-4274-9a37-ac6a0fcae54a"}}],"id":"7a45465c-4ccd-4703-8c62-75050e1a0011","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text","disabled":true},{"key":"dashboard_id","value":"","description":"<p>Dashboard from which to read charts.</p>\n","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Domain from which to read charts.</p>\n","type":"text"},{"key":"id","value":"","description":"<p>Read a specific chart using the unique ID</p>\n","type":"text","disabled":true},{"key":"name","value":"","description":"<p>Read a specific chart by the name. Name is not inherently unique</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=chart&action=read","description":"<p>Read Charts</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"chart"},{"key":"action","value":"read"}],"variable":[]}},"response":[],"_postman_id":"7a45465c-4ccd-4703-8c62-75050e1a0011"},{"name":"UpdateChart","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"703f2f08-d517-4a78-887e-7a217bff462f"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"899ae412-2bf6-4720-89a7-6f5ea600f377"}}],"id":"f22d78f7-131a-411b-b50a-9e0e0e3e7467","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"id","value":"{{updatechart_id}}","description":"<p>Read a specific chart using the unique ID</p>\n","type":"text"},{"key":"domain","value":"{{updatechart_domain}}","description":"<p>Domain from which to read charts.</p>\n","type":"text"},{"key":"dashboard_id","value":"{{updatechart_dashboard_id}}","description":"<p>The unique id of the parent dashboard</p>\n","type":"text"},{"key":"name","value":"{{updatechart_name}}","description":"<p>Name/title of the chart</p>\n","type":"text","disabled":true},{"key":"description","value":"{{updatechart_description}}","type":"text","disabled":true},{"key":"properties","value":"{{updatechart_properties}}","description":"<p>JSON object which describes visual and functional properties of the chart</p>\n","type":"text","disabled":true},{"key":"data_sources","value":"{{updatechart_data_sources}}","description":"<p>JSON object which describes visual and functional properties of the chart</p>\n","type":"text","disabled":true},{"key":"status","value":"{{updatechart_status}}","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=chart&action=update","description":"<p>Update Chart in a Dashboard</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"chart"},{"key":"action","value":"update"}],"variable":[]}},"response":[],"_postman_id":"f22d78f7-131a-411b-b50a-9e0e0e3e7467"}],"id":"b97873af-8541-4676-9308-78bb3ad0b5f2","_postman_id":"b97873af-8541-4676-9308-78bb3ad0b5f2","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}}},{"name":"Conference","item":[{"name":"CountConference","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"total\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Total number of conferences under set parameters.&lt;\\/p&gt;\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple([jsonData], schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"aafafeb2-f9e6-40de-a6a6-bcd523ab8205"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"a8609e07-a72f-4cfe-a4bf-d6a7aa8d7b56"}}],"id":"61529a4c-3e0f-4c2a-b9ca-3dda6635cf9d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"aor","value":"{{countconference_aor}}","description":"<p>The name of the conference bridge, generally in sip: format with @conference-bridge as the host.</p>\n","type":"text","disabled":true},{"key":"owner_domain","value":"{{domain}}","description":"<p>Domain that owns the conference.</p>\n","type":"text"},{"key":"owner_uid","value":"{{uid}}","description":"<p>Owner's User ID</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=conference&action=count","description":"<p>Count Conferences</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"conference"},{"key":"action","value":"count"}],"variable":[]}},"response":[{"id":"ce957eaa-0adb-4e3e-bbfb-4e4057a8ddca","name":"CountConference","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"aor","value":"{{countconference_aor}}","description":"The name of the conference bridge, generally in sip: format with @conference-bridge as the host.","type":"text","disabled":true},{"key":"owner_domain","value":"{{domain}}","description":"Domain that owns the conference.","type":"text"},{"key":"owner_uid","value":"{{uid}}","description":"Owner's User ID","type":"text","disabled":true}]},"url":{"raw":"https://oclnk.co/?object=conference&action=count","host":["https://oclnk.co"],"path":[""],"query":[{"key":"object","value":"conference"},{"key":"action","value":"count"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 02 Jun 2023 19:26:26 GMT"},{"key":"Server","value":"Apache/2.4.48 (Ubuntu)"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"11"},{"key":"Keep-Alive","value":"timeout=2, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"total\": 2\n}"}],"_postman_id":"61529a4c-3e0f-4c2a-b9ca-3dda6635cf9d"},{"name":"CreateConference","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"0ddbb67b-8865-436d-a9fc-ea677eca90c0"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"83d4be44-914a-4655-8513-079200a2f8dc"}}],"id":"5f2f2be3-5e33-44b2-a5e8-a6a38dd9c1ac","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"aor","value":"","description":"<p>The address (name) of the conference bridge.</p>\n","type":"text"},{"key":"owner_uid","value":"{{uid}}","description":"<p>Owner user ID</p>\n","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Owner of the bridge's domain</p>\n","type":"text","disabled":true},{"key":"owner","value":"","description":"<p>Owner of the bridge, owner_uid is better to use.</p>\n","type":"text","disabled":true},{"key":"extension","value":"","description":"<p>Owner's extension</p>\n","type":"text","disabled":true},{"key":"SipSipAuthUser","value":"","description":"<p>SipSipAuthUser The auth user for when the bridge registers to the NMS</p>\n","type":"text","disabled":true},{"key":"SipSipAuthKey","value":"","description":"<p>SipSipAuthUser The auth user for when the bridge registers to the NMS</p>\n","type":"text","disabled":true},{"key":"RegRequired","value":"","description":"<p>RegRequired The bridge should register to the nms if set to yes</p>\n<p>Default value: yes</p>\n","type":"text","disabled":true},{"key":"save_participants","value":"","description":"<p>Number of saved participants</p>\n","type":"text","disabled":true},{"key":"request_name","value":"","description":"<p>Request name</p>\n<p>Allowed values: \"Yes\", \"No\"</p>\n","type":"text","disabled":true},{"key":"termination_match","value":"","description":"<p>Termination match should match the name of the user device on registration</p>\n","type":"text","disabled":true},{"key":"call_processing_rule","value":"","description":"<p>Call processing rules</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=conference&action=create","description":"<p>Create the specified conference</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"conference"},{"key":"action","value":"create"}],"variable":[]}},"response":[],"_postman_id":"5f2f2be3-5e33-44b2-a5e8-a6a38dd9c1ac"},{"name":"DeleteConference","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"d05d4d16-06ab-402e-8e86-62afbfefbd94"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"9e5956c9-0137-44c3-af18-3388d8a0edaa"}}],"id":"63a7e8b0-d0ba-43d6-80c6-cc1ef74dca29","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"aor","value":"","description":"<p>The address (name) of the conference bridge.</p>\n","type":"text"},{"key":"type","value":"","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=conference&action=delete","description":"<p>Delete the specified conference</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"conference"},{"key":"action","value":"delete"}],"variable":[]}},"response":[],"_postman_id":"63a7e8b0-d0ba-43d6-80c6-cc1ef74dca29"},{"name":"ReadConference","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"aor\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;The address (name) of the conference bridge&lt;\\/p&gt;\"","    },","    \"owner_domain\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;The owner's domain&lt;\\/p&gt;\"","    },","    \"owner\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Owner of the conference&lt;\\/p&gt;\"","    },","    \"owner_uid\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;User ID of the Owner of the conference&lt;\\/p&gt;\"","    },","    \"leader_pin\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;PIN of the leader&lt;\\/p&gt;\"","    },","    \"speaker_pin\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;PIN of the speaker&lt;\\/p&gt;\"","    },","    \"participants_pin\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;PIN of the participants&lt;\\/p&gt;\"","    },","    \"num_participants\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Number of participants&lt;\\/p&gt;\"","    },","    \"max_participants\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Max number of participants&lt;\\/p&gt;\"","    },","    \"time_begin\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Time conference began&lt;\\/p&gt;\"","    },","    \"time_end\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Time conference ended&lt;\\/p&gt;\"","    },","    \"activate\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;If the bridge is enabled as of now&lt;\\/p&gt;\"","    },","    \"annc_join\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Audio file for arrival message&lt;\\/p&gt;\"","    },","    \"annc_depart\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Audio file for departure message&lt;\\/p&gt;\"","    },","    \"name\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;The plain English description of the conference bridge&lt;\\/p&gt;\"","    },","    \"save_participants\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;If set to yes, the bridge will retain the participants for the bridge.&lt;\\/p&gt;\"","    },","    \"request_name\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;If yes, the bridge will request the caller record their name before entering.&lt;\\/p&gt;\"","    },","    \"lock_part\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;If set to yes, no additional parties will be able ot join the bridge.&lt;\\/p&gt;\"","    },","    \"annc_part\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;If yes, the participants will be announced on entering the bridge.&lt;\\/p&gt;\"","    },","    \"leader_required\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;If yes, the leader pin will be required to start the bridge&lt;\\/p&gt;\"","    },","    \"quorum\": {","        \"type\": \"number\",","        \"description\": \"&lt;p&gt;The minimum number of participants to start the bridge.&lt;\\/p&gt;\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['conference'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"016790fa-6b88-425d-a471-604c243accdb"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"7f4e4cda-823c-42e4-be2e-5d9cc92aa756"}}],"id":"c612f202-6db5-4e57-bc59-d34d122b68d0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"aor","value":"","description":"<p>The address (name) of the conference bridge</p>\n","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Domain of the conference</p>\n","type":"text"},{"key":"limit","value":"","description":"<p>limit the responses back from the API</p>\n","type":"text","disabled":true},{"key":"fields","value":"","description":"<p>Allows you to limit the fields returned</p>\n","type":"text","disabled":true},{"key":"user","value":"","description":"<p>Owner of the conference. A user on the bridge in the domain</p>\n","type":"text","disabled":true},{"key":"start","value":"","description":"<p>when limiting you can start from a value other than the first (for pagination)</p>\n","type":"text","disabled":true},{"key":"filter_bridges","value":"","description":"<p>Filter for the bridges</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=conference&action=read","description":"<p>Read Conferences in certain domain</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"conference"},{"key":"action","value":"read"}],"variable":[]}},"response":[{"id":"89ed8ce8-85c0-49d0-a22d-1105cc1dbc7d","name":"ReadConference","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"aor","value":"","description":"The address (name) of the conference bridge","type":"text"},{"key":"domain","value":"{{domain}}","description":"Domain of the conference","type":"text"},{"key":"limit","value":"{{readconference_limit}}","description":"limit the responses back from the API","type":"text","disabled":true},{"key":"fields","value":"{{readconference_fields}}","description":"Allows you to limit the fields returned","type":"text","disabled":true},{"key":"user","value":"{{readconference_user}}","description":"Owner of the conference. A user on the bridge in the domain","type":"text","disabled":true},{"key":"start","value":"{{readconference_start}}","description":"when limiting you can start from a value other than the first (for pagination)","type":"text","disabled":true},{"key":"filter_bridges","value":"{{readconference_filter_bridges}}","description":"Filter for the bridges","type":"text","disabled":true}]},"url":{"raw":"https://oclnk.co/?object=conference&action=read","host":["https://oclnk.co"],"path":[""],"query":[{"key":"object","value":"conference"},{"key":"action","value":"read"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 02 Jun 2023 20:36:55 GMT"},{"key":"Server","value":"Apache/2.4.48 (Ubuntu)"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Length","value":"418"},{"key":"Keep-Alive","value":"timeout=2, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"aor\": \"sip:100578210.video.bridge@conference-bridge\",\n        \"owner_domain\": \"TelWareAdmin\",\n        \"owner\": \"videoconf\",\n        \"owner_uid\": \"videoconf@TelWareAdmin\",\n        \"leader_pin\": \"\",\n        \"speaker_pin\": \"\",\n        \"participants_pin\": \"\",\n        \"num_participants\": \"0\",\n        \"max_participants\": \"2000\",\n        \"time_begin\": \"2023-06-04 15:43:27\",\n        \"time_end\": \"2023-06-04 20:36:55\",\n        \"gmt_offset\": \"-5\",\n        \"activate\": \"yes\",\n        \"audio_dir\": \"\",\n        \"annc_join\": \"Ding-Dong.wav\",\n        \"annc_depart\": \"Dong-Ding.wav\",\n        \"dial_plan\": \"Conference Actions\",\n        \"name\": \"Conf testing\",\n        \"save_participants\": \"no\",\n        \"request_name\": \"no\",\n        \"lock_part\": \"no\",\n        \"annc_part\": \"no\",\n        \"mute\": \"yes\",\n        \"leader_required\": \"to-start\",\n        \"quorum\": \"0\",\n        \"SipSipProxy\": \"\",\n        \"SipSipAuthUser\": \"videoconf\",\n        \"SipSipAuthKey\": \"\",\n        \"RegRequired\": \"no\",\n        \"promptAudioId\": \"yes\",\n        \"confOptions\": \"\"\n    }\n]"}],"_postman_id":"c612f202-6db5-4e57-bc59-d34d122b68d0"},{"name":"UpdateConference","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"e284ad6c-652b-4e33-808c-d7e97793ac65"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"7788faa9-e608-48fe-bfbd-e2bda9c5f1c7"}}],"id":"5e00c961-8ee7-4cde-a2d9-5087c0e30d90","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"aor","value":"{{updateconference_aor}}","description":"<p>The address (name) of the conference bridge.</p>\n","type":"text"},{"key":"owner_uid","value":"{{updateconference_owner_uid}}","description":"<p>Owner user ID</p>\n","type":"text","disabled":true},{"key":"owner","value":"{{updateconference_owner}}","description":"<p>Owner</p>\n","type":"text","disabled":true},{"key":"owner_domain","value":"{{updateconference_owner_domain}}","description":"<p>Owner's domain</p>\n","type":"text","disabled":true},{"key":"save_participants","value":"{{updateconference_save_participants}}","description":"<p>Save participants in table after departing</p>\n","type":"text","disabled":true},{"key":"request_name","value":"{{updateconference_request_name}}","description":"<p>Request name of callers when entering</p>\n<p>Allowed values: \"Yes\", \"No\"</p>\n","type":"text","disabled":true},{"key":"annc_part","value":"{{updateconference_annc_part}}","description":"<p>Announce participants when entering</p>\n<p>Allowed values: \"Yes\", \"No\"</p>\n","type":"text","disabled":true},{"key":"leader_req","value":"{{updateconference_leader_req}}","description":"<p>Leader requirement</p>\n<p>Allowed values: \"Yes\", \"No\"</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=conference&action=update","description":"<p>Update the specified conference</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"conference"},{"key":"action","value":"update"}],"variable":[]}},"response":[],"_postman_id":"5e00c961-8ee7-4cde-a2d9-5087c0e30d90"}],"id":"df3909e7-ad3d-4f25-9d5b-a1d252bd68d8","_postman_id":"df3909e7-ad3d-4f25-9d5b-a1d252bd68d8","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}}},{"name":"Conference_Participant","item":[{"name":"CreateConference_Participant","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"f6016b76-894e-4097-8947-1a5f17ceaff1"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"cc29877b-e707-4ac5-af66-c16b4e4d62af"}}],"id":"2d705bc7-39f9-4ae2-8c59-c575ae6c24fe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"conference_match","value":"{{createconference_participant_conference_match}}","description":"<p>Match rule for conference.</p>\n","type":"text"},{"key":"participant","value":"{{createconference_participant_participant}}","description":"<p>Number for participant.</p>\n","type":"text"},{"key":"name","value":"{{createconference_participant_name}}","description":"<p>Name for participant.</p>\n","type":"text"},{"key":"call","value":"{{createconference_participant_call}}","description":"<p>Default will be to call particiapnt when added, but you can prevent using call=no.</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=participant&action=create","description":"<p>Create participants from the specified conference</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"participant"},{"key":"action","value":"create"}],"variable":[]}},"response":[],"_postman_id":"2d705bc7-39f9-4ae2-8c59-c575ae6c24fe"},{"name":"ReadConference_Participant","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['conference_participant'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"2b0bb2fd-d7f6-446d-9cbd-2dbc364c57b4"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"9a68a28f-7a1b-4607-83a9-70e44660408c"}}],"id":"f00049e7-5e1a-4eaf-b2c5-441abcf7398d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"conference_match","value":"{{readconference_participant_conference_match}}","description":"<p>Match rule for conference.</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=participant&action=read","description":"<p>Read participants from the specified conference</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"participant"},{"key":"action","value":"read"}],"variable":[]}},"response":[],"_postman_id":"f00049e7-5e1a-4eaf-b2c5-441abcf7398d"}],"id":"ec927a2e-b78f-40cd-aa91-4b0082f1e4a7","_postman_id":"ec927a2e-b78f-40cd-aa91-4b0082f1e4a7","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}}},{"name":"Conference_Record","item":[{"name":"CdrConference_Record","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"domain\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Domain conference is in&lt;\\/p&gt;\"","    },","    \"conference\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Conference&lt;\\/p&gt;\"","    },","    \"conf_name\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Conference name&lt;\\/p&gt;\"","    },","    \"conf_id\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Conference ID&lt;\\/p&gt;\"","    },","    \"time_begin\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Time the conference began&lt;\\/p&gt;\"","    },","    \"time_end\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Time the conference ended&lt;\\/p&gt;\"","    },","    \"duration\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Duration of the conference&lt;\\/p&gt;\"","    },","    \"participation_count\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;participation_count&lt;\\/p&gt;\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['conference_record'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"2b8fdbb3-7137-4986-88a1-f66638ac1481"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"715356f5-38f0-4ab4-9061-70046c2c0ab6"}}],"id":"f0a5749c-4c5e-415a-9182-a188be823c95","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"aor","value":"{{cdrconference_record_aor}}","description":"<p>The address (name) of the conference bridge.</p>\n","type":"text","disabled":true},{"key":"domain","value":"{{cdrconference_record_domain}}","description":"<p>Domain of the conference.</p>\n","type":"text","disabled":true},{"key":"conference","value":"{{cdrconference_record_conference}}","description":"<p>Conference for the given reports</p>\n","type":"text"},{"key":"include_particapants","value":"{{cdrconference_record_include_particapants}}","description":"<p>include participants in the report response</p>\n","type":"text","disabled":true},{"key":"from","value":"{{cdrconference_record_from}}","description":"<p>Date of the start of reporting</p>\n","type":"text","disabled":true},{"key":"to","value":"{{cdrconference_record_to}}","description":"<p>Date of the end of reporting</p>\n","type":"text","disabled":true},{"key":"conf_id","value":"{{cdrconference_record_conf_id}}","description":"<p>Conference ID</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=conferencecdr&action=read","description":"<p>Read CDR for conference</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"conferencecdr"},{"key":"action","value":"read"}],"variable":[]}},"response":[],"_postman_id":"f0a5749c-4c5e-415a-9182-a188be823c95"}],"id":"7799e7bb-7e76-49b9-89fb-3f4f67b4c56c","_postman_id":"7799e7bb-7e76-49b9-89fb-3f4f67b4c56c","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}}},{"name":"Connection","item":[{"name":"CountConnection","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"total\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Total number of Connections in the specified domain.&lt;\\/p&gt;\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple([jsonData], schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"id":"f191234d-2288-4b53-87bf-0be48b262403"}},{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"dd43481b-c1e8-4b66-a2c6-3473ba519552"}}],"id":"88e2f51e-9571-4c0b-b095-24301940be72","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"aor","value":"{{countconnection_aor}}","type":"text"},{"key":"termination_match","value":"{{countconnection_termination_match}}","type":"text","disabled":true},{"key":"domain","value":"{{countconnection_domain}}","type":"text","disabled":true},{"key":"territory","value":"{{countconnection_territory}}","type":"text","disabled":true},{"key":"role","value":"{{countconnection_role}}","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=connection&action=count","description":"<p>Count Connections</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"connection"},{"key":"action","value":"count"}],"variable":[]}},"response":[],"_postman_id":"88e2f51e-9571-4c0b-b095-24301940be72"},{"name":"CreateConnection","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"id":"559e30ed-9953-4012-ac33-01fa48914ce1"}},{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"d9e52ba3-b903-4722-a863-7a8e46d36592"}}],"id":"42ce5795-6bda-48a0-a968-188b6fe7870a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"aor","value":"{{createconnection_aor}}","type":"text"},{"key":"domain","value":"{{createconnection_domain}}","type":"text"},{"key":"termination_match","value":"{{createconnection_termination_match}}","type":"text","disabled":true},{"key":"to_host_trans","value":"{{createconnection_to_host_trans}}","type":"text","disabled":true},{"key":"address","value":"{{createconnection_address}}","type":"text","disabled":true},{"key":"req_host_trans","value":"{{createconnection_req_host_trans}}","type":"text","disabled":true},{"key":"route","value":"{{createconnection_route}}","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=connection&action=create","description":"<p>Create a Connection</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"connection"},{"key":"action","value":"create"}],"variable":[]}},"response":[],"_postman_id":"42ce5795-6bda-48a0-a968-188b6fe7870a"},{"name":"DeleteConnection","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"id":"9c6a435c-fe64-4de5-9d2a-e42664d8f723"}},{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"8c54f10c-f043-40be-b619-bc9c1d0df56f"}}],"id":"8374d508-1fbb-47cc-b6d0-75fcff18df5d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"aor","value":"{{deleteconnection_aor}}","type":"text"},{"key":"termination_match","value":"{{deleteconnection_termination_match}}","type":"text","disabled":true},{"key":"isRoute","value":"{{deleteconnection_isRoute}}","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=connection&action=delete","description":"<p>Delete a Connection</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"connection"},{"key":"action","value":"delete"}],"variable":[]}},"response":[],"_postman_id":"8374d508-1fbb-47cc-b6d0-75fcff18df5d"},{"name":"ReadConnection","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"aor\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"domain\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"role\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"termination_match\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"req_user_trans\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"req_host_trans\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"to_user_trans\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"to_host_trans\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"from_user_trans\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"from_host_trans\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"address\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"origination_allowed\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"termination_allowed\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"nat_wan\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"authenticate_invite\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"authentication_alg\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"auth_user\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"authentication_realm\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"authentication_key\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"registration_required\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"registration_time\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"registration_expires\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"rate\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"rate_account\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"rate_max\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"rate_ratio\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"rate_margin\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"max_orig\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"max_term\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"max_total\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"min_orig_prd\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"min_term_prd\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"min_dura\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"nameout_dial_translation\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"out_dial_delay\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"out_dial_mode\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"dial_plan\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"dial_policy\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"gmt_offset\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"time_zone\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"call_processing_rule\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"description\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"count_in\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"count_out\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"total_orig\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"total_term\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"period_orig\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"period_term\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"ts\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"mac\": {","        \"type\": \"string\",","        \"description\": \"\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['connection'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"id":"a86df0e0-d43b-4fa5-b8ea-9f239b14bd80"}},{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"219ac509-b66e-4ddc-8f86-bd0ff350a3f3"}}],"id":"a2456ada-e713-4afb-90db-2f60a98a778b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"aor","value":"{{readconnection_aor}}","type":"text"},{"key":"termination_match","value":"{{readconnection_termination_match}}","type":"text","disabled":true},{"key":"domain","value":"{{readconnection_domain}}","type":"text","disabled":true},{"key":"territory","value":"{{readconnection_territory}}","type":"text","disabled":true},{"key":"routechain","value":"{{readconnection_routechain}}","type":"text","disabled":true},{"key":"role","value":"{{readconnection_role}}","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=connection&action=read","description":"<p>Read Connections</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"connection"},{"key":"action","value":"read"}],"variable":[]}},"response":[],"_postman_id":"a2456ada-e713-4afb-90db-2f60a98a778b"},{"name":"UpdateConnection","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"id":"5095b81d-abd6-4fab-bfeb-149ddee8ee08"}},{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"7ae9b430-0bf6-4d15-b8ea-ec04a809fd42"}}],"id":"9a1209a0-c17d-481d-a380-03099410cd9b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"aor","value":"{{updateconnection_aor}}","type":"text"},{"key":"termination_match","value":"{{updateconnection_termination_match}}","type":"text","disabled":true},{"key":"route","value":"{{updateconnection_route}}","type":"text","disabled":true},{"key":"domain","value":"{{updateconnection_domain}}","type":"text","disabled":true},{"key":"role","value":"{{updateconnection_role}}","type":"text","disabled":true},{"key":"req_user_trans","value":"{{updateconnection_req_user_trans}}","type":"text","disabled":true},{"key":"req_host_trans","value":"{{updateconnection_req_host_trans}}","type":"text","disabled":true},{"key":"to_user_trans","value":"{{updateconnection_to_user_trans}}","type":"text","disabled":true},{"key":"to_host_trans","value":"{{updateconnection_to_host_trans}}","type":"text","disabled":true},{"key":"from_user_trans","value":"{{updateconnection_from_user_trans}}","type":"text","disabled":true},{"key":"from_host_trans","value":"{{updateconnection_from_host_trans}}","type":"text","disabled":true},{"key":"address","value":"{{updateconnection_address}}","type":"text","disabled":true},{"key":"origination_allowed","value":"{{updateconnection_origination_allowed}}","type":"text","disabled":true},{"key":"termination_allowed","value":"{{updateconnection_termination_allowed}}","type":"text","disabled":true},{"key":"nat_wan","value":"{{updateconnection_nat_wan}}","type":"text","disabled":true},{"key":"authenticate_invite","value":"{{updateconnection_authenticate_invite}}","type":"text","disabled":true},{"key":"authentication_alg","value":"{{updateconnection_authentication_alg}}","type":"text","disabled":true},{"key":"auth_user","value":"{{updateconnection_auth_user}}","type":"text","disabled":true},{"key":"authentication_realm","value":"{{updateconnection_authentication_realm}}","type":"text","disabled":true},{"key":"authentication_key","value":"{{updateconnection_authentication_key}}","type":"text","disabled":true},{"key":"registration_required","value":"{{updateconnection_registration_required}}","type":"text","disabled":true},{"key":"registration_time","value":"{{updateconnection_registration_time}}","type":"text","disabled":true},{"key":"registration_expires","value":"{{updateconnection_registration_expires}}","type":"text","disabled":true},{"key":"rate","value":"{{updateconnection_rate}}","type":"text","disabled":true},{"key":"rate_account","value":"{{updateconnection_rate_account}}","type":"text","disabled":true},{"key":"rate_max","value":"{{updateconnection_rate_max}}","type":"text","disabled":true},{"key":"rate_ratio","value":"{{updateconnection_rate_ratio}}","type":"text","disabled":true},{"key":"rate_margin","value":"{{updateconnection_rate_margin}}","type":"text","disabled":true},{"key":"max_orig","value":"{{updateconnection_max_orig}}","type":"text","disabled":true},{"key":"max_term","value":"{{updateconnection_max_term}}","type":"text","disabled":true},{"key":"max_total","value":"{{updateconnection_max_total}}","type":"text","disabled":true},{"key":"min_orig_prd","value":"{{updateconnection_min_orig_prd}}","type":"text","disabled":true},{"key":"min_term_prd","value":"{{updateconnection_min_term_prd}}","type":"text","disabled":true},{"key":"min_dura","value":"{{updateconnection_min_dura}}","type":"text","disabled":true},{"key":"nameout_dial_translation","value":"{{updateconnection_nameout_dial_translation}}","type":"text","disabled":true},{"key":"out_dial_delay","value":"{{updateconnection_out_dial_delay}}","type":"text","disabled":true},{"key":"out_dial_mode","value":"{{updateconnection_out_dial_mode}}","type":"text","disabled":true},{"key":"dial_plan","value":"{{updateconnection_dial_plan}}","type":"text","disabled":true},{"key":"dial_policy","value":"{{updateconnection_dial_policy}}","type":"text","disabled":true},{"key":"gmt_offset","value":"{{updateconnection_gmt_offset}}","type":"text","disabled":true},{"key":"time_zone","value":"{{updateconnection_time_zone}}","type":"text","disabled":true},{"key":"call_processing_rule","value":"{{updateconnection_call_processing_rule}}","type":"text","disabled":true},{"key":"description","value":"{{updateconnection_description}}","type":"text","disabled":true},{"key":"count_in","value":"{{updateconnection_count_in}}","type":"text","disabled":true},{"key":"count_out","value":"{{updateconnection_count_out}}","type":"text","disabled":true},{"key":"total_orig","value":"{{updateconnection_total_orig}}","type":"text","disabled":true},{"key":"total_term","value":"{{updateconnection_total_term}}","type":"text","disabled":true},{"key":"period_orig","value":"{{updateconnection_period_orig}}","type":"text","disabled":true},{"key":"period_term","value":"{{updateconnection_period_term}}","type":"text","disabled":true},{"key":"ts","value":"{{updateconnection_ts}}","type":"text","disabled":true},{"key":"mac","value":"{{updateconnection_mac}}","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=connection&action=update","description":"<p>Update a Connection</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"connection"},{"key":"action","value":"update"}],"variable":[]}},"response":[],"_postman_id":"9a1209a0-c17d-481d-a380-03099410cd9b"}],"id":"fefc798e-c3e6-42c7-9228-e266890f5d5c","_postman_id":"fefc798e-c3e6-42c7-9228-e266890f5d5c","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}}},{"name":"Contact","item":[{"name":"CountContact","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"total\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Total number of Contacts in the specified Domain.&lt;\\/p&gt;\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple([jsonData], schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"88ce0490-06ec-400c-a14b-6162af81155d"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"b3146aa9-03df-4e0a-838c-6ef903abb518"}}],"id":"6f265abf-92be-44e8-b0a6-6cfff3b17be9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Identifies Domain from which to count Contacts.</p>\n","type":"text"},{"key":"user","value":"{{user}}","description":"<p>Identifies User from which to count Contacts by extension number.</p>\n","type":"text"},{"key":"first_name","value":"{{countcontact_first_name}}","description":"<p>Filters count based on Contacts' first name.</p>\n","type":"text","disabled":true},{"key":"last_name","value":"{{countcontact_last_name}}","description":"<p>Filters count based on Contacts' last name.</p>\n","type":"text","disabled":true},{"key":"contact_id","value":"{{countcontact_contact_id}}","description":"<p>Contact_id hash of the contact.</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=contact&action=count","description":"<p>Count Contacts</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"contact"},{"key":"action","value":"count"}],"variable":[]}},"response":[{"id":"1d80ce1b-cd62-43fd-8a51-f1ec197356e6","name":"CountContact","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","description":"Identifies Domain from which to count Contacts.","type":"text"},{"key":"user","value":"{{user}}","description":"Identifies User from which to count Contacts.","type":"text"},{"key":"first_name","value":"{{countcontact_first_name}}","description":"Filters count based on Contacts' first name.","type":"text","disabled":true},{"key":"last_name","value":"{{countcontact_last_name}}","description":"Filters count based on Contacts' last name.","type":"text","disabled":true},{"key":"contact_id","value":"{{countcontact_contact_id}}","description":"Contact_id hash of the contact.","type":"text","disabled":true}]},"url":{"raw":"https://oclnk.co/?object=contact&action=count","host":["https://oclnk.co"],"path":[""],"query":[{"key":"object","value":"contact"},{"key":"action","value":"count"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 05 Jun 2023 18:26:55 GMT"},{"key":"Server","value":"Apache/2.4.48 (Ubuntu)"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"11"},{"key":"Keep-Alive","value":"timeout=2, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"total\": 4\n}"}],"_postman_id":"6f265abf-92be-44e8-b0a6-6cfff3b17be9"},{"name":"CreateContact","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"18fac2ad-9f92-405d-8085-542f8aad49a8"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"3d91eb2e-28b8-4dc3-a85c-675c12d4e5fd"}}],"id":"b413d442-3668-46af-ab11-dd75e6347276","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Identifies new Contact's Domain.</p>\n","type":"text"},{"key":"user","value":"{{user}}","description":"<p>Specifies user/extension for the User whose Contact you want.</p>\n","type":"text"},{"key":"first_name","value":"","description":"<p>Contact's first name</p>\n","type":"text"},{"key":"last_name","value":"","description":"<p>Contact's last name</p>\n","type":"text"},{"key":"home_phone","value":"","description":"<p>Contact's home number</p>\n","type":"text","disabled":true},{"key":"cell_phone","value":"","description":"<p>Contact's mobile number</p>\n","type":"text","disabled":true},{"key":"work_phone","value":"","description":"<p>Contact's work number</p>\n","type":"text","disabled":true},{"key":"email","value":"","description":"<p>Contact's email address</p>\n","type":"text","disabled":true},{"key":"fax","value":"","description":"<p>Fax number</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=contact&action=create","description":"<p>Create a Contact</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"contact"},{"key":"action","value":"create"}],"variable":[]}},"response":[],"_postman_id":"b413d442-3668-46af-ab11-dd75e6347276"},{"name":"DeleteContact","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"8ff83fce-9ad2-4be3-9de7-9661eb021e59"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"4efeec6e-9edc-4cb1-becc-4a400b5b7121"}}],"id":"67e57010-5933-45f9-a0ce-aa6996625602","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Identifies Contact to delete by Domain.</p>\n","type":"text"},{"key":"user","value":"{{user}}","description":"<p>Specifies user/extension for the User whose Contact you want.</p>\n","type":"text"},{"key":"first_name","value":"","description":"<p>Contact's first name.</p>\n","type":"text"},{"key":"last_name","value":"","description":"<p>Contact's last name.</p>\n","type":"text"},{"key":"contact_id","value":"","description":"<p>Hash that is contact's id.</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=contact&action=delete","description":"<p>Delete a Contact</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"contact"},{"key":"action","value":"delete"}],"variable":[]}},"response":[],"_postman_id":"67e57010-5933-45f9-a0ce-aa6996625602"},{"name":"ReadContact","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"domain\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"user\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"last_name\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"first_name\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"middle_name\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"company\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"work_phone\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"cell_phone\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"email\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"home_phone\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"tags\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"ts\": {","        \"type\": \"string\",","        \"description\": \"\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['contact'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"66c4b4e0-7168-4674-aa74-7505bceeacb7"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"245ee134-fda0-4b0b-b06a-b89d45a6d21b"}}],"id":"f7d923e8-367f-49c8-b591-c7442264dd31","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Identifies Domain from which to read Contacts.</p>\n","type":"text"},{"key":"user","value":"{{user}}","description":"<p>Identifies User from which to read Contacts by extension number.</p>\n","type":"text"},{"key":"first_name","value":"","description":"<p>Filters search by Contacts' first name.</p>\n","type":"text","disabled":true},{"key":"last_name","value":"","description":"<p>Filters search by Contact's last_name.</p>\n","type":"text","disabled":true},{"key":"tags","value":"","description":"<p>Ability to search by a specific tag or group of contacts.</p>\n","type":"text","disabled":true},{"key":"includeDomain","value":"","description":"<p>(yes/no) Include the presence data set for non residential domains.</p>\n","type":"text","disabled":true},{"key":"limit","value":"","description":"<p>Specifies limit for number of Contacts returned.</p>\n","type":"text","disabled":true},{"key":"department","value":"","description":"<p>Filters search by Contacts' department.</p>\n","type":"text","disabled":true},{"key":"order","value":"","description":"<p>Specifies parameter by which the output is ordered.</p>\n","type":"text","disabled":true},{"key":"contact_id","value":"","description":"<p>Specific id of the contact to be read.</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=contact&action=read","description":"<p>Read Contacts</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"contact"},{"key":"action","value":"read"}],"variable":[]}},"response":[{"id":"61c69663-d2e7-48ff-b7d8-c85398267b29","name":"ReadContact","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","description":"Identifies Domain from which to read Contacts.","type":"text"},{"key":"user","value":"1002","description":"Identifies User from which to read Contacts.","type":"text"},{"key":"first_name","value":"","description":"Filters search by Contacts' first name.","type":"text","disabled":true},{"key":"last_name","value":"","description":"Filters search by Contact's last_name.","type":"text","disabled":true},{"key":"tags","value":"","description":"Ability to search by a specific tag or group of contacts.","type":"text","disabled":true},{"key":"includeDomain","value":"","description":"(yes/no) Include the presence data set for non residential domains.","type":"text","disabled":true},{"key":"limit","value":"","description":"Specifies limit for number of Contacts returned.","type":"text","disabled":true},{"key":"department","value":"","description":"Filters search by Contacts' department.","type":"text","disabled":true},{"key":"order","value":"","description":"Specifies parameter by which the output is ordered.","type":"text","disabled":true},{"key":"contact_id","value":"","description":"Specific id of the contact to be read.","type":"text","disabled":true}]},"url":{"raw":"https://oclnk.co/?object=contact&action=read","host":["https://oclnk.co"],"path":[""],"query":[{"key":"object","value":"contact"},{"key":"action","value":"read"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 05 Jun 2023 18:29:00 GMT"},{"key":"Server","value":"Apache/2.4.48 (Ubuntu)"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Length","value":"330"},{"key":"Keep-Alive","value":"timeout=2, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"last_name\": \"Castillo\",\n        \"first_name\": \"Neo\",\n        \"middle_name\": \"\",\n        \"company\": \"\",\n        \"work_phone\": \"8285554141\",\n        \"cell_phone\": \"\",\n        \"fax\": \"\",\n        \"email\": \"\",\n        \"home_phone\": \"\",\n        \"tags\": \",post,\",\n        \"ts\": \"2023-06-05 18:26:06\",\n        \"contact_id\": \"699785e9485713431395520c8e6776bc\"\n    },\n    {\n        \"last_name\": \"Hurst\",\n        \"first_name\": \"Halle\",\n        \"middle_name\": \"\",\n        \"company\": \"\",\n        \"work_phone\": \"8285559714\",\n        \"cell_phone\": \"\",\n        \"fax\": \"\",\n        \"email\": \"\",\n        \"home_phone\": \"\",\n        \"tags\": \",post,\",\n        \"ts\": \"2023-06-05 18:26:25\",\n        \"contact_id\": \"1903bea8210eea9e44258eed3fbfc1c4\"\n    },\n    {\n        \"last_name\": \"Neal\",\n        \"first_name\": \"Everly\",\n        \"middle_name\": \"\",\n        \"company\": \"\",\n        \"work_phone\": \"7045551038\",\n        \"cell_phone\": \"\",\n        \"fax\": \"\",\n        \"email\": \"\",\n        \"home_phone\": \"\",\n        \"tags\": \",post,\",\n        \"ts\": \"2023-06-05 18:25:53\",\n        \"contact_id\": \"27da71a3ff9c7b66e74387862a3c7fdf\"\n    },\n    {\n        \"last_name\": \"Sullivan\",\n        \"first_name\": \"Sebastian\",\n        \"middle_name\": \"\",\n        \"company\": \"\",\n        \"work_phone\": \"7045559797\",\n        \"cell_phone\": \"\",\n        \"fax\": \"\",\n        \"email\": \"\",\n        \"home_phone\": \"\",\n        \"tags\": \",post,\",\n        \"ts\": \"2023-06-05 18:25:42\",\n        \"contact_id\": \"5c1fc98a26725ea7cddf3e63e4bc9876\"\n    }\n]"}],"_postman_id":"f7d923e8-367f-49c8-b591-c7442264dd31"},{"name":"UpdateContact","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"c1326b82-f819-429a-b25c-4b08af3a3210"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"287e0367-e586-4098-8613-01b451ed2d32"}}],"id":"6004fa07-1d91-49ea-93f9-cb9fba8f4c3e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Identifies Contacts to update by Domain.</p>\n","type":"text"},{"key":"user","value":"{{user}}","description":"<p>Identifies Contacts to update by User/Extension.</p>\n","type":"text"},{"key":"first_name","value":"","description":"<p>Identifies Contacts to update by first name.</p>\n","type":"text"},{"key":"last_name","value":"","description":"<p>Identifies Contacts to update by last name.</p>\n","type":"text"},{"key":"company","value":"","description":"<p>New value for Contact.</p>\n","type":"text","disabled":true},{"key":"work_phone","value":"","description":"<p>New value for Contact.</p>\n","type":"text","disabled":true},{"key":"cell_phone","value":"","description":"<p>New value for Contact.</p>\n","type":"text","disabled":true},{"key":"fax","value":"","description":"<p>New value for Contact.</p>\n","type":"text","disabled":true},{"key":"email","value":"","description":"<p>New value for Contact.</p>\n","type":"text","disabled":true},{"key":"home_phone","value":"","description":"<p>New value for Contact.</p>\n","type":"text","disabled":true},{"key":"time_answer","value":"","description":"<p>New value for Contact.</p>\n","type":"text","disabled":true},{"key":"tags","value":"","description":"<p>New value for Contact.</p>\n","type":"text","disabled":true},{"key":"ts","value":"","description":"<p>New value for Contact.</p>\n","type":"text","disabled":true},{"key":"contact_id","value":"","description":"<p>Contact_id hash for contact, should not change, it is the index.</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=contact&action=update","description":"<p>Update Contacts</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"contact"},{"key":"action","value":"update"}],"variable":[]}},"response":[],"_postman_id":"6004fa07-1d91-49ea-93f9-cb9fba8f4c3e"}],"id":"5270239a-070d-4112-ad9c-75818570e4ac","_postman_id":"5270239a-070d-4112-ad9c-75818570e4ac","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}}},{"name":"Dashboard","item":[{"name":"CountDashboard","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"total\": {","        \"type\": \"number\",","        \"description\": \"\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple([jsonData], schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"bd575405-9c7a-45bf-a5a8-bf0a0751e70e"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"cbea5510-93b3-418c-b8a1-6a209b5949ad"}}],"id":"2e805e38-8ec8-493f-9939-a6a47eb14471","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","description":"<p>json or xml</p>\n","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Identifies Domain from which to count Dashboard.</p>\n","type":"text"},{"key":"owner_id","value":"{{uid}}","description":"<p>Filter dashboard by owner_id. Owner will be the uid of the user that created the dashboard</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=dashboard&action=count","description":"<p>Count Dashboard in a Domain</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"dashboard"},{"key":"action","value":"count"}],"variable":[]}},"response":[],"_postman_id":"2e805e38-8ec8-493f-9939-a6a47eb14471"},{"name":"CreateDashboard","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"05236c82-b7c8-4783-b3b7-547bd7e6d2a6"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"cd0bc83b-f2af-4b14-86ab-e244e703ff77"}}],"id":"d4d31874-283a-4022-a1fc-4d2aa3a7b934","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"name","value":"{{createdashboard_name}}","description":"<p>Name/title of the dashboard</p>\n","type":"text"},{"key":"domain","value":"{{createdashboard_domain}}","description":"<p>Domain of the dashboard</p>\n","type":"text"},{"key":"description","value":"{{createdashboard_description}}","type":"text","disabled":true},{"key":"properties","value":"{{createdashboard_properties}}","type":"text","disabled":true},{"key":"layouts","value":"{{createdashboard_layouts}}","type":"text","disabled":true},{"key":"owner_type","value":"{{createdashboard_owner_type}}","type":"text","disabled":true},{"key":"owner_id","value":"{{createdashboard_owner_id}}","type":"text","disabled":true},{"key":"status","value":"{{createdashboard_status}}","type":"text","disabled":true},{"key":"share_type","value":"{{createdashboard_share_type}}","type":"text","disabled":true},{"key":"share_details","value":"{{createdashboard_share_details}}","type":"text","disabled":true},{"key":"public_id","value":"{{createdashboard_public_id}}","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=dashboard&action=create","description":"<p>Create Dashboard in a Domain</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"dashboard"},{"key":"action","value":"create"}],"variable":[]}},"response":[],"_postman_id":"d4d31874-283a-4022-a1fc-4d2aa3a7b934"},{"name":"DeleteDashboard","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"a5469b2d-e2fb-4a60-a748-a45dae0891e6"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"8d0b1370-4e74-4892-86a1-50d2625f8d31"}}],"id":"77d25d4a-5f0c-49c7-a219-206dca92e845","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"id","value":"{{deletedashboard_id}}","description":"<p>Unique ID of the dashboard</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=dashboard&action=delete","description":"<p>Delete Dashboard in a Domain</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"dashboard"},{"key":"action","value":"delete"}],"variable":[]}},"response":[],"_postman_id":"77d25d4a-5f0c-49c7-a219-206dca92e845"},{"name":"FavoriteDashboard","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['dashboard'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"eaaee470-82d5-4a0f-b095-0325b9d9f366"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"f3b4620b-b058-49cb-87db-1f012c80a7cb"}}],"id":"010e7af6-a90d-4fc2-87c9-acc77a356e6a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"dashboard_id","value":"{{favoritedashboard_dashboard_id}}","description":"<p>ID of the dashboard</p>\n","type":"text"},{"key":"domain","value":"{{favoritedashboard_domain}}","description":"<p>Domain of the dashboard</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=dashboard&action=favorite","description":"<p>Toggle Dashboard as a Favorite</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"dashboard"},{"key":"action","value":"favorite"}],"variable":[]}},"response":[],"_postman_id":"010e7af6-a90d-4fc2-87c9-acc77a356e6a"},{"name":"HideDashboard","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['dashboard'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"4ba3cbeb-319f-40f7-9545-36042f79539e"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"8fd02bc9-32d3-45c7-91c0-b6b85d817882"}}],"id":"e37ee10b-f48c-4eba-9269-e6c14de2e2ac","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"dashboard_id","value":"{{hidedashboard_dashboard_id}}","description":"<p>ID of the dashboard</p>\n","type":"text"},{"key":"domain","value":"{{hidedashboard_domain}}","description":"<p>Domain of the dashboard</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=dashboard&action=hide","description":"<p>Toggle Dashboard Visibility</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"dashboard"},{"key":"action","value":"hide"}],"variable":[]}},"response":[],"_postman_id":"e37ee10b-f48c-4eba-9269-e6c14de2e2ac"},{"name":"ListDashboard","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"id\": {","        \"type\": \"number\",","        \"description\": \"&lt;p&gt;Unique ID of the dashboard&lt;\\/p&gt;\"","    },","    \"name\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;User provided name\\/title of the dashboard&lt;\\/p&gt;\"","    },","    \"domain\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"owner_type\": {","        \"type\": \"number\",","        \"description\": \"&lt;p&gt;Owner type of the board (1: User, 2: Domain)&lt;\\/p&gt;\"","    },","    \"owner_id\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Owner id of the board (1: uid, 2: aor_host)&lt;\\/p&gt;\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['dashboard'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"8e431055-b539-4fd3-9217-599b42cbbec6"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"5394fe33-cebf-4539-ac00-5445a38b822a"}}],"id":"584a686b-1f30-4925-836e-4f624d4fee08","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","description":"<p>json or xml</p>\n","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Identifies Domain from which to list Dashboard.</p>\n","type":"text"},{"key":"owner_id","value":"{{uid}}","description":"<p>Filter dashboard by owner_id. Owner will be the uid of the user that created the dashboard</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=dashboard&action=list","description":"<p>List Dashboards in a Domain</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"dashboard"},{"key":"action","value":"list"}],"variable":[]}},"response":[],"_postman_id":"584a686b-1f30-4925-836e-4f624d4fee08"},{"name":"ReadDashboard","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"id\": {","        \"type\": \"number\",","        \"description\": \"&lt;p&gt;Unique ID of the dashboard&lt;\\/p&gt;\"","    },","    \"name\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;User provided name\\/title of the dashboard&lt;\\/p&gt;\"","    },","    \"description\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"domain\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"properties\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;JSON object describing the visual and dynamic properties of the dashboard&lt;\\/p&gt;\"","    },","    \"layouts\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;JSON object describing the grid layout of the dashboard's cards&lt;\\/p&gt;\"","    },","    \"owner_type\": {","        \"type\": \"number\",","        \"description\": \"&lt;p&gt;Owner type of the board (1: User, 2: Domain)&lt;\\/p&gt;\"","    },","    \"owner_id\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Owner id of the board (1: uid, 2: aor_host)&lt;\\/p&gt;\"","    },","    \"status\": {","        \"type\": \"number\",","        \"description\": \"\"","    },","    \"share_type\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;The sharing behavior of the dashboard ('select': user defined access rules, 'domain': allow all domain users)&lt;\\/p&gt;\"","    },","    \"share_details\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;JSON object describing the user defined access rules&lt;\\/p&gt;\"","    },","    \"public_id\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;The unique public id used for public share links&lt;\\/p&gt;\"","    },","    \"created\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"modified\": {","        \"type\": \"string\",","        \"description\": \"\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['dashboard'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"1fd19a9d-73e9-4498-bd21-627645c9ebd0"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"0fcf0f9c-3acd-4e9b-9e50-35dd9c467005"}}],"id":"982482f2-2d94-4625-8082-2bdf9c067507","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"{{readdashboard_format}}","type":"text","disabled":true},{"key":"domain","value":"{{readdashboard_domain}}","description":"<p>Identifies Domain from which to read Dashboard.</p>\n","type":"text"},{"key":"id","value":"{{readdashboard_id}}","description":"<p>Read a specific dashboard using the unique ID</p>\n","type":"text","disabled":true},{"key":"name","value":"{{readdashboard_name}}","description":"<p>Read a specific dashboard by the name. Name is not inherently unique</p>\n","type":"text","disabled":true},{"key":"owner_id","value":"{{readdashboard_owner_id}}","description":"<p>Filter dashboard by owner_id. Owner will be the uid of the user that created the dashboard</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=dashboard&action=read","description":"<p>Read Dashboard in a Domain</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"dashboard"},{"key":"action","value":"read"}],"variable":[]}},"response":[],"_postman_id":"982482f2-2d94-4625-8082-2bdf9c067507"},{"name":"UpdateDashboard","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"7d11924d-c484-4d4f-963e-30f7203a35e9"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"51e7103b-2ae6-4b61-8352-70914294a5c9"}}],"id":"c749c503-209b-4e7a-a011-534d78acd4d9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"id","value":"{{updatedashboard_id}}","description":"<p>ID of the dashboard</p>\n","type":"text"},{"key":"domain","value":"{{updatedashboard_domain}}","description":"<p>Domain of the dashboard</p>\n","type":"text"},{"key":"name","value":"{{updatedashboard_name}}","description":"<p>Name/title of the dashboard</p>\n","type":"text","disabled":true},{"key":"description","value":"{{updatedashboard_description}}","type":"text","disabled":true},{"key":"properties","value":"{{updatedashboard_properties}}","description":"<p>JSON object describing the visual and dynamic properties of the dashboard</p>\n","type":"text","disabled":true},{"key":"layouts","value":"{{updatedashboard_layouts}}","description":"<p>JSON object describing the grid layout of the dashboard's cards</p>\n","type":"text","disabled":true},{"key":"owner_type","value":"{{updatedashboard_owner_type}}","description":"<p>Owner type of the board (1: User, 2: Domain)</p>\n","type":"text","disabled":true},{"key":"owner_id","value":"{{updatedashboard_owner_id}}","description":"<p>Owner id of the board (1: uid, 2: aor_host)</p>\n","type":"text","disabled":true},{"key":"status","value":"{{updatedashboard_status}}","type":"text","disabled":true},{"key":"share_type","value":"{{updatedashboard_share_type}}","description":"<p>The sharing behavior of the dashboard ('select': user defined access rules, 'domain': allow all domain users)</p>\n","type":"text","disabled":true},{"key":"share_details","value":"{{updatedashboard_share_details}}","description":"<p>JSON object describing the user defined access rules</p>\n","type":"text","disabled":true},{"key":"public_id","value":"{{updatedashboard_public_id}}","description":"<p>The unique public id used for public share links</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=dashboard&action=update","description":"<p>Update Dashboard in a Domain</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"dashboard"},{"key":"action","value":"update"}],"variable":[]}},"response":[],"_postman_id":"c749c503-209b-4e7a-a011-534d78acd4d9"}],"id":"78597e3f-5a95-4a59-b39f-94a5d7499741","_postman_id":"78597e3f-5a95-4a59-b39f-94a5d7499741","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}}},{"name":"Department","item":[{"name":"CreateDepartment","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"ed11df5f-2077-48a6-ba02-a1ef3fb095dc"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"e078d18f-710f-4637-afbc-10ea8efa4742"}}],"id":"1259333b-f218-40c2-a7d7-495d945d95ca","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"user","value":"{{createdepartment_user}}","description":"<p>Extension of Department. Example: \"Sales\"</p>\n","type":"text"},{"key":"domain","value":"{{createdepartment_domain}}","description":"<p>Domain where new Department will be created.</p>\n","type":"text"},{"key":"directory_match","value":"{{createdepartment_directory_match}}","description":"<p>Login for the User.</p>\n<p>Default value: departments</p>\n","type":"text","disabled":true},{"key":"first_name","value":"{{createdepartment_first_name}}","description":"<p>First name of new user.</p>\n","type":"text","disabled":true},{"key":"last_name","value":"{{createdepartment_last_name}}","description":"<p>Last name of new user.</p>\n","type":"text","disabled":true},{"key":"dir_list","value":"{{createdepartment_dir_list}}","description":"<p>Include in directory</p>\n<p>Default value: no</p>\n","type":"text","disabled":true},{"key":"dir_anc","value":"{{createdepartment_dir_anc}}","description":"<p>Include in audible directories</p>\n<p>Default value: no</p>\n","type":"text","disabled":true},{"key":"srv_code","value":"{{createdepartment_srv_code}}","description":"<p>Service code for Department</p>\n<p>Default value: system-department</p>\n","type":"text","disabled":true},{"key":"passwordLength","value":"{{createdepartment_passwordLength}}","description":"<p>Length for Random new password</p>\n","type":"text","disabled":true},{"key":"pwd_hash","value":"{{createdepartment_pwd_hash}}","description":"<p>Portal password for new User.</p>\n","type":"text","disabled":true},{"key":"subscriber_pin","value":"{{createdepartment_subscriber_pin}}","description":"<p>Voicemail PIN for new User.</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=subscriber&action=create&directory_match=departments","description":"<p>Create a new Department</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"subscriber"},{"key":"action","value":"create"},{"key":"directory_match","value":"departments"}],"variable":[]}},"response":[],"_postman_id":"1259333b-f218-40c2-a7d7-495d945d95ca"},{"name":"ListDepartment","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['department'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"1bedb52c-5a0b-4ae5-95ab-b2e2418d155d"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"2caf9c7d-28d5-4128-85e7-19f52402ff21"}}],"id":"a03cb336-c30b-4a09-96db-3ca8cbf90efb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Identifies Domain for which to list Departments.</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=department&action=list","description":"<p>List Departments in a Domain</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"department"},{"key":"action","value":"list"}],"variable":[]}},"response":[{"id":"8ab4e23f-7c91-4cd3-8562-0351a2550411","name":"ListDepartment","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","description":"Identifies Domain for which to list Departments.","type":"text"}]},"url":{"raw":"https://oclnk.co/?object=department&action=list","host":["https://oclnk.co"],"path":[""],"query":[{"key":"object","value":"department"},{"key":"action","value":"list"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 05 Jun 2023 20:11:03 GMT"},{"key":"Server","value":"Apache/2.4.48 (Ubuntu)"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"29"},{"key":"Keep-Alive","value":"timeout=2, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    \"Billing\",\n    \"Sales\",\n    \"Service\"\n]"}],"_postman_id":"a03cb336-c30b-4a09-96db-3ca8cbf90efb"}],"id":"75809a71-17ca-4bcf-a38b-08e33d7a30bf","_postman_id":"75809a71-17ca-4bcf-a38b-08e33d7a30bf","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}}},{"name":"Device","item":[{"name":"CountDevice","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"total\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Total number of Devices for the specified Domain\\/User.&lt;\\/p&gt;\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple([jsonData], schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"fd017ba7-a1ff-405a-92c2-41304aea8c04"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"4e390260-5cd8-44a8-9d3b-87cb8497f335"}}],"id":"5637173a-7ad9-49c8-a3e5-0eb10fd3e9cb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Identifies Domain for which to count Devices.</p>\n","type":"text"},{"key":"territory","value":"","description":"<p>Identfies territory for which to count Devices.</p>\n","type":"text","disabled":true},{"key":"user","value":"{{user}}","description":"<p>Identifies User for which to count Devices.</p>\n","type":"text","disabled":true},{"key":"aor","value":"","description":"<p>Filter count by Address of Record.</p>\n","type":"text","disabled":true},{"key":"device","value":"","description":"<p>Filter count by Device name.</p>\n","type":"text","disabled":true},{"key":"limit","value":"","description":"<p>Set limit for number of returned outputs.</p>\n","type":"text","disabled":true},{"key":"start","value":"","description":"<p>Set starting point for returned outputs.</p>\n","type":"text","disabled":true},{"key":"sort","value":"","description":"<p>Specifies parameter by which the output is sorted.</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=device&action=count","description":"<p>Count Devices for a Domain/User</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"device"},{"key":"action","value":"count"}],"variable":[]}},"response":[{"id":"d220c205-bcca-4d52-8b67-64eb19940675","name":"CountDevice","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","description":"Identifies Domain for which to count Devices.","type":"text"},{"key":"territory","value":"","description":"Identfies territory for which to count Devices.","type":"text","disabled":true},{"key":"user","value":"{{user}}","description":"Identifies User for which to count Devices.","type":"text","disabled":true},{"key":"aor","value":"","description":"Filter count by Address of Record.","type":"text","disabled":true},{"key":"device","value":"","description":"Filter count by Device name.","type":"text","disabled":true},{"key":"limit","value":"","description":"Set limit for number of returned outputs.","type":"text","disabled":true},{"key":"start","value":"","description":"Set starting point for returned outputs.","type":"text","disabled":true},{"key":"sort","value":"","description":"Specifies parameter by which the output is sorted.","type":"text","disabled":true}]},"url":{"raw":"https://oclnk.co/?object=device&action=count","host":["https://oclnk.co"],"path":[""],"query":[{"key":"object","value":"device"},{"key":"action","value":"count"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 05 Jun 2023 20:11:47 GMT"},{"key":"Server","value":"Apache/2.4.48 (Ubuntu)"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"12"},{"key":"Keep-Alive","value":"timeout=2, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"total\": 14\n}"}],"_postman_id":"5637173a-7ad9-49c8-a3e5-0eb10fd3e9cb"},{"name":"CreateDevice","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"02cd414a-a545-4348-93ab-142fcb1b7337"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"ee08e420-9fe2-4eb6-9e2f-8153fa2c3db6"}}],"id":"7f5ade29-a422-46a3-a18d-05005a02abdd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{createdevice_domain}}","description":"<p>Specifies Domain of new Device.</p>\n","type":"text"},{"key":"device","value":"{{createdevice_device}}","description":"<p>Specifies name of new Device.</p>\n","type":"text"},{"key":"user","value":"{{createdevice_user}}","description":"<p>Specifies owner of new Device. Must be a valid user extension.</p>\n","type":"text"},{"key":"mac","value":"{{createdevice_mac}}","description":"<p>Specifies MAC address of new Device. Just hex numbers, no -,:. needed.</p>\n<p>Size range: 12</p>\n","type":"text"},{"key":"model","value":"{{createdevice_model}}","description":"<p>Specifies Model of new Device. Query available options via Devicemodel</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=device&action=create","description":"<p>Create a Device/Subscriber</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"device"},{"key":"action","value":"create"}],"variable":[]}},"response":[],"_postman_id":"7f5ade29-a422-46a3-a18d-05005a02abdd"},{"name":"DeleteDevice","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"90afc07c-59f2-444f-b664-b20ef40d57a3"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"23dd005e-b929-4b95-92c6-8918daabdc1c"}}],"id":"a552bd96-e1c4-47f2-b676-0d256fed6994","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"device","value":"","description":"<p>Identifies Device to delete by name.</p>\n","type":"text"},{"key":"termination_match","value":"","description":"<p>Identifies Device to delete by termination match.</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=device&action=delete","description":"<p>Delete a Device/Subscriber</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"device"},{"key":"action","value":"delete"}],"variable":[]}},"response":[],"_postman_id":"a552bd96-e1c4-47f2-b676-0d256fed6994"},{"name":"ReadDevice","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"aor\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;AOR&lt;\\/p&gt;\"","    },","    \"mac\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;MAC Address&lt;\\/p&gt;\"","    },","    \"model\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Brand and model&lt;\\/p&gt;\"","    },","    \"aor_user\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;AOR User&lt;\\/p&gt;\"","    },","    \"mode\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Mode&lt;\\/p&gt;\"","    },","    \"server\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Preferred Server&lt;\\/p&gt;\"","    },","    \"user_agent\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;User Agent&lt;\\/p&gt;\"","    },","    \"contact\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"received_from\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Where Received From&lt;\\/p&gt;\"","    },","    \"registration_time\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Time of Registration&lt;\\/p&gt;\"","    },","    \"expires\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Time to Expiration&lt;\\/p&gt;\"","    },","    \"registration_expires_time\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Registration Expiration Time&lt;\\/p&gt;\"","    },","    \"subscriber_name\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Name of Subscriber&lt;\\/p&gt;\"","    },","    \"subscriber_domain\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Domain of Subscriber&lt;\\/p&gt;\"","    },","    \"authentication_key\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Authentication Key\\/Password&lt;\\/p&gt;\"","    },","    \"transport\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;The transport type for the device if configured through the NDP&lt;\\/p&gt;\"","    },","    \"overrides\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Custom Configuration Overrides&lt;\\/p&gt;\"","    },","    \"call_processing_rule\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Call Processing Rule&lt;\\/p&gt;\"","    },","    \"callid_emgr\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Caller ID for Emergency Calls&lt;\\/p&gt;\"","    },","    \"line\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Line assignment&lt;\\/p&gt;\"","    },","    \"auth_user\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Device Authorization User&lt;\\/p&gt;\"","    },","    \"auth_pass\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Device Authorization Password&lt;\\/p&gt;\"","    },","    \"sub_fullname\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Fullname of Subscriber&lt;\\/p&gt;\"","    },","    \"sub_scope\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Scope of Subscriber&lt;\\/p&gt;\"","    },","    \"sub_login\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Login of Subscriber&lt;\\/p&gt;\"","    },","    \"ndperror\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;NDP Error&lt;\\/p&gt;\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['device'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"53654078-7d41-4906-8aa4-79b70aa01b17"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"53792bcc-5de7-48d1-85b6-f0244ceff52a"}}],"id":"bdf46ccc-c552-4753-ba29-2bddc12aa9ef","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Identifies Domain from which to read Devices.</p>\n","type":"text"},{"key":"device","value":"","description":"<p>Identifies name of device to read.</p>\n","type":"text","disabled":true},{"key":"user","value":"","type":"text","disabled":true},{"key":"owner","value":"","type":"text","disabled":true},{"key":"start","value":"","type":"text","disabled":true},{"key":"mode","value":"","type":"text","disabled":true},{"key":"limit","value":"","type":"text","disabled":true},{"key":"sort","value":"","type":"text","disabled":true},{"key":"list","value":"","type":"text","disabled":true},{"key":"fields","value":"","type":"text","disabled":true},{"key":"filters","value":"","type":"text","disabled":true},{"key":"noNDP","value":"","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=device&action=read","description":"<p>Read Devices for a Domain/Subscriber</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"device"},{"key":"action","value":"read"}],"variable":[]}},"response":[{"id":"32040d6d-8898-4ff0-908f-97f2330fd5bb","name":"ReadDevice","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","description":"Identifies Domain from which to read Devices.","type":"text"},{"key":"device","value":"","description":"Identifies name of device to read.","type":"text","disabled":true},{"key":"user","value":"","type":"text","disabled":true},{"key":"owner","value":"","type":"text","disabled":true},{"key":"start","value":"","type":"text","disabled":true},{"key":"mode","value":"","type":"text","disabled":true},{"key":"limit","value":"","type":"text","disabled":true},{"key":"sort","value":"","type":"text","disabled":true},{"key":"list","value":"","type":"text","disabled":true},{"key":"fields","value":"","type":"text","disabled":true},{"key":"filters","value":"","type":"text","disabled":true},{"key":"noNDP","value":"","type":"text","disabled":true}]},"url":{"raw":"https://oclnk.co/?object=device&action=read","host":["https://oclnk.co"],"path":[""],"query":[{"key":"object","value":"device"},{"key":"action","value":"read"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 05 Jun 2023 20:23:49 GMT"},{"key":"Server","value":"Apache/2.4.48 (Ubuntu)"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Length","value":"1155"},{"key":"Keep-Alive","value":"timeout=2, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"subscriber_name\": \"1002\",\n        \"aor\": \"sip:1002wp@apidocumentation\",\n        \"mode\": \"unregistered_endpoint\",\n        \"user_agent\": \"WebPhone 43.3.1 (Chrome 113.0.0.0)\",\n        \"received_from\": \"74.219.23.50:26457\",\n        \"contact\": \"sip:vl2faam2@kvtppn0pl1sk.invalid;transport=ws\",\n        \"registration_time\": \"2023-05-31 17:47:24\",\n        \"subscriber_domain\": \"apidocumentation\",\n        \"authentication_key\": \"\",\n        \"call_processing_rule\": \"\",\n        \"registration_expires_time\": \"2023-05-31 17:50:24\",\n        \"expires\": \"60\",\n        \"callid_emgr\": \"[*]\",\n        \"hostname\": \"Sandbox-core1.telware.net\",\n        \"address_id\": \"a-6476316b6afea\",\n        \"sub_fullname\": \"Ameer Schultz\",\n        \"sub_login\": \"1002@apidocumentation\",\n        \"aor_user\": \"1002\",\n        \"sub_scope\": \"Basic User\",\n        \"address_id_source\": \"user_level\",\n        \"address_pretty_print\": \"1824 Industrial Center Cir   Charlotte, NC 28213, US\",\n        \"address_ip\": \"74.219.23.50\",\n        \"is_endpoint_callid\": false,\n        \"ndperror\": \"0\"\n    },\n    {\n        \"subscriber_name\": \"1003\",\n        \"aor\": \"sip:1003wp@apidocumentation\",\n        \"mode\": \"unregistered_endpoint\",\n        \"user_agent\": \"WebPhone 43.3.1 (Chrome 113.0.0.0)\",\n        \"received_from\": \"74.219.23.50:3159\",\n        \"contact\": \"sip:uith8qo7@spdtb23080te.invalid;transport=ws\",\n        \"registration_time\": \"2023-05-31 12:55:06\",\n        \"subscriber_domain\": \"apidocumentation\",\n        \"authentication_key\": \"\",\n        \"call_processing_rule\": \"\",\n        \"registration_expires_time\": \"2023-05-31 12:58:06\",\n        \"expires\": \"60\",\n        \"callid_emgr\": \"[*]\",\n        \"hostname\": \"Sandbox-core1.telware.net\",\n        \"address_id\": \"a-6476316b6afea\",\n        \"sub_fullname\": \"Keanu Wright\",\n        \"sub_login\": \"1003@apidocumentation\",\n        \"aor_user\": \"1003\",\n        \"sub_scope\": \"Basic User\",\n        \"address_id_source\": \"user_level\",\n        \"address_pretty_print\": \"1824 Industrial Center Cir   Charlotte, NC 28213, US\",\n        \"address_ip\": \"74.219.23.50\",\n        \"is_endpoint_callid\": false,\n        \"ndperror\": \"0\"\n    },\n    {\n        \"subscriber_name\": \"1001\",\n        \"aor\": \"sip:1001@apidocumentation\",\n        \"mode\": \"\",\n        \"user_agent\": \"\",\n        \"received_from\": \"\",\n        \"contact\": \"\",\n        \"registration_time\": \"\",\n        \"subscriber_domain\": \"apidocumentation\",\n        \"authentication_key\": \"\",\n        \"call_processing_rule\": \"\",\n        \"registration_expires_time\": \"\",\n        \"expires\": \"60\",\n        \"callid_emgr\": \"[*]\",\n        \"hostname\": \"\",\n        \"address_id\": \"a-6476316b6afea\",\n        \"sub_fullname\": \"Cai Guzman\",\n        \"sub_login\": \"1001@apidocumentation\",\n        \"aor_user\": \"1001\",\n        \"sub_scope\": \"Call Center Supervisor\",\n        \"address_id_source\": \"user_level\",\n        \"address_pretty_print\": \"1824 Industrial Center Cir   Charlotte, NC 28213, US\",\n        \"address_ip\": \"74.219.23.50\",\n        \"is_endpoint_callid\": false,\n        \"ndperror\": \"0\"\n    },\n    {\n        \"subscriber_name\": \"1002\",\n        \"aor\": \"sip:1002@apidocumentation\",\n        \"mode\": \"\",\n        \"user_agent\": \"\",\n        \"received_from\": \"\",\n        \"contact\": \"\",\n        \"registration_time\": \"\",\n        \"subscriber_domain\": \"apidocumentation\",\n        \"authentication_key\": \"\",\n        \"call_processing_rule\": \"\",\n        \"registration_expires_time\": \"\",\n        \"expires\": \"60\",\n        \"callid_emgr\": \"[*]\",\n        \"hostname\": \"\",\n        \"address_id\": \"a-6476316b6afea\",\n        \"sub_fullname\": \"Ameer Schultz\",\n        \"sub_login\": \"1002@apidocumentation\",\n        \"aor_user\": \"1002\",\n        \"sub_scope\": \"Basic User\",\n        \"address_id_source\": \"user_level\",\n        \"address_pretty_print\": \"1824 Industrial Center Cir   Charlotte, NC 28213, US\",\n        \"address_ip\": \"74.219.23.50\",\n        \"is_endpoint_callid\": false,\n        \"ndperror\": \"0\"\n    },\n    {\n        \"subscriber_name\": \"1003\",\n        \"aor\": \"sip:1003@apidocumentation\",\n        \"mode\": \"\",\n        \"user_agent\": \"\",\n        \"received_from\": \"\",\n        \"contact\": \"\",\n        \"registration_time\": \"\",\n        \"subscriber_domain\": \"apidocumentation\",\n        \"authentication_key\": \"\",\n        \"call_processing_rule\": \"\",\n        \"registration_expires_time\": \"\",\n        \"expires\": \"60\",\n        \"callid_emgr\": \"[*]\",\n        \"hostname\": \"\",\n        \"address_id\": \"a-6476316b6afea\",\n        \"sub_fullname\": \"Keanu Wright\",\n        \"sub_login\": \"1003@apidocumentation\",\n        \"aor_user\": \"1003\",\n        \"sub_scope\": \"Basic User\",\n        \"address_id_source\": \"user_level\",\n        \"address_pretty_print\": \"1824 Industrial Center Cir   Charlotte, NC 28213, US\",\n        \"address_ip\": \"74.219.23.50\",\n        \"is_endpoint_callid\": false,\n        \"ndperror\": \"0\"\n    },\n    {\n        \"subscriber_name\": \"1004\",\n        \"aor\": \"sip:1004@apidocumentation\",\n        \"mode\": \"\",\n        \"user_agent\": \"\",\n        \"received_from\": \"\",\n        \"contact\": \"\",\n        \"registration_time\": \"\",\n        \"subscriber_domain\": \"apidocumentation\",\n        \"authentication_key\": \"\",\n        \"call_processing_rule\": \"\",\n        \"registration_expires_time\": \"\",\n        \"expires\": \"60\",\n        \"callid_emgr\": \"[*]\",\n        \"hostname\": \"\",\n        \"address_id\": \"a-6476316b6afea\",\n        \"sub_fullname\": \"Evan Buchanan\",\n        \"sub_login\": \"1004@apidocumentation\",\n        \"aor_user\": \"1004\",\n        \"sub_scope\": \"Basic User\",\n        \"address_id_source\": \"user_level\",\n        \"address_pretty_print\": \"1824 Industrial Center Cir   Charlotte, NC 28213, US\",\n        \"address_ip\": \"74.219.23.50\",\n        \"is_endpoint_callid\": false,\n        \"ndperror\": \"0\"\n    },\n    {\n        \"subscriber_name\": \"1005\",\n        \"aor\": \"sip:1005@apidocumentation\",\n        \"mode\": \"\",\n        \"user_agent\": \"\",\n        \"received_from\": \"\",\n        \"contact\": \"\",\n        \"registration_time\": \"\",\n        \"subscriber_domain\": \"apidocumentation\",\n        \"authentication_key\": \"\",\n        \"call_processing_rule\": \"\",\n        \"registration_expires_time\": \"\",\n        \"expires\": \"60\",\n        \"callid_emgr\": \"[*]\",\n        \"hostname\": \"\",\n        \"address_id\": \"a-6476316b6afea\",\n        \"sub_fullname\": \"Juan Juarez\",\n        \"sub_login\": \"1005@apidocumentation\",\n        \"aor_user\": \"1005\",\n        \"sub_scope\": \"Basic User\",\n        \"address_id_source\": \"user_level\",\n        \"address_pretty_print\": \"1824 Industrial Center Cir   Charlotte, NC 28213, US\",\n        \"address_ip\": \"74.219.23.50\",\n        \"is_endpoint_callid\": false,\n        \"ndperror\": \"0\"\n    },\n    {\n        \"subscriber_name\": \"1006\",\n        \"aor\": \"sip:1006@apidocumentation\",\n        \"mode\": \"\",\n        \"user_agent\": \"\",\n        \"received_from\": \"\",\n        \"contact\": \"\",\n        \"registration_time\": \"\",\n        \"subscriber_domain\": \"apidocumentation\",\n        \"authentication_key\": \"8N30N3x8\",\n        \"call_processing_rule\": \"\",\n        \"registration_expires_time\": \"\",\n        \"expires\": \"60\",\n        \"callid_emgr\": \"[*]\",\n        \"hostname\": \"\",\n        \"address_id\": \"a-6476316b6afea\",\n        \"sub_fullname\": \"Lewis Montgomery\",\n        \"sub_login\": \"1006@apidocumentation\",\n        \"aor_user\": \"1006\",\n        \"sub_scope\": \"Basic User\",\n        \"address_id_source\": \"user_level\",\n        \"address_pretty_print\": \"1824 Industrial Center Cir   Charlotte, NC 28213, US\",\n        \"address_ip\": \"74.219.23.50\",\n        \"is_endpoint_callid\": false,\n        \"ndperror\": \"0\"\n    },\n    {\n        \"subscriber_name\": \"1007\",\n        \"aor\": \"sip:1007@apidocumentation\",\n        \"mode\": \"\",\n        \"user_agent\": \"\",\n        \"received_from\": \"\",\n        \"contact\": \"\",\n        \"registration_time\": \"\",\n        \"subscriber_domain\": \"apidocumentation\",\n        \"authentication_key\": \"W0q51z48\",\n        \"call_processing_rule\": \"\",\n        \"registration_expires_time\": \"\",\n        \"expires\": \"60\",\n        \"callid_emgr\": \"[*]\",\n        \"hostname\": \"\",\n        \"address_id\": \"a-6476316b6afea\",\n        \"sub_fullname\": \"Woody Nixon\",\n        \"sub_login\": \"1007@apidocumentation\",\n        \"aor_user\": \"1007\",\n        \"sub_scope\": \"Basic User\",\n        \"address_id_source\": \"user_level\",\n        \"address_pretty_print\": \"1824 Industrial Center Cir   Charlotte, NC 28213, US\",\n        \"address_ip\": \"74.219.23.50\",\n        \"is_endpoint_callid\": false,\n        \"ndperror\": \"0\"\n    },\n    {\n        \"subscriber_name\": \"1008\",\n        \"aor\": \"sip:1008@apidocumentation\",\n        \"mode\": \"\",\n        \"user_agent\": \"\",\n        \"received_from\": \"\",\n        \"contact\": \"\",\n        \"registration_time\": \"\",\n        \"subscriber_domain\": \"apidocumentation\",\n        \"authentication_key\": \"KAZiYWuJ\",\n        \"call_processing_rule\": \"\",\n        \"registration_expires_time\": \"\",\n        \"expires\": \"60\",\n        \"callid_emgr\": \"[*]\",\n        \"hostname\": \"\",\n        \"address_id\": \"a-6476316b6afea\",\n        \"sub_fullname\": \"Mikolaj Schroeder\",\n        \"sub_login\": \"1008@apidocumentation\",\n        \"aor_user\": \"1008\",\n        \"sub_scope\": \"Basic User\",\n        \"address_id_source\": \"user_level\",\n        \"address_pretty_print\": \"1824 Industrial Center Cir   Charlotte, NC 28213, US\",\n        \"address_ip\": \"74.219.23.50\",\n        \"is_endpoint_callid\": false,\n        \"ndperror\": \"0\"\n    },\n    {\n        \"subscriber_name\": \"1009\",\n        \"aor\": \"sip:1009@apidocumentation\",\n        \"mode\": \"\",\n        \"user_agent\": \"\",\n        \"received_from\": \"\",\n        \"contact\": \"\",\n        \"registration_time\": \"\",\n        \"subscriber_domain\": \"apidocumentation\",\n        \"authentication_key\": \"YRsn6gEZ\",\n        \"call_processing_rule\": \"\",\n        \"registration_expires_time\": \"\",\n        \"expires\": \"60\",\n        \"callid_emgr\": \"[*]\",\n        \"hostname\": \"\",\n        \"address_id\": \"a-6476316b6afea\",\n        \"sub_fullname\": \"John Ruiz\",\n        \"sub_login\": \"1009@apidocumentation\",\n        \"aor_user\": \"1009\",\n        \"sub_scope\": \"Basic User\",\n        \"address_id_source\": \"user_level\",\n        \"address_pretty_print\": \"1824 Industrial Center Cir   Charlotte, NC 28213, US\",\n        \"address_ip\": \"74.219.23.50\",\n        \"is_endpoint_callid\": false,\n        \"ndperror\": \"0\"\n    },\n    {\n        \"subscriber_name\": \"1010\",\n        \"aor\": \"sip:1010@apidocumentation\",\n        \"mode\": \"\",\n        \"user_agent\": \"\",\n        \"received_from\": \"\",\n        \"contact\": \"\",\n        \"registration_time\": \"\",\n        \"subscriber_domain\": \"apidocumentation\",\n        \"authentication_key\": \"aC2JgpMZ\",\n        \"call_processing_rule\": \"\",\n        \"registration_expires_time\": \"\",\n        \"expires\": \"60\",\n        \"callid_emgr\": \"[*]\",\n        \"hostname\": \"\",\n        \"address_id\": \"a-6476316b6afea\",\n        \"sub_fullname\": \"Will Phillips\",\n        \"sub_login\": \"1010@apidocumentation\",\n        \"aor_user\": \"1010\",\n        \"sub_scope\": \"Basic User\",\n        \"address_id_source\": \"user_level\",\n        \"address_pretty_print\": \"1824 Industrial Center Cir   Charlotte, NC 28213, US\",\n        \"address_ip\": \"74.219.23.50\",\n        \"is_endpoint_callid\": false,\n        \"ndperror\": \"0\"\n    }\n]"}],"_postman_id":"bdf46ccc-c552-4753-ba29-2bddc12aa9ef"},{"name":"UpdateDevice","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"8b902410-3623-486d-8cfa-c5ac83299b04"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"59b48eec-4a14-4a90-ac20-07b4e2a9d892"}}],"id":"53299f9d-28d1-40c9-b579-3092960731a1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"device","value":"","description":"<p>Identifies Devices to update by aor.</p>\n","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>New value for Device's Domain.</p>\n","type":"text","disabled":true},{"key":"user","value":"{{user}}","description":"<p>The user of the device in the domain.</p>\n","type":"text","disabled":true},{"key":"check-sync","value":"","description":"<p>Sets Device's new check-sync value, set to yes or 1</p>\n","type":"text","disabled":true},{"key":"evtCheckSync","value":"","description":"<p>If check-sync is used it allows you to customize the check-sync Event Header</p>\n<p>Default value: check-sync</p>\n","type":"text","disabled":true},{"key":"mac","value":"","description":"<p>New value for Device's MAC address.</p>\n","type":"text","disabled":true},{"key":"transport","value":"","description":"<p>The transport type for the device if configured through the NDP</p>\n","type":"text"},{"key":"model","value":"","description":"<p>New value for Device's model.</p>\n","type":"text","disabled":true},{"key":"mode","value":"","description":"<p>Mode</p>\n","type":"text","disabled":true},{"key":"user_agent","value":"","description":"<p>User Agent</p>\n","type":"text","disabled":true},{"key":"accept_agent","value":"","description":"<p>Accept Agent field. if set to not empty the core may filter registrations where user_agent must match this string.</p>\n","type":"text","disabled":true},{"key":"received_from","value":"","description":"<p>Where Received From</p>\n","type":"text","disabled":true},{"key":"registration_time","value":"","description":"<p>Time of Registration</p>\n","type":"text","disabled":true},{"key":"subscriber_name","value":"","description":"<p>Name of Subscriber</p>\n","type":"text","disabled":true},{"key":"subscriber_domain","value":"","description":"<p>Domain of Subscriber</p>\n","type":"text","disabled":true},{"key":"authentication_key","value":"","description":"<p>Authentication Key/Password</p>\n","type":"text","disabled":true},{"key":"registration_expires_time","value":"","description":"<p>Registration Expiration Time</p>\n","type":"text","disabled":true},{"key":"sub_fullname","value":"","description":"<p>Fullname of Subscriber</p>\n","type":"text","disabled":true},{"key":"sub_scope","value":"","description":"<p>Scope of Subscriber</p>\n","type":"text","disabled":true},{"key":"sub_login","value":"","description":"<p>Scope of Subscriber</p>\n","type":"text","disabled":true},{"key":"ndperror","value":"","description":"<p>ndperror</p>\n","type":"text","disabled":true},{"key":"address_id","value":"","description":"<p>address_id</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=device&action=update","description":"<p>Update a Device</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"device"},{"key":"action","value":"update"}],"variable":[]}},"response":[],"_postman_id":"53299f9d-28d1-40c9-b579-3092960731a1"}],"id":"4bda3787-014f-48b9-924a-9f48962f22a2","_postman_id":"4bda3787-014f-48b9-924a-9f48962f22a2","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}}},{"name":"Device_Model","item":[{"name":"ReadDevice_Model","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['device_model'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"dc271456-49a9-4df3-bc26-9dd9a00fc1e1"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"8799dd89-e299-47f7-a459-c15dbfcaa287"}}],"id":"24990943-65f1-4424-9943-8b7f400d7503","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"brand","value":"","description":"<p>Search for device by brand</p>\n","type":"text"},{"key":"model","value":"","description":"<p>Search for device by model</p>\n","type":"text","disabled":true},{"key":"portal_view","value":"","description":"<p>Set to \"yes\" for a more limited list</p>\n","type":"text","disabled":true},{"key":"include_ndp_defs","value":"","description":"<p>Include NDP-defined device features</p>\n","type":"text","disabled":true},{"key":"ndp_syntax","value":"","description":"<p>Search by the NDP code structure / syntax</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=devicemodel&action=read","description":"<p>Read a list of supported devices available for provisioning</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"devicemodel"},{"key":"action","value":"read"}],"variable":[]}},"response":[{"id":"9e3e60f2-9f64-49f8-8806-ea83d019b3b7","name":"ReadDevice_Model","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"brand","value":"yealink","description":"Search for device by brand","type":"text"},{"key":"model","value":"","description":"Search for device by model","type":"text","disabled":true},{"key":"portal_view","value":"","description":"Set to \"yes\" for a more limited list","type":"text","disabled":true},{"key":"include_ndp_defs","value":"","description":"Include NDP-defined device features","type":"text","disabled":true},{"key":"ndp_syntax","value":"","description":"Search by the NDP code structure / syntax","type":"text","disabled":true}]},"url":{"raw":"https://oclnk.co/?object=devicemodel&action=read","host":["https://oclnk.co"],"path":[""],"query":[{"key":"object","value":"devicemodel"},{"key":"action","value":"read"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 05 Jun 2023 20:32:19 GMT"},{"key":"Server","value":"Apache/2.4.48 (Ubuntu)"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Length","value":"529"},{"key":"Keep-Alive","value":"timeout=2, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"portal_view\": \"yes\",\n        \"brand\": \"Yealink\",\n        \"model\": \"CP860\",\n        \"device_type\": \"Device\",\n        \"ndp_syntax\": \"Yealink3\",\n        \"brand_model\": \"Yealink CP860\"\n    },\n    {\n        \"portal_view\": \"yes\",\n        \"brand\": \"Yealink\",\n        \"model\": \"CP920\",\n        \"device_type\": \"Device\",\n        \"ndp_syntax\": \"Yealink3\",\n        \"brand_model\": \"Yealink CP920\"\n    },\n    {\n        \"portal_view\": \"yes\",\n        \"brand\": \"Yealink\",\n        \"model\": \"CP925\",\n        \"device_type\": \"Device\",\n        \"ndp_syntax\": \"Yealink3\",\n        \"brand_model\": \"Yealink CP925\"\n    },\n    {\n        \"portal_view\": \"yes\",\n        \"brand\": \"Yealink\",\n        \"model\": \"CP960\",\n        \"device_type\": \"Device\",\n        \"ndp_syntax\": \"Yealink3\",\n        \"brand_model\": \"Yealink CP960\"\n    },\n    {\n        \"portal_view\": \"yes\",\n        \"brand\": \"Yealink\",\n        \"model\": \"CP965\",\n        \"device_type\": \"Device\",\n        \"ndp_syntax\": \"Yealink3\",\n        \"brand_model\": \"Yealink CP965\"\n    },\n    {\n        \"portal_view\": \"yes\",\n        \"brand\": \"Yealink\",\n        \"model\": \"SIP-T12\",\n        \"device_type\": \"Device\",\n        \"ndp_syntax\": \"Yealink\",\n        \"brand_model\": \"Yealink SIP-T12\"\n    },\n    {\n        \"portal_view\": \"yes\",\n        \"brand\": \"Yealink\",\n        \"model\": \"SIP-T18P\",\n        \"device_type\": \"Device\",\n        \"ndp_syntax\": \"Yealink\",\n        \"brand_model\": \"Yealink SIP-T18P\"\n    },\n    {\n        \"portal_view\": \"yes\",\n        \"brand\": \"Yealink\",\n        \"model\": \"SIP-T19P\",\n        \"device_type\": \"Device\",\n        \"ndp_syntax\": \"Yealink\",\n        \"brand_model\": \"Yealink SIP-T19P\"\n    },\n    {\n        \"portal_view\": \"yes\",\n        \"brand\": \"Yealink\",\n        \"model\": \"SIP-T20P\",\n        \"device_type\": \"Device\",\n        \"ndp_syntax\": \"Yealink\",\n        \"brand_model\": \"Yealink SIP-T20P\"\n    },\n    {\n        \"portal_view\": \"yes\",\n        \"brand\": \"Yealink\",\n        \"model\": \"SIP-T21P\",\n        \"device_type\": \"Device\",\n        \"ndp_syntax\": \"Yealink3\",\n        \"brand_model\": \"Yealink SIP-T21P\"\n    },\n    {\n        \"portal_view\": \"yes\",\n        \"brand\": \"Yealink\",\n        \"model\": \"SIP-T21P E2\",\n        \"device_type\": \"Device\",\n        \"ndp_syntax\": \"Yealink3\",\n        \"brand_model\": \"Yealink SIP-T21P E2\"\n    },\n    {\n        \"portal_view\": \"yes\",\n        \"brand\": \"Yealink\",\n        \"model\": \"SIP-T22P\",\n        \"device_type\": \"Device\",\n        \"ndp_syntax\": \"Yealink\",\n        \"brand_model\": \"Yealink SIP-T22P\"\n    },\n    {\n        \"portal_view\": \"yes\",\n        \"brand\": \"Yealink\",\n        \"model\": \"SIP-T23G\",\n        \"device_type\": \"Device\",\n        \"ndp_syntax\": \"Yealink3\",\n        \"brand_model\": \"Yealink SIP-T23G\"\n    },\n    {\n        \"portal_view\": \"yes\",\n        \"brand\": \"Yealink\",\n        \"model\": \"SIP-T26P\",\n        \"device_type\": \"Device\",\n        \"ndp_syntax\": \"Yealink\",\n        \"brand_model\": \"Yealink SIP-T26P\"\n    },\n    {\n        \"portal_view\": \"yes\",\n        \"brand\": \"Yealink\",\n        \"model\": \"SIP-T27G\",\n        \"device_type\": \"Device\",\n        \"ndp_syntax\": \"Yealink3\",\n        \"brand_model\": \"Yealink SIP-T27G\"\n    },\n    {\n        \"portal_view\": \"yes\",\n        \"brand\": \"Yealink\",\n        \"model\": \"SIP-T28P\",\n        \"device_type\": \"Device\",\n        \"ndp_syntax\": \"Yealink\",\n        \"brand_model\": \"Yealink SIP-T28P\"\n    },\n    {\n        \"portal_view\": \"yes\",\n        \"brand\": \"Yealink\",\n        \"model\": \"SIP-T29G\",\n        \"device_type\": \"Device\",\n        \"ndp_syntax\": \"Yealink3\",\n        \"brand_model\": \"Yealink SIP-T29G\"\n    },\n    {\n        \"portal_view\": \"yes\",\n        \"brand\": \"Yealink\",\n        \"model\": \"SIP-T30\",\n        \"device_type\": \"Device\",\n        \"ndp_syntax\": \"Yealink3\",\n        \"brand_model\": \"Yealink SIP-T30\"\n    },\n    {\n        \"portal_view\": \"yes\",\n        \"brand\": \"Yealink\",\n        \"model\": \"SIP-T30P\",\n        \"device_type\": \"Device\",\n        \"ndp_syntax\": \"Yealink3\",\n        \"brand_model\": \"Yealink SIP-T30P\"\n    },\n    {\n        \"portal_view\": \"yes\",\n        \"brand\": \"Yealink\",\n        \"model\": \"SIP-T31\",\n        \"device_type\": \"Device\",\n        \"ndp_syntax\": \"Yealink3\",\n        \"brand_model\": \"Yealink SIP-T31\"\n    },\n    {\n        \"portal_view\": \"yes\",\n        \"brand\": \"Yealink\",\n        \"model\": \"SIP-T31G\",\n        \"device_type\": \"Device\",\n        \"ndp_syntax\": \"Yealink3\",\n        \"brand_model\": \"Yealink SIP-T31G\"\n    },\n    {\n        \"portal_view\": \"yes\",\n        \"brand\": \"Yealink\",\n        \"model\": \"SIP-T31P\",\n        \"device_type\": \"Device\",\n        \"ndp_syntax\": \"Yealink3\",\n        \"brand_model\": \"Yealink SIP-T31P\"\n    },\n    {\n        \"portal_view\": \"yes\",\n        \"brand\": \"Yealink\",\n        \"model\": \"SIP-T32G\",\n        \"device_type\": \"Device\",\n        \"ndp_syntax\": \"Yealink2\",\n        \"brand_model\": \"Yealink SIP-T32G\"\n    },\n    {\n        \"portal_view\": \"yes\",\n        \"brand\": \"Yealink\",\n        \"model\": \"SIP-T33G\",\n        \"device_type\": \"Device\",\n        \"ndp_syntax\": \"Yealink3\",\n        \"brand_model\": \"Yealink SIP-T33G\"\n    },\n    {\n        \"portal_view\": \"yes\",\n        \"brand\": \"Yealink\",\n        \"model\": \"SIP-T33P\",\n        \"device_type\": \"Device\",\n        \"ndp_syntax\": \"Yealink3\",\n        \"brand_model\": \"Yealink SIP-T33P\"\n    },\n    {\n        \"portal_view\": \"yes\",\n        \"brand\": \"Yealink\",\n        \"model\": \"SIP-T38G\",\n        \"device_type\": \"Device\",\n        \"ndp_syntax\": \"Yealink2\",\n        \"brand_model\": \"Yealink SIP-T38G\"\n    },\n    {\n        \"portal_view\": \"yes\",\n        \"brand\": \"Yealink\",\n        \"model\": \"SIP-T40G\",\n        \"device_type\": \"Device\",\n        \"ndp_syntax\": \"Yealink3\",\n        \"brand_model\": \"Yealink SIP-T40G\"\n    },\n    {\n        \"portal_view\": \"yes\",\n        \"brand\": \"Yealink\",\n        \"model\": \"SIP-T40P\",\n        \"device_type\": \"Device\",\n        \"ndp_syntax\": \"Yealink3\",\n        \"brand_model\": \"Yealink SIP-T40P\"\n    },\n    {\n        \"portal_view\": \"yes\",\n        \"brand\": \"Yealink\",\n        \"model\": \"SIP-T41P\",\n        \"device_type\": \"Device\",\n        \"ndp_syntax\": \"Yealink3\",\n        \"brand_model\": \"Yealink SIP-T41P\"\n    },\n    {\n        \"portal_view\": \"yes\",\n        \"brand\": \"Yealink\",\n        \"model\": \"SIP-T41S\",\n        \"device_type\": \"Device\",\n        \"ndp_syntax\": \"Yealink3\",\n        \"brand_model\": \"Yealink SIP-T41S\"\n    },\n    {\n        \"portal_view\": \"yes\",\n        \"brand\": \"Yealink\",\n        \"model\": \"SIP-T41U\",\n        \"device_type\": \"Device\",\n        \"ndp_syntax\": \"Yealink3\",\n        \"brand_model\": \"Yealink SIP-T41U\"\n    },\n    {\n        \"portal_view\": \"yes\",\n        \"brand\": \"Yealink\",\n        \"model\": \"SIP-T42G\",\n        \"device_type\": \"Device\",\n        \"ndp_syntax\": \"Yealink3\",\n        \"brand_model\": \"Yealink SIP-T42G\"\n    },\n    {\n        \"portal_view\": \"yes\",\n        \"brand\": \"Yealink\",\n        \"model\": \"SIP-T42S\",\n        \"device_type\": \"Device\",\n        \"ndp_syntax\": \"Yealink3\",\n        \"brand_model\": \"Yealink SIP-T42S\"\n    },\n    {\n        \"portal_view\": \"yes\",\n        \"brand\": \"Yealink\",\n        \"model\": \"SIP-T42U\",\n        \"device_type\": \"Device\",\n        \"ndp_syntax\": \"Yealink3\",\n        \"brand_model\": \"Yealink SIP-T42U\"\n    },\n    {\n        \"portal_view\": \"yes\",\n        \"brand\": \"Yealink\",\n        \"model\": \"SIP-T43U\",\n        \"device_type\": \"Device\",\n        \"ndp_syntax\": \"Yealink3\",\n        \"brand_model\": \"Yealink SIP-T43U\"\n    },\n    {\n        \"portal_view\": \"yes\",\n        \"brand\": \"Yealink\",\n        \"model\": \"SIP-T46G\",\n        \"device_type\": \"Device\",\n        \"ndp_syntax\": \"Yealink3\",\n        \"brand_model\": \"Yealink SIP-T46G\"\n    },\n    {\n        \"portal_view\": \"yes\",\n        \"brand\": \"Yealink\",\n        \"model\": \"SIP-T46S\",\n        \"device_type\": \"Device\",\n        \"ndp_syntax\": \"Yealink3\",\n        \"brand_model\": \"Yealink SIP-T46S\"\n    },\n    {\n        \"portal_view\": \"yes\",\n        \"brand\": \"Yealink\",\n        \"model\": \"SIP-T46U\",\n        \"device_type\": \"Device\",\n        \"ndp_syntax\": \"Yealink3\",\n        \"brand_model\": \"Yealink SIP-T46U\"\n    },\n    {\n        \"portal_view\": \"yes\",\n        \"brand\": \"Yealink\",\n        \"model\": \"SIP-T48S\",\n        \"device_type\": \"Device\",\n        \"ndp_syntax\": \"Yealink3\",\n        \"brand_model\": \"Yealink SIP-T48S\"\n    },\n    {\n        \"portal_view\": \"yes\",\n        \"brand\": \"Yealink\",\n        \"model\": \"SIP-T48U\",\n        \"device_type\": \"Device\",\n        \"ndp_syntax\": \"Yealink3\",\n        \"brand_model\": \"Yealink SIP-T48U\"\n    },\n    {\n        \"portal_view\": \"yes\",\n        \"brand\": \"Yealink\",\n        \"model\": \"SIP-T49G\",\n        \"device_type\": \"Device\",\n        \"ndp_syntax\": \"Yealink\",\n        \"brand_model\": \"Yealink SIP-T49G\"\n    },\n    {\n        \"portal_view\": \"yes\",\n        \"brand\": \"Yealink\",\n        \"model\": \"SIP-T52S\",\n        \"device_type\": \"Device\",\n        \"ndp_syntax\": \"Yealink3\",\n        \"brand_model\": \"Yealink SIP-T52S\"\n    },\n    {\n        \"portal_view\": \"yes\",\n        \"brand\": \"Yealink\",\n        \"model\": \"SIP-T53\",\n        \"device_type\": \"Device\",\n        \"ndp_syntax\": \"Yealink3\",\n        \"brand_model\": \"Yealink SIP-T53\"\n    },\n    {\n        \"portal_view\": \"yes\",\n        \"brand\": \"Yealink\",\n        \"model\": \"SIP-T53W\",\n        \"device_type\": \"Device\",\n        \"ndp_syntax\": \"Yealink3\",\n        \"brand_model\": \"Yealink SIP-T53W\"\n    },\n    {\n        \"portal_view\": \"yes\",\n        \"brand\": \"Yealink\",\n        \"model\": \"SIP-T54S\",\n        \"device_type\": \"Device\",\n        \"ndp_syntax\": \"Yealink3\",\n        \"brand_model\": \"Yealink SIP-T54S\"\n    },\n    {\n        \"portal_view\": \"yes\",\n        \"brand\": \"Yealink\",\n        \"model\": \"SIP-T54W\",\n        \"device_type\": \"Device\",\n        \"ndp_syntax\": \"Yealink3\",\n        \"brand_model\": \"Yealink SIP-T54W\"\n    },\n    {\n        \"portal_view\": \"yes\",\n        \"brand\": \"Yealink\",\n        \"model\": \"SIP-T56A\",\n        \"device_type\": \"Device\",\n        \"ndp_syntax\": \"Yealink3\",\n        \"brand_model\": \"Yealink SIP-T56A\"\n    },\n    {\n        \"portal_view\": \"yes\",\n        \"brand\": \"Yealink\",\n        \"model\": \"SIP-T57W\",\n        \"device_type\": \"Device\",\n        \"ndp_syntax\": \"Yealink3\",\n        \"brand_model\": \"Yealink SIP-T57W\"\n    },\n    {\n        \"portal_view\": \"yes\",\n        \"brand\": \"Yealink\",\n        \"model\": \"SIP-T58A\",\n        \"device_type\": \"Device\",\n        \"ndp_syntax\": \"Yealink3\",\n        \"brand_model\": \"Yealink SIP-T58A\"\n    },\n    {\n        \"portal_view\": \"yes\",\n        \"brand\": \"Yealink\",\n        \"model\": \"SIP-T58V\",\n        \"device_type\": \"Device\",\n        \"ndp_syntax\": \"Yealink3\",\n        \"brand_model\": \"Yealink SIP-T58V\"\n    },\n    {\n        \"portal_view\": \"yes\",\n        \"brand\": \"Yealink\",\n        \"model\": \"SIP-T58W\",\n        \"device_type\": \"Device\",\n        \"ndp_syntax\": \"Yealink3\",\n        \"brand_model\": \"Yealink SIP-T58W\"\n    },\n    {\n        \"portal_view\": \"yes\",\n        \"brand\": \"Yealink\",\n        \"model\": \"SIP-T9CM\",\n        \"device_type\": \"Device\",\n        \"ndp_syntax\": \"Yealink\",\n        \"brand_model\": \"Yealink SIP-T9CM\"\n    },\n    {\n        \"portal_view\": \"yes\",\n        \"brand\": \"Yealink\",\n        \"model\": \"SIP-VP59\",\n        \"device_type\": \"Device\",\n        \"ndp_syntax\": \"Yealink3\",\n        \"brand_model\": \"Yealink SIP-VP59\"\n    },\n    {\n        \"portal_view\": \"yes\",\n        \"brand\": \"Yealink\",\n        \"model\": \"VP-T49G\",\n        \"device_type\": \"Device\",\n        \"ndp_syntax\": \"Yealink3\",\n        \"brand_model\": \"Yealink VP-T49G\"\n    },\n    {\n        \"portal_view\": \"yes\",\n        \"brand\": \"Yealink\",\n        \"model\": \"W52P\",\n        \"device_type\": \"Device\",\n        \"ndp_syntax\": \"Yealink3\",\n        \"brand_model\": \"Yealink W52P\"\n    },\n    {\n        \"portal_view\": \"yes\",\n        \"brand\": \"Yealink\",\n        \"model\": \"W60P\",\n        \"device_type\": \"Device\",\n        \"ndp_syntax\": \"Yealink3\",\n        \"brand_model\": \"Yealink W60P\"\n    },\n    {\n        \"portal_view\": \"yes\",\n        \"brand\": \"Yealink\",\n        \"model\": \"W70B\",\n        \"device_type\": \"Device\",\n        \"ndp_syntax\": \"Yealink3\",\n        \"brand_model\": \"Yealink W70B\"\n    },\n    {\n        \"portal_view\": \"yes\",\n        \"brand\": \"Yealink\",\n        \"model\": \"W80DM\",\n        \"device_type\": \"Device\",\n        \"ndp_syntax\": \"Yealink3\",\n        \"brand_model\": \"Yealink W80DM\"\n    },\n    {\n        \"portal_view\": \"yes\",\n        \"brand\": \"Yealink\",\n        \"model\": \"W90DM\",\n        \"device_type\": \"Device\",\n        \"ndp_syntax\": \"Yealink3\",\n        \"brand_model\": \"Yealink W90DM\"\n    }\n]"}],"_postman_id":"24990943-65f1-4424-9943-8b7f400d7503"}],"id":"3fd98e8b-7a45-4409-b9c3-4ce0934f57c5","_postman_id":"3fd98e8b-7a45-4409-b9c3-4ce0934f57c5","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}}},{"name":"Dial_Plan","item":[{"name":"CreateDial_Plan","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"4d1b861c-47e7-4838-a0c4-e9ce11d4e900"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"f230e720-9b9d-46ab-81a1-b429791b7617"}}],"id":"973b598b-d9f3-4e70-9815-e497f1c051ba","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Domain of new Dialplan.</p>\n","type":"text"},{"key":"dialplan","value":"","description":"<p>Dial translation of new Dialplan.</p>\n","type":"text"},{"key":"plan_description","value":"","description":"<p>Description for new Dialplan.</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=dialplan&action=create","description":"<p>Create a Dialplan</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"dialplan"},{"key":"action","value":"create"}],"variable":[]}},"response":[],"_postman_id":"973b598b-d9f3-4e70-9815-e497f1c051ba"},{"name":"DeleteDial_Plan","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"eb4bca66-9760-4531-b915-96ed26a09d53"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"d6ab82a3-7af5-431a-84e0-57c118b67779"}}],"id":"2f42dcb5-0d6a-44c2-9676-422a34bc3094","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Domain containing Dialplan to delete.</p>\n","type":"text"},{"key":"dialplan","value":"","description":"<p>Dialplan to delete.</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=dialrule&action=delete","description":"<p>Delete a Dial Rule</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"dialrule"},{"key":"action","value":"delete"}],"variable":[]}},"response":[],"_postman_id":"2f42dcb5-0d6a-44c2-9676-422a34bc3094"},{"name":"ReadDial_Plan","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"domain\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;The domain owning the table, also * and admin-only because they have access to use&lt;\\/p&gt;\"","    },","    \"dialplan\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;The plans name&lt;\\/p&gt;\"","    },","    \"plan_description\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;A plain English description of the plan.&lt;\\/p&gt;\"","    },","    \"dialplan_id\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Ignore - Not needed and no meaning&lt;\\/p&gt;\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['dial_plan'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"de9b86c6-a3c1-41d6-8f6b-088413496f1c"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"493edff4-6453-4375-9f8f-609ca3b77e58"}}],"id":"cd2ced39-1f1b-463e-a8af-c95be3e8541d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"dialplan","value":"","description":"<p>Dialplan to search</p>\n","type":"text","disabled":true},{"key":"domain","value":"{{domain}}","description":"<p>Search dial plans by Domain</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=dialplan&action=read","description":"<p>Read Dial Plans</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"dialplan"},{"key":"action","value":"read"}],"variable":[]}},"response":[{"id":"9e7cd00c-dea2-4be9-bab9-4c4fd5c26f94","name":"ReadDial_Plan","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"dialplan","value":"","description":"Dialplan to search","type":"text","disabled":true},{"key":"domain","value":"{{domain}}","description":"Search dial plans by Domain","type":"text"}]},"url":{"raw":"https://oclnk.co/?object=dialplan&action=read","host":["https://oclnk.co"],"path":[""],"query":[{"key":"object","value":"dialplan"},{"key":"action","value":"read"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 05 Jun 2023 20:52:10 GMT"},{"key":"Server","value":"Apache/2.4.48 (Ubuntu)"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Length","value":"440"},{"key":"Keep-Alive","value":"timeout=2, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"dialplan_id\": \"42\",\n        \"dialplan\": \"A Starting Dial translation\",\n        \"domain\": \"*\",\n        \"plan_description\": \"A Starting Dial translation\"\n    },\n    {\n        \"dialplan_id\": \"44\",\n        \"dialplan\": \"Star Codes\",\n        \"domain\": \"admin-only\",\n        \"plan_description\": \"Star Codes\"\n    },\n    {\n        \"dialplan_id\": \"\",\n        \"dialplan\": \"apidocumentation\",\n        \"domain\": \"apidocumentation\",\n        \"plan_description\": \"dial plan for apidocumentation\"\n    }\n]"}],"_postman_id":"cd2ced39-1f1b-463e-a8af-c95be3e8541d"}],"id":"7c88e25d-5899-42da-8195-cc6ba69ae505","_postman_id":"7c88e25d-5899-42da-8195-cc6ba69ae505","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}}},{"name":"Dial_Policy","item":[{"name":"ReadDial_Policy","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"dialpolicy_id\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Ignore not used&lt;\\/p&gt;\"","    },","    \"dialpolicy\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;The name of the Dialpolicy (permission)&lt;\\/p&gt;\"","    },","    \"domain\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Domain owning the Dialpolicy &amp;quot;*&amp;quot; available for shared policies.&lt;\\/p&gt;\"","    },","    \"policy_description\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Description&lt;\\/p&gt;\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['dial_policy'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"ffc373ad-1a40-43c6-ab6b-2e814828a31f"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"9d9a2c77-c053-4e1a-8ea7-19c2bc26ef80"}}],"id":"f31660d5-eba7-4bc0-a093-9d150a976881","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Identifies Domain owning the policy</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=dialpolicy&action=read","description":"<p>Read Dial policy/permissions</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"dialpolicy"},{"key":"action","value":"read"}],"variable":[]}},"response":[{"id":"232629c4-cf34-4caf-bd0c-0d47b5de2ba5","name":"ReadDial_Policy","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","description":"Identifies Domain owning the policy","type":"text"}]},"url":{"raw":"https://oclnk.co/?object=dialpolicy&action=read","host":["https://oclnk.co"],"path":[""],"query":[{"key":"object","value":"dialpolicy"},{"key":"action","value":"read"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 05 Jun 2023 20:53:43 GMT"},{"key":"Server","value":"Apache/2.4.48 (Ubuntu)"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Length","value":"298"},{"key":"Keep-Alive","value":"timeout=2, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"dialpolicy_id\": \"2\",\n        \"dialpolicy\": \"Deny All\",\n        \"domain\": \"*\",\n        \"policy_description\": \"Deny All Call\"\n    },\n    {\n        \"dialpolicy_id\": \"5\",\n        \"dialpolicy\": \"US and Canada\",\n        \"domain\": \"*\",\n        \"policy_description\": \"US and Canada\"\n    },\n    {\n        \"dialpolicy_id\": \"\",\n        \"dialpolicy\": \"Emergency and Internal Only\",\n        \"domain\": \"*\",\n        \"policy_description\": \"Emergency and Internal Calls Only\"\n    }\n]"}],"_postman_id":"f31660d5-eba7-4bc0-a093-9d150a976881"}],"id":"c7f60e78-21bd-4a66-b92b-312db6b7a255","_postman_id":"c7f60e78-21bd-4a66-b92b-312db6b7a255","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}}},{"name":"Domain","item":[{"name":"CountDomain","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"total\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Total number of Domains in the specified domain.&lt;\\/p&gt;\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple([jsonData], schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"8f06cbc4-8983-450b-a1ac-6707244e5586"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"0060a7a3-f939-4564-bbc0-5b9a52e7f0ec"}}],"id":"f85a62b5-077a-4e13-a407-8eeda90993f1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Domain name.</p>\n","type":"text","disabled":true},{"key":"territory","value":"{{territory}}","description":"<p>Reseller/Territory name</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=domain&action=count","description":"<p>Count the number of Domains</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"domain"},{"key":"action","value":"count"}],"variable":[]}},"response":[{"id":"57fea6a1-c327-4590-9bec-132e37ba4fef","name":"CountDomain","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","description":"Domain name.","type":"text","disabled":true},{"key":"territory","value":"{{territory}}","description":"Reseller/Territory name","type":"text","disabled":true}]},"url":{"raw":"https://oclnk.co/?object=domain&action=count","host":["https://oclnk.co"],"path":[""],"query":[{"key":"object","value":"domain"},{"key":"action","value":"count"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 05 Jun 2023 20:59:48 GMT"},{"key":"Server","value":"Apache/2.4.48 (Ubuntu)"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"12"},{"key":"Keep-Alive","value":"timeout=2, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"total\": 82\n}"}],"_postman_id":"f85a62b5-077a-4e13-a407-8eeda90993f1"},{"name":"CreateDomain","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"b4282220-2f45-4aaa-82fd-87522841f20d"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"233a7a42-3b4f-4d10-9c1f-1c72c86e1f85"}}],"id":"6c9dc4ca-fc0c-4ba1-a5d2-c5a2ba5073b3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Specifies name of new Domain to be created.</p>\n","type":"text"},{"key":"territory","value":"{{territory}}","description":"<p>Reseller/territory name.</p>\n","type":"text"},{"key":"description","value":"","description":"<p>Description for the Domain</p>\n","type":"text","disabled":true},{"key":"call_limit","value":"","description":"<p>The active Call Limit for this Domain</p>\n","type":"text","disabled":true},{"key":"call_limit_ext","value":"","description":"<p>The external active call limit for this Domain</p>\n","type":"text","disabled":true},{"key":"max_user","value":"","description":"<p>The maximum user count that the Domain can have.</p>\n","type":"text","disabled":true},{"key":"max_call_queue","value":"","description":"<p>The maximum call queue count that the Domain can have.</p>\n","type":"text","disabled":true},{"key":"max_aa","value":"","description":"<p>The maximum Auto Attendant count that the Domain can have.</p>\n","type":"text","disabled":true},{"key":"max_conference","value":"","description":"<p>The maximum conference bridge count that the Domain can have.</p>\n","type":"text","disabled":true},{"key":"max_department","value":"","description":"<p>The maximum department count that the Domain can have.</p>\n","type":"text","disabled":true},{"key":"max_site","value":"","description":"<p>The Maximum site count that the Domain can have.</p>\n","type":"text","disabled":true},{"key":"max_device","value":"","description":"<p>The maximum device count per user.</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=domain&action=create","description":"<p>Create a new Domain</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"domain"},{"key":"action","value":"create"}],"variable":[]}},"response":[],"_postman_id":"6c9dc4ca-fc0c-4ba1-a5d2-c5a2ba5073b3"},{"name":"DeleteDomain","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"0c5ef737-5761-4a70-8844-a89b9326b8d3"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"c9600640-4d0b-4f9b-ab62-11f8b7763354"}}],"id":"dd07d040-3d10-4dcf-95d7-307e382c193d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{deletedomain_domain}}","description":"<p>Identifies Domain to delete by name.</p>\n","type":"text"},{"key":"phone_numbers_option","value":"","description":"<p>Option to delete phone numbers. Set to false to just de-provision numbers but not delete. Defaults to delete.</p>\n","type":"text","disabled":true},{"key":"sms_numbers_option","value":"","description":"<p>Option to delete SMS numbers. Set to false to just de-provision SMS numbers but not delete. Defaults to delete.</p>\n","type":"text","disabled":true},{"key":"mac_option","value":"","description":"<p>Option to delete MAC addresses. Set to false to just de-provision and not delete. Defaults to delete.</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=domain&action=delete","description":"<p>Delete an existing Domain</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"domain"},{"key":"action","value":"delete"}],"variable":[]}},"response":[],"_postman_id":"dd07d040-3d10-4dcf-95d7-307e382c193d"},{"name":"ReadDomain","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"domain\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Name of Domain.&lt;\\/p&gt;\"","    },","    \"Territory\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Territory\\/Reseller for the Domain.&lt;\\/p&gt;\"","    },","    \"dial_match\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;(deprecated)&lt;\\/p&gt;\"","    },","    \"description\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Description for the Domain.&lt;\\/p&gt;\"","    },","    \"moh\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Music on hold&lt;\\/p&gt;\"","    },","    \"mor\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Music on ring&lt;\\/p&gt;\"","    },","    \"mot\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Music on transfer (deprecated)&lt;\\/p&gt;\"","    },","    \"rmoh\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Randomize Music on hold&lt;\\/p&gt;\"","    },","    \"rating\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Call Rating Prepaid (deprecated)&lt;\\/p&gt;\"","    },","    \"resi\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Residential Domain, Limited business features&lt;\\/p&gt;\"","    },","    \"mksdir\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Setup file structure for Users (should always be yes).&lt;\\/p&gt;\"","    },","    \"dial_plan\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Default DialPlan for the Domain.&lt;\\/p&gt;\"","    },","    \"dial_policy\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Default Dial Permission for the Domain.&lt;\\/p&gt;\"","    },","    \"call_limit\": {","        \"type\": \"number\",","        \"description\": \"&lt;p&gt;The active Call Limit for this Domain.&lt;\\/p&gt;\"","    },","    \"call_limit_ext\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;The Call Limit for external calls.&lt;\\/p&gt;\"","    },","    \"sub_limit\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Subscriber limit (includes system users)&lt;\\/p&gt;\"","    },","    \"time_zone\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Timezone for domain&lt;\\/p&gt;\"","    },","    \"max_user\": {","        \"type\": \"number\",","        \"description\": \"&lt;p&gt;The Maximum user count that the Domain can have.&lt;\\/p&gt;\"","    },","    \"max_call_queue\": {","        \"type\": \"number\",","        \"description\": \"&lt;p&gt;The Maximum call queue count that the Domain can have.&lt;\\/p&gt;\"","    },","    \"max_aa\": {","        \"type\": \"number\",","        \"description\": \"&lt;p&gt;The Maximum Auto Attendant count that the Domain can have.&lt;\\/p&gt;\"","    },","    \"max_conference\": {","        \"type\": \"number\",","        \"description\": \"&lt;p&gt;The Maximum conference bridge count that the Domain can have.&lt;\\/p&gt;\"","    },","    \"max_department\": {","        \"type\": \"number\",","        \"description\": \"&lt;p&gt;The Maximum department count that the Domain can have.&lt;\\/p&gt;\"","    },","    \"max_site\": {","        \"type\": \"number\",","        \"description\": \"&lt;p&gt;The Maximum site count that the Domain can have.&lt;\\/p&gt;\"","    },","    \"max_device\": {","        \"type\": \"number\",","        \"description\": \"&lt;p&gt;The Maximum device count per user.&lt;\\/p&gt;\"","    },","    \"policies\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Policy on the Domain active\\/locked.&lt;\\/p&gt;\"","    },","    \"email_sender\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Email address use as 'from' address for system-dispatched emails.&lt;\\/p&gt;\"","    },","    \"callid_nmbr\": {","        \"type\": \"number\",","        \"description\": \"&lt;p&gt;Default CallerID setting for the Domain.&lt;\\/p&gt;\"","    },","    \"callid_name\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Default Cname setting for the Domain.&lt;\\/p&gt;\"","    },","    \"callid_emgr\": {","        \"type\": \"number\",","        \"description\": \"&lt;p&gt;Default 911 CallerID setting for the Domain.&lt;\\/p&gt;\"","    },","    \"area_code\": {","        \"type\": \"number\",","        \"description\": \"&lt;p&gt;Default area code setting for the Domain.&lt;\\/p&gt;\"","    },","    \"sms_inbound_last\": {","        \"type\": \"number\",","        \"description\": \"&lt;p&gt;Total number of inbound sms for last the month .&lt;\\/p&gt;\"","    },","    \"sms_outbound_last\": {","        \"type\": \"number\",","        \"description\": \"&lt;p&gt;Total number of outbound sms for last the month.&lt;\\/p&gt;\"","    },","    \"sms_outbound_current\": {","        \"type\": \"number\",","        \"description\": \"&lt;p&gt;Total number of outbound sms for this month.&lt;\\/p&gt;\"","    },","    \"sms_inbound_current\": {","        \"type\": \"number\",","        \"description\": \"&lt;p&gt;Total number of inbound sms for this month.&lt;\\/p&gt;\"","    },","    \"active_calls_onnet_last\": {","        \"type\": \"number\",","        \"description\": \"&lt;p&gt;Total number of onnet active calls for the last month.&lt;\\/p&gt;\"","    },","    \"active_calls_offnet_last\": {","        \"type\": \"number\",","        \"description\": \"&lt;p&gt;Total number of offnet active calls for the last month.&lt;\\/p&gt;\"","    },","    \"active_calls_offnet_current\": {","        \"type\": \"number\",","        \"description\": \"&lt;p&gt;Total number of offnet active calls for this month.&lt;\\/p&gt;\"","    },","    \"active_calls_onnet_current\": {","        \"type\": \"number\",","        \"description\": \"&lt;p&gt;Total number of onnet active calls for  this month.&lt;\\/p&gt;\"","    },","    \"smtp_host\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Email setting: host server&lt;\\/p&gt;\"","    },","    \"smtp_port\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Email setting: host port&lt;\\/p&gt;\"","    },","    \"smtp_uid\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Email setting: user&lt;\\/p&gt;\"","    },","    \"smtp_pwd\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Email setting: password&lt;\\/p&gt;\"","    },","    \"from_user\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;(deprecated)&lt;\\/p&gt;\"","    },","    \"from_host\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;(deprecated)&lt;\\/p&gt;\"","    },","    \"active_call\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Current number of active calls&lt;\\/p&gt;\"","    },","    \"countForLimit\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Count against the Call Limit&lt;\\/p&gt;\"","    },","    \"countExternal\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Count against the External Call Limit&lt;\\/p&gt;\"","    },","    \"sub_count\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Total number of subscribers for the Domain.&lt;\\/p&gt;\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['domain'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"65ede4a2-9e6f-4d8f-bc50-e0d829eb432d"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"36aec12d-208b-4f81-9caa-75a405ba5568"}}],"id":"acb0b2b4-6c29-4c97-9602-3bdb142f5877","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Identifies Domain from which to read info by name.</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=domain&action=read","description":"<p>Read info on a specific Domain</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"domain"},{"key":"action","value":"read"}],"variable":[]}},"response":[{"id":"65eafb8f-4fdc-4ab9-ab82-ad48a92dc7f4","name":"ReadDomain","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","description":"Identifies Domain from which to read info by name.","type":"text"}]},"url":{"raw":"https://oclnk.co/?object=domain&action=read","host":["https://oclnk.co"],"path":[""],"query":[{"key":"object","value":"domain"},{"key":"action","value":"read"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Jun 2023 17:17:37 GMT"},{"key":"Server","value":"Apache/2.4.48 (Ubuntu)"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Length","value":"490"},{"key":"Keep-Alive","value":"timeout=2, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"domain\": \"apidocumentation\",\n        \"territory\": \"telware\",\n        \"dial_match\": \"\",\n        \"description\": \"Sample Data for API Documentation\",\n        \"moh\": \"yes\",\n        \"mor\": \"no\",\n        \"mot\": \"no\",\n        \"rmoh\": \"no\",\n        \"rating\": \"no\",\n        \"resi\": \"no\",\n        \"mksdir\": \"yes\",\n        \"call_limit\": 4,\n        \"call_limit_ext\": 4,\n        \"sub_limit\": 0,\n        \"max_call_queue\": 6,\n        \"max_aa\": 6,\n        \"max_conference\": 4,\n        \"max_department\": 0,\n        \"max_user\": 12,\n        \"max_device\": 0,\n        \"time_zone\": \"America/New_York\",\n        \"dial_plan\": \"apidocumentation\",\n        \"dial_policy\": \"US and Canada\",\n        \"policies\": \"active\",\n        \"email_sender\": \"noreply@myonecloud.com\",\n        \"smtp_host\": \"\",\n        \"smtp_port\": \"\",\n        \"smtp_uid\": \"\",\n        \"smtp_pwd\": \"\",\n        \"from_user\": \"[*]\",\n        \"from_host\": \"[*]\",\n        \"active_call\": 0,\n        \"countForLimit\": 0,\n        \"countExternal\": 0,\n        \"sub_count\": 11,\n        \"max_site\": 0,\n        \"max_fax\": -1,\n        \"address_id\": \"a-6476316b6afea\",\n        \"sso\": \"no\",\n        \"vmail_provisioned\": \"yes\",\n        \"callid_nmbr\": 7045984700,\n        \"callid_name\": \"OneCloud\",\n        \"callid_emgr\": 8009219680,\n        \"area_code\": 704,\n        \"vmail_transcribe\": \"google\",\n        \"language\": \"en_us\"\n    }\n]"}],"_postman_id":"acb0b2b4-6c29-4c97-9602-3bdb142f5877"},{"name":"ReadBillingDomain","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"domain\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Name of Domain.&lt;\\/p&gt;\"","    },","    \"territory\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Territory\\/Reseller for the Domain.&lt;\\/p&gt;\"","    },","    \"description\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Description for the Domain.&lt;\\/p&gt;\"","    },","    \"call_limit\": {","        \"type\": \"number\",","        \"description\": \"&lt;p&gt;The active Call Limit for this Domain.&lt;\\/p&gt;\"","    },","    \"call_limit_ext\": {","        \"type\": \"number\",","        \"description\": \"&lt;p&gt;The active Call Limit for this Domain only counting calls external to the domain.&lt;\\/p&gt;\"","    },","    \"max_user\": {","        \"type\": \"number\",","        \"description\": \"&lt;p&gt;The Maximum user count that the Domain can have.&lt;\\/p&gt;\"","    },","    \"max_call_queue\": {","        \"type\": \"number\",","        \"description\": \"&lt;p&gt;The Maximum call queue count that the Domain can have.&lt;\\/p&gt;\"","    },","    \"max_aa\": {","        \"type\": \"number\",","        \"description\": \"&lt;p&gt;The Maximum Auto Attendant count that the Domain can have.&lt;\\/p&gt;\"","    },","    \"max_conference\": {","        \"type\": \"number\",","        \"description\": \"&lt;p&gt;The Maximum conference bridge count that the Domain can have.&lt;\\/p&gt;\"","    },","    \"max_department\": {","        \"type\": \"number\",","        \"description\": \"&lt;p&gt;The Maximum department count that the Domain can have.&lt;\\/p&gt;\"","    },","    \"max_site\": {","        \"type\": \"number\",","        \"description\": \"&lt;p&gt;The Maximum site count that the Domain can have.&lt;\\/p&gt;\"","    },","    \"max_device\": {","        \"type\": \"number\",","        \"description\": \"&lt;p&gt;The Maximum device count per user.&lt;\\/p&gt;\"","    },","    \"current_user\": {","        \"type\": \"number\",","        \"description\": \"&lt;p&gt;The current user count that the Domain can have.&lt;\\/p&gt;\"","    },","    \"current_call_queue\": {","        \"type\": \"number\",","        \"description\": \"&lt;p&gt;The current call queue count that the Domain can have.&lt;\\/p&gt;\"","    },","    \"current_park\": {","        \"type\": \"number\",","        \"description\": \"&lt;p&gt;The current number of call parks enabled for the domain.&lt;\\/p&gt;\"","    },","    \"current_aa\": {","        \"type\": \"number\",","        \"description\": \"&lt;p&gt;The current Auto Attendant count that the Domain can have.&lt;\\/p&gt;\"","    },","    \"current_conference\": {","        \"type\": \"number\",","        \"description\": \"&lt;p&gt;The current conference bridge count that the Domain can have.&lt;\\/p&gt;\"","    },","    \"current_department\": {","        \"type\": \"number\",","        \"description\": \"&lt;p&gt;The current department count that the Domain can have.&lt;\\/p&gt;\"","    },","    \"current_registered_device\": {","        \"type\": \"number\",","        \"description\": \"&lt;p&gt;The current count of registered devices.&lt;\\/p&gt;\"","    },","    \"current_device\": {","        \"type\": \"number\",","        \"description\": \"&lt;p&gt;The current total device count.&lt;\\/p&gt;\"","    },","    \"current_phonenumbers\": {","        \"type\": \"number\",","        \"description\": \"&lt;p&gt;The current count of phone numbers assigned to domain&lt;\\/p&gt;\"","    },","    \"current_tollfree\": {","        \"type\": \"number\",","        \"description\": \"&lt;p&gt;The current count of toll free phonenumbers&lt;\\/p&gt;\"","    },","    \"current_scope_SCOPE\": {","        \"type\": \"number\",","        \"description\": \"&lt;p&gt;The current count the SCOPE for this domain. will show 1 entry per scope type.&lt;\\/p&gt;\"","    },","    \"current_transcribe_VENDOR\": {","        \"type\": \"number\",","        \"description\": \"&lt;p&gt;The current count of users assigned to vmail transcription by VENDOR for this domain. will show 1 entry per VENDOR enabled.&lt;\\/p&gt;\"","    },","    \"current_service_code_SRVCODE\": {","        \"type\": \"number\",","        \"description\": \"&lt;p&gt;The current count of users tagged with server code SRVCODE for this domain. will show 1 entry per SRVCODE used.&lt;\\/p&gt;\"","    },","    \"sms_inbound_last\": {","        \"type\": \"number\",","        \"description\": \"&lt;p&gt;Total number of inbound sms for last the month .&lt;\\/p&gt;\"","    },","    \"sms_outbound_last\": {","        \"type\": \"number\",","        \"description\": \"&lt;p&gt;Total number of outbound sms for last the month.&lt;\\/p&gt;\"","    },","    \"sms_outbound_current\": {","        \"type\": \"number\",","        \"description\": \"&lt;p&gt;Total number of outbound sms for this month.&lt;\\/p&gt;\"","    },","    \"sms_inbound_current\": {","        \"type\": \"number\",","        \"description\": \"&lt;p&gt;Total number of inbound sms for this month.&lt;\\/p&gt;\"","    },","    \"active_calls_onnet_last\": {","        \"type\": \"number\",","        \"description\": \"&lt;p&gt;Total number of onnet active calls for the last month.&lt;\\/p&gt;\"","    },","    \"active_calls_offnet_last\": {","        \"type\": \"number\",","        \"description\": \"&lt;p&gt;Total number of offnet active calls for the last month.&lt;\\/p&gt;\"","    },","    \"active_calls_offnet_current\": {","        \"type\": \"number\",","        \"description\": \"&lt;p&gt;Total number of offnet active calls for this month.&lt;\\/p&gt;\"","    },","    \"active_calls_onnet_current\": {","        \"type\": \"number\",","        \"description\": \"&lt;p&gt;Total number of onnet active calls for  this month.&lt;\\/p&gt;\"","    },","    \"calculation_time_ms\": {","        \"type\": \"number\",","        \"description\": \"&lt;p&gt;The time it too the API to generate this data.&lt;\\/p&gt;\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['domain'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"73c0024f-88f7-420b-8a25-3b9159995bdc"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"16799919-6755-405c-918c-411cc73df1ab"}}],"id":"745a3000-0ebb-4ac9-9ca7-2efbbda6039a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","type":"text"}]},"url":"https://oclnk.co/?object=domain&action=read&billing=yes","description":"<p>Read a billable summary for a domain</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"domain"},{"key":"action","value":"read"},{"key":"billing","value":"yes"}],"variable":[]}},"response":[{"id":"ee295de7-22c5-4f3f-b490-52f9a1651aa5","name":"ReadBillingDomain","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","type":"text"}]},"url":{"raw":"https://oclnk.co/?object=domain&action=read&billing=yes","host":["https://oclnk.co"],"path":[""],"query":[{"key":"object","value":"domain"},{"key":"action","value":"read"},{"key":"billing","value":"yes"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Jun 2023 17:23:00 GMT"},{"key":"Server","value":"Apache/2.4.48 (Ubuntu)"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Length","value":"430"},{"key":"Keep-Alive","value":"timeout=2, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"domain\": \"apidocumentation\",\n        \"description\": \"Sample Data for API Documentation\",\n        \"territory\": \"telware\",\n        \"call_limit\": 4,\n        \"max_call_queue\": 6,\n        \"max_aa\": 6,\n        \"max_conference\": 4,\n        \"max_department\": 0,\n        \"max_user\": 12,\n        \"current_user\": 11,\n        \"current_department\": 3,\n        \"current_queue\": 3,\n        \"current_agent\": 7,\n        \"current_park\": 0,\n        \"current_aa\": 1,\n        \"current_conference\": 2,\n        \"current_phonenumbers\": 12,\n        \"current_tollfree\": 0,\n        \"current_scope_Basic_User\": 16,\n        \"current_scope_Call_Center_Supervisor\": 1,\n        \"current_scope_No_Portal\": 3,\n        \"current_scope_Office_Manager\": 1,\n        \"current_service_code_system-aa\": 1,\n        \"current_service_code_system-conf\": 2,\n        \"current_service_code_system-department\": 3,\n        \"current_service_code_system-queue\": 3,\n        \"current_service_code_system-user\": 1,\n        \"current_transcribe_google\": 11,\n        \"current_registered_device\": 2,\n        \"current_device\": 14,\n        \"calculation_time_ms\": 14,\n        \"active_calls_onnet_last\": 0,\n        \"active_calls_offnet_last\": 1,\n        \"active_calls_onnet_current\": 1,\n        \"active_calls_offnet_current\": 1,\n        \"sms_inbound_last\": 0,\n        \"sms_inbound_current\": 0,\n        \"sms_inbound_today\": 0,\n        \"sms_outbound_today\": 0,\n        \"sms_outbound_current\": 0,\n        \"sms_outbound_last\": 0,\n        \"PORTAL_VIDEO\": \"yes\"\n    }\n]"}],"_postman_id":"745a3000-0ebb-4ac9-9ca7-2efbbda6039a"},{"name":"UpdateDomain","event":[{"listen":"test","script":{"id":"146415db-2c7c-47a1-9dbd-53b4c5ad924d","exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript"}},{"listen":"prerequest","script":{"id":"0025e63f-e749-4ddd-adae-9efef44307fa","exec":[""],"type":"text/javascript"}}],"id":"cf3515bc-bf0f-479f-9c9f-3e49f2332ee6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Domain name.</p>\n","type":"text"},{"key":"territory","value":"{{territory}}","description":"<p>Reseller for the Domain</p>\n","type":"text","disabled":true},{"key":"moh","value":"","description":"<p>Music on hold.</p>\n","type":"text","disabled":true},{"key":"mor","value":"","description":"<p>Music on ring.</p>\n","type":"text","disabled":true},{"key":"mot","value":"","description":"<p>Music on transfer.</p>\n","type":"text","disabled":true},{"key":"rmoh","value":"","description":"<p>Ramdon music on hold.</p>\n","type":"text","disabled":true},{"key":"rating","value":"","description":"<p>Prepaid rating per Domain.</p>\n","type":"text","disabled":true},{"key":"resi","value":"","description":"<p>Residential Domain</p>\n","type":"text","disabled":true},{"key":"sub_limit","value":"","description":"<p>Maximum number of sub Domains.</p>\n","type":"text","disabled":true},{"key":"dial_plan","value":"","description":"<p>Default DialPlan for the Domain.</p>\n","type":"text","disabled":true},{"key":"dial_policy","value":"","description":"<p>Default Dial Permission for the Domain.</p>\n","type":"text","disabled":true},{"key":"email_sender","value":"","description":"<p>Email sender</p>\n","type":"text","disabled":true},{"key":"smtp_host","value":"","description":"<p>Default mail transfer host</p>\n","type":"text","disabled":true},{"key":"smtp_port","value":"","description":"<p>Default mail transfer port number</p>\n","type":"text","disabled":true},{"key":"smtp_uid","value":"","description":"<p>Mail server user Id</p>\n","type":"text","disabled":true},{"key":"smtp_pwd","value":"","description":"<p>Mail server user password</p>\n","type":"text","disabled":true},{"key":"from_user","value":"","description":"<p>Mail sender user</p>\n","type":"text","disabled":true},{"key":"description","value":"","description":"<p>Description for the Domain</p>\n","type":"text","disabled":true},{"key":"call_limit","value":"","description":"<p>The active Call limit for this Domain</p>\n","type":"text","disabled":true},{"key":"call_limit_ext","value":"","description":"<p>The active Call Limit for this Domain only counting calls external to the domain.</p>\n","type":"text","disabled":true},{"key":"max_user","value":"","description":"<p>The maximum user count that the Domain can have.</p>\n","type":"text","disabled":true},{"key":"max_call_queue","value":"","description":"<p>The maximum call queue count that the Domain can have.</p>\n","type":"text","disabled":true},{"key":"max_aa","value":"","description":"<p>The maximum Auto Attendant count that the Domain can have.</p>\n","type":"text","disabled":true},{"key":"max_conference","value":"","description":"<p>The maximum conference bridge count that the Domain can have.</p>\n","type":"text","disabled":true},{"key":"max_department","value":"","description":"<p>The maximum department count that the Domain can have.</p>\n","type":"text","disabled":true},{"key":"max_device","value":"","description":"<p>The maximum device count per user.</p>\n","type":"text","disabled":true},{"key":"max_site","value":"","description":"<p>The Maximum site count that the Domain can have.</p>\n","type":"text","disabled":true},{"key":"policies","value":"","description":"<p>Policies for Domain: active or locked.</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=domain&action=update","description":"<p>Update an existing Domain</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"domain"},{"key":"action","value":"update"}],"variable":[]}},"response":[],"_postman_id":"cf3515bc-bf0f-479f-9c9f-3e49f2332ee6"}],"id":"afd9d000-a78b-4356-ae03-3f6ff9696b74","_postman_id":"afd9d000-a78b-4356-ae03-3f6ff9696b74","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}}},{"name":"MAC","item":[{"name":"CountMAC","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"total\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Total number of Macs in the specified Domain.&lt;\\/p&gt;\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple([jsonData], schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"73803e28-efe2-4569-b163-ccaf89871803"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"f5d35b62-7cd3-4945-8afd-18eda401ef7d"}}],"id":"9e713d87-7db3-473c-b608-10bcd57466b7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Identifies Domain for which to count MAC addresses.</p>\n","type":"text"},{"key":"territory","value":"{{territory}}","description":"<p>Identifies territory for which to count MAC addresses.</p>\n","type":"text","disabled":true},{"key":"mac","value":"","description":"<p>Filters count by targeting addresses with the specified MAC address. Can search by a few characters that MAC addresses contain.</p>\n","type":"text"},{"key":"mac_LIKE","value":"","type":"text","disabled":true},{"key":"model","value":"","type":"text","disabled":true},{"key":"notes","value":"","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=mac&action=count","description":"<p>Count MAC Addresses</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"mac"},{"key":"action","value":"count"}],"variable":[]}},"response":[{"id":"5bd48554-ab28-4f02-b9d5-c98f6ccb217e","name":"CountMAC","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"telware","description":"Identifies Domain for which to count MAC addresses.","type":"text"},{"key":"territory","value":"{{territory}}","description":"Identifies territory for which to count MAC addresses.","type":"text","disabled":true},{"key":"mac","value":"","description":"Filters count by targeting addresses with the specified MAC address.","type":"text","disabled":true},{"key":"mac_LIKE","value":"","type":"text","disabled":true},{"key":"model","value":"","type":"text","disabled":true},{"key":"notes","value":"","type":"text","disabled":true}]},"url":{"raw":"https://oclnk.co/?object=mac&action=count","host":["https://oclnk.co"],"path":[""],"query":[{"key":"object","value":"mac"},{"key":"action","value":"count"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Jun 2023 17:25:51 GMT"},{"key":"Server","value":"Apache/2.4.48 (Ubuntu)"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"12"},{"key":"Keep-Alive","value":"timeout=2, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"total\": 21\n}"}],"_postman_id":"9e713d87-7db3-473c-b608-10bcd57466b7"},{"name":"CreateMAC","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"784ae642-8da9-457b-aca1-1413023d7a11"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"937e2f89-4ab6-4645-89bf-e0ec84fcda1a"}}],"id":"56f21aa1-bd4d-4281-a2d9-af52f8b5fa78","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"mac","value":"{{createmac_mac}}","description":"<p>Specifies MAC address of new Device. Just hex numbers, no -,:. needed.</p>\n<p>Size range: 12</p>\n","type":"text"},{"key":"domain","value":"{{createmac_domain}}","description":"<p>Specifies Domain of new Device.</p>\n","type":"text"},{"key":"model","value":"{{createmac_model}}","description":"<p>Specifies Model of new Device. Query available options via Devicemodel</p>\n","type":"text"},{"key":"transport","value":"{{createmac_transport}}","description":"<p>The transport type for the device if configured through the NDP</p>\n","type":"text","disabled":true},{"key":"server","value":"{{createmac_server}}","type":"text","disabled":true},{"key":"last_pull","value":"{{createmac_last_pull}}","type":"text","disabled":true},{"key":"date_created","value":"{{createmac_date_created}}","type":"text","disabled":true},{"key":"device1","value":"{{createmac_device1}}","type":"text","disabled":true},{"key":"device2","value":"{{createmac_device2}}","type":"text","disabled":true},{"key":"device3","value":"{{createmac_device3}}","type":"text","disabled":true},{"key":"device4","value":"{{createmac_device4}}","type":"text","disabled":true},{"key":"device5","value":"{{createmac_device5}}","type":"text","disabled":true},{"key":"device6","value":"{{createmac_device6}}","type":"text","disabled":true},{"key":"device7","value":"{{createmac_device7}}","type":"text","disabled":true},{"key":"device8","value":"{{createmac_device8}}","type":"text","disabled":true},{"key":"territory","value":"{{createmac_territory}}","type":"text","disabled":true},{"key":"notes","value":"{{createmac_notes}}","type":"text","disabled":true},{"key":"line1_ext","value":"{{createmac_line1_ext}}","type":"text","disabled":true},{"key":"line2_ext","value":"{{createmac_line2_ext}}","type":"text","disabled":true},{"key":"redundancy","value":"{{createmac_redundancy}}","type":"text","disabled":true},{"key":"line1_enable","value":"{{createmac_line1_enable}}","type":"text","disabled":true},{"key":"line2_enable","value":"{{createmac_line2_enable}}","type":"text","disabled":true},{"key":"line3_enable","value":"{{createmac_line3_enable}}","type":"text","disabled":true},{"key":"line4_enable","value":"{{createmac_line4_enable}}","type":"text","disabled":true},{"key":"line5_enable","value":"{{createmac_line5_enable}}","type":"text","disabled":true},{"key":"line6_enable","value":"{{createmac_line6_enable}}","type":"text","disabled":true},{"key":"line7_enable","value":"{{createmac_line7_enable}}","type":"text","disabled":true},{"key":"line8_enable","value":"{{createmac_line8_enable}}","type":"text","disabled":true},{"key":"line1_share","value":"{{createmac_line1_share}}","type":"text","disabled":true},{"key":"line2_share","value":"{{createmac_line2_share}}","type":"text","disabled":true},{"key":"line3_share","value":"{{createmac_line3_share}}","type":"text","disabled":true},{"key":"line4_share","value":"{{createmac_line4_share}}","type":"text","disabled":true},{"key":"line5_share","value":"{{createmac_line5_share}}","type":"text","disabled":true},{"key":"line6_share","value":"{{createmac_line6_share}}","type":"text","disabled":true},{"key":"line7_share","value":"{{createmac_line7_share}}","type":"text","disabled":true},{"key":"line8_share","value":"{{createmac_line8_share}}","type":"text","disabled":true},{"key":"overrides","value":"{{createmac_overrides}}","type":"text","disabled":true},{"key":"dir_inc","value":"{{createmac_dir_inc}}","type":"text","disabled":true},{"key":"presence","value":"{{createmac_presence}}","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=mac&action=create","description":"<p>Create a MAC entry</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"mac"},{"key":"action","value":"create"}],"variable":[]}},"response":[],"_postman_id":"56f21aa1-bd4d-4281-a2d9-af52f8b5fa78"},{"name":"DeleteMAC","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"70e98275-2b6d-4547-b8b0-b26e043248b4"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"d0e4fdb9-0eb5-4ae4-a0b3-68fca8996ccf"}}],"id":"d66a3e8b-cd7c-41de-bb87-175fd1cf0f89","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"mac","value":"{{deletemac_mac}}","description":"<p>Identifies MAC address of Device to delete. The MAC address should be a numerical string with ':' removed.</p>\n","type":"text"},{"key":"domain","value":"{{deletemac_domain}}","description":"<p>Identifies Domain of Device to delete.</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=mac&action=delete","description":"<p>Delete Device using its MAC address</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"mac"},{"key":"action","value":"delete"}],"variable":[]}},"response":[],"_postman_id":"d66a3e8b-cd7c-41de-bb87-175fd1cf0f89"},{"name":"ReadMAC","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"mac\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;MAC Address&lt;\\/p&gt;\"","    },","    \"server\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Server&lt;\\/p&gt;\"","    },","    \"territory\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Territory&lt;\\/p&gt;\"","    },","    \"dir_inc\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;dir_inc&lt;\\/p&gt;\"","    },","    \"presence\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Presence&lt;\\/p&gt;\"","    },","    \"domain\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Domain&lt;\\/p&gt;\"","    },","    \"model\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Model&lt;\\/p&gt;\"","    },","    \"device1\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Device1&lt;\\/p&gt;\"","    },","    \"device2\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Device2&lt;\\/p&gt;\"","    },","    \"device3\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Device3&lt;\\/p&gt;\"","    },","    \"device4\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Device4&lt;\\/p&gt;\"","    },","    \"device5\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Device5&lt;\\/p&gt;\"","    },","    \"device6\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Device6&lt;\\/p&gt;\"","    },","    \"device7\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Device7&lt;\\/p&gt;\"","    },","    \"device8\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Device8&lt;\\/p&gt;\"","    },","    \"notes\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;notes&lt;\\/p&gt;\"","    },","    \"line1_share\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;line1_share&lt;\\/p&gt;\"","    },","    \"line2_share\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;line2_share&lt;\\/p&gt;\"","    },","    \"line3_share\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;line3_share&lt;\\/p&gt;\"","    },","    \"line4_share\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;line4_share&lt;\\/p&gt;\"","    },","    \"line5_share\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;line5_share&lt;\\/p&gt;\"","    },","    \"line6_share\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;line6_share&lt;\\/p&gt;\"","    },","    \"overrides\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;overrides&lt;\\/p&gt;\"","    },","    \"phone_ext\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Phone Extension&lt;\\/p&gt;\"","    },","    \"transport\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;The transport type for the device if configured through the NDP&lt;\\/p&gt;\"","    },","    \"fxs\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;fxs&lt;\\/p&gt;\"","    },","    \"sla\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;sla&lt;\\/p&gt;\"","    },","    \"sidecar\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;sidecar&lt;\\/p&gt;\"","    },","    \"resync\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;resync&lt;\\/p&gt;\"","    },","    \"directory_support\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Directory Support&lt;\\/p&gt;\"","    },","    \"user_agent\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;User Agent&lt;\\/p&gt;\"","    },","    \"contact\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Contact&lt;\\/p&gt;\"","    },","    \"registration_expires_time\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Registration Expiration Time&lt;\\/p&gt;\"","    },","    \"registration_time\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Registration Time&lt;\\/p&gt;\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['mac'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"248437b9-8213-4fa9-a671-3c151c864e6b"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"94a50683-2a13-4329-bfab-8e7bd49d0959"}}],"id":"2320b0da-b0d1-4ac5-ba7f-d4f809e0300c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"mac","value":"","type":"text"},{"key":"extension","value":"","type":"text"},{"key":"checkExistance","value":"","type":"text"}]},"url":"https://oclnk.co/?object=mac&action=read","description":"<p>Read Device using its MAC address</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"description":{"content":"<p>Identifies MAC address of Device to read. The MAC address should be a numerical string with ':' removed.</p>\n","type":"text/plain"},"key":"object","value":"mac"},{"description":{"content":"<p>numerical string, parameter searches lines containing this extension associated with the mac address</p>\n","type":"text/plain"},"key":"action","value":"read"}],"variable":[]}},"response":[],"_postman_id":"2320b0da-b0d1-4ac5-ba7f-d4f809e0300c"},{"name":"UpdateMAC","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"0a6f046a-ba7d-4b8e-873e-24f81e6deee6"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"775e45bb-0985-4fb6-b316-4e8f7dddf9cb"}}],"id":"17db2d57-5eb9-47ee-8c18-d8e550f623b6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"mac","value":"{{updatemac_mac}}","description":"<p>Identifies MAC address of Device to update. The MAC address should be a numerical string with ':' removed.</p>\n","type":"text"},{"key":"model","value":"{{updatemac_model}}","type":"text","disabled":true},{"key":"line","value":"{{updatemac_line}}","type":"text","disabled":true},{"key":"device","value":"{{updatemac_device}}","type":"text","disabled":true},{"key":"transport","value":"{{updatemac_transport}}","description":"<p>The transport type for the device if configured through the NDP</p>\n","type":"text","disabled":true},{"key":"server","value":"{{updatemac_server}}","type":"text","disabled":true},{"key":"last_pull","value":"{{updatemac_last_pull}}","type":"text","disabled":true},{"key":"date_created","value":"{{updatemac_date_created}}","type":"text","disabled":true},{"key":"device1","value":"{{updatemac_device1}}","type":"text","disabled":true},{"key":"device2","value":"{{updatemac_device2}}","type":"text","disabled":true},{"key":"device3","value":"{{updatemac_device3}}","type":"text","disabled":true},{"key":"device4","value":"{{updatemac_device4}}","type":"text","disabled":true},{"key":"device5","value":"{{updatemac_device5}}","type":"text","disabled":true},{"key":"device6","value":"{{updatemac_device6}}","type":"text","disabled":true},{"key":"device7","value":"{{updatemac_device7}}","type":"text","disabled":true},{"key":"device8","value":"{{updatemac_device8}}","type":"text","disabled":true},{"key":"territory","value":"{{updatemac_territory}}","type":"text","disabled":true},{"key":"notes","value":"{{updatemac_notes}}","type":"text","disabled":true},{"key":"line1_ext","value":"{{updatemac_line1_ext}}","type":"text","disabled":true},{"key":"line2_ext","value":"{{updatemac_line2_ext}}","type":"text","disabled":true},{"key":"redundancy","value":"{{updatemac_redundancy}}","type":"text","disabled":true},{"key":"line1_enable","value":"{{updatemac_line1_enable}}","type":"text","disabled":true},{"key":"line2_enable","value":"{{updatemac_line2_enable}}","type":"text","disabled":true},{"key":"line3_enable","value":"{{updatemac_line3_enable}}","type":"text","disabled":true},{"key":"line4_enable","value":"{{updatemac_line4_enable}}","type":"text","disabled":true},{"key":"line5_enable","value":"{{updatemac_line5_enable}}","type":"text","disabled":true},{"key":"line6_enable","value":"{{updatemac_line6_enable}}","type":"text","disabled":true},{"key":"line7_enable","value":"{{updatemac_line7_enable}}","type":"text","disabled":true},{"key":"line8_enable","value":"{{updatemac_line8_enable}}","type":"text","disabled":true},{"key":"line1_share","value":"{{updatemac_line1_share}}","type":"text","disabled":true},{"key":"line2_share","value":"{{updatemac_line2_share}}","type":"text","disabled":true},{"key":"line3_share","value":"{{updatemac_line3_share}}","type":"text","disabled":true},{"key":"line4_share","value":"{{updatemac_line4_share}}","type":"text","disabled":true},{"key":"line5_share","value":"{{updatemac_line5_share}}","type":"text","disabled":true},{"key":"line6_share","value":"{{updatemac_line6_share}}","type":"text","disabled":true},{"key":"line7_share","value":"{{updatemac_line7_share}}","type":"text","disabled":true},{"key":"line8_share","value":"{{updatemac_line8_share}}","type":"text","disabled":true},{"key":"overrides","value":"{{updatemac_overrides}}","type":"text","disabled":true},{"key":"dir_inc","value":"{{updatemac_dir_inc}}","type":"text","disabled":true},{"key":"presence","value":"{{updatemac_presence}}","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=mac&action=update","description":"<p>Update a Device using its MAC address</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"mac"},{"key":"action","value":"update"}],"variable":[]}},"response":[],"_postman_id":"17db2d57-5eb9-47ee-8c18-d8e550f623b6"}],"id":"c6be6894-e3fc-4159-9aa2-af1fe4944b9a","_postman_id":"c6be6894-e3fc-4159-9aa2-af1fe4944b9a","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}}},{"name":"Meeting","item":[{"name":"CountMeeting","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"total\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Total number of Meetings in the specified domain.&lt;\\/p&gt;\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple([jsonData], schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"2315b440-7377-4a88-a15c-ff3aea61377c"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"419ad568-39d2-41e2-9f25-31c136593a5f"}}],"id":"78c7348f-4d26-45f2-81e3-ecebdc89b85d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{countmeeting_domain}}","description":"<p>Domain for the meeting(s)</p>\n","type":"text"},{"key":"user","value":"{{countmeeting_user}}","description":"<p>User for the meeting(s)</p>\n","type":"text","disabled":true},{"key":"id","value":"{{countmeeting_id}}","description":"<p>ID for as specific meeting</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=meeting&action=count","description":"<p>Count Meetings</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"meeting"},{"key":"action","value":"count"}],"variable":[]}},"response":[],"_postman_id":"78c7348f-4d26-45f2-81e3-ecebdc89b85d"},{"name":"CreateMeeting","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"af8fd762-5e05-4dd3-81cd-50ccb5cfd616"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"3e381601-ffe3-47a1-b2e7-5480a63742cc"}}],"id":"b9daca66-cef9-43c3-8c37-148b6c20dae8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{createmeeting_domain}}","description":"<p>Domain for the meeting being made.</p>\n","type":"text"},{"key":"user","value":"{{createmeeting_user}}","description":"<p>User for the meeting being made.</p>\n","type":"text"},{"key":"id","value":"{{createmeeting_id}}","description":"<p>ID for the meeting, should have been generated via getID request</p>\n","type":"text"},{"key":"name","value":"{{createmeeting_name}}","description":"<p>Name for the meeting</p>\n","type":"text"},{"key":"description","value":"{{createmeeting_description}}","description":"<p>Description for the meeting</p>\n","type":"text","disabled":true},{"key":"start","value":"{{createmeeting_start}}","description":"<p>Start time for the meeting in epoch/unixtimestamp format. Optional, defaults to now</p>\n","type":"text","disabled":true},{"key":"created","value":"{{createmeeting_created}}","description":"<p>Start time for the meeting in epoch/unixtimestamp format. Optional, defaults to now</p>\n","type":"text","disabled":true},{"key":"duration","value":"{{createmeeting_duration}}","description":"<p>Duration of the meeting in minutes. Optional, defaults to 60 minutes</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=meeting&action=create","description":"<p>Create a Meeting</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"meeting"},{"key":"action","value":"create"}],"variable":[]}},"response":[],"_postman_id":"b9daca66-cef9-43c3-8c37-148b6c20dae8"},{"name":"DeleteMeeting","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"4b610e2b-4555-4c66-80ab-eee6146ce808"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"a447d257-1142-4ba8-807f-a0d2c9d37a58"}}],"id":"b5e14d90-86ba-473f-8090-b145c2420a50","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{deletemeeting_domain}}","description":"<p>The domain owning the meeting</p>\n","type":"text"},{"key":"id","value":"{{deletemeeting_id}}","description":"<p>The id of the meeting</p>\n","type":"text"},{"key":"type","value":"{{deletemeeting_type}}","description":"<p>The type of delete to perform. 'instance' deletes a single occurence, 'meeting' delete a meeting but perserves the DB record, 'record' completely deletes the meeting, 'attendee' deletes and attendee from the meeting</p>\n<p>Allowed values: \"instance\", \"meeting\", \"record\", \"attendee\"</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=meeting&action=delete","description":"<p>Delete a meeting</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"meeting"},{"key":"action","value":"delete"}],"variable":[]}},"response":[],"_postman_id":"b5e14d90-86ba-473f-8090-b145c2420a50"},{"name":"ReadMeeting","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['meeting'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"f44254a8-cc82-4aa1-a870-18602a6b2938"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"acb8176f-81da-4834-a115-710b8a4af04f"}}],"id":"c68cb900-fcef-4a8a-9c5c-2b0324a8c881","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{readmeeting_domain}}","description":"<p>Domain for the meeting(s)</p>\n","type":"text"},{"key":"user","value":"{{readmeeting_user}}","description":"<p>User for the meeting(s)</p>\n","type":"text","disabled":true},{"key":"id","value":"{{readmeeting_id}}","description":"<p>ID for as specific meeting</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=meeting&action=read","description":"<p>Read Meeting(s)</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"meeting"},{"key":"action","value":"read"}],"variable":[]}},"response":[],"_postman_id":"c68cb900-fcef-4a8a-9c5c-2b0324a8c881"},{"name":"RequestMeeting","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"id\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;A valid ID that you can use to issue a new &amp;quot;create&amp;quot; request with it.&lt;\\/p&gt;\"","    },","    \"phonenumbers\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;List of valid phonenumbers to access meeting audio bridge.&lt;\\/p&gt;\"","    }","}","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"2caf1570-6e39-45a5-8dbd-dccd8233bb55"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"50656733-7fb6-41f8-967a-bbd585c2f234"}}],"id":"818ac8c0-7ce6-4360-aa0c-b128da2d4030","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{requestmeeting_domain}}","description":"<p>Domain for the request being made.</p>\n","type":"text"},{"key":"user","value":"{{requestmeeting_user}}","description":"<p>User for the request being made.</p>\n","type":"text"},{"key":"getId","value":"{{requestmeeting_getId}}","description":"<p>Set to \"yes\" to get back a new ID that is validated to be not in use.</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=meeting&action=create","description":"<p>Request a Meeting ID</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"meeting"},{"key":"action","value":"create"}],"variable":[]}},"response":[],"_postman_id":"818ac8c0-7ce6-4360-aa0c-b128da2d4030"},{"name":"UpdateMeeting","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"32eb81be-3810-459f-b7dd-b65fb1b3df4f"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"73552dfb-cc3c-4068-9c2d-3401bf0f3052"}}],"id":"4913890b-6be2-4122-a7a1-f9d976f5359e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"id","value":"{{updatemeeting_id}}","description":"<p>The id of the meeting</p>\n","type":"text"},{"key":"domain","value":"{{updatemeeting_domain}}","description":"<p>The domain owning the meeting</p>\n","type":"text"},{"key":"description","value":"{{updatemeeting_description}}","description":"<p>Description for the meeting.</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=meeting&action=update","description":"<p>Update a meeting</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"meeting"},{"key":"action","value":"update"}],"variable":[]}},"response":[],"_postman_id":"4913890b-6be2-4122-a7a1-f9d976f5359e"},{"name":"deleteEventsMeeting","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"46a08ce3-8ea6-4c22-bd41-5e73c59c70ef"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"774c6cf3-4d05-4ef0-8883-4d1cee27b21f"}}],"id":"4bdc937b-b738-48e2-80e8-6ca4a3be4100","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"meeting_id","value":"{{deleteeventsmeeting_meeting_id}}","description":"<p>Meeting ID</p>\n","type":"text"},{"key":"instance_id","value":"{{deleteeventsmeeting_instance_id}}","description":"<p>Meeting Instance ID</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=meeting&action=deleteEvents","description":"<p>Delete Meeting Events</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"meeting"},{"key":"action","value":"deleteEvents"}],"variable":[]}},"response":[],"_postman_id":"4bdc937b-b738-48e2-80e8-6ca4a3be4100"},{"name":"logEventMeeting","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['meeting'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"6db11a52-62f4-4a2c-aeb8-4b73c5a06f6e"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"e68135db-ecbd-4150-b949-bc4cbd5acf5f"}}],"id":"dc5a8aad-40cb-42be-a587-d2e28de0d53c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"meeting_id","value":"{{logeventmeeting_meeting_id}}","description":"<p>Meeting ID</p>\n","type":"text"},{"key":"instance_id","value":"{{logeventmeeting_instance_id}}","description":"<p>Meeting Instance ID</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=meeting&action=logEvent","description":"<p>Log a Meeting Event</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"meeting"},{"key":"action","value":"logEvent"}],"variable":[]}},"response":[],"_postman_id":"dc5a8aad-40cb-42be-a587-d2e28de0d53c"},{"name":"readEventsMeeting","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['meeting'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"19a24140-f284-4fd8-acf9-e309c101f9d6"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"ce704c18-789a-4730-bf2c-2ed0a6a189fc"}}],"id":"05d2836f-751c-4366-9467-cea2463cb142","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"meeting_id","value":"{{readeventsmeeting_meeting_id}}","description":"<p>Meeting ID</p>\n","type":"text"},{"key":"instance_id","value":"{{readeventsmeeting_instance_id}}","description":"<p>Meeting Instance ID</p>\n","type":"text"},{"key":"group_by_instance","value":"{{readeventsmeeting_group_by_instance}}","description":"<p>Group results by meeting instance</p>\n","type":"text"},{"key":"time_start","value":"{{readeventsmeeting_time_start}}","description":"<p>Time threshold for look up events</p>\n","type":"text"},{"key":"get_start","value":"{{readeventsmeeting_get_start}}","description":"<p>Get the start of the instance</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=meeting&action=readEvents","description":"<p>Read Meeting Events</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"meeting"},{"key":"action","value":"readEvents"}],"variable":[]}},"response":[],"_postman_id":"05d2836f-751c-4366-9467-cea2463cb142"}],"id":"422c0896-d325-4008-9fe0-deec4794a69d","_postman_id":"422c0896-d325-4008-9fe0-deec4794a69d","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}}},{"name":"Message","item":[{"name":"CreateMessage","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"926e9988-44dc-42d6-b2d7-b896c96f2cca"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"a6c8c98d-f7e1-4e53-a028-3e6a4ba2dbb9"}}],"id":"c05d4208-dd33-4e7d-b1ac-142bc3159cf1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Name of domain from which user belongs.</p>\n","type":"text","disabled":true},{"key":"user","value":"{{createmessage_user}}","description":"<p>Extension of user</p>\n","type":"text","disabled":true},{"key":"uid","value":"{{createmessage_uid}}","description":"<p>UID of user</p>\n","type":"text","disabled":true},{"key":"fromAttendeeId","value":"","description":"<p>Video attendee id that message is from</p>\n","type":"text","disabled":true},{"key":"type","value":"","description":"<p>Type of message (sms,mms,private,group,chat-name-change,chat-participant-remove,chat-video-invite)</p>\n","type":"text","disabled":true},{"key":"session_id","value":"","description":"<p>Session id of the chat session</p>\n","type":"text"},{"key":"timestamp","value":"","description":"<p>Timestamp of message creation. For iOS matching loading message with actual message</p>\n","type":"text","disabled":true},{"key":"from_num","value":"","description":"<p>Needed for SMS, Source ANI fro outbound SMS. This will be checked against the SMS number table and proper carrier will be selected.</p>\n","type":"text"},{"key":"destination","value":"","description":"<p>Where to send the message to Number or UID</p>\n","type":"text"},{"key":"message","value":"","description":"<p>Where to send the message to Number or UID</p>\n","type":"text"},{"key":"upload_id","value":"","description":"<p>The ID of the uploaded file to send if type is mms</p>\n","type":"text","disabled":true},{"key":"file","value":"","description":"<p>file</p>\n","type":"text","disabled":true},{"key":"data","value":"{{createmessage_data}}","description":"<p>data</p>\n","type":"text","disabled":true},{"key":"mime_type","value":"{{createmessage_mime_type}}","description":"<p>mime_type</p>\n","type":"text","disabled":true},{"key":"size","value":"{{createmessage_size}}","description":"<p>size</p>\n","type":"text","disabled":true},{"key":"encoding","value":"{{createmessage_encoding}}","description":"<p>encoding</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=message&action=create","description":"<p>Send a new Message</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"message"},{"key":"action","value":"create"}],"variable":[]}},"response":[],"_postman_id":"c05d4208-dd33-4e7d-b1ac-142bc3159cf1"},{"name":"DeleteMessage","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"5a30c3e8-82f9-40d1-b4bb-ccc68b46c636"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"cb89013b-5d74-4526-9a89-1ff69fd4b864"}}],"id":"4e75a157-7817-4d24-96b0-bc791e87fece","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Name of domain from which user belongs.</p>\n","type":"text"},{"key":"id","value":"","description":"<p>Message ID for the message interested in.</p>\n","type":"text"},{"key":"session_id","value":"","description":"<p>Message ID for the message interested in.</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=message&action=delete","description":"<p>Delete Message</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"message"},{"key":"action","value":"delete"}],"variable":[]}},"response":[],"_postman_id":"4e75a157-7817-4d24-96b0-bc791e87fece"},{"name":"NotifyUnreadMessagesMessage","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"3d4522f2-c666-44d0-a315-7c70caca9a5a"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"3a16f3e2-69b7-4a13-bc79-6da5e21bc43f"}}],"id":"2dc37610-22e0-4e4f-b8d6-a9ce4638093d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"subject","value":"","description":"<p>The subject for the email or set to \"\" to get title from template</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=email&action=create","description":"<p>Notify All of Unread Messages</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"email"},{"key":"action","value":"create"}],"variable":[]}},"response":[],"_postman_id":"2dc37610-22e0-4e4f-b8d6-a9ce4638093d"},{"name":"ReadMessage","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"message\": {","        \"type\": \"string\",","        \"description\": \"\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['message'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"823c2659-53eb-40d2-b6f8-91273c730631"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"f3eb93f3-048a-4f21-9be8-fefd514414f0"}}],"id":"3e5489d9-af62-4f7b-8f7b-c717a132cb91","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Name of domain from which user belongs.</p>\n","type":"text"},{"key":"user","value":"{{user}}","description":"<p>Name of User from messages.</p>\n","type":"text"},{"key":"attendee_id","value":"","description":"<p>Attendee to be used as user.</p>\n","type":"text","disabled":true},{"key":"session_id","value":"","description":"<p>Session ID for the conversation interested in.</p>\n","type":"text","disabled":true},{"key":"id","value":"","description":"<p>ID of the message interested in.</p>\n","type":"text","disabled":true},{"key":"start","value":"","description":"<p>Offset from the beginning of the returned list.</p>\n<p>Default value: 0</p>\n","type":"text","disabled":true},{"key":"start_timestamp","value":"","description":"<p>Timestamp to start reading from, ie 2021-04-27 22:55:41</p>\n","type":"text","disabled":true},{"key":"startTimestamp","value":"","description":"<p>Timestamp to start reading from, ie 2021-04-27 22:55:41, usef for video app</p>\n","type":"text","disabled":true},{"key":"limit","value":"","description":"<p>Number limit for the amount of messages returned.</p>\n","type":"text","disabled":true},{"key":"order","value":"","description":"<p>Default value: time_start ASC</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=message&action=read","description":"<p>Read Messages</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"message"},{"key":"action","value":"read"}],"variable":[]}},"response":[],"_postman_id":"3e5489d9-af62-4f7b-8f7b-c717a132cb91"},{"name":"ReadProcessEmailMessage","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"b516c9c6-255d-4fd6-9bb7-11b1167fd56c"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"fd06185e-3ad0-4e0b-bb8a-83c8ef5ad706"}}],"id":"7028db6f-6429-4a58-88a9-5786634fb133","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{readprocessemailmessage_domain}}","description":"<p>Domain sending report</p>\n","type":"text"},{"key":"user","value":"{{readprocessemailmessage_user}}","description":"<p>User sending report</p>\n","type":"text"},{"key":"session_id","value":"{{readprocessemailmessage_session_id}}","description":"<p>Session ID for the conversation interested in.</p>\n","type":"text"},{"key":"template","value":"{{readprocessemailmessage_template}}","description":"<p>The template for the report. 4 different types of reports are available.</p>\n<p>Allowed values: \"email_unread_messages.php\"</p>\n","type":"text"},{"key":"subject","value":"{{readprocessemailmessage_subject}}","description":"<p>The subject for the email or set to \"\" to get title from template</p>\n","type":"text"},{"key":"cclist","value":"{{readprocessemailmessage_cclist}}","description":"<p>List, semicolon seperated for additional emails to send to.</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=email&action=create","description":"<p>Send Email Missed Messages</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"email"},{"key":"action","value":"create"}],"variable":[]}},"response":[],"_postman_id":"7028db6f-6429-4a58-88a9-5786634fb133"},{"name":"Read_MediaMessage","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"message\": {","        \"type\": \"string\",","        \"description\": \"\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['message'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"2973faa3-2920-4197-a234-43be90c14aad"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"81475bd4-5824-4afd-92ab-65d8b6da5c2c"}}],"id":"f790086c-8a3d-44ff-9b5c-ad1c5770edb0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{read_mediamessage_domain}}","description":"<p>Identifies Domain from which to read Audio files.</p>\n","type":"text"},{"key":"user","value":"{{read_mediamessage_user}}","description":"<p>Identifies User (by extension) that owns the Audio files to read.</p>\n","type":"text"},{"key":"time","value":"{{read_mediamessage_time}}","type":"text"},{"key":"auth","value":"{{read_mediamessage_auth}}","type":"text"},{"key":"id","value":"{{read_mediamessage_id}}","description":"<p>ID of the media file to download</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=message&action=read_media","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"message"},{"key":"action","value":"read_media"}],"variable":[]}},"response":[],"_postman_id":"f790086c-8a3d-44ff-9b5c-ad1c5770edb0"}],"id":"7c74427d-d460-449a-bf08-6c02f23e0742","_postman_id":"7c74427d-d460-449a-bf08-6c02f23e0742","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}}},{"name":"Message_Session","item":[{"name":"AcceptMessage_Session","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['message_session'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"54741a40-1a8f-4415-9e68-47099b2ba686"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"70b24eef-7182-435c-af88-ad19d6e15297"}}],"id":"42954dd8-1bf8-415a-96ef-1d7b13917a21","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{acceptmessage_session_domain}}","description":"<p>Name of domain from which user belongs.</p>\n","type":"text"},{"key":"user","value":"{{acceptmessage_session_user}}","description":"<p>Name of User from messages.</p>\n","type":"text"},{"key":"session_id","value":"{{acceptmessage_session_session_id}}","description":"<p>Session ID for the conversation interested in.</p>\n","type":"text"},{"key":"term_queue","value":"{{acceptmessage_session_term_queue}}","description":"<p>Term Queue for the conversation interested in.</p>\n","type":"text"},{"key":"rx_hostname","value":"{{acceptmessage_session_rx_hostname}}","description":"<p>Hostname you want to change the session to.</p>\n","type":"text"},{"key":"muted","value":"{{acceptmessage_session_muted}}","description":"<p>Mute the session</p>\n<p>Allowed values: \"yes\", \"no\"</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=messagesession&action=accept","description":"<p>Accept Message Session for Agent</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"messagesession"},{"key":"action","value":"accept"}],"variable":[]}},"response":[],"_postman_id":"42954dd8-1bf8-415a-96ef-1d7b13917a21"},{"name":"DeleteMessage_Session","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"0d9cd539-fbe0-4d49-82d2-b22fffb385ea"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"8bb49bb1-2ba8-43bf-941a-a74a78aadf24"}}],"id":"b75d961e-0e6b-4fec-b438-924c68fcacf6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{deletemessage_session_domain}}","description":"<p>Name of domain from which user belongs.</p>\n","type":"text","disabled":true},{"key":"user","value":"{{deletemessage_session_user}}","description":"<p>Name of User from messages.</p>\n","type":"text","disabled":true},{"key":"session_id","value":"{{deletemessage_session_session_id}}","description":"<p>Session ID for the conversation interested in.</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=messagesession&action=delete","description":"<p>Delete Message Session (Conversations)</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"messagesession"},{"key":"action","value":"delete"}],"variable":[]}},"response":[],"_postman_id":"b75d961e-0e6b-4fec-b438-924c68fcacf6"},{"name":"EndMessage_Session","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['message_session'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"4161ac7d-460c-4ab8-865e-c5bfc9410634"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"0457926a-b588-45db-b408-0ec48e5a6a8a"}}],"id":"82afaeca-c6f4-4d89-8ce6-c6e32e77614f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{endmessage_session_domain}}","description":"<p>Name of domain from which user belongs.</p>\n","type":"text"},{"key":"user","value":"{{endmessage_session_user}}","description":"<p>Name of User from messages.</p>\n","type":"text"},{"key":"session_id","value":"{{endmessage_session_session_id}}","description":"<p>Session ID for the conversation interested in.</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=messagesession&action=dispatch","description":"<p>Compale  Message Session for Agent</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"messagesession"},{"key":"action","value":"dispatch"}],"variable":[]}},"response":[],"_postman_id":"82afaeca-c6f4-4d89-8ce6-c6e32e77614f"},{"name":"LeaveMessage_Session","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['message_session'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"4a8f6766-9ba4-41f7-bbf1-eec9da3e7d2f"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"cfa925b2-0306-4e0a-a181-57ee2d9fecce"}}],"id":"ca64b773-24b3-4c24-9146-0c931068716f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{leavemessage_session_domain}}","description":"<p>Name of domain from which user belongs.</p>\n","type":"text"},{"key":"user","value":"{{leavemessage_session_user}}","description":"<p>Name of User from messages.</p>\n","type":"text"},{"key":"session_id","value":"{{leavemessage_session_session_id}}","description":"<p>Session ID for the conversation interested in.</p>\n","type":"text"},{"key":"rx_hostname","value":"{{leavemessage_session_rx_hostname}}","description":"<p>Hostname you want to change the session to.</p>\n","type":"text"},{"key":"muted","value":"{{leavemessage_session_muted}}","description":"<p>Mute the session</p>\n<p>Allowed values: \"yes\", \"no\"</p>\n","type":"text","disabled":true},{"key":"session_name","value":"{{leavemessage_session_session_name}}","description":"<p>Name session should change to</p>\n","type":"text","disabled":true},{"key":"participants","value":"{{leavemessage_session_participants}}","description":"<p>Participants list should change to, ie, 1099@portal,2501@portal,2500@portal. includes the sender/changer of the session</p>\n","type":"text"},{"key":"send_update_message","value":"{{leavemessage_session_send_update_message}}","description":"<p>Whether or not to send an update message to other participants in the group about changes</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=messagesession&action=leave","description":"<p>Leave a Message Session</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"messagesession"},{"key":"action","value":"leave"}],"variable":[]}},"response":[],"_postman_id":"ca64b773-24b3-4c24-9146-0c931068716f"},{"name":"ReadMessage_Session","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"message\": {","        \"type\": \"string\",","        \"description\": \"\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['message_session'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"104a6336-865c-4db9-b011-4306345884ac"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"bd12aa7d-de65-4849-92c1-f24bb37ee859"}}],"id":"301c5398-b282-4a32-8e1d-d8b10a8ee6c6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Name of domain from which user belongs.</p>\n","type":"text","disabled":true},{"key":"user","value":"{{readmessage_session_user}}","description":"<p>Name of User from messages.</p>\n","type":"text","disabled":true},{"key":"attendee_id","value":"{{readmessage_session_attendee_id}}","description":"<p>Attendee to be used as user.</p>\n","type":"text","disabled":true},{"key":"session_id","value":"{{readmessage_session_session_id}}","description":"<p>Session ID for the conversation interested in.</p>\n","type":"text","disabled":true},{"key":"term_queue","value":"{{readmessage_session_term_queue}}","description":"<p>The queue for the conversation interested in.</p>\n","type":"text","disabled":true},{"key":"session_name","value":"{{readmessage_session_session_name}}","description":"<p>session_name LIKE</p>\n","type":"text","disabled":true},{"key":"start","value":"{{readmessage_session_start}}","description":"<p>Offset from the beginning of the returned list.</p>\n<p>Default value: 0</p>\n","type":"text","disabled":true},{"key":"limit","value":"{{readmessage_session_limit}}","description":"<p>Number limit for the amount of messages returned.</p>\n","type":"text","disabled":true},{"key":"sort","value":"{{readmessage_session_sort}}","description":"<p>Default value: last_timestamp desc</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=messagesession&action=read","description":"<p>Read Message Session (Conversations)</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"messagesession"},{"key":"action","value":"read"}],"variable":[]}},"response":[],"_postman_id":"301c5398-b282-4a32-8e1d-d8b10a8ee6c6"},{"name":"UpdateMessage_Session","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"984f8782-0632-4019-b07e-f3387a4be9aa"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"50daff80-e40c-4e92-a2fa-2c4a33859bd4"}}],"id":"af24caf8-2e01-484e-adaa-6a9fa493e1b8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{updatemessage_session_domain}}","description":"<p>Name of domain from which user belongs.</p>\n","type":"text"},{"key":"user","value":"{{updatemessage_session_user}}","description":"<p>Name of User from messages.</p>\n","type":"text"},{"key":"session_id","value":"{{updatemessage_session_session_id}}","description":"<p>Session ID for the conversation interested in.</p>\n","type":"text"},{"key":"rx_hostname","value":"{{updatemessage_session_rx_hostname}}","description":"<p>Hostname you want to change the session to.</p>\n","type":"text"},{"key":"muted","value":"{{updatemessage_session_muted}}","description":"<p>Mute the session</p>\n<p>Allowed values: \"yes\", \"no\"</p>\n","type":"text","disabled":true},{"key":"session_name","value":"{{updatemessage_session_session_name}}","description":"<p>Name session should change to</p>\n","type":"text","disabled":true},{"key":"participants","value":"{{updatemessage_session_participants}}","description":"<p>Participants list should change to, ie, 1099@portal,2501@portal,2500@portal. includes the sender/changer of the session</p>\n","type":"text"},{"key":"send_update_message","value":"{{updatemessage_session_send_update_message}}","description":"<p>Whether or not to send an update message to other participants in the group about changes</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=messagesession&action=update","description":"<p>Update Message Session</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"messagesession"},{"key":"action","value":"update"}],"variable":[]}},"response":[],"_postman_id":"af24caf8-2e01-484e-adaa-6a9fa493e1b8"}],"id":"1c06bdf8-0716-49d5-9bf8-457440089292","_postman_id":"1c06bdf8-0716-49d5-9bf8-457440089292","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}}},{"name":"Phone_Configuration","item":[{"name":"CountPhone_Configuration","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"total\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Total number of Phoneconfiguration in the specified domain.&lt;\\/p&gt;\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple([jsonData], schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"6fa02ab8-06e9-4e77-9eae-e393676798d3"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"68d66f8e-fc80-4a0e-9342-4fd4c6472180"}}],"id":"4d3c089c-ee18-47da-82e4-f44769107b03","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Domain for which to count phone configurations</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=phoneconfiguration&action=count","description":"<p>Count Phoneconfiguration</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"phoneconfiguration"},{"key":"action","value":"count"}],"variable":[]}},"response":[{"id":"1476d1cf-66de-4c4e-be86-c89bfbd17be4","name":"CountPhone_Configuration","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","type":"text","disabled":true}]},"url":{"raw":"https://oclnk.co/?object=phoneconfiguration&action=count","host":["https://oclnk.co"],"path":[""],"query":[{"key":"object","value":"phoneconfiguration"},{"key":"action","value":"count"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Jun 2023 19:56:38 GMT"},{"key":"Server","value":"Apache/2.4.48 (Ubuntu)"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"12"},{"key":"Keep-Alive","value":"timeout=2, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"total\": 58\n}"}],"_postman_id":"4d3c089c-ee18-47da-82e4-f44769107b03"},{"name":"CreatePhone_Configuration","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"a49d7b37-90f8-4090-a739-e0ee1f74e44b"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"ee567754-46dc-4ec3-b6a8-50de43ac186d"}}],"id":"132e2ba1-1ef7-49ec-af00-f458dfcce415","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{createphone_configuration_domain}}","description":"<p>The name of the phone configuration</p>\n","type":"text"},{"key":"description","value":"{{createphone_configuration_description}}","description":"<p>Description for the phone configuration.</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=phoneconfiguration&action=create","description":"<p>Create a phone configuration</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"phoneconfiguration"},{"key":"action","value":"create"}],"variable":[]}},"response":[],"_postman_id":"132e2ba1-1ef7-49ec-af00-f458dfcce415"},{"name":"DeletePhone_Configuration","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"id":"ba4f65ec-e802-4335-895f-68315164bc97"}},{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"6dcc8cbe-0f1d-4432-81fa-6ee685952ea1"}}],"id":"d1b0ef40-6020-419b-ba06-785b265ac396","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{deletephone_configuration_domain}}","type":"text"},{"key":"pc_name","value":"{{deletephone_configuration_pc_name}}","type":"text"}]},"url":"https://oclnk.co/?object=phoneconfiguration&action=delete","description":"<p>Phone Configuration</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"phoneconfiguration"},{"key":"action","value":"delete"}],"variable":[]}},"response":[],"_postman_id":"d1b0ef40-6020-419b-ba06-785b265ac396"},{"name":"ReadPhone_Configuration","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['phone_configuration'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"37f1b3f4-a701-4987-a17c-52050c55260e"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"5c459574-3cfb-46ba-a32a-10313ee323ca"}}],"id":"678bade4-aad1-491b-b9dd-650d9dbd41d7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","type":"text"},{"key":"mac","value":"","type":"text","disabled":true},{"key":"templatesOnly","value":"","description":"<p>Default value: {1,0}</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=phoneconfiguration&action=read","description":"<p>Read Phone Configuration</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"phoneconfiguration"},{"key":"action","value":"read"}],"variable":[]}},"response":[],"_postman_id":"678bade4-aad1-491b-b9dd-650d9dbd41d7"}],"id":"0dd29d74-b7ae-4ab0-af08-4f9dc3aec22c","_postman_id":"0dd29d74-b7ae-4ab0-af08-4f9dc3aec22c","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}}},{"name":"Phone_Number","item":[{"name":"CountPhone_Number","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"total\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Number matching search params&lt;\\/p&gt;\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple([jsonData], schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"9f6dbfa2-8ee6-40c4-b434-38ced2fb3b6d"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"f1d8cb53-6b99-46c7-bd24-f5139610fcc1"}}],"id":"3f047e46-7508-4df9-b60e-de474e1d2ed8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"dialplan","value":"DID Table","description":"<p>Dialplan from which to read Dialrules.</p>\n<p>Default value: DID Table</p>\n","type":"text"},{"key":"dest_domain","value":"{{domain}}","description":"<p>Domain to lookup numbers in.</p>\n","type":"text"},{"key":"matchrule","value":"","description":"<p>Matchrule for the number to search</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=phonenumber&action=count","description":"<p>Count Phone Numbers in a Dial Plan</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"phonenumber"},{"key":"action","value":"count"}],"variable":[]}},"response":[{"id":"bd52a16b-3f29-41ac-af95-b0a5d90edddf","name":"CountPhone_Number","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"dialplan","value":"DID Table","description":"Dialplan from which to read Dialrules.\n\nDefault value: DID Table","type":"text"},{"key":"dest_domain","value":"{{domain}}","description":"Domain to lookup numbers in.","type":"text"},{"key":"matchrule","value":"","description":"Matchrule for the number to search","type":"text","disabled":true}]},"url":{"raw":"https://oclnk.co/?object=phonenumber&action=count","host":["https://oclnk.co"],"path":[""],"query":[{"key":"object","value":"phonenumber"},{"key":"action","value":"count"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Jun 2023 19:18:16 GMT"},{"key":"Server","value":"Apache/2.4.48 (Ubuntu)"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"14"},{"key":"Keep-Alive","value":"timeout=2, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"total\": \"12\"\n}"}],"_postman_id":"3f047e46-7508-4df9-b60e-de474e1d2ed8"},{"name":"CreatePhone_Number","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"1f6c1749-3ad2-442f-9c03-261628b9eecf"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"85736b36-b8af-40cf-a930-03a3dd72c3fb"}}],"id":"45911010-139d-4752-a9e7-b4d1fb58f6c8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"dest_domain","value":"{{domain}}","description":"<p>Domain containing Dialplan where new Diarlrule will be created.</p>\n","type":"text"},{"key":"dialplan","value":"","description":"<p>Dialplan where new Dialrule will be created.</p>\n","type":"text"},{"key":"matchrule","value":"","description":"<p>Destination parameter for new Dialrule. Sip syntax example sip:1NPANXXXXXX@*</p>\n","type":"text"},{"key":"responder","value":"","description":"<p>Application to use, full list of applications available in platform documentation</p>\n","type":"text"},{"key":"to_user","value":"","description":"<p>Destination user translation.</p>\n","type":"text"},{"key":"to_host","value":"","description":"<p>Destination host translation. Generally a domain</p>\n","type":"text"},{"key":"enable","value":"","description":"<p>Is the rule enabled (yes/no)</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=phonenumber&action=create","description":"<p>Create a Phone Number for Inventory</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"phonenumber"},{"key":"action","value":"create"}],"variable":[]}},"response":[],"_postman_id":"45911010-139d-4752-a9e7-b4d1fb58f6c8"},{"name":"DeletePhone_Number","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"3097ff9f-75f5-471c-a3b1-7957ace4082c"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"b9cbefe4-9c24-4f84-bb86-a8a64c197ca8"}}],"id":"8200ac63-7186-4e88-bdfb-9b328237aba3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Domain containing Phone Number to delete.</p>\n","type":"text"},{"key":"dialplan","value":"","description":"<p>Dialplan with Phone Number to delete.</p>\n","type":"text"},{"key":"matchrule","value":"","description":"<p>Destination parameter of Phone Number to delete.</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=phonenumber&action=delete","description":"<p>Delete a Phone Number</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"phonenumber"},{"key":"action","value":"delete"}],"variable":[]}},"response":[],"_postman_id":"8200ac63-7186-4e88-bdfb-9b328237aba3"},{"name":"ReadPhone_Number","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"matchrule\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Destination, generally in sip:1NPANXXXXXX@*&lt;\\/p&gt;\"","    },","    \"enable\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;is the rule enabled&lt;\\/p&gt;\"","    },","    \"match_from\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Source&lt;\\/p&gt;\"","    },","    \"dow\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Days of week&lt;\\/p&gt;\"","    },","    \"tod_from\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Time of Dial&lt;\\/p&gt;\"","    },","    \"tod_to\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Time of Dial&lt;\\/p&gt;\"","    },","    \"valid_from\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Starting date Dialrule is valid&lt;\\/p&gt;\"","    },","    \"valid_to\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;End date Dialrule is valid&lt;\\/p&gt;\"","    },","    \"responder\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Application&lt;\\/p&gt;\"","    },","    \"parameter\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Application parameter&lt;\\/p&gt;\"","    },","    \"to_scheme\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Destination scheme translation&lt;\\/p&gt;\"","    },","    \"to_user\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;The Destination user&lt;\\/p&gt;\"","    },","    \"to_host\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;The Destination host, often a domain name&lt;\\/p&gt;\"","    },","    \"from_name\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"from_scheme\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Protocol used by sender (ex. 'sip:')???&lt;\\/p&gt;\"","    },","    \"from_user\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"from_host\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"dialplan\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Dialplan to which Dialrule belongs.&lt;\\/p&gt;\"","    },","    \"domain\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Domain to which Dialplan containing Dialrule belongs.&lt;\\/p&gt;\"","    },","    \"plan_description\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Description for Dialrule&lt;\\/p&gt;\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['phone_number'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"fa7fb5f3-2a7f-491a-972d-2665cb7a27ce"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"df78afc7-5c7e-45ed-a1ac-6d3e5f95331a"}}],"id":"7a477a2c-c947-4649-a4ab-241c12055ddc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"dialplan","value":"DID table","description":"<p>Dialplan from which to read Dialrules.</p>\n<p>Default value: DID Table</p>\n","type":"text"},{"key":"dest_domain","value":"{{domain}}","description":"<p>Domain to lookup numbers in.</p>\n","type":"text"},{"key":"matchrule","value":"{{readphone_number_matchrule}}","description":"<p>Matchrule for the number to search</p>\n","type":"text","disabled":true},{"key":"matchrule_LIKE","value":"{{readphone_number_matchrule_LIKE}}","description":"<p>User for partial match on Numbers, must use \"%\" for wildcards</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=phonenumber&action=read","description":"<p>Read Phone Numbers in a Dial Plan</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"phonenumber"},{"key":"action","value":"read"}],"variable":[]}},"response":[{"id":"2ccfc472-75ca-49fe-96c1-43724f62f28b","name":"ReadPhone_Number","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"dialplan","value":"DID table","description":"Dialplan from which to read Dialrules.\n\nDefault value: DID Table","type":"text"},{"key":"dest_domain","value":"{{domain}}","description":"Domain to lookup numbers in.","type":"text"},{"key":"matchrule","value":"{{readphone_number_matchrule}}","description":"Matchrule for the number to search","type":"text","disabled":true},{"key":"matchrule_LIKE","value":"{{readphone_number_matchrule_LIKE}}","description":"User for partial match on Numbers, must use \"%\" for wildcards","type":"text","disabled":true}]},"url":{"raw":"https://oclnk.co/?object=phonenumber&action=read","host":["https://oclnk.co"],"path":[""],"query":[{"key":"object","value":"phonenumber"},{"key":"action","value":"read"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Jun 2023 19:17:56 GMT"},{"key":"Server","value":"Apache/2.4.48 (Ubuntu)"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Length","value":"538"},{"key":"Keep-Alive","value":"timeout=2, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"matchrule\": \"sip:17044786423@*\",\n        \"enable\": \"yes\",\n        \"match_from\": \"*\",\n        \"dow\": \"*\",\n        \"tod_from\": \"*\",\n        \"tod_to\": \"*\",\n        \"valid_from\": \"*\",\n        \"valid_to\": \"*\",\n        \"responder\": \"sip:start@call-queuing\",\n        \"parameter\": \"n/a\",\n        \"to_scheme\": \"sip:\",\n        \"to_user\": \"8003\",\n        \"to_host\": \"apidocumentation\",\n        \"from_name\": \"[*]\",\n        \"from_scheme\": \"sip:\",\n        \"from_user\": \"[*]\",\n        \"from_host\": \"[*]\",\n        \"dialplan\": \"DID Table\",\n        \"domain\": \"admin-only\",\n        \"plan_description\": \"\",\n        \"domain_owner\": \"apidocumentation\",\n        \"domain_description\": \"Sample Data for API Documentation\"\n    },\n    {\n        \"matchrule\": \"sip:17045551000@*\",\n        \"enable\": \"yes\",\n        \"match_from\": \"*\",\n        \"dow\": \"*\",\n        \"tod_from\": \"*\",\n        \"tod_to\": \"*\",\n        \"valid_from\": \"*\",\n        \"valid_to\": \"*\",\n        \"responder\": \"sip:start@to-user\",\n        \"parameter\": \"\",\n        \"to_scheme\": \"sip:\",\n        \"to_user\": \"8050\",\n        \"to_host\": \"apidocumentation\",\n        \"from_name\": \"[*]\",\n        \"from_scheme\": \"sip:\",\n        \"from_user\": \"[*]\",\n        \"from_host\": \"[*]\",\n        \"dialplan\": \"DID Table\",\n        \"domain\": \"admin-only\",\n        \"plan_description\": \"Main Number (documentation purposes only)\",\n        \"domain_owner\": \"apidocumentation\",\n        \"domain_description\": \"Sample Data for API Documentation\"\n    },\n    {\n        \"matchrule\": \"sip:17045551001@*\",\n        \"enable\": \"yes\",\n        \"match_from\": \"*\",\n        \"dow\": \"*\",\n        \"tod_from\": \"*\",\n        \"tod_to\": \"*\",\n        \"valid_from\": \"*\",\n        \"valid_to\": \"*\",\n        \"responder\": \"sip:start@to-user\",\n        \"parameter\": \"\",\n        \"to_scheme\": \"sip:\",\n        \"to_user\": \"1001\",\n        \"to_host\": \"apidocumentation\",\n        \"from_name\": \"[*]\",\n        \"from_scheme\": \"sip:\",\n        \"from_user\": \"[*]\",\n        \"from_host\": \"[*]\",\n        \"dialplan\": \"DID Table\",\n        \"domain\": \"admin-only\",\n        \"plan_description\": \"Cai Guzman DID (documentation purposes only)\",\n        \"domain_owner\": \"apidocumentation\",\n        \"domain_description\": \"Sample Data for API Documentation\"\n    },\n    {\n        \"matchrule\": \"sip:17045551002@*\",\n        \"enable\": \"yes\",\n        \"match_from\": \"*\",\n        \"dow\": \"*\",\n        \"tod_from\": \"*\",\n        \"tod_to\": \"*\",\n        \"valid_from\": \"*\",\n        \"valid_to\": \"*\",\n        \"responder\": \"sip:start@to-user\",\n        \"parameter\": \"\",\n        \"to_scheme\": \"sip:\",\n        \"to_user\": \"1002\",\n        \"to_host\": \"apidocumentation\",\n        \"from_name\": \"[*]\",\n        \"from_scheme\": \"sip:\",\n        \"from_user\": \"[*]\",\n        \"from_host\": \"[*]\",\n        \"dialplan\": \"DID Table\",\n        \"domain\": \"admin-only\",\n        \"plan_description\": \"Ameer Schultz DID (documentation purposes only)\",\n        \"domain_owner\": \"apidocumentation\",\n        \"domain_description\": \"Sample Data for API Documentation\"\n    },\n    {\n        \"matchrule\": \"sip:17045551003@*\",\n        \"enable\": \"yes\",\n        \"match_from\": \"*\",\n        \"dow\": \"*\",\n        \"tod_from\": \"*\",\n        \"tod_to\": \"*\",\n        \"valid_from\": \"*\",\n        \"valid_to\": \"*\",\n        \"responder\": \"sip:start@to-user\",\n        \"parameter\": \"\",\n        \"to_scheme\": \"sip:\",\n        \"to_user\": \"1003\",\n        \"to_host\": \"apidocumentation\",\n        \"from_name\": \"[*]\",\n        \"from_scheme\": \"sip:\",\n        \"from_user\": \"[*]\",\n        \"from_host\": \"[*]\",\n        \"dialplan\": \"DID Table\",\n        \"domain\": \"admin-only\",\n        \"plan_description\": \"Keanu Wright DID (documentation purposes only)\",\n        \"domain_owner\": \"apidocumentation\",\n        \"domain_description\": \"Sample Data for API Documentation\"\n    },\n    {\n        \"matchrule\": \"sip:17045551004@*\",\n        \"enable\": \"yes\",\n        \"match_from\": \"*\",\n        \"dow\": \"*\",\n        \"tod_from\": \"*\",\n        \"tod_to\": \"*\",\n        \"valid_from\": \"*\",\n        \"valid_to\": \"*\",\n        \"responder\": \"sip:start@to-user\",\n        \"parameter\": \"\",\n        \"to_scheme\": \"sip:\",\n        \"to_user\": \"1004\",\n        \"to_host\": \"apidocumentation\",\n        \"from_name\": \"[*]\",\n        \"from_scheme\": \"sip:\",\n        \"from_user\": \"[*]\",\n        \"from_host\": \"[*]\",\n        \"dialplan\": \"DID Table\",\n        \"domain\": \"admin-only\",\n        \"plan_description\": \"Evan Buchanan DID (documentation purposes only)\",\n        \"domain_owner\": \"apidocumentation\",\n        \"domain_description\": \"Sample Data for API Documentation\"\n    },\n    {\n        \"matchrule\": \"sip:17045551005@*\",\n        \"enable\": \"yes\",\n        \"match_from\": \"*\",\n        \"dow\": \"*\",\n        \"tod_from\": \"*\",\n        \"tod_to\": \"*\",\n        \"valid_from\": \"*\",\n        \"valid_to\": \"*\",\n        \"responder\": \"sip:start@to-user\",\n        \"parameter\": \"\",\n        \"to_scheme\": \"sip:\",\n        \"to_user\": \"1005\",\n        \"to_host\": \"apidocumentation\",\n        \"from_name\": \"[*]\",\n        \"from_scheme\": \"sip:\",\n        \"from_user\": \"[*]\",\n        \"from_host\": \"[*]\",\n        \"dialplan\": \"DID Table\",\n        \"domain\": \"admin-only\",\n        \"plan_description\": \"Juan Juarez DID (documentation purposes only)\",\n        \"domain_owner\": \"apidocumentation\",\n        \"domain_description\": \"Sample Data for API Documentation\"\n    },\n    {\n        \"matchrule\": \"sip:17045551006@*\",\n        \"enable\": \"yes\",\n        \"match_from\": \"*\",\n        \"dow\": \"*\",\n        \"tod_from\": \"*\",\n        \"tod_to\": \"*\",\n        \"valid_from\": \"*\",\n        \"valid_to\": \"*\",\n        \"responder\": \"sip:start@to-user\",\n        \"parameter\": \"\",\n        \"to_scheme\": \"sip:\",\n        \"to_user\": \"1006\",\n        \"to_host\": \"apidocumentation\",\n        \"from_name\": \"[*]\",\n        \"from_scheme\": \"sip:\",\n        \"from_user\": \"[*]\",\n        \"from_host\": \"[*]\",\n        \"dialplan\": \"DID Table\",\n        \"domain\": \"admin-only\",\n        \"plan_description\": \"Lewis Montgomery DID (documentation purposes only)\",\n        \"domain_owner\": \"apidocumentation\",\n        \"domain_description\": \"Sample Data for API Documentation\"\n    },\n    {\n        \"matchrule\": \"sip:17045551007@*\",\n        \"enable\": \"yes\",\n        \"match_from\": \"*\",\n        \"dow\": \"*\",\n        \"tod_from\": \"*\",\n        \"tod_to\": \"*\",\n        \"valid_from\": \"*\",\n        \"valid_to\": \"*\",\n        \"responder\": \"sip:start@to-user\",\n        \"parameter\": \"\",\n        \"to_scheme\": \"sip:\",\n        \"to_user\": \"1007\",\n        \"to_host\": \"apidocumentation\",\n        \"from_name\": \"[*]\",\n        \"from_scheme\": \"sip:\",\n        \"from_user\": \"[*]\",\n        \"from_host\": \"[*]\",\n        \"dialplan\": \"DID Table\",\n        \"domain\": \"admin-only\",\n        \"plan_description\": \"Woody Nixon DID (documentation purposes only)\",\n        \"domain_owner\": \"apidocumentation\",\n        \"domain_description\": \"Sample Data for API Documentation\"\n    },\n    {\n        \"matchrule\": \"sip:17045551008@*\",\n        \"enable\": \"yes\",\n        \"match_from\": \"*\",\n        \"dow\": \"*\",\n        \"tod_from\": \"*\",\n        \"tod_to\": \"*\",\n        \"valid_from\": \"*\",\n        \"valid_to\": \"*\",\n        \"responder\": \"sip:start@to-user\",\n        \"parameter\": \"\",\n        \"to_scheme\": \"sip:\",\n        \"to_user\": \"1008\",\n        \"to_host\": \"apidocumentation\",\n        \"from_name\": \"[*]\",\n        \"from_scheme\": \"sip:\",\n        \"from_user\": \"[*]\",\n        \"from_host\": \"[*]\",\n        \"dialplan\": \"DID Table\",\n        \"domain\": \"admin-only\",\n        \"plan_description\": \"Mikolaj Schroeder DID (documentation purposes only)\",\n        \"domain_owner\": \"apidocumentation\",\n        \"domain_description\": \"Sample Data for API Documentation\"\n    },\n    {\n        \"matchrule\": \"sip:17045551009@*\",\n        \"enable\": \"yes\",\n        \"match_from\": \"*\",\n        \"dow\": \"*\",\n        \"tod_from\": \"*\",\n        \"tod_to\": \"*\",\n        \"valid_from\": \"*\",\n        \"valid_to\": \"*\",\n        \"responder\": \"sip:start@to-user\",\n        \"parameter\": \"\",\n        \"to_scheme\": \"sip:\",\n        \"to_user\": \"1009\",\n        \"to_host\": \"apidocumentation\",\n        \"from_name\": \"[*]\",\n        \"from_scheme\": \"sip:\",\n        \"from_user\": \"[*]\",\n        \"from_host\": \"[*]\",\n        \"dialplan\": \"DID Table\",\n        \"domain\": \"admin-only\",\n        \"plan_description\": \"John Ruiz DID (documentation purposes only)\",\n        \"domain_owner\": \"apidocumentation\",\n        \"domain_description\": \"Sample Data for API Documentation\"\n    },\n    {\n        \"matchrule\": \"sip:17045551010@*\",\n        \"enable\": \"yes\",\n        \"match_from\": \"*\",\n        \"dow\": \"*\",\n        \"tod_from\": \"*\",\n        \"tod_to\": \"*\",\n        \"valid_from\": \"*\",\n        \"valid_to\": \"*\",\n        \"responder\": \"sip:start@to-user\",\n        \"parameter\": \"\",\n        \"to_scheme\": \"sip:\",\n        \"to_user\": \"1010\",\n        \"to_host\": \"apidocumentation\",\n        \"from_name\": \"[*]\",\n        \"from_scheme\": \"sip:\",\n        \"from_user\": \"[*]\",\n        \"from_host\": \"[*]\",\n        \"dialplan\": \"DID Table\",\n        \"domain\": \"admin-only\",\n        \"plan_description\": \"Will Phillips DID (documentation purposes only)\",\n        \"domain_owner\": \"apidocumentation\",\n        \"domain_description\": \"Sample Data for API Documentation\"\n    }\n]"}],"_postman_id":"7a477a2c-c947-4649-a4ab-241c12055ddc"},{"name":"UpdatePhone_Number","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"f50bfbc1-75aa-46de-995f-e5869fbaf99a"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"f8d51a1a-75cd-4fb0-af1b-236b35e7797c"}}],"id":"e1c31663-3c01-4233-bd7b-04b3baceff5e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"dest_domain","value":"{{domain}}","description":"<p>Domain containing Dialplan with Phoneumber to update.</p>\n","type":"text"},{"key":"dialplan","value":"","description":"<p>Dialplan with Phonenumber to update.</p>\n","type":"text"},{"key":"matchrule","value":"","description":"<p>Destination parameter of Dialrule to update.</p>\n","type":"text"},{"key":"enable","value":"","description":"<p>Is the rule enabled (yes/no)</p>\n","type":"text","disabled":true},{"key":"dow","value":"","description":"<p>New days of week value of Dialrule.</p>\n","type":"text","disabled":true},{"key":"tod_from","value":"","description":"<p>New value of Phonenumber.</p>\n","type":"text","disabled":true},{"key":"tod_to","value":"","description":"<p>New value of Phonenumber.</p>\n","type":"text","disabled":true},{"key":"responder","value":"","description":"<p>New value of Phonenumber.</p>\n","type":"text","disabled":true},{"key":"parameter","value":"","description":"<p>New value of Phonenumber.</p>\n","type":"text","disabled":true},{"key":"to_scheme","value":"","description":"<p>New value of Phonenumber.</p>\n","type":"text","disabled":true},{"key":"to_user","value":"","description":"<p>New value of Phonenumber.</p>\n","type":"text","disabled":true},{"key":"to_host","value":"","description":"<p>New value of Phonenumber.</p>\n","type":"text","disabled":true},{"key":"from_name","value":"","description":"<p>New value of Phonenumber.</p>\n","type":"text","disabled":true},{"key":"from_scheme","value":"","description":"<p>New value of Phonenumber.</p>\n","type":"text","disabled":true},{"key":"from_user","value":"","description":"<p>New value of Phonenumber.</p>\n","type":"text","disabled":true},{"key":"from_host","value":"","description":"<p>New value of Phonenumber.</p>\n","type":"text","disabled":true},{"key":"plan_description","value":"","description":"<p>New value of Phonenumber.</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=phonenumber&action=update","description":"<p>Update a Phone Number</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"phonenumber"},{"key":"action","value":"update"}],"variable":[]}},"response":[],"_postman_id":"e1c31663-3c01-4233-bd7b-04b3baceff5e"}],"id":"e3e7f89b-0282-433d-a134-c5aa9850f714","_postman_id":"e3e7f89b-0282-433d-a134-c5aa9850f714","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}}},{"name":"Presence","item":[{"name":"ListPresence","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['presence'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"0507ad4c-9a58-4a47-8ecc-41eb5502ab8d"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"ffc3e449-4a1c-47e7-931d-88b68d97e7b4"}}],"id":"54a74af4-c075-499e-b26c-801549aa0b97","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","description":"<p>Specifies format in which Presences are returned.</p>\n<p>Default value: xml</p>\n","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Identifies Domain from which to list Presences</p>\n","type":"text"},{"key":"last_update","value":"","type":"text","disabled":true},{"key":"limit","value":"","description":"<p>Sets limit for number of Presences returned.</p>\n","type":"text","disabled":true},{"key":"department","value":"","description":"<p>Identifies Department from which to list Presences</p>\n","type":"text","disabled":true},{"key":"order","value":"","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=presence&action=list","description":"<p>List Presences in a Domain</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"presence"},{"key":"action","value":"list"}],"variable":[]}},"response":[{"id":"a8309d8b-7965-4133-81ff-b18fa5038b6b","name":"ListPresence","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","description":"Specifies format in which Presences are returned.\n\nDefault value: xml","type":"text"},{"key":"domain","value":"{{domain}}","description":"Identifies Domain from which to list Presences","type":"text"},{"key":"last_update","value":"","type":"text","disabled":true},{"key":"limit","value":"","description":"Sets limit for number of Presences returned.","type":"text","disabled":true},{"key":"department","value":"","description":"Identifies Department from which to list Presences","type":"text","disabled":true},{"key":"order","value":"","type":"text","disabled":true}]},"url":{"raw":"https://oclnk.co/?object=presence&action=list","host":["https://oclnk.co"],"path":[""],"query":[{"key":"object","value":"presence"},{"key":"action","value":"list"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Jun 2023 20:04:31 GMT"},{"key":"Server","value":"Apache/2.4.48 (Ubuntu)"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Length","value":"402"},{"key":"Keep-Alive","value":"timeout=2, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"first_name\": \"Evan\",\n        \"last_name\": \"Buchanan\",\n        \"group\": \"Sales\",\n        \"user\": \"1004\",\n        \"uid\": \"1004@apidocumentation\",\n        \"domain\": \"apidocumentation\",\n        \"presence\": \"inactive\",\n        \"site\": \"Corporate\",\n        \"message\": \"\",\n        \"email\": \"\"\n    },\n    {\n        \"first_name\": \"system-vm\",\n        \"last_name\": \"General Mailbox\",\n        \"group\": \"\",\n        \"user\": \"1099\",\n        \"uid\": \"1099@apidocumentation\",\n        \"domain\": \"apidocumentation\",\n        \"presence\": \"available\",\n        \"site\": \"Corporate\",\n        \"email\": \"\"\n    },\n    {\n        \"first_name\": \"Cai\",\n        \"last_name\": \"Guzman\",\n        \"group\": \"Billing\",\n        \"user\": \"1001\",\n        \"uid\": \"1001@apidocumentation\",\n        \"domain\": \"apidocumentation\",\n        \"presence\": \"inactive\",\n        \"site\": \"Corporate\",\n        \"message\": \"\",\n        \"email\": \"\"\n    },\n    {\n        \"first_name\": \"Juan\",\n        \"last_name\": \"Juarez\",\n        \"group\": \"Service\",\n        \"user\": \"1005\",\n        \"uid\": \"1005@apidocumentation\",\n        \"domain\": \"apidocumentation\",\n        \"presence\": \"available\",\n        \"site\": \"Corporate\",\n        \"message\": \"\",\n        \"email\": \"\"\n    },\n    {\n        \"first_name\": \"Lewis\",\n        \"last_name\": \"Montgomery\",\n        \"group\": \"Service\",\n        \"user\": \"1006\",\n        \"uid\": \"1006@apidocumentation\",\n        \"domain\": \"apidocumentation\",\n        \"presence\": \"inactive\",\n        \"site\": \"Corporate\",\n        \"message\": \"\",\n        \"email\": \"\"\n    },\n    {\n        \"first_name\": \"Woody\",\n        \"last_name\": \"Nixon\",\n        \"group\": \"\",\n        \"user\": \"1007\",\n        \"uid\": \"1007@apidocumentation\",\n        \"domain\": \"apidocumentation\",\n        \"presence\": \"inactive\",\n        \"site\": \"Corporate\",\n        \"message\": \"\",\n        \"email\": \"\"\n    },\n    {\n        \"first_name\": \"Will\",\n        \"last_name\": \"Phillips\",\n        \"group\": \"\",\n        \"user\": \"1010\",\n        \"uid\": \"1010@apidocumentation\",\n        \"domain\": \"apidocumentation\",\n        \"presence\": \"inactive\",\n        \"site\": \"Corporate\",\n        \"message\": \"\",\n        \"email\": \"\"\n    },\n    {\n        \"first_name\": \"John\",\n        \"last_name\": \"Ruiz\",\n        \"group\": \"\",\n        \"user\": \"1009\",\n        \"uid\": \"1009@apidocumentation\",\n        \"domain\": \"apidocumentation\",\n        \"presence\": \"inactive\",\n        \"site\": \"Corporate\",\n        \"message\": \"\",\n        \"email\": \"\"\n    },\n    {\n        \"first_name\": \"Mikolaj\",\n        \"last_name\": \"Schroeder\",\n        \"group\": \"\",\n        \"user\": \"1008\",\n        \"uid\": \"1008@apidocumentation\",\n        \"domain\": \"apidocumentation\",\n        \"presence\": \"inactive\",\n        \"site\": \"Corporate\",\n        \"message\": \"\",\n        \"email\": \"\"\n    },\n    {\n        \"first_name\": \"Ameer\",\n        \"last_name\": \"Schultz\",\n        \"group\": \"Billing\",\n        \"user\": \"1002\",\n        \"uid\": \"1002@apidocumentation\",\n        \"domain\": \"apidocumentation\",\n        \"presence\": \"inactive\",\n        \"site\": \"Corporate\",\n        \"message\": \"\",\n        \"email\": \"lking@telware.com\"\n    },\n    {\n        \"first_name\": \"Keanu\",\n        \"last_name\": \"Wright\",\n        \"group\": \"Sales\",\n        \"user\": \"1003\",\n        \"uid\": \"1003@apidocumentation\",\n        \"domain\": \"apidocumentation\",\n        \"presence\": \"inactive\",\n        \"site\": \"Corporate\",\n        \"message\": \"\",\n        \"email\": \"\"\n    }\n]"}],"_postman_id":"54a74af4-c075-499e-b26c-801549aa0b97"}],"id":"9c9e53fc-ae3d-4df8-915c-53a208d58839","_postman_id":"9c9e53fc-ae3d-4df8-915c-53a208d58839","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}}},{"name":"Queued","item":[{"name":"ReadQueued","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"queue_name\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Name of Callqueue object.&lt;\\/p&gt;\"","    },","    \"domain\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Domain to which Callqueue belongs.&lt;\\/p&gt;\"","    },","    \"description\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Description of Callqueue object.&lt;\\/p&gt;\"","    },","    \"default_user\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Default user of Callqueue object.&lt;\\/p&gt;\"","    },","    \"queue_option\": {","        \"type\": \"string\",","        \"description\": \"\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['queued'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"9a2ac9df-1475-4d8a-b66f-658f286cd327"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"0e890dc1-f615-4d85-bdc5-fc1e0cdcbfd1"}}],"id":"a847d2a4-3390-4c91-9f97-73bbe9cdbb9d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Domain containing Callqueues from which to read queued calls.</p>\n","type":"text"},{"key":"queue","value":"","description":"<p>Callqueue from which to read queued calls.</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=queued&action=read","description":"<p>Read queued calls in a Callqueue</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"queued"},{"key":"action","value":"read"}],"variable":[]}},"response":[],"_postman_id":"a847d2a4-3390-4c91-9f97-73bbe9cdbb9d"},{"name":"UpdateQueuedQueued","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"2239fc6b-be10-455e-a378-8f499b436fb2"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"069cf279-440f-435a-9dca-f0ce4f38ca5a"}}],"id":"e070bcd7-310d-4ca1-ad44-b73c867f6dda","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Domain containing Callqueues from which to read queued calls.</p>\n","type":"text"},{"key":"queue","value":"","description":"<p>Callqueue from which to read queued calls.</p>\n","type":"text"},{"key":"prioritized","value":"","description":"<p>prioritized being yes/no to allow for a call to be of higher level priority</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=queued&action=update","description":"<p>Update a queued call</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"queued"},{"key":"action","value":"update"}],"variable":[]}},"response":[],"_postman_id":"e070bcd7-310d-4ca1-ad44-b73c867f6dda"}],"id":"b91c77b2-338d-462f-a5da-758fef66e9f0","_postman_id":"b91c77b2-338d-462f-a5da-758fef66e9f0","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}}},{"name":"Recording","item":[{"name":"CreateRecording","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"15f815c4-4caf-47fd-99ab-06474fbda117"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"e125793d-9735-4da5-bda0-783342cefa19"}}],"id":"e627095a-32d9-42ca-a87a-03464f7c414b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"aor","value":"","type":"text"}]},"url":"https://oclnk.co/?object=recording&action=create","description":"<p>Create Recordings</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"recording"},{"key":"action","value":"create"}],"variable":[]}},"response":[],"_postman_id":"e627095a-32d9-42ca-a87a-03464f7c414b"},{"name":"DeleteRecording","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"665f166c-97db-420c-bd59-ee0ba5a971cc"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"38717448-0366-433f-8cd9-5751bb3aebf5"}}],"id":"2c880da9-76ab-4489-8265-60dcf85f58bd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"aor","value":"","type":"text"}]},"url":"https://oclnk.co/?object=recording&action=delete","description":"<p>Delete Recordings</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"recording"},{"key":"action","value":"delete"}],"variable":[]}},"response":[],"_postman_id":"2c880da9-76ab-4489-8265-60dcf85f58bd"},{"name":"ReadRecording","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"status\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Status of the recording&lt;\\/p&gt;\"","    },","    \"call_id\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Call-ID associated with the recording&lt;\\/p&gt;\"","    },","    \"time_open\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Date &amp;amp; Time that the recording started&lt;\\/p&gt;\"","    },","    \"time_close\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Date &amp;amp; Time that the recording stopped&lt;\\/p&gt;\"","    },","    \"duration\": {","        \"type\": \"number\",","        \"description\": \"&lt;p&gt;Duration of the recording in seconds&lt;\\/p&gt;\"","    },","    \"size\": {","        \"type\": \"number\",","        \"description\": \"&lt;p&gt;Size of converted file in KByte&lt;\\/p&gt;\"","    },","    \"size_3\": {","        \"type\": \"number\",","        \"description\": \"&lt;p&gt;If set this is suggesting the file is located in a remote storage archive. Will be the file size in bytes&lt;\\/p&gt;\"","    },","    \"time\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Time reference for the URL&lt;\\/p&gt;\"","    },","    \"geo_id\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Corresponding Orig Call ID, if call_id is for a Geo Tunneled entry&lt;\\/p&gt;\"","    },","    \"url\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;URL to Retrieve the Recording&lt;\\/p&gt;\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['recording'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"446e3044-fbe5-40f4-b9a8-0158037a1b9e"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"2f3f99bc-4a57-43a2-bd69-e00a92f06d29"}}],"id":"73e7a708-a00e-4472-a4ab-17c7c9895ea2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"orig_callid","value":"n4pqcaad1r2p3cbprgts","description":"<p>Origination Call-ID.</p>\n","type":"text"},{"key":"term_callid","value":"20230608152733020797-21fcfa0d6d7741cdfffc132a42b85f78","description":"<p>Termination Call-ID.</p>\n","type":"text"},{"key":"callid","value":"20230608152733020797-21fcfa0d6d7741cdfffc132a42b85f78","description":"<p>Termination Call-ID.</p>\n","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Domain for the call being requested.</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=recording&action=read","description":"<p>Read Recordings</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"recording"},{"key":"action","value":"read"}],"variable":[]}},"response":[{"id":"b6933ad9-1160-47af-adde-ce2ccebddedf","name":"ReadRecording","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"orig_callid","value":"n4pqcaad1r2p3cbprgts","description":"Origination Call-ID.","type":"text"},{"key":"term_callid","value":"20230608152733020797-21fcfa0d6d7741cdfffc132a42b85f78","description":"Termination Call-ID.","type":"text"},{"key":"callid","value":"20230608152733020797-21fcfa0d6d7741cdfffc132a42b85f78","description":"Termination Call-ID.","type":"text"},{"key":"domain","value":"{{domain}}","description":"Domain for the call being requested.","type":"text"}]},"url":{"raw":"https://oclnk.co/?object=recording&action=read","host":["https://oclnk.co"],"path":[""],"query":[{"key":"object","value":"recording"},{"key":"action","value":"read"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 08 Jun 2023 15:29:59 GMT"},{"key":"Server","value":"Apache/2.4.48 (Ubuntu)"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Length","value":"329"},{"key":"Keep-Alive","value":"timeout=2, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"converted\",\n    \"call_id\": \"n4pqcaad1r2p3cbprgts\",\n    \"time_open\": \"2023-06-08 15:27:33\",\n    \"time_close\": \"2023-06-08 15:28:03\",\n    \"file_3\": \"\",\n    \"size_3\": \"0\",\n    \"service_id_3\": \"\",\n    \"case_id\": \"1002@apidocumentation\",\n    \"time\": \"2023-06-08 15:29:59\",\n    \"duration\": \"30\",\n    \"url\": \"RECORDING_URL\",\n    \"geo_id\": \"na\",\n    \"size\": \"0\"\n}"}],"_postman_id":"73e7a708-a00e-4472-a4ab-17c7c9895ea2"},{"name":"UpdateRecording","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"time\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Time reference for the URL&lt;\\/p&gt;\"","    }","}","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"5ae8c4ae-420c-4d93-93aa-f0c263a99caf"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"290e8d45-3538-4af1-8c2d-ca39b5963240"}}],"id":"516f295b-b606-4b52-bc7b-a6c330f4cc2b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"aor","value":"{{aor}}","type":"text"},{"key":"status","value":"","description":"<p>Status of the recording</p>\n","type":"text"},{"key":"call_id","value":"","description":"<p>Call-ID associated with the recording</p>\n","type":"text"},{"key":"time_open","value":"","description":"<p>Date &amp; Time that the recording started</p>\n","type":"text"},{"key":"time_close","value":"","description":"<p>Date &amp; Time that the recording stopped</p>\n","type":"text"},{"key":"duration","value":"","description":"<p>Duration of the recording in seconds</p>\n","type":"text"},{"key":"size","value":"","description":"<p>Size of converted file in KByte</p>\n","type":"text"},{"key":"geo_id","value":"","description":"<p>Corresponding Orig Call ID, if call_id is for a Geo Tunneled entry</p>\n","type":"text"},{"key":"url","value":"","description":"<p>URL to Retrieve the Recording</p>\n","type":"text"},{"key":"transcription","value":"","description":"<p>User transcription configuration</p>\n","type":"text"},{"key":"sentiment","value":"","description":"<p>User transcription/sentiment configuration</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=recording&action=update","description":"<p>Update Recordings</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"recording"},{"key":"action","value":"update"}],"variable":[]}},"response":[],"_postman_id":"516f295b-b606-4b52-bc7b-a6c330f4cc2b"}],"id":"227ca376-8cb1-4e43-b85d-0e74fe72410e","_postman_id":"227ca376-8cb1-4e43-b85d-0e74fe72410e","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}}},{"name":"Route","item":[{"name":"CountRouteRoute","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"total\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Total number of Routes&lt;\\/p&gt;\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple([jsonData], schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"c8cbf911-3bf5-4f1c-8853-c102bbe6ca40"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"5c883835-3dd3-4d7a-b8ad-62ae4cc257bb"}}],"id":"51ac5503-499d-44cc-8276-ffe950e5bfc6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"forward_request_matchrule","value":"","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=route&action=count","description":"<p>Count Route</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"route"},{"key":"action","value":"count"}],"variable":[]}},"response":[{"id":"4dfa8590-dcc3-409c-8fbc-ba1e9a2bdb9d","name":"CountRouteRoute","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"forward_request_matchrule","value":"","type":"text","disabled":true}]},"url":{"raw":"https://oclnk.co/?object=route&action=count","host":["https://oclnk.co"],"path":[""],"query":[{"key":"object","value":"route"},{"key":"action","value":"count"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 08 Jun 2023 15:58:07 GMT"},{"key":"Server","value":"Apache/2.4.48 (Ubuntu)"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"12"},{"key":"Keep-Alive","value":"timeout=2, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"total\": 43\n}"}],"_postman_id":"51ac5503-499d-44cc-8276-ffe950e5bfc6"},{"name":"CountRouteConnRoute","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"total\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Total number of Route Connections .&lt;\\/p&gt;\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple([jsonData], schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"9ec99ea7-8453-4d3f-83e0-c92beddadfba"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"51bcbe50-5a06-419b-8a57-d7adc5f4a313"}}],"id":"00dcf0ee-414f-48cb-8570-5d76b66f7fb3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"territory","value":"{{territory}}","description":"<p>Territory/Reseller for which to count route connections.</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=routecon&action=count","description":"<p>Count Route Connections</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"routecon"},{"key":"action","value":"count"}],"variable":[]}},"response":[{"id":"728bebd2-63ac-4436-af22-a033e658e7a0","name":"CountRouteConnRoute","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"territory","value":"{{territory}}","description":"Territory/Reseller for which to count route connections.","type":"text","disabled":true}]},"url":{"raw":"https://oclnk.co/?object=routecon&action=count","host":["https://oclnk.co"],"path":[""],"query":[{"key":"object","value":"routecon"},{"key":"action","value":"count"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 08 Jun 2023 15:58:37 GMT"},{"key":"Server","value":"Apache/2.4.48 (Ubuntu)"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"12"},{"key":"Keep-Alive","value":"timeout=2, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"total\": 90\n}"}],"_postman_id":"00dcf0ee-414f-48cb-8570-5d76b66f7fb3"},{"name":"CreateRouteRoute","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"ee6dcc0f-b9d4-4c26-9ed6-3dc85d900324"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"ce6f3da0-e26b-41f0-bb1e-30d409b33f4e"}}],"id":"602f7683-835d-4bb0-801f-10b92886956e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"forward_request_matchrule","value":"","type":"text"}]},"url":"https://oclnk.co/?object=route&action=create","description":"<p>Create a Route</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"route"},{"key":"action","value":"create"}],"variable":[]}},"response":[],"_postman_id":"602f7683-835d-4bb0-801f-10b92886956e"},{"name":"DeleteRouteRoute","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"1b5810fe-a82c-4e8f-a426-95c5786ec84c"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"cb46a9be-bb86-4c70-b6f2-11751cf91412"}}],"id":"6a56ab8d-6531-453c-846d-7b023213b32c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"forward_request_matchrule","value":"","type":"text"}]},"url":"https://oclnk.co/?object=route&action=delete","description":"<p>Delete a route</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"route"},{"key":"action","value":"delete"}],"variable":[]}},"response":[],"_postman_id":"6a56ab8d-6531-453c-846d-7b023213b32c"},{"name":"DeleteRouteConnRoute","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"id":"0f2fc2d1-755b-479f-9e2e-8b084cb300e7"}},{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"79923940-176f-4a17-9899-86d4b427057c"}}],"id":"c296989f-058d-4092-a222-9ba17e9cd69f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"match_to","value":"{{deleterouteconnroute_match_to}}","type":"text"},{"key":"con_index","value":"{{deleterouteconnroute_con_index}}","type":"text"}]},"url":"https://oclnk.co/?object=routecon&action=delete","description":"<p>Delete a Route Connection</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"routecon"},{"key":"action","value":"delete"}],"variable":[]}},"response":[],"_postman_id":"c296989f-058d-4092-a222-9ba17e9cd69f"},{"name":"ReadRouteRoute","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"forward_request_matchrule\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"match_from\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"hostname\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"route_name\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"route_status\": {","        \"type\": \"string\",","        \"description\": \"\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['route'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"f6d059cd-1324-4d09-8090-1c60cfbab1c1"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"596e252b-5558-460d-bcb2-99642dd1fb5b"}}],"id":"55523b7d-4742-4650-93cc-67eeddad01e7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"start","value":"","type":"text","disabled":true},{"key":"limit","value":"","type":"text","disabled":true},{"key":"forward_request_matchrule","value":"","type":"text","disabled":true},{"key":"match_from","value":"","type":"text","disabled":true},{"key":"hostname","value":"","type":"text","disabled":true},{"key":"route_name","value":"","type":"text","disabled":true},{"key":"route_status","value":"","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=route&action=read","description":"<p>Read Routes</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"route"},{"key":"action","value":"read"}],"variable":[]}},"response":[{"id":"1f960054-5615-42a7-888c-03935cf8246f","name":"ReadRouteRoute","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"start","value":"","type":"text","disabled":true},{"key":"limit","value":"","type":"text","disabled":true},{"key":"forward_request_matchrule","value":"","type":"text","disabled":true},{"key":"match_from","value":"","type":"text","disabled":true},{"key":"hostname","value":"","type":"text","disabled":true},{"key":"route_name","value":"","type":"text","disabled":true},{"key":"route_status","value":"","type":"text","disabled":true}]},"url":{"raw":"https://oclnk.co/?object=route&action=read","host":["https://oclnk.co"],"path":[""],"query":[{"key":"object","value":"route"},{"key":"action","value":"read"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 08 Jun 2023 16:02:52 GMT"},{"key":"Server","value":"Apache/2.4.48 (Ubuntu)"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Length","value":"958"},{"key":"Keep-Alive","value":"timeout=2, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"forward_request_matchrule\": \"sip:1??????????@*.apidocumentation\",\n        \"match_from\": \"*\",\n        \"class\": \"*\",\n        \"hostname\": \"*\",\n        \"route_status\": \"yes\",\n        \"route_name\": \"US Domestic Call- For Reseller TelWare\",\n        \"route_option\": \"fixed\"\n    },\n    {\n        \"forward_request_matchrule\": \"sip:88881??????????@*\",\n        \"match_from\": \"*\",\n        \"class\": \"*\",\n        \"hostname\": \"*\",\n        \"route_status\": \"yes\",\n        \"route_name\": \"Fax Trunk\",\n        \"route_option\": \"fixed\"\n    },\n    {\n        \"forward_request_matchrule\": \"sip:user-911@*\",\n        \"match_from\": \"*\",\n        \"class\": \"*\",\n        \"hostname\": \"*\",\n        \"route_status\": \"yes\",\n        \"route_name\": \"E911 User 911 Connection\",\n        \"route_option\": \"fixed\"\n    },\n    {\n        \"forward_request_matchrule\": \"sip:user-933@*\",\n        \"match_from\": \"*\",\n        \"class\": \"*\",\n        \"hostname\": \"*\",\n        \"route_status\": \"yes\",\n        \"route_name\": \"E911 User Test Connection\",\n        \"route_option\": \"fixed\"\n    }\n]"}],"_postman_id":"55523b7d-4742-4650-93cc-67eeddad01e7"},{"name":"ReadRouteConRoute","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"match_to\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"match_from\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"hostname\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"route_name\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"route_status\": {","        \"type\": \"string\",","        \"description\": \"\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['route'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"120ae3cd-9462-4b07-a02f-8f4197f492b0"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"13bf96f6-a8e3-4790-bef0-fdb5d1bbff82"}}],"id":"5f85e1b1-853d-410b-9e5d-ba0a569c0e2f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"start","value":"","type":"text","disabled":true},{"key":"limit","value":"","type":"text","disabled":true},{"key":"match_to","value":"","type":"text"},{"key":"match_from","value":"","type":"text","disabled":true},{"key":"hostname","value":"","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=routecon&action=read","description":"<p>Read Route Connections</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"routecon"},{"key":"action","value":"read"}],"variable":[]}},"response":[{"id":"4085f4a5-3793-4bc3-b8d5-64e04b7243f8","name":"ReadRouteConRoute","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"start","value":"","type":"text","disabled":true},{"key":"limit","value":"","type":"text","disabled":true},{"key":"match_to","value":"","type":"text"},{"key":"match_from","value":"","type":"text","disabled":true},{"key":"hostname","value":"","type":"text","disabled":true}]},"url":{"raw":"https://oclnk.co/?object=routecon&action=read","host":["https://oclnk.co"],"path":[""],"query":[{"key":"object","value":"routecon"},{"key":"action","value":"read"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 08 Jun 2023 16:10:49 GMT"},{"key":"Server","value":"Apache/2.4.48 (Ubuntu)"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Length","value":"1280"},{"key":"Keep-Alive","value":"timeout=2, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"match_to\": \"sip:011?@*\",\n        \"match_from\": \"*\",\n        \"class\": \"*\",\n        \"hostname\": \"*\",\n        \"con_index\": 1,\n        \"con_user\": \"[*]\",\n        \"con_host\": \"[*]\",\n        \"weight\": 10,\n        \"cost\": 0\n    },\n    {\n        \"match_to\": \"sip:1??????????@*\",\n        \"match_from\": \"*\",\n        \"class\": \"*\",\n        \"hostname\": \"myonecloud.com\",\n        \"con_index\": 4,\n        \"con_user\": \"[*]\",\n        \"con_host\": \"[*]\",\n        \"weight\": \"\",\n        \"cost\": \"\"\n    },\n]"}],"_postman_id":"5f85e1b1-853d-410b-9e5d-ba0a569c0e2f"},{"name":"UpdateRouteRoute","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"id":"35d0f3c2-d25f-4b1b-85cd-05f2cf9e6e6e"}},{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"8224e387-5066-4d42-bfd2-8546f04b115a"}}],"id":"a0bbcbf0-1530-403b-87c0-0b44786ef0e4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"forward_request_matchrule","value":"{{updaterouteroute_forward_request_matchrule}}","type":"text"}]},"url":"https://oclnk.co/?object=route&action=update","description":"<p>Update a Route</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"route"},{"key":"action","value":"update"}],"variable":[]}},"response":[],"_postman_id":"a0bbcbf0-1530-403b-87c0-0b44786ef0e4"},{"name":"UpdateRouteConnRoute","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"id":"eb47ca92-51f1-421d-9a9c-1240521cbf46"}},{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"7f4a00d2-8d2a-41ca-8844-5d71373587e0"}}],"id":"0de72278-91a9-4f6e-a4e2-6fcc8a6cbd6d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"match_to","value":"{{updaterouteconnroute_match_to}}","type":"text"},{"key":"con_index","value":"{{updaterouteconnroute_con_index}}","type":"text"},{"key":"con_host","value":"{{updaterouteconnroute_con_host}}","type":"text"}]},"url":"https://oclnk.co/?object=routecon&action=update","description":"<p>Update a Route Connection</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"routecon"},{"key":"action","value":"update"}],"variable":[]}},"response":[],"_postman_id":"0de72278-91a9-4f6e-a4e2-6fcc8a6cbd6d"},{"name":"createRouteConRoute","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"id":"48e1d31b-b5cb-4f21-a8b8-9de1b19fbb0e"}},{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"329dfde7-a242-4256-a321-52b59b0e49fb"}}],"id":"63fb81a7-1ed8-4e97-b779-5ce8168a4ded","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"match_to","value":"{{createrouteconroute_match_to}}","type":"text"},{"key":"con_index","value":"{{createrouteconroute_con_index}}","type":"text"},{"key":"con_host","value":"{{createrouteconroute_con_host}}","type":"text"}]},"url":"https://oclnk.co/?object=routecon&action=create","description":"<p>Create a Route Connection</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"routecon"},{"key":"action","value":"create"}],"variable":[]}},"response":[],"_postman_id":"63fb81a7-1ed8-4e97-b779-5ce8168a4ded"}],"id":"e032209b-8c1e-4e15-8b46-ed05558ff0b3","_postman_id":"e032209b-8c1e-4e15-8b46-ed05558ff0b3","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}}},{"name":"SMS_Number","item":[{"name":"CountSMS_Number","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [\"number\"],","        \"properties\": {","    \"number\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;The count of SMS enabled phonenumber&lt;\\/p&gt;\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple([jsonData], schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"3f26637f-1be2-4ea9-8123-c74de3419027"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"414224c4-90ab-4baa-9668-65904eb70e66"}}],"id":"ebec3dea-aa21-4015-9c76-6dbf585e2c62","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Name of domain from which user belongs.</p>\n","type":"text"},{"key":"dest","value":"","description":"<p>Name of User or Queue associated with the number, set to \"*\" for all in domain</p>\n","type":"text","disabled":true},{"key":"number","value":"","description":"<p>The SMS enabled phonenumber</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=smsnumber&action=count","description":"<p>Count numbers with SMS support</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"smsnumber"},{"key":"action","value":"count"}],"variable":[]}},"response":[{"id":"81fd9fa9-bd1d-495c-8cf8-77847204612f","name":"CountSMS_Number","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","description":"Name of domain from which user belongs.","type":"text"},{"key":"dest","value":"","description":"Name of User or Queue associated with the number, set to \"*\" for all in domain","type":"text","disabled":true},{"key":"number","value":"","description":"The SMS enabled phonenumber","type":"text","disabled":true}]},"url":{"raw":"https://oclnk.co/?object=smsnumber&action=count","host":["https://oclnk.co"],"path":[""],"query":[{"key":"object","value":"smsnumber"},{"key":"action","value":"count"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 08 Jun 2023 16:18:21 GMT"},{"key":"Server","value":"Apache/2.4.48 (Ubuntu)"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"1"},{"key":"Keep-Alive","value":"timeout=2, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"4"}],"_postman_id":"ebec3dea-aa21-4015-9c76-6dbf585e2c62"},{"name":"CreateSMS_Number","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"001d2370-d6f2-4a98-a275-12a8b5802e17"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"013d295e-3966-4aaa-8bbb-fc8d57616e9f"}}],"id":"90e97a77-5909-46cd-b021-ab7bd2f41931","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{createsms_number_domain}}","description":"<p>Name of domain from which number belongs.</p>\n","type":"text"},{"key":"number","value":"{{createsms_number_number}}","description":"<p>The phone number for SMS</p>\n","type":"text"},{"key":"application","value":"{{createsms_number_application}}","description":"<p>Application to be used with number.</p>\n","type":"text"},{"key":"dest","value":"{{createsms_number_dest}}","description":"<p>Destination for inbound SMS, often a user ext.</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=smsnumber&action=create","description":"<p>Create SMS Number</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"smsnumber"},{"key":"action","value":"create"}],"variable":[]}},"response":[],"_postman_id":"90e97a77-5909-46cd-b021-ab7bd2f41931"},{"name":"ReadSMS_Number","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [\"number\"],","        \"properties\": {","    \"number\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;The SMS enabled phonenumber&lt;\\/p&gt;\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['sms_number'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"ef107bde-9841-4c0e-b0ea-0009532fe29d"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"f9646a3c-eb90-496a-bf4a-b9f10815dbf4"}}],"id":"d49035de-e9db-4b7b-a285-f1a1955055f6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Name of domain from which number belongs.</p>\n","type":"text"},{"key":"dest","value":"","description":"<p>Ext of User or Queue associated with the number, set to \"*\" for all in domain.</p>\n","type":"text"},{"key":"number","value":"","description":"<p>The SMS enabled phonenumber</p>\n","type":"text","disabled":true},{"key":"number_LIKE","value":"","description":"<p>The SMS enabled phonenumber (LIKE)</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=smsnumber&action=read","description":"<p>Read numbers with SMS support</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"smsnumber"},{"key":"action","value":"read"}],"variable":[]}},"response":[{"id":"5837eab6-8924-4bbb-af42-4605586e5b23","name":"ReadSMS_Number","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","description":"Name of domain from which number belongs.","type":"text"},{"key":"dest","value":"1002","description":"Ext of User or Queue associated with the number, set to \"*\" for all in domain.","type":"text"},{"key":"number","value":"","description":"The SMS enabled phonenumber","type":"text","disabled":true},{"key":"number_LIKE","value":"","description":"The SMS enabled phonenumber (LIKE)","type":"text","disabled":true}]},"url":{"raw":"https://oclnk.co/?object=smsnumber&action=read","host":["https://oclnk.co"],"path":[""],"query":[{"key":"object","value":"smsnumber"},{"key":"action","value":"read"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 08 Jun 2023 16:19:08 GMT"},{"key":"Server","value":"Apache/2.4.48 (Ubuntu)"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Length","value":"103"},{"key":"Keep-Alive","value":"timeout=2, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"number\": \"17045551002\",\n        \"application\": \"user\",\n        \"domain\": \"apidocumentation\",\n        \"dest\": \"1002\",\n        \"carrier\": \"\"\n    }\n]"}],"_postman_id":"d49035de-e9db-4b7b-a285-f1a1955055f6"},{"name":"UpdateSMS_Number","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"4a4aa1b3-c7be-4ab2-b03f-862f5f670060"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"4042206b-9837-48f0-bd00-0998c4f321ed"}}],"id":"b3f13634-1749-474d-8311-6f9e1e11d140","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{updatesms_number_domain}}","description":"<p>Name of domain from which number belongs.</p>\n","type":"text"},{"key":"number","value":"{{updatesms_number_number}}","description":"<p>The phone number for SMS</p>\n","type":"text"},{"key":"application","value":"{{updatesms_number_application}}","description":"<p>Application to be used with number.</p>\n","type":"text"},{"key":"dest","value":"{{updatesms_number_dest}}","description":"<p>Destination for inbound SMS, often a user ext.</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=smsnumber&action=update","description":"<p>Update SMS Number</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"smsnumber"},{"key":"action","value":"update"}],"variable":[]}},"response":[],"_postman_id":"b3f13634-1749-474d-8311-6f9e1e11d140"}],"id":"cb927dd6-c1f4-4845-a0ef-0d951ea79309","_postman_id":"cb927dd6-c1f4-4845-a0ef-0d951ea79309","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}}},{"name":"Site","item":[{"name":"ListSite","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['site'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"952a8295-ef36-4878-80c2-e63a5df9d7e0"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"50933297-7ccb-4fab-b347-2950b19e04ec"}}],"id":"86465346-2905-42c1-9522-69ebd60bc512","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Identifies Domain for which to list sites.</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=site&action=list","description":"<p>List Sites in a Domain</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"site"},{"key":"action","value":"list"}],"variable":[]}},"response":[{"id":"41a5a7f8-87b7-407f-938b-8e7ac1000055","name":"ListSite","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","description":"Identifies Domain for which to list sites.","type":"text"}]},"url":{"raw":"https://oclnk.co/?object=site&action=list","host":["https://oclnk.co"],"path":[""],"query":[{"key":"object","value":"site"},{"key":"action","value":"list"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 08 Jun 2023 16:24:41 GMT"},{"key":"Server","value":"Apache/2.4.48 (Ubuntu)"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"27"},{"key":"Keep-Alive","value":"timeout=2, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    \"Corporate\",\n    \"NorthOffice\"\n]"}],"_postman_id":"86465346-2905-42c1-9522-69ebd60bc512"}],"id":"071411ed-5d45-478f-b3ef-90697d19ea7e","_postman_id":"071411ed-5d45-478f-b3ef-90697d19ea7e","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}}},{"name":"Sites","item":[{"name":"CountSitesSites","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"total\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Total number of Sites in the specified domain.&lt;\\/p&gt;\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple([jsonData], schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"579e59b6-c202-440c-a040-5655b2dc9f05"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"1234204a-7b84-436b-a68a-5e05c9aab2e8"}}],"id":"e06a866e-e233-4974-a9f0-c0c241f54951","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Domain for which to count sites</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=site&action=count","description":"<p>Count Sites</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"site"},{"key":"action","value":"count"}],"variable":[]}},"response":[{"id":"b73ecc48-44ad-4393-b50d-7e92e68f9efd","name":"CountSitesSites","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","description":"Domain for which to count sites","type":"text"}]},"url":{"raw":"https://oclnk.co/?object=site&action=count","host":["https://oclnk.co"],"path":[""],"query":[{"key":"object","value":"site"},{"key":"action","value":"count"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 08 Jun 2023 16:22:01 GMT"},{"key":"Server","value":"Apache/2.4.48 (Ubuntu)"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"11"},{"key":"Keep-Alive","value":"timeout=2, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"total\": 2\n}"}],"_postman_id":"e06a866e-e233-4974-a9f0-c0c241f54951"},{"name":"ReadSites","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['sites'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"f2fa52b9-f3d1-42c7-8289-955a29d48ed9"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"75d7aa61-89a4-4981-a645-6a1d7db3756c"}}],"id":"07f09a4a-55ac-44dc-81a9-97a57b5a56ab","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Identifies Domain from which to read info by name.</p>\n","type":"text"},{"key":"site","value":"{{readsites_site}}","description":"<p>Identifies site from which to read info.</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=site&action=read","description":"<p>Read info on a specific site</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"site"},{"key":"action","value":"read"}],"variable":[]}},"response":[{"id":"395307a1-fbce-4b5f-a28a-a7dc0587d39b","name":"ReadSites","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","description":"Identifies Domain from which to read info by name.","type":"text"},{"key":"site","value":"{{readsites_site}}","description":"Identifies site from which to read info.","type":"text","disabled":true}]},"url":{"raw":"https://oclnk.co/?object=site&action=read","host":["https://oclnk.co"],"path":[""],"query":[{"key":"object","value":"site"},{"key":"action","value":"read"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 08 Jun 2023 16:27:41 GMT"},{"key":"Server","value":"Apache/2.4.48 (Ubuntu)"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Length","value":"582"},{"key":"Keep-Alive","value":"timeout=2, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"dir\": \"\",\n        \"user\": \"NorthOffice\",\n        \"domain\": \"apidocumentation\",\n        \"message\": \"\",\n        \"vmail_provisioned\": \"yes\",\n        \"accept\": \"yes\",\n        \"reject\": \"yes\",\n        \"screen\": \"yes\",\n        \"no_answer_timeout\": \"25\",\n        \"first_name\": \"NorthOffice\",\n        \"last_name\": \"Site\",\n        \"group\": \"\",\n        \"site\": \"\",\n        \"subscriber_login\": \"NorthOffice@apidocumentation\",\n        \"subscriber_pin\": \"82419731\",\n        \"language\": \"en_us\",\n        \"data_limit\": \"10000\",\n        \"call_limit\": \"0\",\n        \"time_zone\": \"US/Eastern\",\n        \"dir_anc\": \"no\",\n        \"directory_order\": \"1\",\n        \"vmail_greeting\": \"1\",\n        \"vmail_enabled\": \"no\",\n        \"rcv_broadcast\": \"yes\",\n        \"rej_anony\": \"no\",\n        \"vmail_annc_time\": \"\",\n        \"vmail_annc_cid\": \"\",\n        \"vmail_sort_lifo\": \"no\",\n        \"vmail_fwd_to\": \"\",\n        \"vmail_notify\": \"\",\n        \"vmail_notify_enabled\": \"\",\n        \"email\": \"noreply@myonecloud.com\",\n        \"ntfy_missed_call\": \"no\",\n        \"ntfy_data_limit\": \"no\",\n        \"dial_plan\": \"apidocumentation\",\n        \"dial_policy\": \"US and Canada\",\n        \"callid_nmbr\": \"7045984700\",\n        \"callid_name\": \"OneCloud\",\n        \"callid_emgr\": \"7045984700\",\n        \"area_code\": \"704\",\n        \"presence\": \"inactive\",\n        \"dir_list\": \"no\",\n        \"date_created\": \"2023-06-08 16:24:28\",\n        \"srv_code\": \"system-site\",\n        \"scope\": \"No Portal\",\n        \"last_update\": \"2023-06-08 16:24:30\",\n        \"gauSession\": \"0\",\n        \"pwd_hash\": \"\",\n        \"vmail_transcribe\": \"google\",\n        \"address_id\": \"a-6476316b6afea\",\n        \"hide_call_recordings\": \"no\",\n        \"rmoh\": \"\",\n        \"moh_interval\": \"0\"\n    }\n]"}],"_postman_id":"07f09a4a-55ac-44dc-81a9-97a57b5a56ab"},{"name":"ReadBillingSites","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"current_user\": {","        \"type\": \"number\",","        \"description\": \"&lt;p&gt;The current user count that the Domain can have.&lt;\\/p&gt;\"","    },","    \"current_queues\": {","        \"type\": \"number\",","        \"description\": \"&lt;p&gt;The current call queue count that the Domain can have.&lt;\\/p&gt;\"","    },","    \"current_registered_device\": {","        \"type\": \"number\",","        \"description\": \"&lt;p&gt;The current count of registered devices.&lt;\\/p&gt;\"","    },","    \"current_device\": {","        \"type\": \"number\",","        \"description\": \"&lt;p&gt;The current total device count.&lt;\\/p&gt;\"","    },","    \"current_calls\": {","        \"type\": \"number\",","        \"description\": \"&lt;p&gt;The current count of active calls in the site&lt;\\/p&gt;\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['sites'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"b32eb8fc-4ef8-4f51-a033-41b5516a5766"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"f8d2be52-8d3f-42e6-95bf-db86a372adf8"}}],"id":"2f1b560b-6296-4741-b67b-e7aff23b53ef","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Identifies Domain from which to read info by name.</p>\n","type":"text"},{"key":"site","value":"","description":"<p>Identifies site from which to read info.</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=site&action=read&billing=yes","description":"<p>Read info on a specific site with billing info</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"site"},{"key":"action","value":"read"},{"key":"billing","value":"yes"}],"variable":[]}},"response":[{"id":"15a33124-e1d0-49ab-b34e-146b540553b8","name":"ReadBillingSites","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","description":"Identifies Domain from which to read info by name.","type":"text"},{"key":"site","value":"","description":"Identifies site from which to read info.","type":"text"}]},"url":{"raw":"https://oclnk.co/?object=site&action=read&billing=yes","host":["https://oclnk.co"],"path":[""],"query":[{"key":"object","value":"site"},{"key":"action","value":"read"},{"key":"billing","value":"yes"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 08 Jun 2023 16:28:16 GMT"},{"key":"Server","value":"Apache/2.4.48 (Ubuntu)"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Length","value":"309"},{"key":"Keep-Alive","value":"timeout=2, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"user\": \"NorthOffice\",\n        \"domain\": \"apidocumentation\",\n        \"vmail_provisioned\": \"yes\",\n        \"no_answer_timeout\": \"25\",\n        \"language\": \"en_us\",\n        \"data_limit\": \"10000\",\n        \"call_limit\": \"0\",\n        \"time_zone\": \"US/Eastern\",\n        \"dial_plan\": \"apidocumentation\",\n        \"dial_policy\": \"US and Canada\",\n        \"callid_nmbr\": \"7045984700\",\n        \"callid_name\": \"OneCloud\",\n        \"callid_emgr\": \"7045984700\",\n        \"area_code\": \"704\",\n        \"last_update\": \"2023-06-08 16:24:30\",\n        \"address_id\": \"a-6476316b6afea\",\n        \"current_users\": 0,\n        \"current_queues\": 0,\n        \"current_registered_device\": \"0\",\n        \"current_device\": \"0\",\n        \"current_calls\": 0\n    }\n]"}],"_postman_id":"2f1b560b-6296-4741-b67b-e7aff23b53ef"}],"id":"96a2d52b-bfd1-4c52-a116-6c12b943b9b3","_postman_id":"96a2d52b-bfd1-4c52-a116-6c12b943b9b3","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}}},{"name":"Subscriber","item":[{"name":"CountSubscriber","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"total\": {","        \"type\": \"number\",","        \"description\": \"&lt;p&gt;Total number of Subscribers in the specified domain.&lt;\\/p&gt;\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple([jsonData], schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"ca3d3e5e-4ab6-4d82-9d72-71ac532b3da6"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"dac85477-f79f-4ad2-938f-d0a78ef8d6b1"}}],"id":"44541454-06fd-4430-a87a-0b5491e18eb9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Identifies domain containing Subscribers to count.</p>\n","type":"text"},{"key":"territory","value":"{{territory}}","description":"<p>Identifies Subscribers to count by territory.</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=subscriber&action=count","description":"<p>Count Users in a Domain</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"subscriber"},{"key":"action","value":"count"}],"variable":[]}},"response":[{"id":"2a77b1d5-0626-4472-9c80-3db8bf25437d","name":"CountSubscriber","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","description":"Identifies domain containing Subscribers to count.","type":"text"},{"key":"territory","value":"{{territory}}","description":"Identifies Subscribers to count by territory.","type":"text","disabled":true}]},"url":{"raw":"https://oclnk.co/?object=subscriber&action=count","host":["https://oclnk.co"],"path":[""],"query":[{"key":"object","value":"subscriber"},{"key":"action","value":"count"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 08 Jun 2023 16:29:47 GMT"},{"key":"Server","value":"Apache/2.4.48 (Ubuntu)"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"12"},{"key":"Keep-Alive","value":"timeout=2, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"total\": 18\n}"}],"_postman_id":"44541454-06fd-4430-a87a-0b5491e18eb9"},{"name":"CreateSubscriber","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"8795fd82-bc61-44c5-9dee-20d5a7e8c289"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"11324990-32bb-497a-bf4a-3b48d83b5547"}}],"id":"076de1c4-b4f5-4a23-a154-472a874861bb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"uid","value":"{{uid}}","description":"<p>User ID of new User.</p>\n","type":"text","disabled":true},{"key":"user","value":"{{user}}","description":"<p>Extension of new User. Cannot be changed once set.</p>\n","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Domain where new User will be created.</p>\n","type":"text"},{"key":"subscriber_login","value":"","description":"<p>Login for the User. If not set, user@domain will be used for login.</p>\n","type":"text","disabled":true},{"key":"first_name","value":"","description":"<p>First name of new User.</p>\n","type":"text","disabled":true},{"key":"last_name","value":"","description":"<p>Last name of new User.</p>\n","type":"text","disabled":true},{"key":"passwordLength","value":"","description":"<p>Length for Random new password</p>\n","type":"text","disabled":true},{"key":"pwd_hash","value":"","description":"<p>Portal password for new User.</p>\n","type":"text","disabled":true},{"key":"subscriber_pin","value":"","description":"<p>Voicemail PIN for new User.</p>\n","type":"text","disabled":true},{"key":"dir_anc","value":"","description":"<p>Determines if the user will be in any dial by name directory options.</p>\n<p>Allowed values: yes, no</p>\n","type":"text","disabled":true},{"key":"dir_list","value":"","description":"<p>Determines if the user will be in shown in any visual company directories</p>\n<p>Allowed values: yes, no</p>\n","type":"text","disabled":true},{"key":"message","value":"","description":"<p>A status message for a user</p>\n","type":"text","disabled":true},{"key":"pwd","value":"","description":"<p>The password for the user to use on the vmail pin or portal access.</p>\n","type":"text","disabled":true},{"key":"group","value":"","description":"<p>The department or group for this user.</p>\n","type":"text","disabled":true},{"key":"site","value":"","description":"<p>The site for this user.</p>\n","type":"text","disabled":true},{"key":"dir","value":"","description":"<p>A 3 digit number string matching the fist three digits of the user's first or last name.</p>\n","type":"text","disabled":true},{"key":"email","value":"","description":"<p>email address for the user.</p>\n","type":"text","disabled":true},{"key":"vmail_provisioned","value":"","description":"<p>Voicemail box allowed for the user. This one is generally not user configurable.</p>\n<p>Allowed values: yes, no</p>\n","type":"text","disabled":true},{"key":"vmail_frd_to","value":"","description":"<p>A comma-separated list of email addresses to distribute voicemails to.</p>\n<p>Allowed values: yes, no</p>\n","type":"text","disabled":true},{"key":"vmail_enabled","value":"","description":"<p>Voicemail enabled for the user. This one is generally user configurable.</p>\n<p>Allowed values: yes, no</p>\n","type":"text","disabled":true},{"key":"vmail_greeting","value":"","description":"<p>Current voicemail greeting index in use.</p>\n","type":"text","disabled":true},{"key":"vmail_notify_enabled","value":"","description":"<p>Voicemail emails enabled for the user</p>\n<p>Allowed values: yes, no</p>\n","type":"text","disabled":true},{"key":"vmail_notify","value":"","description":"<p>Option to send new voicemails to email</p>\n<p>Allowed values: yes, attnew, attsave, atttrash</p>\n","type":"text","disabled":true},{"key":"vmail_annc_time","value":"","description":"<p>Announce the time during vmail playback.</p>\n","type":"text","disabled":true},{"key":"vmail_annc_cid","value":"","description":"<p>Announce the caller id during vmail playback.</p>\n","type":"text","disabled":true},{"key":"vmail_sort_lifo","value":"","description":"<p>Sort by last in first out during vmail playback</p>\n","type":"text","disabled":true},{"key":"vmail_transcribe","value":"","description":"<p>Transcribe voicemails (when enabled by snapped in services).</p>\n","type":"text","disabled":true},{"key":"data_limit","value":"","description":"<p>Max size of audio for a user in Kb, example \"5000\" would be roughly 5MB.</p>\n","type":"text","disabled":true},{"key":"call_limit","value":"","description":"<p>Max active calls for the user.</p>\n","type":"text","disabled":true},{"key":"dial_plan","value":"","description":"<p>The dial plan for the user.</p>\n","type":"text","disabled":true},{"key":"dial_policy","value":"","description":"<p>The dial permission for the user.</p>\n","type":"text","disabled":true},{"key":"area_code","value":"","description":"<p>A 3 digit area code for the user.</p>\n","type":"text","disabled":true},{"key":"callid_name","value":"","description":"<p>A callerid Name for CNAM purposes</p>\n","type":"text","disabled":true},{"key":"time_zone","value":"","description":"<p>Timezone for this user. Valid values are in \"TZ\" column of this chart, <a href=\"https://en.wikipedia.org/wiki/List_of_tz_database_time_zones\">https://en.wikipedia.org/wiki/List_of_tz_database_time_zones</a></p>\n","type":"text","disabled":true},{"key":"scope","value":"","description":"<p>The Scope for this user.</p>\n<p>Allowed values: \"Basic User\", \"Office Manager\", \"Call Center Agent\", \"Call Center Supervisor\", \"No Portal\"</p>\n","type":"text","disabled":true},{"key":"rej_anony","value":"","description":"<p>Reject any inbound anonymous call.</p>\n<p>Allowed values: yes, no</p>\n","type":"text","disabled":true},{"key":"screen","value":"","description":"<p>Allow call screening application</p>\n<p>Allowed values: yes, no</p>\n","type":"text","disabled":true},{"key":"srv_code","value":"","description":"<p>Configurable service code used for 3rd party purposes. some system level user tagged with system-X where x is configurable.</p>\n<p>Allowed values: yes, no</p>\n","type":"text","disabled":true},{"key":"ntfy_missed_call","value":"","description":"<p>Send email when call is missed.</p>\n<p>Allowed values: yes, no</p>\n","type":"text","disabled":true},{"key":"ntfy_data_limit","value":"","description":"<p>Send email when data limit is reached.</p>\n<p>Allowed values: yes, no</p>\n","type":"text","disabled":true},{"key":"language","value":"","description":"<p>Localized language for this user.</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=subscriber&action=create","description":"<p>Create a new User</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"subscriber"},{"key":"action","value":"create"}],"variable":[]}},"response":[],"_postman_id":"076de1c4-b4f5-4a23-a154-472a874861bb"},{"name":"DeleteSubscriber","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"34d4ff7c-6ba3-4126-8602-65143cd9778f"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"ba3fc2ac-88c8-419e-9b5f-28a2819cb788"}}],"id":"fec3fad1-98df-4f58-ad6c-a946dc2ad69f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"uid","value":"{{uid}}","description":"<p>Identifies User to delete by User ID.</p>\n","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Identifies User to delete by the domain to which a User belongs.</p>\n","type":"text","disabled":true},{"key":"user","value":"{{user}}","description":"<p>Identifies User to delete by extension.</p>\n","type":"text","disabled":true},{"key":"termination_match","value":"","type":"text","disabled":true},{"key":"device","value":"","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=subscriber&action=delete","description":"<p>Delete an existing User</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"subscriber"},{"key":"action","value":"delete"}],"variable":[]}},"response":[],"_postman_id":"fec3fad1-98df-4f58-ad6c-a946dc2ad69f"},{"name":"ListSubscriber","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"domain\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"user\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"first_name\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"last_name\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"group\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"dir\": {","        \"type\": \"string\",","        \"description\": \"\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['subscriber'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"72c86673-a3fc-41d7-9bfa-00ca678ae177"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"ae1a4599-e72b-48c3-abd8-c3daca86e2f3"}}],"id":"a9dc53d7-4cb1-476a-9f0f-593f2727b0c5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Domain containing Users to list.</p>\n","type":"text"},{"key":"fields","value":"","description":"<p>Comma delimited string of specific return fields to list.</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=subscriber&action=list","description":"<p>List public info on Users</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"subscriber"},{"key":"action","value":"list"}],"variable":[]}},"response":[{"id":"682fa902-e27e-4eaa-8ede-0ecfafdfec73","name":"ListSubscriber","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","description":"Domain containing Users to list.","type":"text"},{"key":"fields","value":"","description":"Comma delimited string of specific return fields to list.","type":"text","disabled":true}]},"url":{"raw":"https://oclnk.co/?object=subscriber&action=list","host":["https://oclnk.co"],"path":[""],"query":[{"key":"object","value":"subscriber"},{"key":"action","value":"list"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 08 Jun 2023 16:36:17 GMT"},{"key":"Server","value":"Apache/2.4.48 (Ubuntu)"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Length","value":"356"},{"key":"Keep-Alive","value":"timeout=2, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"user\": \"1001\",\n        \"domain\": \"apidocumentation\",\n        \"first_name\": \"Cai\",\n        \"last_name\": \"Guzman\",\n        \"group\": \"Billing\",\n        \"site\": \"Corporate\",\n        \"dir\": \"489\"\n    },\n    {\n        \"user\": \"1002\",\n        \"domain\": \"apidocumentation\",\n        \"first_name\": \"Ameer\",\n        \"last_name\": \"Schultz\",\n        \"group\": \"Billing\",\n        \"site\": \"Corporate\",\n        \"dir\": \"724\"\n    },\n    {\n        \"user\": \"1003\",\n        \"domain\": \"apidocumentation\",\n        \"first_name\": \"Keanu\",\n        \"last_name\": \"Wright\",\n        \"group\": \"Sales\",\n        \"site\": \"Corporate\",\n        \"dir\": \"974\"\n    },\n    {\n        \"user\": \"1004\",\n        \"domain\": \"apidocumentation\",\n        \"first_name\": \"Evan\",\n        \"last_name\": \"Buchanan\",\n        \"group\": \"Sales\",\n        \"site\": \"Corporate\",\n        \"dir\": \"282\"\n    },\n    {\n        \"user\": \"1005\",\n        \"domain\": \"apidocumentation\",\n        \"first_name\": \"Juan\",\n        \"last_name\": \"Juarez\",\n        \"group\": \"Service\",\n        \"site\": \"Corporate\",\n        \"dir\": \"582\"\n    },\n    {\n        \"user\": \"1006\",\n        \"domain\": \"apidocumentation\",\n        \"first_name\": \"Lewis\",\n        \"last_name\": \"Montgomery\",\n        \"group\": \"Service\",\n        \"site\": \"Corporate\",\n        \"dir\": \"666\"\n    },\n    {\n        \"user\": \"1007\",\n        \"domain\": \"apidocumentation\",\n        \"first_name\": \"Woody\",\n        \"last_name\": \"Nixon\",\n        \"group\": \"\",\n        \"site\": \"Corporate\",\n        \"dir\": \"649\"\n    },\n    {\n        \"user\": \"1008\",\n        \"domain\": \"apidocumentation\",\n        \"first_name\": \"Mikolaj\",\n        \"last_name\": \"Schroeder\",\n        \"group\": \"\",\n        \"site\": \"Corporate\",\n        \"dir\": \"724\"\n    },\n    {\n        \"user\": \"1009\",\n        \"domain\": \"apidocumentation\",\n        \"first_name\": \"John\",\n        \"last_name\": \"Ruiz\",\n        \"group\": \"\",\n        \"site\": \"Corporate\",\n        \"dir\": \"784\"\n    },\n    {\n        \"user\": \"1010\",\n        \"domain\": \"apidocumentation\",\n        \"first_name\": \"Will\",\n        \"last_name\": \"Phillips\",\n        \"group\": \"\",\n        \"site\": \"Corporate\",\n        \"dir\": \"744\"\n    },\n    {\n        \"user\": \"1099\",\n        \"domain\": \"apidocumentation\",\n        \"first_name\": \"system-vm\",\n        \"last_name\": \"General Mailbox\",\n        \"group\": \"\",\n        \"site\": \"Corporate\",\n        \"dir\": \"436\"\n    }\n]"}],"_postman_id":"a9dc53d7-4cb1-476a-9f0f-593f2727b0c5"},{"name":"ReadSubscriber","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"domain\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"user\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"first_name\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"last_name\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"subscriber_login\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"subscriber_pin\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"pwd_hash\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"group\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"site\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"dir\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"email\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"presence\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"message\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"accept\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"reject\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"vmail_provisioned\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"vmail_enabled\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"vmail_greeting\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"vmail_notify\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"vmail_annc_time\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"vmail_annc_cid\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"vmail_sort_lifo\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"vmail_transcribe\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"vmail_fwd_to\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"data_limit\": {","        \"type\": \"number\",","        \"description\": \"\"","    },","    \"call_limit\": {","        \"type\": \"number\",","        \"description\": \"\"","    },","    \"dial_plan\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"dial_policy\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"area_code\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"callid_name\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"callid_nmbr\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"callid_emgr\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"no_answer_timeout\": {","        \"type\": \"number\",","        \"description\": \"\"","    },","    \"time_zone\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"dir_anc\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"dir_list\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"date_created\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"scope\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"rej_anony\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"directory_order\": {","        \"type\": \"number\",","        \"description\": \"\"","    },","    \"screen\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"srv_code\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"ntfy_missed_call\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"ntfy_data_limit\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"language\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"gauSession\": {","        \"type\": \"number\",","        \"description\": \"\"","    },","    \"last_update\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"account_status\": {","        \"type\": \"string\",","        \"description\": \"\"","    },","    \"storage_available\": {","        \"type\": \"string\",","        \"description\": \"\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['subscriber'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"ae83abf4-b5c8-4a64-bd9d-4ef450d3bc9a"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"78cfecb0-e2f1-4f4f-9fda-ae1a3551eb81"}}],"id":"20fb3edb-4c9d-4a68-ad19-b90b86adcd8a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"uid","value":"{{uid}}","description":"<p>Identifies User to read by User ID.</p>\n","type":"text","disabled":true},{"key":"user","value":"{{user}}","description":"<p>Identifies a User to read by User ID when a Domain is specified.</p>\n","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Domain containing Users to read.</p>\n","type":"text"},{"key":"login","value":"","description":"<p>Identifies User to read by login info.</p>\n","type":"text","disabled":true},{"key":"limit","value":"","description":"<p>Identifies number of Users to read when a Domain is specified.</p>\n","type":"text","disabled":true},{"key":"first_name","value":"","description":"<p>Identifies User to read by first name.</p>\n","type":"text","disabled":true},{"key":"last_name","value":"","description":"<p>Identifies User to read by last name.</p>\n","type":"text","disabled":true},{"key":"group","value":"","type":"text","disabled":true},{"key":"fields","value":"","description":"<p>Comma separated list of fields to filter the return data.</p>\n","type":"text","disabled":true},{"key":"srv_code","value":"","description":"<p>Allows for searching for specific service codes.</p>\n","type":"text","disabled":true},{"key":"email","value":"","type":"text","disabled":true},{"key":"dir","value":"","type":"text","disabled":true},{"key":"filter_users","value":"","type":"text","disabled":true},{"key":"directory_match","value":"","type":"text","disabled":true},{"key":"owner","value":"","type":"text","disabled":true},{"key":"scope","value":"","description":"<p>Scope to filter the results by. Can be single value or comma seperated list.</p>\n","type":"text","disabled":true},{"key":"start","value":"","type":"text","disabled":true},{"key":"sort","value":"","description":"<p>Sorts User output by the specified parameter. Example: domain</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=subscriber&action=read","description":"<p>Read info on existing Users</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"subscriber"},{"key":"action","value":"read"}],"variable":[]}},"response":[{"id":"5411548d-742b-404d-954f-05546466c7a2","name":"ReadSubscriber","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"uid","value":"{{uid}}","description":"Identifies User to read by User ID.","type":"text","disabled":true},{"key":"user","value":"{{user}}","description":"Identifies a User to read by User ID when a Domain is specified.","type":"text"},{"key":"domain","value":"{{domain}}","description":"Domain containing Users to read.","type":"text"},{"key":"login","value":"","description":"Identifies User to read by login info.","type":"text","disabled":true},{"key":"limit","value":"","description":"Identifies number of Users to read when a Domain is specified.","type":"text","disabled":true},{"key":"first_name","value":"","description":"Identifies User to read by first name.","type":"text","disabled":true},{"key":"last_name","value":"","description":"Identifies User to read by last name.","type":"text","disabled":true},{"key":"group","value":"","type":"text","disabled":true},{"key":"fields","value":"","description":"Comma separated list of fields to filter the return data.","type":"text","disabled":true},{"key":"srv_code","value":"","description":"Allows for searching for specific service codes.","type":"text","disabled":true},{"key":"email","value":"","type":"text","disabled":true},{"key":"dir","value":"","type":"text","disabled":true},{"key":"filter_users","value":"","type":"text","disabled":true},{"key":"directory_match","value":"","type":"text","disabled":true},{"key":"owner","value":"","type":"text","disabled":true},{"key":"scope","value":"","description":"Scope to filter the results by. Can be single value or comma seperated list.","type":"text","disabled":true},{"key":"start","value":"","type":"text","disabled":true},{"key":"sort","value":"","description":"Sorts User output by the specified parameter. Example: domain","type":"text","disabled":true}]},"url":{"raw":"https://oclnk.co/?object=subscriber&action=read","host":["https://oclnk.co"],"path":[""],"query":[{"key":"object","value":"subscriber"},{"key":"action","value":"read"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 08 Jun 2023 16:37:44 GMT"},{"key":"Server","value":"Apache/2.4.48 (Ubuntu)"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Length","value":"690"},{"key":"Keep-Alive","value":"timeout=2, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"dir\": \"724\",\n        \"user\": \"1002\",\n        \"domain\": \"apidocumentation\",\n        \"message\": \"\",\n        \"vmail_provisioned\": \"yes\",\n        \"accept\": \"yes\",\n        \"reject\": \"yes\",\n        \"screen\": \"yes\",\n        \"no_answer_timeout\": \"25\",\n        \"first_name\": \"Ameer\",\n        \"last_name\": \"Schultz\",\n        \"group\": \"Billing\",\n        \"site\": \"Corporate\",\n        \"subscriber_login\": \"1002@apidocumentation\",\n        \"subscriber_pin\": \"381002\",\n        \"language\": \"en_us\",\n        \"data_limit\": \"10000\",\n        \"call_limit\": \"0\",\n        \"time_zone\": \"America/New_York\",\n        \"dir_anc\": \"yes\",\n        \"directory_order\": \"1\",\n        \"vmail_greeting\": \"1\",\n        \"vmail_enabled\": \"yes\",\n        \"rcv_broadcast\": \"yes\",\n        \"rej_anony\": \"no\",\n        \"vmail_annc_time\": \"\",\n        \"vmail_annc_cid\": \"\",\n        \"vmail_sort_lifo\": \"no\",\n        \"vmail_fwd_to\": \"\",\n        \"vmail_notify\": \"attnew\",\n        \"vmail_notify_enabled\": \"yes\",\n        \"email\": \"lking@telware.com\",\n        \"ntfy_missed_call\": \"no\",\n        \"ntfy_data_limit\": \"no\",\n        \"dial_plan\": \"apidocumentation\",\n        \"dial_policy\": \"US and Canada\",\n        \"callid_nmbr\": \"8009219680\",\n        \"callid_name\": \"OneCloud\",\n        \"callid_emgr\": \"8009219680\",\n        \"area_code\": \"704\",\n        \"presence\": \"inactive\",\n        \"dir_list\": \"yes\",\n        \"date_created\": \"2023-05-30 17:43:16\",\n        \"srv_code\": \"\",\n        \"scope\": \"Basic User\",\n        \"last_update\": \"2023-06-08 15:38:38\",\n        \"gauSession\": \"0\",\n        \"pwd_hash\": \"$2y$10$7HUAaS0lKt6HJJFVKOynneL064Krv.5RANrTiJn.EUfxe.o2BLpUu\",\n        \"vmail_transcribe\": \"no\",\n        \"address_id\": \"a-6476316b6afea\",\n        \"hide_call_recordings\": \"no\",\n        \"rmoh\": \"\",\n        \"moh_interval\": \"0\",\n        \"account_status\": \"standard\",\n        \"sso_ids\": [],\n        \"mfa\": []\n    }\n]"}],"_postman_id":"20fb3edb-4c9d-4a68-ad19-b90b86adcd8a"},{"name":"UpdateSubscriber","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"685c0ce7-fc47-42d5-a2ff-a176375fc222"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"5bfd4058-666b-4c03-8961-506b38644890"}}],"id":"a0c471e0-738e-447c-b59b-56a2a036e131","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"uid","value":"{{updatesubscriber_uid}}","description":"<p>Identifies User to update by User ID. A User's UID cannot be updated once it is created. To update a User's UID a new User must be created. Example: user@domain</p>\n","type":"text"},{"key":"user","value":"{{updatesubscriber_user}}","description":"<p>Identifies User to update by extension. A User's extension cannot be updated once it is created. To update a User's extension a new User must be created.</p>\n","type":"text","disabled":true},{"key":"domain","value":"{{updatesubscriber_domain}}","description":"<p>Identifies User to update by Domain. A User's Domain cannot be updated once it is created.</p>\n","type":"text","disabled":true},{"key":"first_name","value":"{{updatesubscriber_first_name}}","description":"<p>Identifies User to update by first name.</p>\n","type":"text","disabled":true},{"key":"last_name","value":"{{updatesubscriber_last_name}}","description":"<p>Identifies User to update by last name.</p>\n","type":"text","disabled":true},{"key":"dir_anc","value":"{{updatesubscriber_dir_anc}}","description":"<p>Determines if the user will be in any dial by name directory options.</p>\n<p>Allowed values: yes, no</p>\n","type":"text","disabled":true},{"key":"dir_list","value":"{{updatesubscriber_dir_list}}","description":"<p>Determines if the user will be in shown in any visual company directories</p>\n<p>Allowed values: yes, no</p>\n","type":"text","disabled":true},{"key":"message","value":"{{updatesubscriber_message}}","description":"<p>A status message for a user</p>\n","type":"text","disabled":true},{"key":"subscriber_login","value":"{{updatesubscriber_subscriber_login}}","description":"<p>The login for the use via the portal or API</p>\n","type":"text","disabled":true},{"key":"pwd","value":"{{updatesubscriber_pwd}}","description":"<p>The password for the user to use on the vmail pin.</p>\n","type":"text","disabled":true},{"key":"current_password","value":"{{updatesubscriber_current_password}}","description":"<p>The password for the user to use on the vmail pin.</p>\n","type":"text","disabled":true},{"key":"pwd_hash","value":"{{updatesubscriber_pwd_hash}}","description":"<p>The password for portal access.</p>\n","type":"text","disabled":true},{"key":"group","value":"{{updatesubscriber_group}}","description":"<p>The department or group for this user.</p>\n","type":"text","disabled":true},{"key":"dir","value":"{{updatesubscriber_dir}}","description":"<p>A 3 digit number string matching the fist three digits of the user's first or last name.</p>\n","type":"text","disabled":true},{"key":"email","value":"{{updatesubscriber_email}}","description":"<p>email address for the user.</p>\n","type":"text","disabled":true},{"key":"vmail_provisioned","value":"{{updatesubscriber_vmail_provisioned}}","description":"<p>Voicemail box allowed for the user. This one is generally not user configurable.</p>\n<p>Allowed values: yes, no</p>\n","type":"text","disabled":true},{"key":"vmail_frd_to","value":"{{updatesubscriber_vmail_frd_to}}","description":"<p>A comma-separated list of email addresses to distribute voicemails to.</p>\n<p>Allowed values: yes, no</p>\n","type":"text","disabled":true},{"key":"vmail_enabled","value":"{{updatesubscriber_vmail_enabled}}","description":"<p>Voicemail enabled for the user. This one is generally user configurable.</p>\n<p>Allowed values: yes, no</p>\n","type":"text","disabled":true},{"key":"vmail_greeting","value":"{{updatesubscriber_vmail_greeting}}","description":"<p>Current voicemail greeting index in use.</p>\n","type":"text","disabled":true},{"key":"vmail_notify_enabled","value":"{{updatesubscriber_vmail_notify_enabled}}","description":"<p>Voicemail emails enabled for the user</p>\n<p>Allowed values: yes, no</p>\n","type":"text","disabled":true},{"key":"vmail_notify","value":"{{updatesubscriber_vmail_notify}}","description":"<p>Option to send new voicemails to email</p>\n<p>Allowed values: yes, attnew, attsave, atttrash</p>\n","type":"text","disabled":true},{"key":"vmail_annc_time","value":"{{updatesubscriber_vmail_annc_time}}","description":"<p>Announce the time during vmail playback.</p>\n","type":"text","disabled":true},{"key":"vmail_annc_cid","value":"{{updatesubscriber_vmail_annc_cid}}","description":"<p>Announce the caller id during vmail playback.</p>\n","type":"text","disabled":true},{"key":"vmail_sort_lifo","value":"{{updatesubscriber_vmail_sort_lifo}}","description":"<p>Sort by last in first out during vmail playback</p>\n","type":"text","disabled":true},{"key":"vmail_transcribe","value":"{{updatesubscriber_vmail_transcribe}}","description":"<p>Transcribe voicemails (when enabled by snapped in services).</p>\n","type":"text","disabled":true},{"key":"data_limit","value":"{{updatesubscriber_data_limit}}","description":"<p>Max size of audio for a user in Kb, example \"5000\" would be roughly 5MB.</p>\n","type":"text","disabled":true},{"key":"call_limit","value":"{{updatesubscriber_call_limit}}","description":"<p>Max active calls for the user.</p>\n","type":"text","disabled":true},{"key":"dial_plan","value":"{{updatesubscriber_dial_plan}}","description":"<p>The dial plan for the user.</p>\n","type":"text","disabled":true},{"key":"dial_policy","value":"{{updatesubscriber_dial_policy}}","description":"<p>The dial permission for the user.</p>\n","type":"text","disabled":true},{"key":"area_code","value":"{{updatesubscriber_area_code}}","description":"<p>A 3 digit area code for the user.</p>\n","type":"text","disabled":true},{"key":"callid_name","value":"{{updatesubscriber_callid_name}}","description":"<p>A callerid Name for CNAM purposes</p>\n","type":"text","disabled":true},{"key":"callid_nmbr","value":"{{updatesubscriber_callid_nmbr}}","description":"<p>A callerid for this user on outbound calls.</p>\n","type":"text","disabled":true},{"key":"callid_emgr","value":"{{updatesubscriber_callid_emgr}}","description":"<p>A callerid for this user on emergency calls.</p>\n","type":"text","disabled":true},{"key":"no_answer_timeout","value":"{{updatesubscriber_no_answer_timeout}}","description":"<p>The timeout for his user between user features and before going to voicemail</p>\n","type":"text","disabled":true},{"key":"time_zone","value":"{{updatesubscriber_time_zone}}","description":"<p>Timezone for this user. Valid values are in \"TZ\" column of this chart, <a href=\"https://en.wikipedia.org/wiki/List_of_tz_database_time_zones\">https://en.wikipedia.org/wiki/List_of_tz_database_time_zones</a></p>\n","type":"text","disabled":true},{"key":"scope","value":"{{updatesubscriber_scope}}","description":"<p>The Scope for this user.</p>\n<p>Allowed values: \"Basic User\", \"Office Manager\", \"Call Center Agent\", \"Call Center Supervisor\", \"No Portal\"</p>\n","type":"text","disabled":true},{"key":"rej_anony","value":"{{updatesubscriber_rej_anony}}","description":"<p>Reject any inbound anonymous call.</p>\n<p>Allowed values: yes, no</p>\n","type":"text","disabled":true},{"key":"screen","value":"{{updatesubscriber_screen}}","description":"<p>Allow call screening application</p>\n<p>Allowed values: yes, no</p>\n","type":"text","disabled":true},{"key":"srv_code","value":"{{updatesubscriber_srv_code}}","description":"<p>Configurable service code used for 3rd party purposes. some system level user tagged with system-X where x is configurable.</p>\n<p>Allowed values: yes, no</p>\n","type":"text","disabled":true},{"key":"ntfy_missed_call","value":"{{updatesubscriber_ntfy_missed_call}}","description":"<p>Send email when call is missed.</p>\n<p>Allowed values: yes, no</p>\n","type":"text","disabled":true},{"key":"ntfy_data_limit","value":"{{updatesubscriber_ntfy_data_limit}}","description":"<p>Send email when data limit is reached.</p>\n<p>Allowed values: yes, no</p>\n","type":"text","disabled":true},{"key":"language","value":"{{updatesubscriber_language}}","description":"<p>Send email when data limit is reached.</p>\n<p>Allowed values: yes, no</p>\n","type":"text","disabled":true},{"key":"hide_call_recordings","value":"{{updatesubscriber_hide_call_recordings}}","description":"<p>determines if user's call recordings will be hidden at the domain level</p>\n<p>Allowed values: yes, no</p>\n","type":"text","disabled":true},{"key":"rcv_broadcast","value":"{{updatesubscriber_rcv_broadcast}}","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=subscriber&action=update","description":"<p>Update an existing User</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"subscriber"},{"key":"action","value":"update"}],"variable":[]}},"response":[],"_postman_id":"a0c471e0-738e-447c-b59b-56a2a036e131"}],"id":"ed00ad22-fed6-41f3-8dbe-ae6f2e827add","_postman_id":"ed00ad22-fed6-41f3-8dbe-ae6f2e827add","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}}},{"name":"Subscription","item":[{"name":"CreateSubscription","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"subscription_id\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;A unique ID corresponding to the new subscription. Save and use for any updates or deletes of the subscription.&lt;\\/p&gt;\"","    }","}","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"4af09536-068b-46b2-9a54-6401b777d068"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"0aa4ac0f-bbb7-46b6-be86-2e8d202ec622"}}],"id":"21a4ed4c-75dd-478c-a145-3f513aa24270","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"model","value":"","description":"<p>The model of the subscription you wish to monitor. Options include...\n\"call\" - object that will send active call updates. Expect a unique data set per term callid and term device. A json field \"remove\" set to \"yes\" will be added when the call is completed.\n\"call_origid\" - similar to \"call\", but its unique entry per orig_callid. This will generate less data on things like sim ring and transfers.\n\"subscriber\" - updates to the user objects for the requested data.\n\"presence\" - similar to \"subscriber\" but only updates on presence and status message updates. Available for more scopes.\n\"auditlog\" - will stream any changes to the audit log, adds, updates and deletes for all objects.\n\"message\" - used for Chat and SMS applications, will stream posts on new message requests.\n\"agent\" - will update when status of call center agents change.</p>\n","type":"text"},{"key":"post_url","value":"","description":"<p>A full url in either http or https format where new data will be sent to. Must be publicly accessible.</p>\n","type":"text"},{"key":"expires","value":"","description":"<p>Optional expires time in standard myql datetime format to allow for extended subscriptions. Default expires time is the expires time of the oauth_token.</p>\n","type":"text","disabled":true},{"key":"domain","value":"{{domain}}","description":"<p>The domain to limit the subscription for. Needed for Reseller or lower scopes.</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=event&action=create","description":"<p>Create a new event subscriptions</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"event"},{"key":"action","value":"create"}],"variable":[]}},"response":[],"_postman_id":"21a4ed4c-75dd-478c-a145-3f513aa24270"},{"name":"DeleteSubscription","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"0ab1a628-c40b-40f2-9e21-1044cce02081"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"de6ebc78-bbf9-4437-a93d-7712d353ae96"}}],"id":"71d20f0a-4f30-4d66-a651-dc2feb9a9247","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"subscription_id","value":"","description":"<p>A unique ID corresponding to the subscription.</p>\n","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>The domain owning the subscription</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=event&action=delete","description":"<p>Delete a  event subscriptions</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"event"},{"key":"action","value":"delete"}],"variable":[]}},"response":[],"_postman_id":"71d20f0a-4f30-4d66-a651-dc2feb9a9247"},{"name":"ReadSubscription","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['subscription'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"67977b3a-ad20-46cc-ad4e-c81a6a5b8376"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"1c99cdfe-33d1-427d-9fcd-11925b3e8a60"}}],"id":"be7f5ae2-4da0-42ad-8abb-0dab35fed8ad","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"subscription_id","value":"","description":"<p>A unique ID corresponding to the subscription.</p>\n","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>filter by the domain of the subscription</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=event&action=read","description":"<p>read a event subscriptions</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"event"},{"key":"action","value":"read"}],"variable":[]}},"response":[],"_postman_id":"be7f5ae2-4da0-42ad-8abb-0dab35fed8ad"}],"id":"f1ebc797-280c-477c-90e0-1cdd8cb42a6f","_postman_id":"f1ebc797-280c-477c-90e0-1cdd8cb42a6f","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}}},{"name":"Time_Frame","item":[{"name":"CreateTime_Frame","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"f32bf239-6497-4f89-9600-4655d6ac72c1"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"bd006453-0dfc-4fe0-935b-eb44a07c0553"}}],"id":"8248cb84-fd67-43a5-a342-129605bb0864","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Domain of the timeframe wanting to be created.</p>\n","type":"text"},{"key":"uid","value":"{{uid}}","description":"<p>UID that the timeframe is for/used by. Can also be the owner. Typically user@domain</p>\n","type":"text"},{"key":"user","value":"{{user}}","description":"<p>User that the timeframe is for/used by. Can also be the owner.</p>\n","type":"text"},{"key":"owner","value":"","description":"<p>Owner of the timeframe. Can also be the user. Use * when all users should see this timeframe.</p>\n","type":"text"},{"key":"owner_domain","value":"","description":"<p>Domain of the owner of the timeframe.</p>\n","type":"text"},{"key":"enable","value":"","description":"<p>Whether the timeframe is enabled for the owner.</p>\n","type":"text","disabled":true},{"key":"order","value":"","description":"<p>Defaults to 0.</p>\n","type":"text","disabled":true},{"key":"selection_order","value":"","description":"<p>Defaults to 0.</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=timeframe&action=create","description":"<p>Create a specific Time Frame</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"timeframe"},{"key":"action","value":"create"}],"variable":[]}},"response":[],"_postman_id":"8248cb84-fd67-43a5-a342-129605bb0864"},{"name":"ReadTime_Frame","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['time_frame'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"af99b3d4-dc19-4608-bc4f-551a3831f221"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"631f6cf4-cd75-4cb1-be88-763f0d93e25d"}}],"id":"c6a853f7-5e48-4d93-9fd7-e73d1af96b33","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Domain of the timeframe wanting to be read.</p>\n","type":"text"},{"key":"start","value":"","description":"<p>When the start of the timeframe should be. Typically should set to 0</p>\n","type":"text","disabled":true},{"key":"limit","value":"","description":"<p>Limit of timeframes to be shown</p>\n","type":"text","disabled":true},{"key":"hide_system_users","value":"","description":"<p>Hide System Users from the return, default is to include system users</p>\n","type":"text","disabled":true},{"key":"hide_zero","value":"","description":"<p>Hide Users without timeframes, default is to hide zeros.</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=timeframe&action=read","description":"<p>Read info on a specific Time Frame</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"timeframe"},{"key":"action","value":"read"}],"variable":[]}},"response":[{"id":"7900af89-36d3-4eb0-a4a2-4d8289677971","name":"ReadTime_Frame","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","description":"Domain of the timeframe wanting to be read.","type":"text"},{"key":"start","value":"","description":"When the start of the timeframe should be. Typically should set to 0","type":"text","disabled":true},{"key":"limit","value":"","description":"Limit of timeframes to be shown","type":"text","disabled":true},{"key":"hide_system_users","value":"","description":"Hide System Users from the return, default is to include system users","type":"text","disabled":true},{"key":"hide_zero","value":"","description":"Hide Users without timeframes, default is to hide zeros.","type":"text","disabled":true}]},"url":{"raw":"https://oclnk.co/?object=timeframe&action=read","host":["https://oclnk.co"],"path":[""],"query":[{"key":"object","value":"timeframe"},{"key":"action","value":"read"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 08 Jun 2023 16:43:14 GMT"},{"key":"Server","value":"Apache/2.4.48 (Ubuntu)"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Length","value":"102"},{"key":"Keep-Alive","value":"timeout=2, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"time_frame\": \"BusinessHours\",\n        \"owner_domain\": \"apidocumentation\",\n        \"owner\": \"*\"\n    },\n    {\n        \"time_frame\": \"Holidays\",\n        \"owner_domain\": \"apidocumentation\",\n        \"owner\": \"*\"\n    }\n]"}],"_postman_id":"c6a853f7-5e48-4d93-9fd7-e73d1af96b33"},{"name":"UpdateTime_Frame","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"f93275fe-0bf4-49e1-b93f-753c744fea62"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"dd5cce90-7bb8-468e-935f-1ac43fb25dea"}}],"id":"a3af020b-05ab-4a14-8850-ab4ddb41475c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Domain of the timeframe wanting to be created.</p>\n","type":"text"},{"key":"uid","value":"{{uid}}","description":"<p>UID that the timeframe is for/used by. Can also be the owner. Typically user@domain.</p>\n","type":"text"},{"key":"user","value":"{{user}}","description":"<p>User that the timeframe is for/used by. Can also be the owner.</p>\n","type":"text"},{"key":"owner","value":"","description":"<p>Owner of the timeframe. Can also be the user. Use * when all users should see this timeframe.</p>\n","type":"text"},{"key":"owner_domain","value":"","description":"<p>Domain of the owner of the timeframe.</p>\n","type":"text"},{"key":"enable","value":"","description":"<p>Whether the timeframe is enabled for the owner.</p>\n","type":"text","disabled":true},{"key":"order","value":"","description":"<p>Defaults to 0.</p>\n","type":"text","disabled":true},{"key":"selection_order","value":"","description":"<p>Defaults to 0.</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=timeframe&action=update","description":"<p>Update a specific Time Frame</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"timeframe"},{"key":"action","value":"update"}],"variable":[]}},"response":[],"_postman_id":"a3af020b-05ab-4a14-8850-ab4ddb41475c"}],"id":"e11fd8a0-c7a3-4945-918a-d07726059d89","_postman_id":"e11fd8a0-c7a3-4945-918a-d07726059d89","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}}},{"name":"Time_Range","item":[{"name":"CreateTime_Range","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"a713d796-3ae1-4ad1-ae9f-f6916a7e6299"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"87155264-359c-44fd-b075-80536fd06ad4"}}],"id":"eae544a6-59e4-4216-945e-91398772dabf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"date_from","value":"{{createtime_range_date_from}}","description":"<p>The specific date that the time range begins on. Format: YYYY-MM-DD.</p>\n","type":"text"},{"key":"date_to","value":"{{createtime_range_date_to}}","description":"<p>The specific date that the time range ends on. Format: YYYY-MM-DD.</p>\n","type":"text"},{"key":"tod_from","value":"{{createtime_range_tod_from}}","description":"<p>The specific time that the time range begins on. Format: hh:mm. Will be time of day on date_from.</p>\n","type":"text"},{"key":"tod_to","value":"{{createtime_range_tod_to}}","description":"<p>The specific time that the time range ends on. Format: hh:mm. Will be time of day on date_to.</p>\n","type":"text"},{"key":"uid","value":"{{createtime_range_uid}}","description":"<p>Optional user@domain. If it is provided then will extract the owner and domain from this.</p>\n","type":"text","disabled":true},{"key":"owner_domain","value":"{{createtime_range_owner_domain}}","description":"<p>Domain of the owner of the timeframe.</p>\n","type":"text"},{"key":"owner","value":"{{createtime_range_owner}}","description":"<p>A specific owner of the timerange. If * then timerange will be accessible to all users.</p>\n","type":"text"},{"key":"time_frame","value":"{{createtime_range_time_frame}}","description":"<p>The name of the timeframe this timerange is associated with.</p>\n","type":"text"},{"key":"days","value":"{{createtime_range_days}}","description":"<p>The specific days of the week this timerange applies to. Depends on what kind of timeframe it is.</p>\n","type":"text","disabled":true},{"key":"invert","value":"{{createtime_range_invert}}","type":"text","disabled":true},{"key":"order","value":"{{createtime_range_order}}","description":"<p>This displays the order in which this timerange is compared to the other timeranges in this timeframe. Example: If this timeRange's order was 0, then it will be displayed as the top most timeframe when editing the timerange.</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=timerange&action=create","description":"<p>Create a specific Time Range</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"timerange"},{"key":"action","value":"create"}],"variable":[]}},"response":[],"_postman_id":"eae544a6-59e4-4216-945e-91398772dabf"},{"name":"UpdateTime_Range","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"a8cf5a7e-fad4-4669-9081-f3a832155cc3"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"72528e45-1d69-4a58-8d45-449e5d69094c"}}],"id":"bea59d2b-d610-4142-adf9-4a3b45331cab","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"date_from","value":"{{updatetime_range_date_from}}","description":"<p>The specific date that the time range begins on. Format: YYYY-MM-DD.</p>\n","type":"text"},{"key":"date_to","value":"{{updatetime_range_date_to}}","description":"<p>The specific date that the time range ends on. Format: YYYY-MM-DD.</p>\n","type":"text"},{"key":"tod_from","value":"{{updatetime_range_tod_from}}","description":"<p>The specific time that the time range begins on. Format: hh:mm. Will be time of day on date_from.</p>\n","type":"text"},{"key":"tod_to","value":"{{updatetime_range_tod_to}}","description":"<p>The specific time that the time range ends on. Format: hh:mm. Will be time of day on date_to.</p>\n","type":"text"},{"key":"uid","value":"{{updatetime_range_uid}}","description":"<p>Optional user@domain. If it is provided then will extract the owner and domain from this.</p>\n","type":"text","disabled":true},{"key":"owner_domain","value":"{{updatetime_range_owner_domain}}","description":"<p>Domain of the owner of the timeframe.</p>\n","type":"text"},{"key":"owner","value":"{{updatetime_range_owner}}","description":"<p>A specific owner of the timerange. If * then timerange will be accessible to all users.</p>\n","type":"text"},{"key":"time_frame","value":"{{updatetime_range_time_frame}}","description":"<p>The name of the timeframe this timerange is associated with.</p>\n","type":"text"},{"key":"days","value":"{{updatetime_range_days}}","description":"<p>The specific days of the week this timerange applies to. Depends on what kind of timeframe it is.</p>\n","type":"text","disabled":true},{"key":"invert","value":"{{updatetime_range_invert}}","type":"text","disabled":true},{"key":"order","value":"{{updatetime_range_order}}","description":"<p>This displays the order in which this timerange is compared to the other timeranges in this timeframe. Example: If this timeRange's order was 0, then it will be displayed as the top most timeframe when editing the timerange.</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=timerange&action=update","description":"<p>Update a specific Time Range</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"timerange"},{"key":"action","value":"update"}],"variable":[]}},"response":[],"_postman_id":"bea59d2b-d610-4142-adf9-4a3b45331cab"}],"id":"5b3537f9-0ab1-40dd-ae48-c87672c4e9de","_postman_id":"5b3537f9-0ab1-40dd-ae48-c87672c4e9de","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}}},{"name":"Trace","item":[{"name":"ExportTrace","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['trace'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"a91cb57d-692d-44c2-91fd-ba3e01746842"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"27af0318-3164-4f97-ac9c-3218ca84d8f2"}}],"id":"e370fdef-dc37-4545-bbd4-49528d547c28","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"start_time","value":"","description":"<p>Initial search window start timestamp.</p>\n","type":"text"},{"key":"end_time","value":"","description":"<p>Inital search window end timestamp.</p>\n","type":"text"},{"key":"callids","value":"","description":"<p>Comma separated list of callids</p>\n","type":"text"},{"key":"export_format","value":"","description":"<p>Output format. Defaults to \"csv\"</p>\n<p>Allowed values: \"image\", \"csv\"</p>\n","type":"text","disabled":true},{"key":"margin","value":"","description":"<p>Search time margin in seconds to add to start/end search window. Defaults to 10.</p>\n","type":"text","disabled":true},{"key":"search_callids","value":"","description":"<p>Search for related callids. Defaults to true.</p>\n<p>Default value: true,false</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=trace&action=export","description":"<p>Export Trace</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"trace"},{"key":"action","value":"export"}],"variable":[]}},"response":[],"_postman_id":"e370fdef-dc37-4545-bbd4-49528d547c28"}],"id":"9ac39ab7-279c-4eb4-b131-24a4d4d93299","_postman_id":"9ac39ab7-279c-4eb4-b131-24a4d4d93299","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}}},{"name":"UC_Inbox","item":[{"name":"ReadUC_Inbox","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"conversation_type\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Type of message (vmail, call, message, fax)&lt;\\/p&gt;\"","    },","    \"conversation_id\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;ID of conversation taken from unique id for object type&lt;\\/p&gt;\"","    },","    \"other\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;The remaining data will be similiar to the object of its type. Refer to #api-CDR, #api-Session, #api-Audio for more&lt;\\/p&gt;\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['uc_inbox'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"d2c52f41-7366-4f9d-acb6-18da4251b701"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"0f63ac16-cf3a-4aba-a762-2e98bbf08bec"}}],"id":"28c58d7c-8f7d-421c-b4ef-3e3acf248161","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Name of domain from which user belongs.</p>\n","type":"text"},{"key":"user","value":"{{user}}","description":"<p>Name of User from messages.</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=conversation&action=read","description":"<p>Read Conversations (Vmail, Calls, Chat)</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"conversation"},{"key":"action","value":"read"}],"variable":[]}},"response":[{"id":"ee42f888-d4fd-4ec0-92b7-5d727519b844","name":"ReadUC_Inbox","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","description":"Name of domain from which user belongs.","type":"text"},{"key":"user","value":"{{user}}","description":"Name of User from messages.","type":"text"}]},"url":{"raw":"https://oclnk.co/?object=conversation&action=read","host":["https://oclnk.co"],"path":[""],"query":[{"key":"object","value":"conversation"},{"key":"action","value":"read"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 08 Jun 2023 16:47:02 GMT"},{"key":"Server","value":"Apache/2.4.48 (Ubuntu)"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Length","value":"695"},{"key":"Keep-Alive","value":"timeout=2, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"session_id\": \"261e0aaa64ddaa1d81cd5ac703ba0baa\",\n        \"user\": \"1002\",\n        \"domain\": \"apidocumentation\",\n        \"remote\": \"1001@apidocumentation\",\n        \"smsani\": \"\",\n        \"last_timestamp\": \"2023-06-07 18:26:45\",\n        \"start_timestamp\": null,\n        \"last_mesg\": \"Hey, are you free at 1PM tomorrow?\",\n        \"last_sender\": \"1002@apidocumentation\",\n        \"last_status\": \"read\",\n        \"muted\": \"no\",\n        \"last_email\": null,\n        \"rx_hostname\": \"myonecloud.com\",\n        \"term_queue\": null,\n        \"queue_status\": null,\n        \"queue_session_id\": null,\n        \"agent_start_timestamp\": null,\n        \"last_mesg_type\": \"chat\",\n        \"last_mesg_media_type\": \"\",\n        \"last_mesg_media_size\": \"0\",\n        \"session_type\": \"\",\n        \"session_name\": \"\",\n        \"participants\": null,\n        \"conversation_type\": \"chat\",\n        \"conversation_id\": \"261e0aaa64ddaa1d81cd5ac703ba0baa\"\n    },\n    {\n        \"filename\": \"vm-20230531124614054353-21fcfa0d6d7741cdfffc132a42b85f78.wav\",\n        \"index\": \"vm-20230531124614054353-21fcfa0d6d7741cdfffc132a42b85f78\",\n        \"length\": 4,\n        \"filesize\": \"34.73 KB\",\n        \"filedate\": \"2023-05-31 12:46:30\",\n        \"remotepath\": \"\",\n        \"moh_script\": \"\",\n        \"source_type\": \"\",\n        \"voice_id\": \"\",\n        \"voice_language\": \"\",\n        \"FromName\": \"Keanu Wright\",\n        \"FromUser\": \"1003\",\n        \"FromHost\": \"apidocumentation\",\n        \"NmsAni\": \"1003wp\",\n        \"RecordTime\": \"2023-05-31 12:46:30\",\n        \"NmsRecStartTime\": \"2023-05-31 12:46:22\",\n        \"NmsRecDuration\": \"5\",\n        \"TimeZone\": \"America/New_York\",\n        \"conversation_type\": \"vmail\",\n        \"conversation_id\": \"vm-20230531124614054353-21fcfa0d6d7741cdfffc132a42b85f78\"\n    }\n]"}],"_postman_id":"28c58d7c-8f7d-421c-b4ef-3e3acf248161"}],"id":"f387f2e9-bc4e-4eb1-9af6-f746cce829f7","_postman_id":"f387f2e9-bc4e-4eb1-9af6-f746cce829f7","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}}},{"name":"UI_Config","item":[{"name":"CountUI_Config","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"total\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Total number of UI Configurations in the specified domain.&lt;\\/p&gt;\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple([jsonData], schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"3f066e3b-4d2c-4c38-9f5c-4cd4146c52dc"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"45c52221-a0d3-40fa-8240-ce6b9367feda"}}],"id":"70661e5d-bf6e-4216-8cd0-fcde565632b4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"config_name","value":"","description":"<p>Identify UI Configuration to count by its name.</p>\n","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Identify UI Configuration to count by the domain in which it exists.</p>\n","type":"text","disabled":true},{"key":"user","value":"{{user}}","description":"<p>Identify UI Configuration by its user.</p>\n","type":"text","disabled":true},{"key":"role","value":"","description":"<p>Identify UI Configuration to count by its role.</p>\n","type":"text","disabled":true},{"key":"login_type","value":"","description":"<p>Identify UI Configuration to count by its login type.</p>\n","type":"text","disabled":true},{"key":"reseller","value":"","description":"<p>Identify UI Configuration to count by its reseller.</p>\n","type":"text","disabled":true},{"key":"distinct","value":"","description":"<p>Filter by distinct config [default: false]</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=uiconfig&action=count","description":"<p>Count UI Configurations</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"uiconfig"},{"key":"action","value":"count"}],"variable":[]}},"response":[],"_postman_id":"70661e5d-bf6e-4216-8cd0-fcde565632b4"},{"name":"CountUI_Config","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"total\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Total number of UI Configuration Definitions in the specified domain.&lt;\\/p&gt;\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple([jsonData], schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"26d3dc26-0b0f-4525-a553-53ee8f835d9f"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"757005a6-4a83-4f78-bee8-30cf6137492e"}}],"id":"a80b8fc7-2c85-40d7-b3f9-62f7752b0d7b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"config_name","value":"","type":"text"}]},"url":"https://oclnk.co/?object=uiconfigdef&action=count","description":"<p>Count UI Configuration Definitions</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"uiconfigdef"},{"key":"action","value":"count"}],"variable":[]}},"response":[{"id":"a164b4fb-7b5f-482c-afd8-31fc6a19200f","name":"CountUI_Config","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"config_name","value":"PORTAL_USERS_DIR_MATCH_FIRSTNAME","type":"text"}]},"url":{"raw":"https://oclnk.co/?object=uiconfigdef&action=count","host":["https://oclnk.co"],"path":[""],"query":[{"key":"object","value":"uiconfigdef"},{"key":"action","value":"count"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 08 Jun 2023 16:50:08 GMT"},{"key":"Server","value":"Apache/2.4.48 (Ubuntu)"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"1"},{"key":"Keep-Alive","value":"timeout=2, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"7"}],"_postman_id":"a80b8fc7-2c85-40d7-b3f9-62f7752b0d7b"},{"name":"CreateUI_Config","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"4b20b62c-d089-4241-82af-4e9c243278de"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"6d8e41fc-cf55-4486-b5d6-91bd9cfdbb3d"}}],"id":"fe9d9c60-c390-4815-b03d-20aca1d0fc60","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"config_name","value":"","description":"<p>Name of UI Configuration to be created.</p>\n","type":"text"},{"key":"reseller","value":"{{reseller}}","description":"<p>Reseller where UI config will be created.</p>\n","type":"text","disabled":true},{"key":"domain","value":"{{domain}}","description":"<p>Domain where UI config will be created.</p>\n","type":"text","disabled":true},{"key":"user","value":"{{user}}","description":"<p>User name.</p>\n","type":"text","disabled":true},{"key":"role","value":"","description":"<p>User role for UI Configuration to be applied to</p>\n","type":"text","disabled":true},{"key":"login_type","value":"","description":"<p>Login/Access type for UI Configuration.</p>\n","type":"text","disabled":true},{"key":"config_value","value":"","description":"<p>UI Configuration value.</p>\n","type":"text","disabled":true},{"key":"description","value":"","description":"<p>Description for UI Configuration.</p>\n","type":"text","disabled":true},{"key":"allow_lesser_scope","value":"","description":"<p>Toggles access to lesser scopes</p>\n","type":"text","disabled":true},{"key":"hostname","value":"","description":"<p>Hostname where UI config will be created.</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=uiconfig&action=create","description":"<p>Create a UI Configuration</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"uiconfig"},{"key":"action","value":"create"}],"variable":[]}},"response":[],"_postman_id":"fe9d9c60-c390-4815-b03d-20aca1d0fc60"},{"name":"Create_DefinitionUI_Config","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"29a7129c-a21b-43cb-87cb-316a659f6b98"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"270c5223-731c-4281-ae08-6c9af5185f60"}}],"id":"a55f6263-c0e4-446c-98c8-eb1140000499","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"config_name","value":"","description":"<p>Name of UI Configuration to be created.</p>\n","type":"text"},{"key":"description","value":"","type":"text"},{"key":"code_version","value":"","description":"<p>Example: v42.0</p>\n","type":"text"},{"key":"data_type","value":"","description":"<p>Data type of the value. Examples are binary, string, numberi, string:url, star code, list, hexcolor,</p>\n","type":"text"},{"key":"default","value":"","description":"<p>Default value</p>\n","type":"text"},{"key":"default_bu","value":"","description":"<p>Default value for basic user scope</p>\n","type":"text","disabled":true},{"key":"default_om","value":"","description":"<p>Default value for office manager scope</p>\n","type":"text","disabled":true},{"key":"default_ccs","value":"","description":"<p>Default value for call center supervisor scope</p>\n","type":"text","disabled":true},{"key":"default_r","value":"","description":"<p>Default value for reseller scope</p>\n","type":"text","disabled":true},{"key":"default_su","value":"","description":"<p>Default value for super user scope</p>\n","type":"text","disabled":true},{"key":"tags","value":"","description":"<p>Tags. Comma seperated. ie \"portal,inventory\"</p>\n","type":"text","disabled":true},{"key":"allow_reseller_access","value":"","description":"<p>Default to yes</p>\n","type":"text","disabled":true},{"key":"allow_hostname","value":"","description":"<p>Default to yes</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=uiconfigdef&action=create","description":"<p>Create a UI Definition</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"uiconfigdef"},{"key":"action","value":"create"}],"variable":[]}},"response":[],"_postman_id":"a55f6263-c0e4-446c-98c8-eb1140000499"},{"name":"DeleteUI_Config","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"2e63dfdd-c715-45fa-af19-43ad333da255"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"e0c33fbb-a50e-4c7a-9cbf-f8140f630004"}}],"id":"c0a33c48-c65b-4479-91e5-f556891e96e9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"config_name","value":"","description":"<p>Name of UI Configuration to delete. To select all UI Configurations, use PORTAL_*</p>\n","type":"text"},{"key":"reseller","value":"{{reseller}}","description":"<p>Reseller of UI Configuration to delete.</p>\n","type":"text","disabled":true},{"key":"domain","value":"{{domain}}","description":"<p>Domain of UI Configuration to delete.</p>\n","type":"text","disabled":true},{"key":"user","value":"{{user}}","description":"<p>Select UI Configuration to delete by user name.</p>\n","type":"text","disabled":true},{"key":"role","value":"","description":"<p>Select UI Configurations to delete by role.</p>\n","type":"text","disabled":true},{"key":"login_type","value":"","description":"<p>Select UI Configurations to delete by login/account type.</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=uiconfig&action=delete","description":"<p>Delete a UI Configuration</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"uiconfig"},{"key":"action","value":"delete"}],"variable":[]}},"response":[],"_postman_id":"c0a33c48-c65b-4479-91e5-f556891e96e9"},{"name":"Delete_DefinitionUI_Config","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"ff7a6937-09f5-46ca-ab9d-563a9baffda2"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"e973ab4b-ebaa-4618-82a9-bb443b4fc3cd"}}],"id":"30309157-024e-469d-b69e-e60c6e51e8c5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"config_name","value":"","description":"<p>Name of UI Configuration to delete.</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=uiconfigdef&action=delete","description":"<p>Delete a UI Configuration Definition</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"uiconfigdef"},{"key":"action","value":"delete"}],"variable":[]}},"response":[],"_postman_id":"30309157-024e-469d-b69e-e60c6e51e8c5"},{"name":"ReadUI_Config","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"config_name\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Name of UI Configuration.&lt;\\/p&gt;\"","    },","    \"config_value\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Value of UI Configuration.&lt;\\/p&gt;\"","    },","    \"description\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Description of UI Configuration.&lt;\\/p&gt;\"","    },","    \"domain\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Domain of UI Configuration.&lt;\\/p&gt;\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['ui_config'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"e4502f68-0040-4a6b-ab1d-aa414f122c79"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"9ecdf371-e5a5-4b0a-9616-27a551bbadfd"}}],"id":"359bd8dc-7120-4978-a150-c8c166e66f08","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Domain of UI Configuration to be read.</p>\n","type":"text"},{"key":"config_name","value":"","description":"<p>Name of UI Configuration to be read. For a full list of UI Configuration settings, use PORTAL_*</p>\n","type":"text"},{"key":"user","value":"{{user}}","description":"<p>User name used to filter search.</p>\n","type":"text","disabled":true},{"key":"role","value":"","description":"<p>Role of UI Configuration used to filter search.</p>\n","type":"text","disabled":true},{"key":"login_type","value":"","description":"<p>Login/Account access type used to filter search.</p>\n","type":"text","disabled":true},{"key":"reseller","value":"{{reseller}}","description":"<p>Reseller used to filter search.</p>\n","type":"text","disabled":true},{"key":"distinct","value":"","description":"<p>Filter by distinct config [default: true]</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=uiconfig&action=read","description":"<p>Read a UI Configuration</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"uiconfig"},{"description":{"content":"<p>Domain of UI Configuration to be read.</p>\n","type":"text/plain"},"key":"action","value":"read"}],"variable":[]}},"response":[],"_postman_id":"359bd8dc-7120-4978-a150-c8c166e66f08"},{"name":"ReadUI_Config","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"config_name\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Name of UI Configuration.&lt;\\/p&gt;\"","    },","    \"code_version\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Value of UI Configuration.&lt;\\/p&gt;\"","    },","    \"description\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Description of UI Configuration.&lt;\\/p&gt;\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['ui_config'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"cb54c7ca-3d80-4fb2-8499-ee0455517df5"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"d2f7d821-7d33-47e0-a380-6541aed48155"}}],"id":"71e6c0bf-416e-49bc-90bf-e0abbd2786d5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"config_name","value":"","type":"text"}]},"url":"https://oclnk.co/?object=uiconfigdef&action=read","description":"<p>Read a UI Configuration</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"uiconfigdef"},{"key":"action","value":"read"}],"variable":[]}},"response":[],"_postman_id":"71e6c0bf-416e-49bc-90bf-e0abbd2786d5"},{"name":"UpdateUI_Config","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"2ca28857-34ca-4327-af2b-288aeda6256c"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"9a0987f7-2db0-4937-b530-cc3b75ea495d"}}],"id":"6ce39408-253a-4c91-8246-e661757ef42b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"config_name","value":"","description":"<p>Identifies UI Configuration to update by its config name. If a UI config with the specified config name does not exist, it will created.</p>\n","type":"text"},{"key":"reseller","value":"{{reseller}}","description":"<p>Reseller of UI Configuration to update.</p>\n","type":"text","disabled":true},{"key":"domain","value":"{{domain}}","description":"<p>Domain of UI Configuration to update.</p>\n","type":"text","disabled":true},{"key":"user","value":"{{user}}","description":"<p>Identifies UI Configuration to update by user name. If a UI config with the specified user name does not exist, it will created.</p>\n","type":"text","disabled":true},{"key":"role","value":"","description":"<p>Identifies UI Configuration to update by role. If a UI config with the specified role does not exist, it will created.</p>\n","type":"text","disabled":true},{"key":"login_type","value":"","description":"<p>Identifies UI Configuration to update by login/access type. If a UI config with the specified login/access type does not exist, it will created.</p>\n","type":"text","disabled":true},{"key":"config_value","value":"","description":"<p>New value of UI Configuration.</p>\n","type":"text","disabled":true},{"key":"description","value":"","description":"<p>New description for UI Configuration.</p>\n","type":"text","disabled":true},{"key":"allow_lesser_scope","value":"","description":"<p>Toggles access to lesser scopes</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=uiconfig&action=update","description":"<p>Update a UI Configuration</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"uiconfig"},{"key":"action","value":"update"}],"variable":[]}},"response":[],"_postman_id":"6ce39408-253a-4c91-8246-e661757ef42b"}],"id":"0f99a853-4568-4ee4-961f-66a2f96016d6","_postman_id":"0f99a853-4568-4ee4-961f-66a2f96016d6","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}}},{"name":"Voicemail_Reminders","item":[{"name":"CountVoicemail_Reminders","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple([jsonData], schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"cab23cfb-b93a-4b7b-83f7-cca2fdc32e4e"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"6f51b9ac-ab91-4995-a52b-4e952b5c8ee6"}}],"id":"7ea8d999-bda2-460c-89ef-d7dcb3771387","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"uid","value":"{{uid}}","description":"<p>User ID of user with reminders to count.</p>\n","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Identifies domain containing reminders to count.</p>\n","type":"text"},{"key":"user","value":"{{user}}","description":"<p>Identifies user with reminders to count.</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=vmailnag&action=count","description":"<p>Count voicemail reminders</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"vmailnag"},{"key":"action","value":"count"}],"variable":[]}},"response":[{"id":"a3914f7a-3923-479d-9b05-4716236db086","name":"CountVoicemail_Reminders","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"uid","value":"{{uid}}","description":"User ID of user with reminders to count.","type":"text"},{"key":"domain","value":"{{domain}}","description":"Identifies domain containing reminders to count.","type":"text"},{"key":"user","value":"{{user}}","description":"Identifies user with reminders to count.","type":"text"}]},"url":{"raw":"https://oclnk.co/?object=vmailnag&action=count","host":["https://oclnk.co"],"path":[""],"query":[{"key":"object","value":"vmailnag"},{"key":"action","value":"count"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 08 Jun 2023 17:01:32 GMT"},{"key":"Server","value":"Apache/2.4.48 (Ubuntu)"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Length","value":"11"},{"key":"Keep-Alive","value":"timeout=2, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"total\": 8\n}"}],"_postman_id":"7ea8d999-bda2-460c-89ef-d7dcb3771387"},{"name":"CreateVoicemail_Reminders","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"c52b1d03-af91-4596-be0d-c956845fbd6c"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"c632c0fa-8eab-4b00-86a8-c6ad23eda87a"}}],"id":"49092681-1d82-478d-80b8-f4e1e45ed5ac","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"uid","value":"{{uid}}","description":"<p>Specifies User ID of user for which the reminder configuration applies.</p>\n","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Domain of user</p>\n","type":"text"},{"key":"user","value":"{{user}}","description":"<p>User</p>\n","type":"text"},{"key":"phone_nag","value":"","description":"<p>Phone nag enabled (yes/no)</p>\n","type":"text"},{"key":"phone_nag_nums","value":"","description":"<p>Phone nag numbers (separated by semicolon)</p>\n","type":"text","disabled":true},{"key":"sms_nag","value":"","description":"<p>SMS nag enabled (yes/no)</p>\n","type":"text"},{"key":"sms_nag_nums","value":"","description":"<p>SMS nag numbers (separated by semicolon)</p>\n","type":"text","disabled":true},{"key":"email_nag","value":"","description":"<p>Email nag enabled (yes/no)</p>\n","type":"text"},{"key":"email_nag_addrs","value":"","description":"<p>Email nag addresses (separated by semicolon)</p>\n","type":"text","disabled":true},{"key":"interval","value":"","description":"<p>Interval of reminders (minutes)</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=vmailnag&action=create","description":"<p>Create voicemail reminder</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"vmailnag"},{"key":"action","value":"create"}],"variable":[]}},"response":[],"_postman_id":"49092681-1d82-478d-80b8-f4e1e45ed5ac"},{"name":"DeleteVoicemail_Reminders","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"c7ed21ac-32ec-420a-b661-53f87e10c69a"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"d0e6f49e-c661-4f8b-adeb-c69c07f95080"}}],"id":"8a37ed0b-cd4b-4e92-b17e-9eaf717d2e72","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"uid","value":"{{uid}}","description":"<p>User ID of User with voicemail reminder configuration to delete.</p>\n","type":"text"},{"key":"user","value":"{{uid}}","description":"<p>Identify reminder to delete by User's extension.</p>\n","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Identify reminder to delete by domain.</p>\n","type":"text"}]},"url":"https://oclnk.co/?object=vmailnag&action=delete","description":"<p>Delete a voicemail reminder</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"vmailnag"},{"key":"action","value":"delete"}],"variable":[]}},"response":[],"_postman_id":"8a37ed0b-cd4b-4e92-b17e-9eaf717d2e72"},{"name":"ReadVoicemail_Reminders","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 200;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsXml = responseHeaders[\"Content-Type\"].has(\"text/xml\");","var contentIsJson = responseHeaders[\"Content-Type\"].has(\"application/json\");","","if (contentIsXml) {","    tests[\"Content-Type is text/xml\"] = true;","} else if(contentIsJson) {","    tests[\"Content-Type is application/json\"] = true;","} else {","    tests[\"Unexpected Content-Type: \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": {","    \"domain\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Domain of user&lt;\\/p&gt;\"","    },","    \"user\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;User&lt;\\/p&gt;\"","    },","    \"phone_nag\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Phone nag enabled (yes\\/no)&lt;\\/p&gt;\"","    },","    \"phone_nag_nums\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Phone nag numbers (separated by semicolon)&lt;\\/p&gt;\"","    },","    \"sms_nag\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;SMS nag enabled (yes\\/no)&lt;\\/p&gt;\"","    },","    \"sms_nag_nums\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;SMS nag numbers (separated by semicolon)&lt;\\/p&gt;\"","    },","    \"email_nag\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Email nag enabled (yes\\/no)&lt;\\/p&gt;\"","    },","    \"email_nag_addrs\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Email nag addresses (separated by semicolon)&lt;\\/p&gt;\"","    },","    \"interval\": {","        \"type\": \"string\",","        \"description\": \"&lt;p&gt;Interval of reminders (minutes)&lt;\\/p&gt;\"","    }","}","    }","};","","if( responseBody ) {","    if( contentIsXml ) {","        var jsonData = xml2Json(responseBody)['xml']['voicemail_reminders'];","        if( !Array.isArray(jsonData) ) jsonData = [jsonData];","    } else if( contentIsJson ) {","        var jsonData = JSON.parse(responseBody);","    } else {","        tests[\"Cannot parse response body: Unknown content format\"] = false;","    }","","    if( typeof jsonData === 'undefined' ) {","        tests[\"Failed to parse response body: Invalid body format\"] = false;","    } else {","        var checkRecursive = true;","        var banUnknownProperties = true;","        var validation = tv4.validateMultiple(jsonData, schema, checkRecursive, banUnknownProperties);","","        if( !validation.valid ) {","            for (var i in validation.errors) {","                var errorMsg = validation.errors[i].message + ': ' + validation.errors[i].dataPath;","                errorMsg = errorMsg.replace(/\\/[0-9]*\\//,'');","                errorMsg = errorMsg.replace(/: \\/[0-9]*/,'');","                tests[errorMsg] = false;","            }","        } else {","            tests[\"Output schema is valid\"] = true;","        }","    }","} else {","    tests[\"Response body has content\"] = false;","}",""],"type":"text/javascript","id":"e831659f-23b4-4453-95e3-f22e85df59c3"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"b0f75da1-ecc7-4cd2-8777-592515750ad0"}}],"id":"1a4e1678-99cf-442d-b167-7a645c9587dd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"uid","value":"{{uid}}","description":"<p>Identifies User from which to read reminders by User ID.</p>\n","type":"text"},{"key":"user","value":"{{user}}","description":"<p>Identifies User from which to read reminders by extension.</p>\n","type":"text","disabled":true},{"key":"domain","value":"{{domain}}","description":"<p>Identifies Users from which to read reminders by domain.</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=vmailnag&action=read","description":"<p>Read a User's voicemail reminders</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"vmailnag"},{"key":"action","value":"read"}],"variable":[]}},"response":[],"_postman_id":"1a4e1678-99cf-442d-b167-7a645c9587dd"},{"name":"UpdateVoicemail_Reminders","event":[{"listen":"test","script":{"exec":["tests[\"Successful POST request\"] = responseCode.code === 202;","","var contentTypeHeaderExists = responseHeaders.hasOwnProperty(\"Content-Type\");","","tests[\"Has Content-Type\"] = contentTypeHeaderExists;","","var contentIsPlain = responseHeaders[\"Content-Type\"].has(\"text/plain\");","","if (contentIsPlain) {","    tests[\"Content-Type is text/plain\"] = true;","} else {","    tests[\"Content-Type is \" + responseHeaders[\"Content-Type\"]] = false;","}","","var schema = {","    \"items\": {","        \"type\": \"object\",","        \"required\": [],","        \"properties\": []","    }","};","","if( responseBody ) {","    tests[\"Response body contains content\"] = false;","} else {","    tests[\"Response body empty\"] = true;","}",""],"type":"text/javascript","id":"e635bc1f-b020-4b33-a6ed-1cf829b4d847"}},{"listen":"prerequest","script":{"exec":[""],"type":"text/javascript","id":"cf93ee7f-a539-43aa-91ec-e01f53184182"}}],"id":"39f9279f-c1b2-410e-b102-81467219b5f1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token_type}} {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"key":"format","value":"json","type":"text"},{"key":"uid","value":"{{uid}}","description":"<p>Specifies User ID of user for which the reminder configuration applies.</p>\n","type":"text"},{"key":"domain","value":"{{domain}}","description":"<p>Domain of user</p>\n","type":"text"},{"key":"user","value":"{{user}}","description":"<p>User</p>\n","type":"text"},{"key":"phone_nag","value":"","description":"<p>Phone nag enabled (yes/no)</p>\n","type":"text","disabled":true},{"key":"phone_nag_nums","value":"","description":"<p>Phone nag numbers (separated by semicolon)</p>\n","type":"text","disabled":true},{"key":"sms_nag","value":"","description":"<p>SMS nag enabled (yes/no)</p>\n","type":"text","disabled":true},{"key":"sms_nag_nums","value":"","description":"<p>SMS nag numbers (separated by semicolon)</p>\n","type":"text","disabled":true},{"key":"email_nag","value":"","description":"<p>Email nag enabled (yes/no)</p>\n","type":"text","disabled":true},{"key":"email_nag_addrs","value":"","description":"<p>Email nag addresses (separated by semicolon)</p>\n","type":"text","disabled":true},{"key":"interval","value":"","description":"<p>Interval of reminders (minutes)</p>\n","type":"text","disabled":true}]},"url":"https://oclnk.co/?object=vmailnag&action=update","description":"<p>Update voicemail reminder</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}},"urlObject":{"path":[""],"host":["https://oclnk.co"],"query":[{"key":"object","value":"vmailnag"},{"key":"action","value":"update"}],"variable":[]}},"response":[],"_postman_id":"39f9279f-c1b2-410e-b102-81467219b5f1"}],"id":"dc77ffc4-0f98-4d35-ac2c-e5d4873859a2","_postman_id":"dc77ffc4-0f98-4d35-ac2c-e5d4873859a2","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"abbd9333-b69a-4b82-b994-29501c2a4320","id":"abbd9333-b69a-4b82-b994-29501c2a4320","name":"OneCloud API","type":"collection"}}}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]}},"event":[{"listen":"prerequest","script":{"id":"2a716b31-d31e-4f77-95ac-fe2bd1e62dae","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"964549cf-5ee8-4e23-9cee-1e885f8e2a86","type":"text/javascript","exec":[""]}}],"variable":[{"key":"api_url","value":"https://oclnk.co","type":"string"}]}