{ "info": { "_postman_id": "9bfbb537-5d0d-45ad-8702-cb7731b03100", "name": "Webex Calling Provisioning APIs", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", "_exporter_id": "13457826" }, "item": [ { "name": "Locations", "item": [ { "name": "Create Location", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 201\", function () {", " pm.response.to.have.status(201);", "});", "", "let response = pm.response.json();", "pm.collectionVariables.set(\"_locationId\", response.id);" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"name\": \"Denver\",\n \"timeZone\": \"America/Chicago\",\n \"announcementLanguage\": \"fr_fr\",\n \"preferredLanguage\": \"en_us\",\n \"address\": {\n \"address1\": \"123 Some St.\",\n \"address2\": \"Suite 456\",\n \"city\": \"Supercity\",\n \"state\": \"CO\",\n \"postalCode\": \"12345\",\n \"country\": \"US\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{WEBEX_API_URL}}/locations", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "locations" ] } }, "response": [] }, { "name": "Get Location List", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{WEBEX_API_URL}}/locations", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "locations" ], "query": [ { "key": "name", "value": "Denver", "disabled": true }, { "key": "max", "value": "10", "disabled": true } ] } }, "response": [] }, { "name": "Get Location", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{WEBEX_API_URL}}/locations/{{_locationId}}", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "locations", "{{_locationId}}" ] } }, "response": [] }, { "name": "Modify Location", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 204\", function () {", " pm.response.to.have.status(204);", "});" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\n \"name\": \"Denver-2\",\n \"timeZone\": \"America/Chicago\",\n \"announcementLanguage\": \"fr_fr\",\n \"preferredLanguage\": \"en_us\",\n \"address\": {\n \"address1\": \"123 Some St.\",\n \"address2\": \"Suite 456\",\n \"city\": \"Supercity\",\n \"state\": \"CO\",\n \"postalCode\": \"12345\",\n \"country\": \"US\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{WEBEX_API_URL}}/locations/{{_locationId}}", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "locations", "{{_locationId}}" ] } }, "response": [] } ] }, { "name": "Webex Calling Organization Settings", "item": [ { "name": "Location Settings", "item": [ { "name": "Voicemail", "item": [ { "name": "Voicemail Transcription", "item": [ { "name": "Get Voicemail Transcription Setting", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{WEBEX_API_URL}}/telephony/config/locations/{{LOCATION_ID}}/voicemail", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "telephony", "config", "locations", "{{LOCATION_ID}}", "voicemail" ] } }, "response": [] }, { "name": "Modify Voicemail Transcription Setting", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 204\", function () {", " pm.response.to.have.status(204);", "});" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\n \"voicemailTranscriptionEnabled\": false\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{WEBEX_API_URL}}/telephony/config/locations/{{LOCATION_ID}}/voicemail", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "telephony", "config", "locations", "{{LOCATION_ID}}", "voicemail" ] } }, "response": [] } ] }, { "name": "Voicemail Groups", "item": [ { "name": "List Voicemail Groups", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 200\", function () {", " pm.response.to.have.status(200);", "});", "" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{WEBEX_API_URL}}/telephony/config/voicemailGroups", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "telephony", "config", "voicemailGroups" ] } }, "response": [] }, { "name": "Create a Voicemail Group", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 201\", function () {", " pm.response.to.have.status(201);", "});", "", "let response = pm.response.json();", "pm.collectionVariables.set(\"_voicemailGroupId\", response.id);" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"name\": \"Voicemail Group 1\",\n \"extension\": \"1273\",\n \"firstName\": \"John\",\n \"lastName\": \"Brown\",\n \"passcode\": \"137356\",\n \"languageCode\": \"en_us\",\n \"messageStorage\":{\n \"storageType\": \"EXTERNAL\",\n \"externalEmail\": \"user@flex2.cisco.com\"\n },\n \"notifications\": {\n \"enabled\" : true,\n \"destination\" : \"user@flex2.cisco.com\"\n },\n \"faxMessage\" : {\n \"enabled\": false\n },\n \"transferToNumber\": {\n \"enabled\": false\n },\n \"emailCopyOfMessage\": {\n \"enabled\": false\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{WEBEX_API_URL}}/telephony/config/locations/{{LOCATION_ID}}/voicemailGroups", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "telephony", "config", "locations", "{{LOCATION_ID}}", "voicemailGroups" ] } }, "response": [] }, { "name": "Get Voicemail Group", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 200\", function () {", " pm.response.to.have.status(200);", "});", "" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{WEBEX_API_URL}}/telephony/config/locations/{{LOCATION_ID}}/voicemailGroups/{{_voicemailGroupId}}", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "telephony", "config", "locations", "{{LOCATION_ID}}", "voicemailGroups", "{{_voicemailGroupId}}" ] } }, "response": [] }, { "name": "Modify a Voicemail Group", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 204\", function () {", " pm.response.to.have.status(204);", "});" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\n \"name\": \"Voicemail Group 1\",\n \"extension\": \"1273\",\n \"firstName\": \"John\",\n \"lastName\": \"Brown\",\n \"passcode\": \"137356\",\n \"enabled\": true,\n \"languageCode\": \"en_us\",\n \"greeting\": \"DEFAULT\",\n \"greetingDescription\": \"greetings.wav\",\n \"messageStorage\":{\n \"storageType\": \"EXTERNAL\",\n \"externalEmail\": \"user@flex2.cisco.com\"\n },\n \"notifications\": {\n \"enabled\" : true,\n \"destination\" : \"user@flex2.cisco.com\"\n },\n \"faxMessage\" : {\n \"enabled\": false\n },\n \"transferToNumber\": {\n \"enabled\": false\n },\n \"emailCopyOfMessage\": {\n \"enabled\": false\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{WEBEX_API_URL}}/telephony/config/locations/{{LOCATION_ID}}/voicemailGroups/{{_voicemailGroupId}}", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "telephony", "config", "locations", "{{LOCATION_ID}}", "voicemailGroups", "{{_voicemailGroupId}}" ] } }, "response": [] }, { "name": "Delete a Voicemail Group", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 204\", function () {", " pm.response.to.have.status(204);", "});", "" ], "type": "text/javascript" } } ], "request": { "method": "DELETE", "header": [], "url": { "raw": "{{WEBEX_API_URL}}/telephony/config/locations/{{LOCATION_ID}}/voicemailGroups/{{_voicemailGroupId}}", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "telephony", "config", "locations", "{{LOCATION_ID}}", "voicemailGroups", "{{_voicemailGroupId}}" ] } }, "response": [] } ] } ] }, { "name": "Voice Portal", "item": [ { "name": "Get Voice Portal Information", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{WEBEX_API_URL}}/telephony/config/locations/{{LOCATION_ID}}/voicePortal", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "telephony", "config", "locations", "{{LOCATION_ID}}", "voicePortal" ] } }, "response": [] }, { "name": "Modify Voice Portal Information", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 204\", function () {", " pm.response.to.have.status(204);", "});" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\n \"name\": \"Voice Portal Name\",\n \"languageCode\": \"en_us\",\n \"extension\": 5678,\n \"firstName\": \"John\",\n \"lastName\": \"Brown\",\n \"passcode\": {\n \"newPasscode\": \"135668\",\n \"confirmPasscode\": \"135668\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{WEBEX_API_URL}}/telephony/config/locations/{{LOCATION_ID}}/voicePortal", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "telephony", "config", "locations", "{{LOCATION_ID}}", "voicePortal" ] } }, "response": [] }, { "name": "Get Passcode Rules", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{WEBEX_API_URL}}/telephony/config/locations/{{LOCATION_ID}}/voicePortal/passcodeRules", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "telephony", "config", "locations", "{{LOCATION_ID}}", "voicePortal", "passcodeRules" ] } }, "response": [] } ] }, { "name": "Intercept", "item": [ { "name": "Get Intercept Details", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{WEBEX_API_URL}}/telephony/config/locations/{{LOCATION_ID}}/intercept", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "telephony", "config", "locations", "{{LOCATION_ID}}", "intercept" ] } }, "response": [] }, { "name": "Modify Intercept Details", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 204\", function () {", " pm.response.to.have.status(204);", "});" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\n \"enabled\": true,\n \"incoming\": {\n \"type\": \"INTERCEPT_ALL\",\n \"voicemailEnabled\": false,\n \"announcements\": {\n \"greeting\": \"DEFAULT\",\n \"fileName\": \"audiofile.wav\",\n \"newNumber\": {\n \"enabled\": true,\n \"destination\": \"2147691003\"\n },\n \"zeroTransfer\": {\n \"enabled\": true,\n \"destination\": \"2147691005\"\n }\n }\n },\n \"outgoing\": {\n \"type\": \"ALLOW_LOCAL_ONLY\",\n \"transferEnabled\": true,\n \"destination\": \"2147691007\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{WEBEX_API_URL}}/telephony/config/locations/{{LOCATION_ID}}/intercept", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "telephony", "config", "locations", "{{LOCATION_ID}}", "intercept" ] } }, "response": [] } ] }, { "name": "Outgoing Permission", "item": [ { "name": "Outgoing Call Settings", "item": [ { "name": "Get Outgoing Call Settings", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{WEBEX_API_URL}}/telephony/config/locations/{{LOCATION_ID}}/outgoingPermission", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "telephony", "config", "locations", "{{LOCATION_ID}}", "outgoingPermission" ] } }, "response": [] }, { "name": "Modify Outgoing Call Settings", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 204\", function () {", " pm.response.to.have.status(204);", "});" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\n \"callingPermissions\": [\n {\n \"callType\": \"INTERNAL_CALL\",\n \"action\": \"ALLOW\",\n \"transferEnabled\": true\n },\n {\n \"callType\": \"LOCAL\",\n \"action\": \"ALLOW\",\n \"transferEnabled\": true\n }\n ]\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{WEBEX_API_URL}}/telephony/config/locations/{{LOCATION_ID}}/outgoingPermission", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "telephony", "config", "locations", "{{LOCATION_ID}}", "outgoingPermission" ] } }, "response": [] } ] }, { "name": "Access Codes", "item": [ { "name": "Get Access Codes", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{WEBEX_API_URL}}/telephony/config/locations/{{LOCATION_ID}}/outgoingPermission/accessCodes", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "telephony", "config", "locations", "{{LOCATION_ID}}", "outgoingPermission", "accessCodes" ] } }, "response": [] }, { "name": "Add Access Codes", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 201\", function () {", " pm.response.to.have.status(201);", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"accessCodes\": [\n {\n \"code\": \"1357\",\n \"description\": \"Main Access Code\"\n },\n {\n \"code\": \"2468\",\n \"description\": \"Alternate Access Code\"\n }]\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{WEBEX_API_URL}}/telephony/config/locations/{{LOCATION_ID}}/outgoingPermission/accessCodes", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "telephony", "config", "locations", "{{LOCATION_ID}}", "outgoingPermission", "accessCodes" ] } }, "response": [] }, { "name": "Delete Access Codes", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 204\", function () {", " pm.response.to.have.status(204);", "});" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\n \"deleteCodes\" : [\n \"1357\",\n \"2468\"\n ]\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{WEBEX_API_URL}}/telephony/config/locations/{{LOCATION_ID}}/outgoingPermission/accessCodes", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "telephony", "config", "locations", "{{LOCATION_ID}}", "outgoingPermission", "accessCodes" ] } }, "response": [] } ] }, { "name": "Auto Transfer Numbers", "item": [ { "name": "Get Auto Transfer Numbers", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{WEBEX_API_URL}}/telephony/config/locations/{{LOCATION_ID}}/outgoingPermission/autoTransferNumbers", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "telephony", "config", "locations", "{{LOCATION_ID}}", "outgoingPermission", "autoTransferNumbers" ] } }, "response": [] }, { "name": "Modify Auto Transfer Numbers", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 204\", function () {", " pm.response.to.have.status(204);", "});" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\n \"autoTransferNumber1\": \"1234456789\",\n \"autoTransferNumber2\": \"2234567891\",\n \"autoTransferNumber3\": \"3234567891\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{WEBEX_API_URL}}/telephony/config/locations/{{LOCATION_ID}}/outgoingPermission/autoTransferNumbers", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "telephony", "config", "locations", "{{LOCATION_ID}}", "outgoingPermission", "autoTransferNumbers" ] } }, "response": [] } ] } ] }, { "name": "Music On Hold", "item": [ { "name": "Get Music On Hold Settings", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{WEBEX_API_URL}}/telephony/config/locations/{{LOCATION_ID}}/musicOnHold", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "telephony", "config", "locations", "{{LOCATION_ID}}", "musicOnHold" ] } }, "response": [] }, { "name": "Modify Music On Hold Settings", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 204\", function () {", " pm.response.to.have.status(204);", "});" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\n \"callHoldEnabled\": false,\n \"callParkEnabled\": true,\n \"greeting\": \"SYSTEM\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{WEBEX_API_URL}}/telephony/config/locations/{{LOCATION_ID}}/musicOnHold", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "telephony", "config", "locations", "{{LOCATION_ID}}", "musicOnHold" ] } }, "response": [] } ] }, { "name": "Announcement Language", "item": [ { "name": "Modify Announcement Language", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 204\", function () {", " pm.response.to.have.status(204);", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"userEnabled\": true,\n \"serviceEnabled\": true,\n \"announcementLanguage\": \"en_us\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{WEBEX_API_URL}}/telephony/config/locations/{{LOCATION_ID}}/actions/modifyAnnouncementLanguage/invoke", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "telephony", "config", "locations", "{{LOCATION_ID}}", "actions", "modifyAnnouncementLanguage", "invoke" ] } }, "response": [] } ] }, { "name": "Private Network Connect", "item": [ { "name": "Get Network Connection Type", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{WEBEX_API_URL}}/telephony/config/locations/{{LOCATION_ID}}/privateNetworkConnect", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "telephony", "config", "locations", "{{LOCATION_ID}}", "privateNetworkConnect" ] } }, "response": [] }, { "name": "Modify Network Connection Type", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 204\", function () {", " pm.response.to.have.status(204);", "});" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\n \"networkConnectionType\": \"PUBLIC_INTERNET\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{WEBEX_API_URL}}/telephony/config/locations/{{LOCATION_ID}}/privateNetworkConnect", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "telephony", "config", "locations", "{{LOCATION_ID}}", "privateNetworkConnect" ] } }, "response": [] } ] }, { "name": "Receptionist Contact Directory", "item": [ { "name": "Create Receptionist Contact Directory", "protocolProfileBehavior": { "disabledSystemHeaders": {} }, "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"name\": \"test_receptionist\",\n \"contacts\": [\n {\n \"personId\": \"{{PERSON_ID}}\"\n }\n ]\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{WEBEX_API_URL}}/telephony/config/locations/{{LOCATIONID_FOR_RECEPTIONIST}}/receptionistContacts/directories", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "telephony", "config", "locations", "{{LOCATIONID_FOR_RECEPTIONIST}}", "receptionistContacts", "directories" ] } }, "response": [] }, { "name": "Get Receptionist Contact Directories", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "let response = pm.response.json();", "pm.collectionVariables.set(\"_directory.id\", response.directories[0].id);", "" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{WEBEX_API_URL}}/telephony/config/locations/{{LOCATIONID_FOR_RECEPTIONIST}}/receptionistContacts/directories", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "telephony", "config", "locations", "{{LOCATIONID_FOR_RECEPTIONIST}}", "receptionistContacts", "directories" ] } }, "response": [] }, { "name": "Delete Receptionist Contact Directory", "protocolProfileBehavior": { "disabledSystemHeaders": {} }, "request": { "method": "DELETE", "header": [], "url": { "raw": "{{WEBEX_API_URL}}/telephony/config/locations/{{LOCATIONID_FOR_RECEPTIONIST}}/receptionistContacts/directories/{{_directory.id}}", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "telephony", "config", "locations", "{{LOCATIONID_FOR_RECEPTIONIST}}", "receptionistContacts", "directories", "{{_directory.id}}" ] } }, "response": [] } ] }, { "name": "Additional Settings", "item": [ { "name": "Get Location", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{WEBEX_API_URL}}/telephony/config/locations/{{_locationId}}", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "telephony", "config", "locations", "{{_locationId}}" ] } }, "response": [] }, { "name": "Modify Location", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 204\", function () {", " pm.response.to.have.status(204);", "});" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\n \"announcementLanguage\": \"fr_fr\",\n \"outsideDialDigit\": \"12\",\n \"routingPrefix\": \"2\",\n \"callingLineId\": {\n \"name\": \"Denver Incoming\",\n \"phoneNumber\": \"+12145555698\"\n },\n \"connection\": {\n \"type\": \"TRUNK\",\n \"id\": \"Y2lzY29zcGFyazovL3VzL1RSVU5LL2QzMDliOTk0LTI3YjUtNDMwZC04N2I1LTMyZGVmYWNjZDY4Mg\"\n },\n \"externalCallerIdName\": \"Big Corp-Denver\",\n \"pAccessNetworkInfo\": \"Rcdn\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{WEBEX_API_URL}}/telephony/config/locations/{{_locationId}}", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "telephony", "config", "locations", "{{_locationId}}" ] } }, "response": [] } ] } ] }, { "name": "Voicemail Rules and Settings", "item": [ { "name": "Get Voicemail Rules", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{WEBEX_API_URL}}/telephony/config/voicemail/rules", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "telephony", "config", "voicemail", "rules" ] } }, "response": [] }, { "name": "Modify Voicemail Rules", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 204\", function () {", " pm.response.to.have.status(204);", "});" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\n \"defaultVoicemailPinEnabled\": true,\n \"defaultVoicemailPin\": \"123544\",\n \"expirePasscode\":{\n \"enabled\": true,\n \"numberOfDays\": 100\n },\n \"changePasscode\":{\n \"enabled\":true,\n \"numberOfDays\": 1\n },\n \"blockPreviousPasscodes\": {\n \"enabled\": false,\n \"numberOfPasscodes\": 10\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{WEBEX_API_URL}}/telephony/config/voicemail/rules", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "telephony", "config", "voicemail", "rules" ] } }, "response": [] }, { "name": "Get Voicemail Settings", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{WEBEX_API_URL}}/telephony/config/voicemail/settings", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "telephony", "config", "voicemail", "settings" ] } }, "response": [] }, { "name": "Modify Voicemail Settings", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 204\", function () {", " pm.response.to.have.status(204);", "});" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\n \"messageExpiryEnabled\": true,\n \"numberOfDaysForMessageExpiry\": 15,\n \"strictDeletionEnabled\": true,\n \"voiceMessageForwardingEnabled\": true\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{WEBEX_API_URL}}/telephony/config/voicemail/settings", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "telephony", "config", "voicemail", "settings" ] } }, "response": [] } ] }, { "name": "Numbers", "item": [ { "name": "Number Settings", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 200\", function () {", " pm.response.to.have.status(200);", "});", "", "let response = pm.response.json();", "pm.collectionVariables.set(\"_ownerId\", response.phoneNumbers[0].owner.id);", "pm.collectionVariables.set(\"_ownerType\", response.phoneNumbers[0].owner.type);", "", "var jsonArray = response.phoneNumbers;", "var extensions = [];", "for(var i=0;i<3;i++){", "extensions[i] = jsonArray[i].extension;", "}", "pm.collectionVariables.set(\"_extensions\",extensions)", "" ], "type": "text/javascript" } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{WEBEX_TOKEN}}", "type": "string" } ] }, "method": "GET", "header": [], "url": { "raw": "{{WEBEX_API_URL}}/telephony/config/numbers", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "telephony", "config", "numbers" ], "query": [ { "key": "max", "value": "10", "disabled": true }, { "key": "offset", "value": "200", "disabled": true }, { "key": "ownerId", "value": "{{_ownerId}}", "disabled": true }, { "key": "locationId", "value": "{{LOCATION_ID}}", "disabled": true }, { "key": "ownerType", "value": "{{_ownerType}}", "disabled": true }, { "key": "ownerName", "value": "", "disabled": true }, { "key": "available", "value": "true", "disabled": true }, { "key": "order", "value": "lastName-asc", "disabled": true }, { "key": "extension", "value": "000", "disabled": true }, { "key": "numberType", "value": "NUMBER", "disabled": true }, { "key": "phoneNumberType", "value": "PRIMARY", "disabled": true }, { "key": "state", "value": "ACTIVE", "disabled": true }, { "key": "details", "value": "true", "disabled": true }, { "key": "tollFreeNumbers", "value": "false", "disabled": true } ] } }, "response": [] }, { "name": "Number Settings For Location", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{WEBEX_TOKEN}}", "type": "string" } ] }, "method": "GET", "header": [], "url": { "raw": "{{WEBEX_API_URL}}/telephony/config/numbers?locationId={{_locationIdForNumbers}}", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "telephony", "config", "numbers" ], "query": [ { "key": "locationId", "value": "{{_locationIdForNumbers}}" } ] } }, "response": [] }, { "name": "Number Settings For Owner Id", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{WEBEX_TOKEN}}", "type": "string" } ] }, "method": "GET", "header": [], "url": { "raw": "{{WEBEX_API_URL}}/telephony/config/numbers?ownerId={{_ownerId}}", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "telephony", "config", "numbers" ], "query": [ { "key": "ownerId", "value": "{{_ownerId}}" } ] } }, "response": [] }, { "name": "Number Settings For Owner Type", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{WEBEX_TOKEN}}", "type": "string" } ] }, "method": "GET", "header": [], "url": { "raw": "{{WEBEX_API_URL}}/telephony/config/numbers?ownerType={{_ownerType}}", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "telephony", "config", "numbers" ], "query": [ { "key": "ownerType", "value": "{{_ownerType}}" } ] } }, "response": [] }, { "name": "Extension Settings", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"extensions\": [\n {{_extensions}}\n ]\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{WEBEX_API_URL}}/telephony/config/actions/validateExtensions/invoke", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "telephony", "config", "actions", "validateExtensions", "invoke" ] } }, "response": [] } ] }, { "name": "Devices", "item": [ { "name": "Bulk Apis", "item": [ { "name": "Device Settings For Organization", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 202\", function () {", " pm.response.to.have.status(202);", "});", "", "let response = pm.response.json();", "pm.collectionVariables.set(\"_jobId\", response.id);", "", "postman.setNextRequest(\"Get Device Settings Job Details\")" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "SPARK_FROM_HYDRA", "value": "true", "type": "default" } ], "body": { "mode": "raw", "raw": "{\n\"customEnabled\": true,\n \"customizations\": {\n \"ata\": {\n \"audioCodecPriority\": {\n \"selection\": \"REGIONAL\",\n \"primary\": \"G711a\",\n \"secondary\": \"G711u\",\n \"tertiary\": \"G729a\"\n },\n \"ataDtmfMode\": \"NORMAL\",\n \"ataDtmfMethod\": \"AVT\",\n \"cdpEnabled\": true,\n \"lldpEnabled\": true,\n \"qosEnabled\": true,\n \"vlan\": {\n \"enabled\": true,\n \"value\": 1\n }\n },\n \"dect\": {\n \"audioCodecPriority\": {\n \"selection\": \"REGIONAL\",\n \"primary\": \"G729\",\n \"secondary\": \"G711u\",\n \"tertiary\": \"G711a\"\n },\n \"cdpEnabled\": true,\n \"lldpEnabled\": true,\n \"qosEnabled\": true,\n \"vlan\": {\n \"enabled\": false,\n \"value\": 0\n }\n },\n \"mpp\": {\n \"pnacEnabled\": true,\n \"audioCodecPriority\": {\n \"selection\": \"CUSTOM\",\n \"primary\": \"OPUS\",\n \"secondary\": \"G722\",\n \"tertiary\": \"G711u\"\n },\n \"backlightTimer\": \"ONE_M\",\n \"background\": {\n \"customUrl\": null,\n \"image\": \"WEBEX_DARK_BLUE\"\n },\n \"displayNameFormat\": \"PERSON_NUMBER\",\n \"cdpEnabled\": false,\n \"defaultLoggingLevel\": \"STANDARD\",\n \"dndServicesEnabled\": true,\n \"acd\": {\n \"enabled\": true,\n \"displayCallqueueAgentSoftkeys\": \"LAST_PAGE\"\n },\n \"shortInterdigitTimer\": 14,\n \"longInterdigitTimer\": 16,\n \"lineKeyLabelFormat\": \"PERSON_FIRST_THEN_LAST_NAME\",\n \"lineKeyLEDPattern\": \"DEFAULT\",\n \"lldpEnabled\": false,\n \"mppUserWebAccessEnabled\": true,\n \"multicast\": [\n \"236.86.108.226:22311\"\n ],\n \"offHookTimer\": 30,\n \"phoneLanguage\": \"PERSON_LANGUAGE\",\n \"poeMode\": \"MAXIMUM\",\n \"qosEnabled\": true,\n \"screenTimeout\": {\n \"enabled\": true,\n \"value\": 400\n },\n \"usbPortsEnabled\": true,\n \"vlan\": {\n \"enabled\": false,\n \"value\": 1,\n \"pcPort\": 1\n },\n \"wifiNetwork\": {\n \"enabled\": false,\n \"authenticationMethod\": \"PSK\"\n }\n }\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{WEBEX_API_URL}}/telephony/config/jobs/devices/callDeviceSettings", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "telephony", "config", "jobs", "devices", "callDeviceSettings" ] } }, "response": [] }, { "name": "Device Settings For Location With Customizations", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 202\", function () {", " pm.response.to.have.status(202);", "});", "", "let response = pm.response.json();", "pm.collectionVariables.set(\"_jobId\", response.id);" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "SPARK_FROM_HYDRA", "value": "true", "type": "default" } ], "body": { "mode": "raw", "raw": "{\n \"locationId\": \"{{LOCATIONID_FOR_DEVICES}}\",\n \"customEnabled\": true,\n \"customizations\": {\n \"ata\": {\n \"audioCodecPriority\": {\n \"primary\": \"G711a\",\n \"secondary\": \"G711u\",\n \"tertiary\": \"G729a\",\n \"selection\": \"REGIONAL\"\n },\n \"ataDtmfMode\": \"STRICT\",\n \"ataDtmfMethod\": \"AVT\",\n \"cdpEnabled\": true,\n \"lldpEnabled\": true,\n \"qosEnabled\": true,\n \"vlan\": {\n \"enabled\": true,\n \"value\": 1\n }\n },\n \"dect\": {\n \"audioCodecPriority\": {\n \"primary\": \"G729\",\n \"secondary\": \"G711u\",\n \"tertiary\": \"G711a\",\n \"selection\": \"REGIONAL\"\n },\n \"cdpEnabled\": true,\n \"lldpEnabled\": true,\n \"multicast\": [],\n \"qosEnabled\": true,\n \"vlan\": {\n \"enabled\": false,\n \"value\": null\n }\n },\n \"mpp\": {\n \"pnacEnabled\": false,\n \"audioCodecPriority\": {\n \"primary\": \"OPUS\",\n \"secondary\": \"G722\",\n \"tertiary\": \"G711u\",\n \"selection\": \"REGIONAL\"\n },\n \"backlightTimer\": \"FIVE_M\",\n \"background\": {\n \"customUrl\": null,\n \"image\": \"NONE\"\n },\n \"displayNameFormat\": \"PERSON_NUMBER\",\n \"cdpEnabled\": true,\n \"dndServicesEnabled\": true,\n \"acd\": {\n \"enabled\": false,\n \"displayCallqueueAgentSoftkeys\": \"LAST_PAGE\"\n },\n \"shortInterdigitTimer\": 10,\n \"longInterdigitTimer\": 15,\n \"lineKeyLabelFormat\": \"PERSON_EXTENSION\",\n \"lineKeyLEDPattern\": \"DEFAULT\",\n \"lldpEnabled\": true,\n \"mppUserWebAccessEnabled\": false,\n \"multicast\": [],\n \"offHookTimer\": 30,\n \"phoneLanguage\": \"PERSON_LANGUAGE\",\n \"poeMode\": \"MAXIMUM\",\n \"qosEnabled\": true,\n \"screenTimeout\": {\n \"enabled\": false,\n \"value\": 300\n },\n \"usbPortsEnabled\": true,\n \"vlan\": {\n \"enabled\": false,\n \"value\": 1,\n \"pcPort\": 1\n },\n \"wifiNetwork\": {\n \"enabled\": true,\n \"authenticationMethod\": \"WEP\"\n }\n }\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{WEBEX_API_URL}}/telephony/config/jobs/devices/callDeviceSettings", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "telephony", "config", "jobs", "devices", "callDeviceSettings" ] } }, "response": [] }, { "name": "Device Settings For Location Without Customizations", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 202\", function () {", " pm.response.to.have.status(202);", "});", "", "let response = pm.response.json();", "pm.collectionVariables.set(\"_jobId\", response.id);" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "SPARK_FROM_HYDRA", "value": "true", "type": "default" } ], "body": { "mode": "raw", "raw": "{\n \"locationId\": \"{{LOCATIONID_FOR_DEVICES}}\",\n \"customEnabled\": false\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{WEBEX_API_URL}}/telephony/config/jobs/devices/callDeviceSettings", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "telephony", "config", "jobs", "devices", "callDeviceSettings" ] } }, "response": [] }, { "name": "Get Device Settings Job Details", "event": [ { "listen": "test", "script": { "exec": [ "" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "SPARK_FROM_HYDRA", "value": "true", "type": "default" } ], "url": { "raw": "{{WEBEX_API_URL}}/telephony/config/jobs/devices/callDeviceSettings/{{_jobId}}", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "telephony", "config", "jobs", "devices", "callDeviceSettings", "{{_jobId}}" ] } }, "response": [] }, { "name": "List Device Settings Jobs", "event": [ { "listen": "test", "script": { "exec": [ "" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "SPARK_FROM_HYDRA", "value": "true", "type": "default" } ], "url": { "raw": "{{WEBEX_API_URL}}/telephony/config/jobs/devices/callDeviceSettings", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "telephony", "config", "jobs", "devices", "callDeviceSettings" ] } }, "response": [] }, { "name": "List Device Settings Errors", "event": [ { "listen": "test", "script": { "exec": [ "" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "SPARK_FROM_HYDRA", "value": "true", "type": "default" } ], "url": { "raw": "{{WEBEX_API_URL}}/telephony/config/jobs/devices/callDeviceSettings/{{_jobId}}/errors", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "telephony", "config", "jobs", "devices", "callDeviceSettings", "{{_jobId}}", "errors" ] } }, "response": [] } ] }, { "name": "Get Supported Devices", "event": [ { "listen": "test", "script": { "exec": [ "" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{WEBEX_API_URL}}/telephony/config/supportedDevices", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "telephony", "config", "supportedDevices" ] } }, "response": [] }, { "name": "Get Devices Settings", "event": [ { "listen": "test", "script": { "exec": [ "" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{WEBEX_API_URL}}/telephony/config/devices/settings", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "telephony", "config", "devices", "settings" ] } }, "response": [] }, { "name": "Get Device Settings - Single Model Only", "event": [ { "listen": "test", "script": { "exec": [ "" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{WEBEX_API_URL}}/telephony/config/devices/{{DEVICE_ID}}/settings?deviceModel={{DEVICE_MODEL}}", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "telephony", "config", "devices", "{{DEVICE_ID}}", "settings" ], "query": [ { "key": "deviceModel", "value": "{{DEVICE_MODEL}}" } ] } }, "response": [] }, { "name": "Modify Device Settings - Single Model Only", "event": [ { "listen": "test", "script": { "exec": [ "" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\n \"customEnabled\": true,\n \"customizations\": {\n \"mpp\": {\n \"pnacEnabled\": true,\n \"audioCodecPriority\": {\n \"selection\": \"CUSTOM\",\n \"primary\": \"OPUS\",\n \"secondary\": \"G722\",\n \"tertiary\": \"G711u\"\n },\n \"backlightTimer\": \"ONE_M\",\n \"background\": {\n \"image\": \"WEBEX_DARK_BLUE\"\n },\n \"displayNameFormat\": \"USER_FIRST_THEN_LAST_NAME\",\n \"cdpEnabled\": false,\n \"defaultLoggingLevel\": \"STANDARD\",\n \"dndServicesEnabled\": true,\n \"acd\": {\n \"enabled\": true,\n \"displayCallqueueAgentSoftkeys\": \"LAST_PAGE\"\n },\n \"shortInterdigitTimer\": 14,\n \"longInterdigitTimer\": 16,\n \"lineKeyLabelFormat\": \"USER_LAST_THEN_FIRST_NAME\",\n \"lineKeyLEDPattern\": \"DEFAULT\",\n \"lldpEnabled\": false,\n \"mppUserWebAccessEnabled\": true,\n \"multicast\": [\n \"236.86.108.226:22311\"\n ],\n \"offHookTimer\": 30,\n \"phoneLanguage\": \"RUSSIAN\",\n \"poeMode\": \"MAXIMUM\",\n \"qosEnabled\": true,\n \"screenTimeout\": {\n \"enabled\": true,\n \"value\": 400\n },\n \"usbPortsEnabled\": true,\n \"vlan\": {\n \"enabled\": false,\n \"value\": 1,\n \"pcPort\": 1\n },\n \"wifiNetwork\": {\n \"enabled\": false,\n \"authenticationMethod\": \"PSK\"\n }\n }\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{WEBEX_API_URL}}/telephony/config/devices/{{DEVICE_ID}}/settings", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "telephony", "config", "devices", "{{DEVICE_ID}}", "settings" ], "query": [ { "key": "deviceModel", "value": "DMS Cisco 8865", "disabled": true } ] } }, "response": [] }, { "name": "Apply Changes To A Device", "event": [ { "listen": "test", "script": { "exec": [ "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"macs\": [\n \"{{MAC_ADDRESS}}\"\n ]\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{WEBEX_API_URL}}/telephony/config/devices/{{DEVICE_ID}}/actions/applyChanges/invoke", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "telephony", "config", "devices", "{{DEVICE_ID}}", "actions", "applyChanges", "invoke" ] } }, "response": [] }, { "name": "Get Devices Settings For A Location", "event": [ { "listen": "test", "script": { "exec": [ "" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{WEBEX_API_URL}}/telephony/config/locations/{{LOCATIONID_FOR_DEVICES}}/devices/settings", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "telephony", "config", "locations", "{{LOCATIONID_FOR_DEVICES}}", "devices", "settings" ] } }, "response": [] }, { "name": "Get Device Available Members", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "let response = pm.response.json();", "pm.collectionVariables.set(\"_members.id\", response.members[0].id);", "", "const resBody = pm.response.json();", "for (let i = 0; i < resBody.members.length; i++) {", "if(resBody.members[i].memberType == \"PEOPLE\"){", " pm.collectionVariables.set(\"_members.personId\", resBody.members[i].id);", " break;", "}", "}", "", "for (let i = 0; i < resBody.members.length; i++) {", "if(resBody.members[i].memberType == \"PLACE\"){", " pm.collectionVariables.set(\"_members.workspaceId\", resBody.members[i].id);", " break;", "}", "}" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{WEBEX_API_URL}}/telephony/config/devices/{{DEVICE_ID}}/availableMembers", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "telephony", "config", "devices", "{{DEVICE_ID}}", "availableMembers" ] } }, "response": [] }, { "name": "Get Device Members", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "let response = pm.response.json();", "pm.collectionVariables.set(\"_members.id\", response.members[0].id);" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{WEBEX_API_URL}}/telephony/config/devices/{{DEVICE_ID}}/members", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "telephony", "config", "devices", "{{DEVICE_ID}}", "members" ] } }, "response": [] }, { "name": "Modify Device Members", "event": [ { "listen": "test", "script": { "exec": [ "" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\n \"members\": [\n {\n \"id\": \"{{_members.id}}\",\n \"firstName\": \"HG Workspace 2\",\n \"lastName\": \".\",\n \"extension\": \"78676\",\n \"primaryOwner\": true,\n \"port\": 1,\n \"t38FaxCompressionEnabled\": null,\n \"lineType\": \"PRIMARY\",\n \"lineWeight\": 1,\n \"hotlineEnabled\": false,\n \"allowCallDeclineEnabled\": true,\n \"memberType\": \"PLACE\"\n }\n ]\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{WEBEX_API_URL}}/telephony/config/devices/{{DEVICE_ID}}/members", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "telephony", "config", "devices", "{{DEVICE_ID}}", "members" ] } }, "response": [] }, { "name": "Get DECT Devices Settings", "event": [ { "listen": "test", "script": { "exec": [ "" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{WEBEX_API_URL}}/telephony/config/devices/dects/supportedDevices", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "telephony", "config", "devices", "dects", "supportedDevices" ] } }, "response": [] }, { "name": "Validate Mac Address", "event": [ { "listen": "test", "script": { "exec": [ "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"macs\": [\n \"{{MAC_ADDRESS}}\"\n ]\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{WEBEX_API_URL}}/telephony/config/devices/actions/validateMacs/invoke", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "telephony", "config", "devices", "actions", "validateMacs", "invoke" ] } }, "response": [] } ] } ] }, { "name": "Webex Calling Person Settings", "item": [ { "name": "Call Waiting", "item": [ { "name": "Get Call Waiting", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{WEBEX_API_URL}}/people/{{PERSON_ID}}/features/callWaiting", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "people", "{{PERSON_ID}}", "features", "callWaiting" ] } }, "response": [] }, { "name": "Update Call Waiting", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 204\", function () {", " pm.response.to.have.status(204);", "});" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"enabled\": true\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{WEBEX_API_URL}}/people/{{PERSON_ID}}/features/callWaiting", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "people", "{{PERSON_ID}}", "features", "callWaiting" ] } }, "response": [] } ] }, { "name": "Privacy", "item": [ { "name": "Get Privacy", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{WEBEX_API_URL}}/people/{{PERSON_ID}}/features/privacy", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "people", "{{PERSON_ID}}", "features", "privacy" ] } }, "response": [] }, { "name": "Update Privacy", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 204\", function () {", " pm.response.to.have.status(204);", "});" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\n \"aaExtensionDialingEnabled\": false,\n \"aaNamingDialingEnabled\": true,\n \"enablePhoneStatusDirectoryPrivacy\": true,\n \"monitoringAgents\": [\n \"{{MONITORED_AGENTID_1}}\",\n \"{{MONITORED_AGENTID_2}}\"\n ]\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{WEBEX_API_URL}}/people/{{PERSON_ID}}/features/privacy", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "people", "{{PERSON_ID}}", "features", "privacy" ] } }, "response": [] } ] }, { "name": "Schedules and Events", "item": [ { "name": "Create Schedule", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 201\", function () {", " pm.response.to.have.status(201);", "});", "", "let response = pm.response.json();", "pm.collectionVariables.set(\"_scheduleId\", response.id);" ], "type": "text/javascript" } } ], "protocolProfileBehavior": { "disabledSystemHeaders": { "content-type": true } }, "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", "raw": "{\n \"type\": \"{{SCHEDULE_TYPE}}\",\n \"name\": \"schedule 1\",\n \"events\": [\n {\n \"name\": \"event 1\",\n \"startDate\": \"2022-03-01\",\n \"endDate\": \"2022-03-03\",\n \"startTime\": \"12:30\",\n \"endTime\": \"15:30\",\n \"allDayEnabled\": false,\n \"recurrence\": {\n \"recurDaily\": {\n \"recurInterval\": 365\n }\n }\n }\n ]\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{WEBEX_API_URL}}/people/{{PERSON_ID}}/features/schedules", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "people", "{{PERSON_ID}}", "features", "schedules" ] } }, "response": [] }, { "name": "Get Schedule", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{WEBEX_API_URL}}/people/{{PERSON_ID}}/features/schedules/{{SCHEDULE_TYPE}}/{{_scheduleId}}", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "people", "{{PERSON_ID}}", "features", "schedules", "{{SCHEDULE_TYPE}}", "{{_scheduleId}}" ] } }, "response": [] }, { "name": "Update Schedule", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 200\", function () {", " pm.response.to.have.status(200);", "});", "", "let response = pm.response.json();", "pm.collectionVariables.set(\"_scheduleId\", response.id);" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\n \"name\": \"schedule 1\",\n \"events\": [\n {\n \"name\": \"event 1\",\n \"newName\": \"event 2\",\n \"startDate\": \"2022-03-01\",\n \"endDate\": \"2022-03-03\",\n \"startTime\": \"17:30\",\n \"endTime\": \"21:30\",\n \"allDayEnabled\": false,\n \"recurrence\": {\n \"recurWeekly\": {\n \"friday\": true\n }\n }\n }\n ]\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{WEBEX_API_URL}}/people/{{PERSON_ID}}/features/schedules/{{SCHEDULE_TYPE}}/{{_scheduleId}}", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "people", "{{PERSON_ID}}", "features", "schedules", "{{SCHEDULE_TYPE}}", "{{_scheduleId}}" ] } }, "response": [] }, { "name": "Create Event", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 201\", function () {", " pm.response.to.have.status(201);", "});", "", "let response = pm.response.json();", "pm.collectionVariables.set(\"_eventId\", response.id);" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"name\": \"event 1\",\n \"startDate\": \"2022-02-25\",\n \"endDate\": \"2022-02-25\",\n \"startTime\": \"12:30\",\n \"endTime\": \"15:30\",\n \"allDayEnabled\": false,\n \"recurrence\": {\n \"recurWeekly\": {\n \"friday\": true\n }\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{WEBEX_API_URL}}/people/{{PERSON_ID}}/features/schedules/{{SCHEDULE_TYPE}}/{{_scheduleId}}/events", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "people", "{{PERSON_ID}}", "features", "schedules", "{{SCHEDULE_TYPE}}", "{{_scheduleId}}", "events" ] } }, "response": [] }, { "name": "Get Event", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{WEBEX_API_URL}}/people/{{PERSON_ID}}/features/schedules/{{SCHEDULE_TYPE}}/{{_scheduleId}}/events/{{_eventId}}", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "people", "{{PERSON_ID}}", "features", "schedules", "{{SCHEDULE_TYPE}}", "{{_scheduleId}}", "events", "{{_eventId}}" ] } }, "response": [] }, { "name": "Update Event", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 200\", function () {", " pm.response.to.have.status(200);", "});", "", "let response = pm.response.json();", "pm.collectionVariables.set(\"_eventId\", response.id);" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\n \"name\": \"event 3\",\n \"startDate\": \"2022-03-04\",\n \"endDate\": \"2022-03-04\",\n \"startTime\":\"11:30\",\n \"endTime\":\"18:00\",\n \"allDayEnabled\": false,\n \"recurrence\":{\n \"recurForever\":true,\n \"recurWeekly\":{\n \"monday\":true\n }\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{WEBEX_API_URL}}/people/{{PERSON_ID}}/features/schedules/{{SCHEDULE_TYPE}}/{{_scheduleId}}/events/{{_eventId}}", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "people", "{{PERSON_ID}}", "features", "schedules", "{{SCHEDULE_TYPE}}", "{{_scheduleId}}", "events", "{{_eventId}}" ] } }, "response": [] }, { "name": "Delete Event", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 204\", function () {", " pm.response.to.have.status(204);", "});", "" ], "type": "text/javascript" } } ], "request": { "method": "DELETE", "header": [], "url": { "raw": "{{WEBEX_API_URL}}/people/{{PERSON_ID}}/features/schedules/{{SCHEDULE_TYPE}}/{{_scheduleId}}/events/{{_eventId}}", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "people", "{{PERSON_ID}}", "features", "schedules", "{{SCHEDULE_TYPE}}", "{{_scheduleId}}", "events", "{{_eventId}}" ] } }, "response": [] }, { "name": "Delete Schedule", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 204\", function () {", " pm.response.to.have.status(204);", "});", "", "" ], "type": "text/javascript" } } ], "request": { "method": "DELETE", "header": [], "url": { "raw": "{{WEBEX_API_URL}}/people/{{PERSON_ID}}/features/schedules/{{SCHEDULE_TYPE}}/{{_scheduleId}}", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "people", "{{PERSON_ID}}", "features", "schedules", "{{SCHEDULE_TYPE}}", "{{_scheduleId}}" ] } }, "response": [] }, { "name": "Get List Of Schedules", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 200\", function () {", " pm.response.to.have.status(200);", "});", "" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{WEBEX_API_URL}}/people/{{PERSON_ID}}/features/schedules?type={{SCHEDULE_TYPE}}", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "people", "{{PERSON_ID}}", "features", "schedules" ], "query": [ { "key": "type", "value": "{{SCHEDULE_TYPE}}" } ] } }, "response": [] } ] }, { "name": "Receptionist Client", "item": [ { "name": "Get Reception", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{WEBEX_API_URL}}/people/{{PERSON_ID}}/features/reception", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "people", "{{PERSON_ID}}", "features", "reception" ] } }, "response": [] }, { "name": "Update Reception", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 204\", function () {", " pm.response.to.have.status(204);", "});" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"receptionEnabled\": true,\r\n \"monitoredMembers\": [\r\n \"{{MONITORED_AGENTID_1}}\",\r\n \"{{MONITORED_AGENTID_2}}\"\r\n ]\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{WEBEX_API_URL}}/people/{{PERSON_ID}}/features/reception", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "people", "{{PERSON_ID}}", "features", "reception" ] } }, "response": [] } ] }, { "name": "Push-to-Talk", "item": [ { "name": "Get Push-To-Talk", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{WEBEX_API_URL}}/people/{{PERSON_ID}}/features/pushToTalk", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "people", "{{PERSON_ID}}", "features", "pushToTalk" ] } }, "response": [] }, { "name": "Update Push-To-Talk", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 204\", function () {", " pm.response.to.have.status(204);", "});" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"allowAutoAnswer\": true,\r\n \"connectionType\": \"ONE_WAY\",\r\n \"accessType\": \"ALLOW_MEMBERS\",\r\n \"members\": [\r\n \"{{MONITORED_AGENTID_1}}\",\r\n \"{{MONITORED_AGENTID_2}}\"\r\n ]\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{WEBEX_API_URL}}/people/{{PERSON_ID}}/features/pushToTalk", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "people", "{{PERSON_ID}}", "features", "pushToTalk" ] } }, "response": [] } ] }, { "name": "Numbers", "item": [ { "name": "Get Numbers", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{WEBEX_API_URL}}/people/{{PERSON_ID}}/features/numbers", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "people", "{{PERSON_ID}}", "features", "numbers" ] } }, "response": [] } ] }, { "name": "Hoteling", "item": [ { "name": "Get Hoteling", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{WEBEX_API_URL}}/people/{{PERSON_ID}}/features/hoteling", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "people", "{{PERSON_ID}}", "features", "hoteling" ] } }, "response": [] }, { "name": "Update Hoteling", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 204\", function () {", " pm.response.to.have.status(204);", "});" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\n \"enabled\": true\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{WEBEX_API_URL}}/people/{{PERSON_ID}}/features/hoteling", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "people", "{{PERSON_ID}}", "features", "hoteling" ] } }, "response": [] } ] }, { "name": "Voicemail", "item": [ { "name": "Reset Voicemail Pin", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 204\", function () {", " pm.response.to.have.status(204);", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "url": { "raw": "{{WEBEX_API_URL}}/people/{{PERSON_ID}}/features/voicemail/actions/resetPin/invoke", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "people", "{{PERSON_ID}}", "features", "voicemail", "actions", "resetPin", "invoke" ] } }, "response": [] } ] }, { "name": "Incoming Permission", "item": [ { "name": "Get Incoming Permission", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{WEBEX_API_URL}}/people/{{PERSON_ID}}/features/incomingPermission", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "people", "{{PERSON_ID}}", "features", "incomingPermission" ] } }, "response": [] }, { "name": "Update Incoming Permission", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 204\", function () {", " pm.response.to.have.status(204);", "});" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\n \"useCustomEnabled\": false,\n \"externalTransfer\": \"ALLOW_ALL_EXTERNAL\",\n \"internalCallsEnabled\": true,\n \"collectCallsEnabled\": true\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{WEBEX_API_URL}}/people/{{PERSON_ID}}/features/incomingPermission", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "people", "{{PERSON_ID}}", "features", "incomingPermission" ] } }, "response": [] } ] }, { "name": "Outgoing Permission", "item": [ { "name": "Get Outgoing Permission", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{WEBEX_API_URL}}/people/{{PERSON_ID}}/features/outgoingPermission", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "people", "{{PERSON_ID}}", "features", "outgoingPermission" ] } }, "response": [] }, { "name": "Update Outgoing Permission", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 204\", function () {", " pm.response.to.have.status(204);", "});" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\n \"useCustomEnabled\": false,\n \"callingPermissions\": [\n {\n \"callType\": \"INTERNAL_CALL\",\n \"action\": \"ALLOW\",\n \"transferEnabled\": true\n },\n {\n \"callType\": \"LOCAL\",\n \"action\": \"ALLOW\",\n \"transferEnabled\": true\n },\n {\n \"callType\": \"TOLL_FREE\",\n \"action\": \"ALLOW\",\n \"transferEnabled\": true\n },\n {\n \"callType\": \"TOLL\",\n \"action\": \"ALLOW\",\n \"transferEnabled\": true\n },\n {\n \"callType\": \"INTERNATIONAL\",\n \"action\": \"BLOCK\",\n \"transferEnabled\": false\n },\n {\n \"callType\": \"OPERATOR_ASSISTED\",\n \"action\": \"ALLOW\",\n \"transferEnabled\": true\n },\n {\n \"callType\": \"CHARGEABLE_DIRECTORY_ASSISTED\",\n \"action\": \"ALLOW\",\n \"transferEnabled\": true\n },\n {\n \"callType\": \"SPECIAL_SERVICES_I\",\n \"action\": \"ALLOW\",\n \"transferEnabled\": true\n },\n {\n \"callType\": \"SPECIAL_SERVICES_II\",\n \"action\": \"ALLOW\",\n \"transferEnabled\": true\n },\n {\n \"callType\": \"PREMIUM_SERVICES_I\",\n \"action\": \"BLOCK\",\n \"transferEnabled\": false\n },\n {\n \"callType\": \"PREMIUM_SERVICES_II\",\n \"action\": \"BLOCK\",\n \"transferEnabled\": false\n },\n {\n \"callType\": \"CASUAL\",\n \"action\": \"BLOCK\",\n \"transferEnabled\": false\n },\n {\n \"callType\": \"URL_DIALING\",\n \"action\": \"ALLOW\",\n \"transferEnabled\": true\n },\n {\n \"callType\": \"UNKNOWN\",\n \"action\": \"ALLOW\",\n \"transferEnabled\": true\n }\n ]\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{WEBEX_API_URL}}/people/{{PERSON_ID}}/features/outgoingPermission", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "people", "{{PERSON_ID}}", "features", "outgoingPermission" ] } }, "response": [] } ] }, { "name": "Executive Assistant", "item": [ { "name": "Get Executive Assistant", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{WEBEX_API_URL}}/people/{{PERSON_ID}}/features/executiveAssistant", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "people", "{{PERSON_ID}}", "features", "executiveAssistant" ] } }, "response": [] }, { "name": "Update Executive Assistant", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 204\", function () {", " pm.response.to.have.status(204);", "});" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\n \"type\": \"ASSIGNED\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{WEBEX_API_URL}}/people/{{PERSON_ID}}/features/executiveAssistant", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "people", "{{PERSON_ID}}", "features", "executiveAssistant" ] } }, "response": [] } ] }, { "name": "Application Services", "item": [ { "name": "Get Application Services", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{WEBEX_API_URL}}/people/{{PERSON_ID}}/features/applications", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "people", "{{PERSON_ID}}", "features", "applications" ] } }, "response": [] }, { "name": "Update Application Services", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 204\", function () {", " pm.response.to.have.status(204);", "});" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\n \"ringDevicesForClickToDialCallsEnabled\": true,\n \"ringDevicesForGroupPageEnabled\": false,\n \"ringDevicesForCallParkEnabled\": true,\n \"desktopClientEnabled\": true,\n \"mobileClientEnabled\": true,\n \"tabletClientEnabled\": true\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{WEBEX_API_URL}}/people/{{PERSON_ID}}/features/applications", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "people", "{{PERSON_ID}}", "features", "applications" ] } }, "response": [] } ] }, { "name": "Monitoring", "item": [ { "name": "Get Monitoring", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{WEBEX_API_URL}}/people/{{PERSON_ID}}/features/monitoring", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "people", "{{PERSON_ID}}", "features", "monitoring" ] } }, "response": [] }, { "name": "Update Monitoring", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 204\", function () {", " pm.response.to.have.status(204);", "});" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\n \"enableCallParkNotification\":true,\n \"monitoredElements\":[\n \"{{MONITORED_AGENTID_1}}\",\n \"{{MONITORED_AGENTID_2}}\"\n ]\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{WEBEX_API_URL}}/people/{{PERSON_ID}}/features/monitoring", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "people", "{{PERSON_ID}}", "features", "monitoring" ] } }, "response": [] } ] }, { "name": "Devices", "item": [ { "name": "Get Device Settings For A Person", "event": [ { "listen": "test", "script": { "exec": [ "" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{WEBEX_API_URL}}/telephony/config/people/{{_members.personId}}/devices", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "telephony", "config", "people", "{{_members.personId}}", "devices" ] } }, "response": [] }, { "name": "Get Person's Application Members", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "let response = pm.response.json();", "pm.collectionVariables.set(\"_members.id\", response.members[0].id);" ], "type": "text/javascript" } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "GET", "header": [], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{WEBEX_API_URL}}/telephony/config/people/{{_members.personId}}/applications/{{APPLICATION_ID}}/members", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "telephony", "config", "people", "{{_members.personId}}", "applications", "{{APPLICATION_ID}}", "members" ] } }, "response": [] }, { "name": "Modify Person's Application Members", "event": [ { "listen": "test", "script": { "exec": [ "" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\n \"members\": [\n {\n \"id\": \"{{_members.personId}}\",\n \"port\": 1,\n \"primaryOwner\": true,\n \"lineType\": \"SHARED_CALL_APPEARANCE\",\n \"lineWeight\": 1,\n \"hotlineEnabled\": false,\n \"allowCallDeclineEnabled\": true\n }\n ]\n}\n", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{WEBEX_API_URL}}/telephony/config/people/{{_members.personId}}/applications/{{APPLICATION_ID}}/members", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "telephony", "config", "people", "{{_members.personId}}", "applications", "{{APPLICATION_ID}}", "members" ] } }, "response": [] }, { "name": "Get Person's Application Available Members", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "let response = pm.response.json();", "pm.collectionVariables.set(\"_members.id\", response.members[0].id);" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{WEBEX_API_URL}}/telephony/config/people/{{_members.personId}}/applications/{{APPLICATION_ID}}/availableMembers", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "telephony", "config", "people", "{{_members.personId}}", "applications", "{{APPLICATION_ID}}", "availableMembers" ] } }, "response": [] } ] }, { "name": "Music On Hold", "item": [ { "name": "Upload the Binary file", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 201\", function () {", " if (pm.response.code == 403) {", " throw new Error(\"Got status code 403. Ensure your auth token contains spark-admin:telephony_config_write scope.\");", " }", " pm.response.to.have.status(201);", "});", "", "let response = pm.response.json();", "pm.collectionVariables.set(\"_announcementId\", response.id);", "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "formdata", "formdata": [ { "key": "file", "type": "file", "src": [] }, { "key": "name", "value": "MOHFile", "type": "text" } ] }, "url": { "raw": "{{WEBEX_API_URL}}/telephony/config/locations/{{_locationId}}/announcements", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "telephony", "config", "locations", "{{_locationId}}", "announcements" ] } }, "response": [] }, { "name": "Get User Music On Hold", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{WEBEX_API_URL}}/telephony/config/people/{{PERSON_ID}}/musicOnHold", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "telephony", "config", "people", "{{PERSON_ID}}", "musicOnHold" ] } }, "response": [] }, { "name": "Update User Music On Hold with Custom Greeting", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 204\", function () {", " pm.response.to.have.status(204);", "});" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\n \"mohEnabled\": true,\n \"greeting\": \"CUSTOM\",\n \"audioAnnouncementFile\": {\n \"id\": \"{{_announcementId}}\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{WEBEX_API_URL}}/telephony/config/people/{{PERSON_ID}}/musicOnHold", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "telephony", "config", "people", "{{PERSON_ID}}", "musicOnHold" ] } }, "response": [] }, { "name": "Get User Music On Hold after modifying", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{WEBEX_API_URL}}/telephony/config/people/{{PERSON_ID}}/musicOnHold", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "telephony", "config", "people", "{{PERSON_ID}}", "musicOnHold" ] } }, "response": [] }, { "name": "Update User Music On Hold with Default Greeting", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 204\", function () {", " if (pm.response.code == 403) {", " throw new Error(\"Got status code 403. Ensure your auth token contains spark-admin:telephony_config_write scope.\");", " }", " pm.response.to.have.status(204);", "});", "" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\n \"mohEnabled\": true,\n \"greeting\": \"DEFAULT\",\n \"audioAnnouncementFile\": null\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{WEBEX_API_URL}}/telephony/config/people/{{PERSON_ID}}/musicOnHold", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "telephony", "config", "people", "{{PERSON_ID}}", "musicOnHold" ] } }, "response": [] }, { "name": "Delete Announcement Details", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 204\", function () {", " if (pm.response.code == 403) {", " throw new Error(\"Got status code 403. Ensure your auth token contains spark-admin:telephony_config_write scope.\");", " }", " pm.response.to.have.status(204);", "});", "" ], "type": "text/javascript" } } ], "request": { "method": "DELETE", "header": [], "url": { "raw": "{{WEBEX_API_URL}}/telephony/config/locations/{{_locationId}}/announcements/{{_announcementId}}", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "telephony", "config", "locations", "{{_locationId}}", "announcements", "{{_announcementId}}" ] } }, "response": [] } ] } ] }, { "name": "Webex Calling Workspace Settings", "item": [ { "name": "Number Settings", "item": [ { "name": "Workspace numbers List", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json", "type": "default" } ], "url": { "raw": "{{WEBEX_API_URL}}/workspaces/{{WORKSPACE_ID}}/features/numbers", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "workspaces", "{{WORKSPACE_ID}}", "features", "numbers" ] } }, "response": [] } ] }, { "name": "Device Settings", "item": [ { "name": "Get Device Settings For A Workspace", "event": [ { "listen": "test", "script": { "exec": [ "" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{WEBEX_API_URL}}/telephony/config/workspaces/{{_members.workspaceId}}/devices", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "telephony", "config", "workspaces", "{{_members.workspaceId}}", "devices" ] } }, "response": [] }, { "name": "Modify Device Settings For A Workspace", "event": [ { "listen": "test", "script": { "exec": [ "" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\n\"enabled\": true,\n\"limitGuestUse\": true,\n\"guestHoursLimit\": 12\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{WEBEX_API_URL}}/telephony/config/workspaces/{{_members.workspaceId}}/devices", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "telephony", "config", "workspaces", "{{_members.workspaceId}}", "devices" ] } }, "response": [] } ] }, { "name": "Music On Hold", "item": [ { "name": "Upload the Binary file", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 201\", function () {", " if (pm.response.code == 403) {", " throw new Error(\"Got status code 403. Ensure your auth token contains spark-admin:telephony_config_write scope.\");", " }", " pm.response.to.have.status(201);", "});", "", "let response = pm.response.json();", "pm.collectionVariables.set(\"_announcementId\", response.id);", "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "formdata", "formdata": [ { "key": "file", "type": "file", "src": [] }, { "key": "name", "value": "MOHFile", "type": "text" } ] }, "url": { "raw": "{{WEBEX_API_URL}}/telephony/config/locations/{{_locationId}}/announcements", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "telephony", "config", "locations", "{{_locationId}}", "announcements" ] } }, "response": [] }, { "name": "Get Workspace Music On Hold", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{WEBEX_API_URL}}/telephony/config/workspaces/{{WORKSPACE_ID}}/musicOnHold", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "telephony", "config", "workspaces", "{{WORKSPACE_ID}}", "musicOnHold" ] } }, "response": [] }, { "name": "Update Workspace Music On Hold with Custom Greeting", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 204\", function () {", " pm.response.to.have.status(204);", "});" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\n \"mohEnabled\": true,\n \"greeting\": \"CUSTOM\",\n \"audioAnnouncementFile\": {\n \"id\": \"{{_announcementId}}\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{WEBEX_API_URL}}/telephony/config/workspaces/{{WORKSPACE_ID}}/musicOnHold", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "telephony", "config", "workspaces", "{{WORKSPACE_ID}}", "musicOnHold" ] } }, "response": [] }, { "name": "Get Workspace Music On Hold after modifying", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 200\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [], "url": { "raw": "{{WEBEX_API_URL}}/telephony/config/workspaces/{{WORKSPACE_ID}}/musicOnHold", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "telephony", "config", "workspaces", "{{WORKSPACE_ID}}", "musicOnHold" ] } }, "response": [] }, { "name": "Update Workspace Music On Hold with Default Greeting", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 204\", function () {", " if (pm.response.code == 403) {", " throw new Error(\"Got status code 403. Ensure your auth token contains spark-admin:telephony_config_write scope.\");", " }", " pm.response.to.have.status(204);", "});", "" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\n \"mohEnabled\": true,\n \"greeting\": \"DEFAULT\",\n \"audioAnnouncementFile\": null\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{WEBEX_API_URL}}/telephony/config/workspaces/{{WORKSPACE_ID}}/musicOnHold", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "telephony", "config", "workspaces", "{{WORKSPACE_ID}}", "musicOnHold" ] } }, "response": [] }, { "name": "Delete Announcement Details", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Expected status code: 204\", function () {", " if (pm.response.code == 403) {", " throw new Error(\"Got status code 403. Ensure your auth token contains spark-admin:telephony_config_write scope.\");", " }", " pm.response.to.have.status(204);", "});", "" ], "type": "text/javascript" } } ], "request": { "method": "DELETE", "header": [], "url": { "raw": "{{WEBEX_API_URL}}/telephony/config/locations/{{_locationId}}/announcements/{{_announcementId}}", "host": [ "{{WEBEX_API_URL}}" ], "path": [ "telephony", "config", "locations", "{{_locationId}}", "announcements", "{{_announcementId}}" ] } }, "response": [] } ] } ] } ], "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{WEBEX_TOKEN}}", "type": "string" } ] }, "event": [ { "listen": "prerequest", "script": { "type": "text/javascript", "exec": [ "" ] } }, { "listen": "test", "script": { "type": "text/javascript", "exec": [ "" ] } } ], "variable": [ { "key": "WEBEX_TOKEN", "value": "Set this to an authorized user's token" }, { "key": "WEBEX_API_URL", "value": "https://webexapis.com/v1" }, { "key": "LOCATION_ID", "value": "Set this to the location Id" }, { "key": "_voicemailGroupId", "value": "" }, { "key": "PERSON_ID", "value": "Set this to a valid person ID" }, { "key": "MONITORED_AGENTID_1", "value": "Set this to a valid person id that need to be monitored" }, { "key": "MONITORED_AGENTID_2", "value": "Set this to a valid person id that need to be monitored" }, { "key": "_scheduleId", "value": "" }, { "key": "SCHEDULE_TYPE", "value": "Set this to a valid hydra schedule type" }, { "key": "_eventId", "value": "" }, { "key": "_locationIdForNumbers", "value": "", "type": "default" }, { "key": "_ownerId", "value": "", "type": "default" }, { "key": "_ownerType", "value": "", "type": "default" }, { "key": "WORKSPACE_ID", "value": "Set this to a valid workspace Id", "type": "default" }, { "key": "LOCATIONID_FOR_DEVICES", "value": "Set this to a valid location Id for devices", "type": "default" }, { "key": "MAC_ADDRESS_LIST", "value": "Set this to a mac address(es) to be validated", "type": "default" }, { "key": "DEVICE_MODEL", "value": "Set this to a valid device model name", "type": "default" }, { "key": "DEVICE_ID", "value": "Set this to a valid device id", "type": "default" }, { "key": "APPLICATION_ID", "value": "Set this to a valid user's application id", "type": "default" }, { "key": "LOCATIONID_FOR_RECEPTIONIST", "value": "Set this to a valid location Id for receptionist contact directory", "type": "default" }, { "key": "_extensions", "value": "" }, { "key": "_members.id", "value": "", "type": "default" }, { "key": "_members.personId", "value": "", "type": "default" }, { "key": "_members.workspaceId", "value": "", "type": "default" }, { "key": "_jobId", "value": "" }, { "key": "_directory.id", "value": "Auto set by Get Receptionist Contact Directories", "type": "default" }, { "key": "_locationId", "value": "" }, { "key": "_announcementId", "value": "Auto set by Create Announcement Tests Javascript" } ] }