├── LICENSE ├── README.md ├── call-control-and-voice-messaging-api ├── README.md └── webex-calling-calls-api.json ├── images ├── edit-collection.png ├── import.png ├── response.png └── set-variables.png └── provisioning-api ├── README.md └── webex-calling-provisioning-apis.json /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2020 Cisco Systems 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # webex-calling-api-examples 2 | This repo provides Postman collections that demonstrates the use of the [Webex Calling API](https://developer.webex.com/docs/api/guides/webex-calling). 3 | 4 | To exercise these API simply do the following 5 | * [Install Postman](https://www.postman.com/downloads/) 6 | * [Import the collection](#import-the-collection) 7 | * [Configure the environment](#configure-the-environment) 8 | * [Exercise the requests](#exercise-the-resquests) 9 | 10 | ## Import the collection 11 | 1) Clone this repo or simply download the [postman collection](./webex-calling-calls-api.json) to your local disk. 12 | 2) From within Postman , begin by clicking the "Import" button, and choosing the "Choose Files" button: 13 | 14 | ![Postman Import](./images/import.png) 15 | 16 | Select the collection in any sub-folder that you wish import. When imported successfully you should see new collection in postman. 17 | 18 | ## Configure the Environment 19 | 20 | This collection uses "collection level" variables, which simply means that you can specify an environment that is unique to you, directly from within the collection itself. 21 | 22 | Each collection in this repo's sub-folders have different environment variables. Refer to individual sub-folders for description of these environment variables. 23 | 24 | To edit the variables first click on the "three dots" associated with the collection and select edit 25 | 26 | ![Edit Collection](./images/edit-collection.png) 27 | 28 | Then click on the "Variables" tab and update the values in the "Current Value" column as you need to: 29 | 30 | ![Set Variables](./images/set-variables.png) 31 | 32 | If you are familiar with Postman's environments, its worth noting that you don't need to explicitly set an environment to run these requests, since all the variables are set at the collection level. If you do have an active environment that sets any of the environment variables used by this collection, the active environment variables will take precedence. 33 | 34 | Click the update button, and you are ready to try the requests. 35 | 36 | ## Exercise the requests 37 | 38 | After sending the request scroll down to see the response. The "Test Results" section will provide information on which tests passed (or failed). 39 | 40 | ![Response](./images/response.png) 41 | 42 | Inspect the request and response to better understand how the API works and move on to the next request in the folder. 43 | 44 | Have fun! 45 | -------------------------------------------------------------------------------- /call-control-and-voice-messaging-api/README.md: -------------------------------------------------------------------------------- 1 | # webex-calling-calls-apis 2 | 3 | * [Configure the environment](#configure-the-environment) 4 | * [Exercise the requests](#exercise-the-resquests) 5 | 6 | ## Configure the Environment 7 | 8 | The environment variables for the collection in this folder: 9 | 10 | * WEBEX_TOKEN -- an OAuth token for a user configured for calling in the test environment. These tests require a token with all the calling scopes (spark:calls_read and spark:calls_write). To get started quickly, developers can copy their temporary token from the [Webex For Developers Gettings Started Guide](https://developer.webex.com/docs/api/getting-started#accounts-and-authentication). 11 | * WEBEX_API_URL -- the URL of the API under test, generally the default value of "https://webexapis.com/v1/" does not need to be changed 12 | * DESTINATION -- The destination to be dialed. Destination can be extensions, PSTN numbers, FAC codes or SIP URI. The destination can be digits or a URI. Some examples for destination include: 1234, 2223334444, +12223334444, *73, tel:+12223334444, user@company.domain, sip:user@company.domain 13 | * TRANSFER_DESTINATION -- The destination to be dialed. This is used to make a second call from the api user in order to transfer the call. 14 | * PARK_DESTINATION -- The destination to park the call. 15 | * VOICE_MESSAGE_ID -- The message Id for Voice Message APIs that require an Id for the action. 16 | 17 | ## Exercise the requests 18 | 19 | The collection consists of five folders that exercise the following use cases: 20 | 21 | 1) Create an outbound (Click to Dial) Call and verify it is gettable and perform a basic Hold and Resume operation on the call. 22 | 2) Answer an inbound call (UserA calls apiUser), initiate another call from the same user (apiUser calls UserB) and perform a Consult Transfer (i.e. apiUser transfers the call to connect UserA with UserB) 23 | 3) Answer an inbound call (UserA calls apiUser) and blind transfer (Divert) the call to apiUser's voicemail. 24 | 4) Answer an inbound call, park the call on another destination and retrieve the call back to apiUser. 25 | 5) Answer an inbound call, start recording, the pause recording, resume recording and stop call recording and then end the call. 26 | **Note:** The apiUser must be enabled for Call Recording in Control Hub and should have "On Demand" Call Recording option selected. Also, the apiUser information must be provisioned the Dubber account (i.e. user and dub point should be created prior to using these APIs) 27 | 6) Get Call History (i.e. missed calls, placed calls and received calls). 28 | 7) Voice Messages (example usage of the voice message APIs). 29 | 30 | Each folder is standalone, but the requests are meant to be run one after the other. 31 | 32 | The last request in each folder will run a pre-request script that will "clean up" the temporary environment variables that were set and used in the pre-request and test script. 33 | -------------------------------------------------------------------------------- /call-control-and-voice-messaging-api/webex-calling-calls-api.json: -------------------------------------------------------------------------------- 1 | { 2 | "info": { 3 | "_postman_id": "cda01864-ad4d-4de3-b243-f54afa27b62a", 4 | "name": "Webex Calling Calls API", 5 | "description": "These tests exercise the /telephonycalls Webex Calling API and validate the results. They are designed to provide developers who are unfamilar with the Calling API with a set of examples to understand the basic concepts of how to use them.\n\n1) Create an outbound (Click to Dial) Call and verify it is gettable and perform a basic Hold and Resume operation on the call.\n2) Answer an inbound call (UserA calls apiUser), intiatate another call from the same user (apiUser calls UserB) and perform a Consult Transfer (i.e. apiUser transfers the call to connect UserA with UserB)\n3) Answer an inbound call (UserA calls apiUser) and blind transfer (Divert) the call to apiUser's voicemail.\n4) Answer an inbound call, park the call on another destination and retrieve the call back to apiUser.\n5) Get Call History (i.e. missed calls, placed calls and received calls).\n6) Voice Messages (execute the voice messages APIs)\n\nBefore running these tests the following environment variables must be set:\n* WEBEX_TOKEN -- an OAuth token for a user configured for calling in the test environment. These tests require a token with all the calling scopes (spark:calls_read and spark:calls_write). To get started quickly, developers can copy their temporary token from the [Webex For Developers Gettings Started Guide](https://developer.webex.com/docs/api/getting-started#accounts-and-authentication). \n* WEBEX_API_URL -- the URL of the meetings API under test, generally the default value of \"https://webexapis.com/v1/\" does not need to be changed\n* DESTINATION -- The destination to be dialed. Destination can be extensions, PSTN numbers, FAC codes or SIP URI. The destination can be digits or a URI. Some examples for destination include: 1234, 2223334444, +12223334444, *73, tel:+12223334444, user@company.domain, sip:user@company.domain\n* TRANSFER_DESTINATION -- The destination to be dialed. This is used to make a second call from the api user in order to transfer the call.\n* PARK_DESTINATION -- The destination to park the call.\n* VOICE_MESSAGE_ID - the voice message Id. Used by the Voice Message APIs that require a message Id to perform the action.", 6 | "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" 7 | }, 8 | "item": [ 9 | { 10 | "name": "Basic Call With Hold and Resume", 11 | "item": [ 12 | { 13 | "name": "Dial (Click to Call)", 14 | "event": [ 15 | { 16 | "listen": "test", 17 | "script": { 18 | "exec": [ 19 | "pm.test(\"Status code is 201\", function () {", 20 | " pm.response.to.have.status(201);", 21 | "});", 22 | "", 23 | "var theCall = pm.response.json();", 24 | "pm.collectionVariables.set(\"_callId\", theCall.callId);" 25 | ], 26 | "type": "text/javascript" 27 | } 28 | } 29 | ], 30 | "request": { 31 | "method": "POST", 32 | "header": [ 33 | { 34 | "key": "Content-Type", 35 | "name": "Content-Type", 36 | "value": "application/json", 37 | "type": "text" 38 | } 39 | ], 40 | "body": { 41 | "mode": "raw", 42 | "raw": "{\n\t\"destination\": \"{{DESTINATION}}\"\n}", 43 | "options": { 44 | "raw": { 45 | "language": "json" 46 | } 47 | } 48 | }, 49 | "url": { 50 | "raw": "{{WEBEX_API_URL}}telephony/calls/dial", 51 | "host": [ 52 | "{{WEBEX_API_URL}}telephony" 53 | ], 54 | "path": [ 55 | "calls", 56 | "dial" 57 | ] 58 | } 59 | }, 60 | "response": [] 61 | }, 62 | { 63 | "name": "Answer a Call", 64 | "event": [ 65 | { 66 | "listen": "prerequest", 67 | "script": { 68 | "exec": [ 69 | "" 70 | ], 71 | "type": "text/javascript" 72 | } 73 | }, 74 | { 75 | "listen": "test", 76 | "script": { 77 | "exec": [ 78 | "pm.test(\"Status code is 200\", function () {", 79 | " pm.response.to.have.status(200);", 80 | "});" 81 | ], 82 | "type": "text/javascript" 83 | } 84 | } 85 | ], 86 | "request": { 87 | "method": "POST", 88 | "header": [ 89 | { 90 | "key": "Content-Type", 91 | "name": "Content-Type", 92 | "value": "application/json", 93 | "type": "text" 94 | } 95 | ], 96 | "body": { 97 | "mode": "raw", 98 | "raw": "{\n\t\"callId\":\"{{_callId}}\"\n}", 99 | "options": { 100 | "raw": { 101 | "language": "json" 102 | } 103 | } 104 | }, 105 | "url": { 106 | "raw": "{{WEBEX_API_URL}}telephony/calls/answer", 107 | "host": [ 108 | "{{WEBEX_API_URL}}telephony" 109 | ], 110 | "path": [ 111 | "calls", 112 | "answer" 113 | ] 114 | } 115 | }, 116 | "response": [] 117 | }, 118 | { 119 | "name": "Get Call Status", 120 | "event": [ 121 | { 122 | "listen": "prerequest", 123 | "script": { 124 | "exec": [ 125 | "" 126 | ], 127 | "type": "text/javascript" 128 | } 129 | }, 130 | { 131 | "listen": "test", 132 | "script": { 133 | "exec": [ 134 | "pm.test(\"Status code is 200\", function () {", 135 | " pm.response.to.have.status(200);", 136 | "});", 137 | "" 138 | ], 139 | "type": "text/javascript" 140 | } 141 | } 142 | ], 143 | "protocolProfileBehavior": { 144 | "disableBodyPruning": true 145 | }, 146 | "request": { 147 | "method": "GET", 148 | "header": [ 149 | { 150 | "key": "Content-Type", 151 | "name": "Content-Type", 152 | "type": "text", 153 | "value": "application/json" 154 | } 155 | ], 156 | "body": { 157 | "mode": "raw", 158 | "raw": "", 159 | "options": { 160 | "raw": { 161 | "language": "json" 162 | } 163 | } 164 | }, 165 | "url": { 166 | "raw": "{{WEBEX_API_URL}}telephony/calls/", 167 | "host": [ 168 | "{{WEBEX_API_URL}}telephony" 169 | ], 170 | "path": [ 171 | "calls", 172 | "" 173 | ] 174 | } 175 | }, 176 | "response": [] 177 | }, 178 | { 179 | "name": "Hold", 180 | "event": [ 181 | { 182 | "listen": "prerequest", 183 | "script": { 184 | "exec": [ 185 | "" 186 | ], 187 | "type": "text/javascript" 188 | } 189 | }, 190 | { 191 | "listen": "test", 192 | "script": { 193 | "exec": [ 194 | "pm.test(\"Status code is 204\", function () {", 195 | " pm.response.to.have.status(204);", 196 | "});" 197 | ], 198 | "type": "text/javascript" 199 | } 200 | } 201 | ], 202 | "request": { 203 | "method": "POST", 204 | "header": [ 205 | { 206 | "key": "Content-Type", 207 | "name": "Content-Type", 208 | "type": "text", 209 | "value": "application/json" 210 | } 211 | ], 212 | "body": { 213 | "mode": "raw", 214 | "raw": "{\n\t\"callId\":\"{{_callId}}\"\n}", 215 | "options": { 216 | "raw": { 217 | "language": "json" 218 | } 219 | } 220 | }, 221 | "url": { 222 | "raw": "{{WEBEX_API_URL}}telephony/calls/hold", 223 | "host": [ 224 | "{{WEBEX_API_URL}}telephony" 225 | ], 226 | "path": [ 227 | "calls", 228 | "hold" 229 | ] 230 | } 231 | }, 232 | "response": [] 233 | }, 234 | { 235 | "name": "Get Call Status", 236 | "event": [ 237 | { 238 | "listen": "prerequest", 239 | "script": { 240 | "exec": [ 241 | "" 242 | ], 243 | "type": "text/javascript" 244 | } 245 | }, 246 | { 247 | "listen": "test", 248 | "script": { 249 | "exec": [ 250 | "pm.test(\"Status code is 200\", function () {", 251 | " pm.response.to.have.status(200);", 252 | "});", 253 | "" 254 | ], 255 | "type": "text/javascript" 256 | } 257 | } 258 | ], 259 | "protocolProfileBehavior": { 260 | "disableBodyPruning": true 261 | }, 262 | "request": { 263 | "method": "GET", 264 | "header": [ 265 | { 266 | "key": "Content-Type", 267 | "name": "Content-Type", 268 | "type": "text", 269 | "value": "application/json" 270 | } 271 | ], 272 | "body": { 273 | "mode": "raw", 274 | "raw": "{\n\t\"callId\":\"{{callId}}\"\n}", 275 | "options": { 276 | "raw": { 277 | "language": "json" 278 | } 279 | } 280 | }, 281 | "url": { 282 | "raw": "{{WEBEX_API_URL}}telephony/calls/", 283 | "host": [ 284 | "{{WEBEX_API_URL}}telephony" 285 | ], 286 | "path": [ 287 | "calls", 288 | "" 289 | ] 290 | } 291 | }, 292 | "response": [] 293 | }, 294 | { 295 | "name": "Resume", 296 | "event": [ 297 | { 298 | "listen": "prerequest", 299 | "script": { 300 | "exec": [ 301 | "" 302 | ], 303 | "type": "text/javascript" 304 | } 305 | }, 306 | { 307 | "listen": "test", 308 | "script": { 309 | "exec": [ 310 | "pm.test(\"Status code is 204\", function () {", 311 | " pm.response.to.have.status(204);", 312 | "});" 313 | ], 314 | "type": "text/javascript" 315 | } 316 | } 317 | ], 318 | "request": { 319 | "method": "POST", 320 | "header": [ 321 | { 322 | "key": "Content-Type", 323 | "name": "Content-Type", 324 | "type": "text", 325 | "value": "application/json" 326 | } 327 | ], 328 | "body": { 329 | "mode": "raw", 330 | "raw": "{\n\t\"callId\":\"{{_callId}}\"\n}", 331 | "options": { 332 | "raw": { 333 | "language": "json" 334 | } 335 | } 336 | }, 337 | "url": { 338 | "raw": "{{WEBEX_API_URL}}telephony/calls/resume", 339 | "host": [ 340 | "{{WEBEX_API_URL}}telephony" 341 | ], 342 | "path": [ 343 | "calls", 344 | "resume" 345 | ] 346 | } 347 | }, 348 | "response": [] 349 | }, 350 | { 351 | "name": "End a Call", 352 | "event": [ 353 | { 354 | "listen": "prerequest", 355 | "script": { 356 | "exec": [ 357 | "" 358 | ], 359 | "type": "text/javascript" 360 | } 361 | }, 362 | { 363 | "listen": "test", 364 | "script": { 365 | "exec": [ 366 | "pm.test(\"Status code is 204\", function () {", 367 | " pm.response.to.have.status(204);", 368 | "});" 369 | ], 370 | "type": "text/javascript" 371 | } 372 | } 373 | ], 374 | "request": { 375 | "method": "POST", 376 | "header": [ 377 | { 378 | "key": "Content-Type", 379 | "name": "Content-Type", 380 | "type": "text", 381 | "value": "application/json" 382 | } 383 | ], 384 | "body": { 385 | "mode": "raw", 386 | "raw": "{\n\t\"callId\":\"{{_callId}}\"\n}", 387 | "options": { 388 | "raw": { 389 | "language": "json" 390 | } 391 | } 392 | }, 393 | "url": { 394 | "raw": "{{WEBEX_API_URL}}telephony/calls/hangup", 395 | "host": [ 396 | "{{WEBEX_API_URL}}telephony" 397 | ], 398 | "path": [ 399 | "calls", 400 | "hangup" 401 | ] 402 | } 403 | }, 404 | "response": [] 405 | }, 406 | { 407 | "name": "Cleanup", 408 | "event": [ 409 | { 410 | "listen": "test", 411 | "script": { 412 | "exec": [ 413 | "" 414 | ], 415 | "type": "text/javascript" 416 | } 417 | }, 418 | { 419 | "listen": "prerequest", 420 | "script": { 421 | "exec": [ 422 | "function cleanup() {", 423 | " const clean = _.keys(pm.collectionVariables.toObject());", 424 | " _.each(clean, (arrItem) => {", 425 | " //console.log(`Evalauating environment varable:${arrItem}`);", 426 | " if (arrItem.startsWith(\"_\")) {", 427 | " //console.log(`Will remove temporary env var:${arrItem}`);", 428 | " pm.collectionVariables.unset(arrItem);", 429 | " }", 430 | " });", 431 | "}", 432 | "", 433 | "// Run the cleanup script which deletes all env vars that start with \"_\"", 434 | "cleanup();" 435 | ], 436 | "type": "text/javascript" 437 | } 438 | } 439 | ], 440 | "request": { 441 | "method": "GET", 442 | "header": [], 443 | "url": { 444 | "raw": "https://postman-echo.com/", 445 | "protocol": "https", 446 | "host": [ 447 | "postman-echo", 448 | "com" 449 | ], 450 | "path": [ 451 | "" 452 | ] 453 | }, 454 | "description": "This request will run a pre-request script that will delete all the temporary environment variables that have been set." 455 | }, 456 | "response": [] 457 | } 458 | ] 459 | }, 460 | { 461 | "name": "Answer Inbound Call and Transfer", 462 | "item": [ 463 | { 464 | "name": "Get Call Status", 465 | "event": [ 466 | { 467 | "listen": "prerequest", 468 | "script": { 469 | "exec": [ 470 | "" 471 | ], 472 | "type": "text/javascript" 473 | } 474 | }, 475 | { 476 | "listen": "test", 477 | "script": { 478 | "exec": [ 479 | "pm.test(\"Status code is 200\", function () {", 480 | " pm.response.to.have.status(200);", 481 | "});", 482 | "", 483 | "var allCalls = pm.response.json();", 484 | "if ((allCalls.items) && (allCalls.items.length)) {", 485 | " pm.collectionVariables.set(\"_callId\", allCalls.items[0].id);", 486 | "}" 487 | ], 488 | "type": "text/javascript" 489 | } 490 | } 491 | ], 492 | "protocolProfileBehavior": { 493 | "disableBodyPruning": true 494 | }, 495 | "request": { 496 | "method": "GET", 497 | "header": [ 498 | { 499 | "key": "Content-Type", 500 | "name": "Content-Type", 501 | "type": "text", 502 | "value": "application/json" 503 | } 504 | ], 505 | "body": { 506 | "mode": "raw", 507 | "raw": "", 508 | "options": { 509 | "raw": { 510 | "language": "json" 511 | } 512 | } 513 | }, 514 | "url": { 515 | "raw": "{{WEBEX_API_URL}}telephony/calls/", 516 | "host": [ 517 | "{{WEBEX_API_URL}}telephony" 518 | ], 519 | "path": [ 520 | "calls", 521 | "" 522 | ] 523 | } 524 | }, 525 | "response": [] 526 | }, 527 | { 528 | "name": "Answer a Call", 529 | "event": [ 530 | { 531 | "listen": "prerequest", 532 | "script": { 533 | "exec": [ 534 | "" 535 | ], 536 | "type": "text/javascript" 537 | } 538 | }, 539 | { 540 | "listen": "test", 541 | "script": { 542 | "exec": [ 543 | "pm.test(\"Status code is 204\", function () {", 544 | " pm.response.to.have.status(204);", 545 | "});" 546 | ], 547 | "type": "text/javascript" 548 | } 549 | } 550 | ], 551 | "request": { 552 | "method": "POST", 553 | "header": [ 554 | { 555 | "key": "Content-Type", 556 | "name": "Content-Type", 557 | "value": "application/json", 558 | "type": "text" 559 | } 560 | ], 561 | "body": { 562 | "mode": "raw", 563 | "raw": "{\n\t\"callId\":\"{{_callId}}\"\n}", 564 | "options": { 565 | "raw": { 566 | "language": "json" 567 | } 568 | } 569 | }, 570 | "url": { 571 | "raw": "{{WEBEX_API_URL}}telephony/calls/answer", 572 | "host": [ 573 | "{{WEBEX_API_URL}}telephony" 574 | ], 575 | "path": [ 576 | "calls", 577 | "answer" 578 | ] 579 | } 580 | }, 581 | "response": [] 582 | }, 583 | { 584 | "name": "Dial (Click to Call) 2nd Number", 585 | "event": [ 586 | { 587 | "listen": "test", 588 | "script": { 589 | "exec": [ 590 | "pm.test(\"Status code is 201\", function () {", 591 | " pm.response.to.have.status(201);", 592 | "});", 593 | "", 594 | "var theCall = pm.response.json();", 595 | "pm.collectionVariables.set(\"_callId2\", theCall.callId);" 596 | ], 597 | "type": "text/javascript" 598 | } 599 | } 600 | ], 601 | "request": { 602 | "method": "POST", 603 | "header": [ 604 | { 605 | "key": "Content-Type", 606 | "name": "Content-Type", 607 | "type": "text", 608 | "value": "application/json" 609 | } 610 | ], 611 | "body": { 612 | "mode": "raw", 613 | "raw": "{\n\t\"destination\": \"{{TRANSFER_DESTINATION}}\"\n}", 614 | "options": { 615 | "raw": { 616 | "language": "json" 617 | } 618 | } 619 | }, 620 | "url": { 621 | "raw": "{{WEBEX_API_URL}}telephony/calls/dial", 622 | "host": [ 623 | "{{WEBEX_API_URL}}telephony" 624 | ], 625 | "path": [ 626 | "calls", 627 | "dial" 628 | ] 629 | } 630 | }, 631 | "response": [] 632 | }, 633 | { 634 | "name": "Answer 2nd Call", 635 | "event": [ 636 | { 637 | "listen": "prerequest", 638 | "script": { 639 | "exec": [ 640 | "" 641 | ], 642 | "type": "text/javascript" 643 | } 644 | }, 645 | { 646 | "listen": "test", 647 | "script": { 648 | "exec": [ 649 | "pm.test(\"Status code is 204\", function () {", 650 | " pm.response.to.have.status(204);", 651 | "});" 652 | ], 653 | "type": "text/javascript" 654 | } 655 | } 656 | ], 657 | "request": { 658 | "method": "POST", 659 | "header": [ 660 | { 661 | "key": "Content-Type", 662 | "name": "Content-Type", 663 | "value": "application/json", 664 | "type": "text" 665 | } 666 | ], 667 | "body": { 668 | "mode": "raw", 669 | "raw": "{\n\t\"callId\":\"{{_callId2}}\"\n}", 670 | "options": { 671 | "raw": { 672 | "language": "json" 673 | } 674 | } 675 | }, 676 | "url": { 677 | "raw": "{{WEBEX_API_URL}}telephony/calls/answer", 678 | "host": [ 679 | "{{WEBEX_API_URL}}telephony" 680 | ], 681 | "path": [ 682 | "calls", 683 | "answer" 684 | ] 685 | } 686 | }, 687 | "response": [] 688 | }, 689 | { 690 | "name": "Transfer", 691 | "event": [ 692 | { 693 | "listen": "test", 694 | "script": { 695 | "exec": [ 696 | "pm.test(\"Status code is 204\", function () {", 697 | " pm.response.to.have.status(204);", 698 | "});" 699 | ], 700 | "type": "text/javascript" 701 | } 702 | } 703 | ], 704 | "request": { 705 | "method": "POST", 706 | "header": [ 707 | { 708 | "key": "Content-Type", 709 | "name": "Content-Type", 710 | "value": "application/json", 711 | "type": "text" 712 | } 713 | ], 714 | "body": { 715 | "mode": "raw", 716 | "raw": "", 717 | "options": { 718 | "raw": { 719 | "language": "json" 720 | } 721 | } 722 | }, 723 | "url": { 724 | "raw": "{{WEBEX_API_URL}}telephony/calls/transfer", 725 | "host": [ 726 | "{{WEBEX_API_URL}}telephony" 727 | ], 728 | "path": [ 729 | "calls", 730 | "transfer" 731 | ] 732 | } 733 | }, 734 | "response": [] 735 | }, 736 | { 737 | "name": "Cleanup", 738 | "event": [ 739 | { 740 | "listen": "test", 741 | "script": { 742 | "exec": [ 743 | "" 744 | ], 745 | "type": "text/javascript" 746 | } 747 | }, 748 | { 749 | "listen": "prerequest", 750 | "script": { 751 | "exec": [ 752 | "function cleanup() {", 753 | " const clean = _.keys(pm.collectionVariables.toObject());", 754 | " _.each(clean, (arrItem) => {", 755 | " //console.log(`Evalauating environment varable:${arrItem}`);", 756 | " if (arrItem.startsWith(\"_\")) {", 757 | " //console.log(`Will remove temporary env var:${arrItem}`);", 758 | " pm.collectionVariables.unset(arrItem);", 759 | " }", 760 | " });", 761 | "}", 762 | "", 763 | "// Run the cleanup script which deletes all env vars that start with \"_\"", 764 | "cleanup();" 765 | ], 766 | "type": "text/javascript" 767 | } 768 | } 769 | ], 770 | "request": { 771 | "method": "GET", 772 | "header": [], 773 | "url": { 774 | "raw": "https://postman-echo.com/", 775 | "protocol": "https", 776 | "host": [ 777 | "postman-echo", 778 | "com" 779 | ], 780 | "path": [ 781 | "" 782 | ] 783 | }, 784 | "description": "This request will run a pre-request script that will delete all the temporary environment variables that have been set." 785 | }, 786 | "response": [] 787 | } 788 | ] 789 | }, 790 | { 791 | "name": "Blind Transfer To Voicemail", 792 | "item": [ 793 | { 794 | "name": "Get Call Status", 795 | "event": [ 796 | { 797 | "listen": "prerequest", 798 | "script": { 799 | "exec": [ 800 | "" 801 | ], 802 | "type": "text/javascript" 803 | } 804 | }, 805 | { 806 | "listen": "test", 807 | "script": { 808 | "exec": [ 809 | "pm.test(\"Status code is 200\", function () {", 810 | " pm.response.to.have.status(200);", 811 | "});", 812 | "", 813 | "var allCalls = pm.response.json();", 814 | "pm.collectionVariables.set(\"_callId\", allCalls.items[0].id);" 815 | ], 816 | "type": "text/javascript" 817 | } 818 | } 819 | ], 820 | "protocolProfileBehavior": { 821 | "disableBodyPruning": true 822 | }, 823 | "request": { 824 | "method": "GET", 825 | "header": [ 826 | { 827 | "key": "Content-Type", 828 | "name": "Content-Type", 829 | "type": "text", 830 | "value": "application/json" 831 | } 832 | ], 833 | "body": { 834 | "mode": "raw", 835 | "raw": "", 836 | "options": { 837 | "raw": { 838 | "language": "json" 839 | } 840 | } 841 | }, 842 | "url": { 843 | "raw": "{{WEBEX_API_URL}}telephony/calls/", 844 | "host": [ 845 | "{{WEBEX_API_URL}}telephony" 846 | ], 847 | "path": [ 848 | "calls", 849 | "" 850 | ] 851 | } 852 | }, 853 | "response": [] 854 | }, 855 | { 856 | "name": "Divert a Call To Voicemail", 857 | "event": [ 858 | { 859 | "listen": "prerequest", 860 | "script": { 861 | "exec": [ 862 | "" 863 | ], 864 | "type": "text/javascript" 865 | } 866 | }, 867 | { 868 | "listen": "test", 869 | "script": { 870 | "exec": [ 871 | "pm.test(\"Status code is 204\", function () {", 872 | " pm.response.to.have.status(204);", 873 | "});" 874 | ], 875 | "type": "text/javascript" 876 | } 877 | } 878 | ], 879 | "request": { 880 | "method": "POST", 881 | "header": [ 882 | { 883 | "key": "Content-Type", 884 | "name": "Content-Type", 885 | "type": "text", 886 | "value": "application/json" 887 | } 888 | ], 889 | "body": { 890 | "mode": "raw", 891 | "raw": "{\n\t\"callId\":\"{{_callId}}\",\n\t\"toVoicemail\": true\n}", 892 | "options": { 893 | "raw": { 894 | "language": "json" 895 | } 896 | } 897 | }, 898 | "url": { 899 | "raw": "{{WEBEX_API_URL}}telephony/calls/divert", 900 | "host": [ 901 | "{{WEBEX_API_URL}}telephony" 902 | ], 903 | "path": [ 904 | "calls", 905 | "divert" 906 | ] 907 | } 908 | }, 909 | "response": [] 910 | }, 911 | { 912 | "name": "Cleanup", 913 | "event": [ 914 | { 915 | "listen": "test", 916 | "script": { 917 | "exec": [ 918 | "" 919 | ], 920 | "type": "text/javascript" 921 | } 922 | }, 923 | { 924 | "listen": "prerequest", 925 | "script": { 926 | "exec": [ 927 | "function cleanup() {", 928 | " const clean = _.keys(pm.collectionVariables.toObject());", 929 | " _.each(clean, (arrItem) => {", 930 | " //console.log(`Evalauating environment varable:${arrItem}`);", 931 | " if (arrItem.startsWith(\"_\")) {", 932 | " //console.log(`Will remove temporary env var:${arrItem}`);", 933 | " pm.collectionVariables.unset(arrItem);", 934 | " }", 935 | " });", 936 | "}", 937 | "", 938 | "// Run the cleanup script which deletes all env vars that start with \"_\"", 939 | "cleanup();" 940 | ], 941 | "type": "text/javascript" 942 | } 943 | } 944 | ], 945 | "request": { 946 | "method": "GET", 947 | "header": [], 948 | "url": { 949 | "raw": "https://postman-echo.com/", 950 | "protocol": "https", 951 | "host": [ 952 | "postman-echo", 953 | "com" 954 | ], 955 | "path": [ 956 | "" 957 | ] 958 | }, 959 | "description": "This request will run a pre-request script that will delete all the temporary environment variables that have been set." 960 | }, 961 | "response": [] 962 | } 963 | ] 964 | }, 965 | { 966 | "name": "Park and Retrieve a call", 967 | "item": [ 968 | { 969 | "name": "Get Call Status", 970 | "event": [ 971 | { 972 | "listen": "prerequest", 973 | "script": { 974 | "exec": [ 975 | "" 976 | ], 977 | "type": "text/javascript" 978 | } 979 | }, 980 | { 981 | "listen": "test", 982 | "script": { 983 | "exec": [ 984 | "pm.test(\"Status code is 200\", function () {", 985 | " pm.response.to.have.status(200);", 986 | "});", 987 | "", 988 | "var allCalls = pm.response.json();", 989 | "pm.collectionVariables.set(\"_callId\", allCalls.items[0].id);" 990 | ], 991 | "type": "text/javascript" 992 | } 993 | } 994 | ], 995 | "protocolProfileBehavior": { 996 | "disableBodyPruning": true 997 | }, 998 | "request": { 999 | "method": "GET", 1000 | "header": [ 1001 | { 1002 | "key": "Content-Type", 1003 | "name": "Content-Type", 1004 | "type": "text", 1005 | "value": "application/json" 1006 | } 1007 | ], 1008 | "body": { 1009 | "mode": "raw", 1010 | "raw": "", 1011 | "options": { 1012 | "raw": { 1013 | "language": "json" 1014 | } 1015 | } 1016 | }, 1017 | "url": { 1018 | "raw": "{{WEBEX_API_URL}}telephony/calls/", 1019 | "host": [ 1020 | "{{WEBEX_API_URL}}telephony" 1021 | ], 1022 | "path": [ 1023 | "calls", 1024 | "" 1025 | ] 1026 | } 1027 | }, 1028 | "response": [] 1029 | }, 1030 | { 1031 | "name": "Answer a Call", 1032 | "event": [ 1033 | { 1034 | "listen": "prerequest", 1035 | "script": { 1036 | "exec": [ 1037 | "" 1038 | ], 1039 | "type": "text/javascript" 1040 | } 1041 | }, 1042 | { 1043 | "listen": "test", 1044 | "script": { 1045 | "exec": [ 1046 | "pm.test(\"Status code is 204\", function () {", 1047 | " pm.response.to.have.status(204);", 1048 | "});" 1049 | ], 1050 | "type": "text/javascript" 1051 | } 1052 | } 1053 | ], 1054 | "request": { 1055 | "method": "POST", 1056 | "header": [ 1057 | { 1058 | "key": "Content-Type", 1059 | "name": "Content-Type", 1060 | "type": "text", 1061 | "value": "application/json" 1062 | } 1063 | ], 1064 | "body": { 1065 | "mode": "raw", 1066 | "raw": "{\n\t\"callId\":\"{{_callId}}\"\n}", 1067 | "options": { 1068 | "raw": { 1069 | "language": "json" 1070 | } 1071 | } 1072 | }, 1073 | "url": { 1074 | "raw": "{{WEBEX_API_URL}}telephony/calls/answer", 1075 | "host": [ 1076 | "{{WEBEX_API_URL}}telephony" 1077 | ], 1078 | "path": [ 1079 | "calls", 1080 | "answer" 1081 | ] 1082 | } 1083 | }, 1084 | "response": [] 1085 | }, 1086 | { 1087 | "name": "Park the Call", 1088 | "event": [ 1089 | { 1090 | "listen": "test", 1091 | "script": { 1092 | "exec": [ 1093 | "pm.test(\"Status code is 200\", function () {", 1094 | " pm.response.to.have.status(200);", 1095 | "});", 1096 | "", 1097 | "var theCall = pm.response.json();", 1098 | "pm.collectionVariables.set(\"_parkedAgainst\", theCall.parkedAgainst.number);" 1099 | ], 1100 | "type": "text/javascript" 1101 | } 1102 | } 1103 | ], 1104 | "request": { 1105 | "method": "POST", 1106 | "header": [ 1107 | { 1108 | "key": "Content-Type", 1109 | "name": "Content-Type", 1110 | "type": "text", 1111 | "value": "application/json" 1112 | } 1113 | ], 1114 | "body": { 1115 | "mode": "raw", 1116 | "raw": "{\n \"callId\": \"{{_callId}}\",\n \"destination\": \"{{PARK_DESTINATION}}\"\n}", 1117 | "options": { 1118 | "raw": { 1119 | "language": "json" 1120 | } 1121 | } 1122 | }, 1123 | "url": { 1124 | "raw": "{{WEBEX_API_URL}}telephony/calls/park", 1125 | "host": [ 1126 | "{{WEBEX_API_URL}}telephony" 1127 | ], 1128 | "path": [ 1129 | "calls", 1130 | "park" 1131 | ] 1132 | } 1133 | }, 1134 | "response": [] 1135 | }, 1136 | { 1137 | "name": "Retrieve the Call", 1138 | "event": [ 1139 | { 1140 | "listen": "test", 1141 | "script": { 1142 | "exec": [ 1143 | "pm.test(\"Status code is 201\", function () {", 1144 | " pm.response.to.have.status(201);", 1145 | "});", 1146 | "", 1147 | "var theCall = pm.response.json();", 1148 | "pm.collectionVariables.set(\"_retrievedCallId\", theCall.callId);" 1149 | ], 1150 | "type": "text/javascript" 1151 | } 1152 | } 1153 | ], 1154 | "request": { 1155 | "method": "POST", 1156 | "header": [ 1157 | { 1158 | "key": "Content-Type", 1159 | "name": "Content-Type", 1160 | "type": "text", 1161 | "value": "application/json" 1162 | } 1163 | ], 1164 | "body": { 1165 | "mode": "raw", 1166 | "raw": "{\n \"destination\": \"{{_parkedAgainst}}\"\n}", 1167 | "options": { 1168 | "raw": { 1169 | "language": "json" 1170 | } 1171 | } 1172 | }, 1173 | "url": { 1174 | "raw": "{{WEBEX_API_URL}}telephony/calls/retrieve", 1175 | "host": [ 1176 | "{{WEBEX_API_URL}}telephony" 1177 | ], 1178 | "path": [ 1179 | "calls", 1180 | "retrieve" 1181 | ] 1182 | } 1183 | }, 1184 | "response": [] 1185 | }, 1186 | { 1187 | "name": "Answer a Call", 1188 | "event": [ 1189 | { 1190 | "listen": "prerequest", 1191 | "script": { 1192 | "exec": [ 1193 | "" 1194 | ], 1195 | "type": "text/javascript" 1196 | } 1197 | }, 1198 | { 1199 | "listen": "test", 1200 | "script": { 1201 | "exec": [ 1202 | "pm.test(\"Status code is 204\", function () {", 1203 | " pm.response.to.have.status(204);", 1204 | "});" 1205 | ], 1206 | "type": "text/javascript" 1207 | } 1208 | } 1209 | ], 1210 | "request": { 1211 | "method": "POST", 1212 | "header": [ 1213 | { 1214 | "key": "Content-Type", 1215 | "name": "Content-Type", 1216 | "type": "text", 1217 | "value": "application/json" 1218 | } 1219 | ], 1220 | "body": { 1221 | "mode": "raw", 1222 | "raw": "{\n\t\"callId\": \"{{_retrievedCallId}}\"\n}", 1223 | "options": { 1224 | "raw": { 1225 | "language": "json" 1226 | } 1227 | } 1228 | }, 1229 | "url": { 1230 | "raw": "{{WEBEX_API_URL}}telephony/calls/answer", 1231 | "host": [ 1232 | "{{WEBEX_API_URL}}telephony" 1233 | ], 1234 | "path": [ 1235 | "calls", 1236 | "answer" 1237 | ] 1238 | } 1239 | }, 1240 | "response": [] 1241 | }, 1242 | { 1243 | "name": "Cleanup", 1244 | "event": [ 1245 | { 1246 | "listen": "test", 1247 | "script": { 1248 | "exec": [ 1249 | "" 1250 | ], 1251 | "type": "text/javascript" 1252 | } 1253 | }, 1254 | { 1255 | "listen": "prerequest", 1256 | "script": { 1257 | "exec": [ 1258 | "function cleanup() {", 1259 | " const clean = _.keys(pm.collectionVariables.toObject());", 1260 | " _.each(clean, (arrItem) => {", 1261 | " //console.log(`Evalauating environment varable:${arrItem}`);", 1262 | " if (arrItem.startsWith(\"_\")) {", 1263 | " //console.log(`Will remove temporary env var:${arrItem}`);", 1264 | " pm.collectionVariables.unset(arrItem);", 1265 | " }", 1266 | " });", 1267 | "}", 1268 | "", 1269 | "// Run the cleanup script which deletes all env vars that start with \"_\"", 1270 | "cleanup();" 1271 | ], 1272 | "type": "text/javascript" 1273 | } 1274 | } 1275 | ], 1276 | "request": { 1277 | "method": "GET", 1278 | "header": [], 1279 | "url": { 1280 | "raw": "https://postman-echo.com/", 1281 | "protocol": "https", 1282 | "host": [ 1283 | "postman-echo", 1284 | "com" 1285 | ], 1286 | "path": [ 1287 | "" 1288 | ] 1289 | }, 1290 | "description": "This request will run a pre-request script that will delete all the temporary environment variables that have been set." 1291 | }, 1292 | "response": [] 1293 | } 1294 | ] 1295 | }, 1296 | { 1297 | "name": "Call History", 1298 | "item": [ 1299 | { 1300 | "name": "Get Call History - All Calls", 1301 | "event": [ 1302 | { 1303 | "listen": "prerequest", 1304 | "script": { 1305 | "exec": [ 1306 | "" 1307 | ], 1308 | "type": "text/javascript" 1309 | } 1310 | }, 1311 | { 1312 | "listen": "test", 1313 | "script": { 1314 | "exec": [ 1315 | "pm.test(\"Status code is 200\", function () {", 1316 | " pm.response.to.have.status(200);", 1317 | "});", 1318 | "" 1319 | ], 1320 | "type": "text/javascript" 1321 | } 1322 | } 1323 | ], 1324 | "protocolProfileBehavior": { 1325 | "disableBodyPruning": true 1326 | }, 1327 | "request": { 1328 | "method": "GET", 1329 | "header": [ 1330 | { 1331 | "key": "Content-Type", 1332 | "name": "Content-Type", 1333 | "type": "text", 1334 | "value": "application/json" 1335 | } 1336 | ], 1337 | "body": { 1338 | "mode": "raw", 1339 | "raw": "", 1340 | "options": { 1341 | "raw": { 1342 | "language": "json" 1343 | } 1344 | } 1345 | }, 1346 | "url": { 1347 | "raw": "{{WEBEX_API_URL}}telephony/calls/history", 1348 | "host": [ 1349 | "{{WEBEX_API_URL}}telephony" 1350 | ], 1351 | "path": [ 1352 | "calls", 1353 | "history" 1354 | ] 1355 | } 1356 | }, 1357 | "response": [] 1358 | }, 1359 | { 1360 | "name": "Get Call History - Placed Calls", 1361 | "event": [ 1362 | { 1363 | "listen": "prerequest", 1364 | "script": { 1365 | "exec": [ 1366 | "" 1367 | ], 1368 | "type": "text/javascript" 1369 | } 1370 | }, 1371 | { 1372 | "listen": "test", 1373 | "script": { 1374 | "exec": [ 1375 | "pm.test(\"Status code is 200\", function () {", 1376 | " pm.response.to.have.status(200);", 1377 | "});", 1378 | "" 1379 | ], 1380 | "type": "text/javascript" 1381 | } 1382 | } 1383 | ], 1384 | "protocolProfileBehavior": { 1385 | "disableBodyPruning": true 1386 | }, 1387 | "request": { 1388 | "method": "GET", 1389 | "header": [ 1390 | { 1391 | "key": "Content-Type", 1392 | "name": "Content-Type", 1393 | "type": "text", 1394 | "value": "application/json" 1395 | } 1396 | ], 1397 | "body": { 1398 | "mode": "raw", 1399 | "raw": "", 1400 | "options": { 1401 | "raw": { 1402 | "language": "json" 1403 | } 1404 | } 1405 | }, 1406 | "url": { 1407 | "raw": "{{WEBEX_API_URL}}telephony/calls/history?type=placed", 1408 | "host": [ 1409 | "{{WEBEX_API_URL}}telephony" 1410 | ], 1411 | "path": [ 1412 | "calls", 1413 | "history" 1414 | ], 1415 | "query": [ 1416 | { 1417 | "key": "type", 1418 | "value": "placed" 1419 | } 1420 | ] 1421 | } 1422 | }, 1423 | "response": [] 1424 | }, 1425 | { 1426 | "name": "Get Call History - Received Calls", 1427 | "event": [ 1428 | { 1429 | "listen": "prerequest", 1430 | "script": { 1431 | "exec": [ 1432 | "" 1433 | ], 1434 | "type": "text/javascript" 1435 | } 1436 | }, 1437 | { 1438 | "listen": "test", 1439 | "script": { 1440 | "exec": [ 1441 | "pm.test(\"Status code is 200\", function () {", 1442 | " pm.response.to.have.status(200);", 1443 | "});", 1444 | "" 1445 | ], 1446 | "type": "text/javascript" 1447 | } 1448 | } 1449 | ], 1450 | "protocolProfileBehavior": { 1451 | "disableBodyPruning": true 1452 | }, 1453 | "request": { 1454 | "method": "GET", 1455 | "header": [ 1456 | { 1457 | "key": "Content-Type", 1458 | "name": "Content-Type", 1459 | "type": "text", 1460 | "value": "application/json" 1461 | } 1462 | ], 1463 | "body": { 1464 | "mode": "raw", 1465 | "raw": "", 1466 | "options": { 1467 | "raw": { 1468 | "language": "json" 1469 | } 1470 | } 1471 | }, 1472 | "url": { 1473 | "raw": "{{WEBEX_API_URL}}telephony/calls/history?type=received", 1474 | "host": [ 1475 | "{{WEBEX_API_URL}}telephony" 1476 | ], 1477 | "path": [ 1478 | "calls", 1479 | "history" 1480 | ], 1481 | "query": [ 1482 | { 1483 | "key": "type", 1484 | "value": "received" 1485 | } 1486 | ] 1487 | } 1488 | }, 1489 | "response": [] 1490 | }, 1491 | { 1492 | "name": "Get Call History - Missed Calls", 1493 | "event": [ 1494 | { 1495 | "listen": "prerequest", 1496 | "script": { 1497 | "exec": [ 1498 | "" 1499 | ], 1500 | "type": "text/javascript" 1501 | } 1502 | }, 1503 | { 1504 | "listen": "test", 1505 | "script": { 1506 | "exec": [ 1507 | "pm.test(\"Status code is 200\", function () {", 1508 | " pm.response.to.have.status(200);", 1509 | "});", 1510 | "" 1511 | ], 1512 | "type": "text/javascript" 1513 | } 1514 | } 1515 | ], 1516 | "protocolProfileBehavior": { 1517 | "disableBodyPruning": true 1518 | }, 1519 | "request": { 1520 | "method": "GET", 1521 | "header": [ 1522 | { 1523 | "key": "Content-Type", 1524 | "name": "Content-Type", 1525 | "type": "text", 1526 | "value": "application/json" 1527 | } 1528 | ], 1529 | "body": { 1530 | "mode": "raw", 1531 | "raw": "", 1532 | "options": { 1533 | "raw": { 1534 | "language": "json" 1535 | } 1536 | } 1537 | }, 1538 | "url": { 1539 | "raw": "{{WEBEX_API_URL}}telephony/calls/history?type=missed", 1540 | "host": [ 1541 | "{{WEBEX_API_URL}}telephony" 1542 | ], 1543 | "path": [ 1544 | "calls", 1545 | "history" 1546 | ], 1547 | "query": [ 1548 | { 1549 | "key": "type", 1550 | "value": "missed" 1551 | } 1552 | ] 1553 | } 1554 | }, 1555 | "response": [] 1556 | } 1557 | ] 1558 | }, 1559 | { 1560 | "name": "Voice Messages", 1561 | "item": [ 1562 | { 1563 | "name": "Get Message Summary", 1564 | "event": [ 1565 | { 1566 | "listen": "prerequest", 1567 | "script": { 1568 | "exec": [ 1569 | "" 1570 | ], 1571 | "type": "text/javascript" 1572 | } 1573 | }, 1574 | { 1575 | "listen": "test", 1576 | "script": { 1577 | "exec": [ 1578 | "pm.test(\"Status code is 200\", function () {", 1579 | " pm.response.to.have.status(200);", 1580 | "});", 1581 | "" 1582 | ], 1583 | "type": "text/javascript" 1584 | } 1585 | } 1586 | ], 1587 | "protocolProfileBehavior": { 1588 | "disableBodyPruning": true 1589 | }, 1590 | "request": { 1591 | "method": "GET", 1592 | "header": [ 1593 | { 1594 | "key": "Content-Type", 1595 | "name": "Content-Type", 1596 | "type": "text", 1597 | "value": "application/json" 1598 | } 1599 | ], 1600 | "body": { 1601 | "mode": "raw", 1602 | "raw": "", 1603 | "options": { 1604 | "raw": { 1605 | "language": "json" 1606 | } 1607 | } 1608 | }, 1609 | "url": { 1610 | "raw": "{{WEBEX_API_URL}}telephony/voiceMessages/summary", 1611 | "host": [ 1612 | "{{WEBEX_API_URL}}telephony" 1613 | ], 1614 | "path": [ 1615 | "voiceMessages", 1616 | "summary" 1617 | ] 1618 | } 1619 | }, 1620 | "response": [] 1621 | }, 1622 | { 1623 | "name": "Get List of Messages", 1624 | "event": [ 1625 | { 1626 | "listen": "prerequest", 1627 | "script": { 1628 | "exec": [ 1629 | "" 1630 | ], 1631 | "type": "text/javascript" 1632 | } 1633 | }, 1634 | { 1635 | "listen": "test", 1636 | "script": { 1637 | "exec": [ 1638 | "pm.test(\"Status code is 200\", function () {", 1639 | " pm.response.to.have.status(200);", 1640 | "});", 1641 | "" 1642 | ], 1643 | "type": "text/javascript" 1644 | } 1645 | } 1646 | ], 1647 | "protocolProfileBehavior": { 1648 | "disableBodyPruning": true 1649 | }, 1650 | "request": { 1651 | "method": "GET", 1652 | "header": [ 1653 | { 1654 | "key": "Content-Type", 1655 | "name": "Content-Type", 1656 | "type": "text", 1657 | "value": "application/json" 1658 | } 1659 | ], 1660 | "body": { 1661 | "mode": "raw", 1662 | "raw": "", 1663 | "options": { 1664 | "raw": { 1665 | "language": "json" 1666 | } 1667 | } 1668 | }, 1669 | "url": { 1670 | "raw": "{{WEBEX_API_URL}}telephony/voiceMessages", 1671 | "host": [ 1672 | "{{WEBEX_API_URL}}telephony" 1673 | ], 1674 | "path": [ 1675 | "voiceMessages" 1676 | ] 1677 | } 1678 | }, 1679 | "response": [] 1680 | }, 1681 | { 1682 | "name": "Mark a Message as Read", 1683 | "event": [ 1684 | { 1685 | "listen": "prerequest", 1686 | "script": { 1687 | "exec": [ 1688 | "" 1689 | ], 1690 | "type": "text/javascript" 1691 | } 1692 | }, 1693 | { 1694 | "listen": "test", 1695 | "script": { 1696 | "exec": [ 1697 | "pm.test(\"Status code is 204\", function () {", 1698 | " pm.response.to.have.status(204);", 1699 | "});", 1700 | "" 1701 | ], 1702 | "type": "text/javascript" 1703 | } 1704 | } 1705 | ], 1706 | "request": { 1707 | "method": "POST", 1708 | "header": [ 1709 | { 1710 | "key": "Content-Type", 1711 | "name": "Content-Type", 1712 | "type": "text", 1713 | "value": "application/json" 1714 | } 1715 | ], 1716 | "body": { 1717 | "mode": "raw", 1718 | "raw": "{\n \"messageId\":\"{{VOICE_MESSAGE_ID}}\" \n}", 1719 | "options": { 1720 | "raw": { 1721 | "language": "json" 1722 | } 1723 | } 1724 | }, 1725 | "url": { 1726 | "raw": "{{WEBEX_API_URL}}telephony/voiceMessages/markAsRead", 1727 | "host": [ 1728 | "{{WEBEX_API_URL}}telephony" 1729 | ], 1730 | "path": [ 1731 | "voiceMessages", 1732 | "markAsRead" 1733 | ] 1734 | } 1735 | }, 1736 | "response": [] 1737 | }, 1738 | { 1739 | "name": "Mark a Message as Unread", 1740 | "event": [ 1741 | { 1742 | "listen": "prerequest", 1743 | "script": { 1744 | "exec": [ 1745 | "" 1746 | ], 1747 | "type": "text/javascript" 1748 | } 1749 | }, 1750 | { 1751 | "listen": "test", 1752 | "script": { 1753 | "exec": [ 1754 | "pm.test(\"Status code is 204\", function () {", 1755 | " pm.response.to.have.status(204);", 1756 | "});", 1757 | "" 1758 | ], 1759 | "type": "text/javascript" 1760 | } 1761 | } 1762 | ], 1763 | "request": { 1764 | "method": "POST", 1765 | "header": [ 1766 | { 1767 | "key": "Content-Type", 1768 | "name": "Content-Type", 1769 | "type": "text", 1770 | "value": "application/json" 1771 | } 1772 | ], 1773 | "body": { 1774 | "mode": "raw", 1775 | "raw": "{\n \"messageId\":\"{{VOICE_MESSAGE_ID}}\" \n}", 1776 | "options": { 1777 | "raw": { 1778 | "language": "json" 1779 | } 1780 | } 1781 | }, 1782 | "url": { 1783 | "raw": "{{WEBEX_API_URL}}telephony/voiceMessages/markAsUnread", 1784 | "host": [ 1785 | "{{WEBEX_API_URL}}telephony" 1786 | ], 1787 | "path": [ 1788 | "voiceMessages", 1789 | "markAsUnread" 1790 | ] 1791 | } 1792 | }, 1793 | "response": [] 1794 | }, 1795 | { 1796 | "name": "Mark All Messages as Read", 1797 | "event": [ 1798 | { 1799 | "listen": "prerequest", 1800 | "script": { 1801 | "exec": [ 1802 | "" 1803 | ], 1804 | "type": "text/javascript" 1805 | } 1806 | }, 1807 | { 1808 | "listen": "test", 1809 | "script": { 1810 | "exec": [ 1811 | "pm.test(\"Status code is 204\", function () {", 1812 | " pm.response.to.have.status(204);", 1813 | "});", 1814 | "" 1815 | ], 1816 | "type": "text/javascript" 1817 | } 1818 | } 1819 | ], 1820 | "request": { 1821 | "method": "POST", 1822 | "header": [ 1823 | { 1824 | "key": "Content-Type", 1825 | "name": "Content-Type", 1826 | "type": "text", 1827 | "value": "application/json" 1828 | } 1829 | ], 1830 | "body": { 1831 | "mode": "raw", 1832 | "raw": "", 1833 | "options": { 1834 | "raw": { 1835 | "language": "json" 1836 | } 1837 | } 1838 | }, 1839 | "url": { 1840 | "raw": "{{WEBEX_API_URL}}telephony/voiceMessages/markAsRead", 1841 | "host": [ 1842 | "{{WEBEX_API_URL}}telephony" 1843 | ], 1844 | "path": [ 1845 | "voiceMessages", 1846 | "markAsRead" 1847 | ] 1848 | } 1849 | }, 1850 | "response": [] 1851 | }, 1852 | { 1853 | "name": "Mark All Messages as Unread", 1854 | "event": [ 1855 | { 1856 | "listen": "prerequest", 1857 | "script": { 1858 | "exec": [ 1859 | "" 1860 | ], 1861 | "type": "text/javascript" 1862 | } 1863 | }, 1864 | { 1865 | "listen": "test", 1866 | "script": { 1867 | "exec": [ 1868 | "pm.test(\"Status code is 204\", function () {", 1869 | " pm.response.to.have.status(204);", 1870 | "});", 1871 | "" 1872 | ], 1873 | "type": "text/javascript" 1874 | } 1875 | } 1876 | ], 1877 | "request": { 1878 | "method": "POST", 1879 | "header": [ 1880 | { 1881 | "key": "Content-Type", 1882 | "name": "Content-Type", 1883 | "type": "text", 1884 | "value": "application/json" 1885 | } 1886 | ], 1887 | "body": { 1888 | "mode": "raw", 1889 | "raw": "", 1890 | "options": { 1891 | "raw": { 1892 | "language": "json" 1893 | } 1894 | } 1895 | }, 1896 | "url": { 1897 | "raw": "{{WEBEX_API_URL}}telephony/voiceMessages/markAsUnread", 1898 | "host": [ 1899 | "{{WEBEX_API_URL}}telephony" 1900 | ], 1901 | "path": [ 1902 | "voiceMessages", 1903 | "markAsUnread" 1904 | ] 1905 | } 1906 | }, 1907 | "response": [] 1908 | }, 1909 | { 1910 | "name": "Delete Message", 1911 | "event": [ 1912 | { 1913 | "listen": "prerequest", 1914 | "script": { 1915 | "exec": [ 1916 | "" 1917 | ], 1918 | "type": "text/javascript" 1919 | } 1920 | }, 1921 | { 1922 | "listen": "test", 1923 | "script": { 1924 | "exec": [ 1925 | "pm.test(\"Status code is 204\", function () {", 1926 | " pm.response.to.have.status(204);", 1927 | "});", 1928 | "" 1929 | ], 1930 | "type": "text/javascript" 1931 | } 1932 | } 1933 | ], 1934 | "request": { 1935 | "method": "DELETE", 1936 | "header": [ 1937 | { 1938 | "key": "Content-Type", 1939 | "name": "Content-Type", 1940 | "type": "text", 1941 | "value": "application/json" 1942 | } 1943 | ], 1944 | "body": { 1945 | "mode": "raw", 1946 | "raw": "", 1947 | "options": { 1948 | "raw": { 1949 | "language": "json" 1950 | } 1951 | } 1952 | }, 1953 | "url": { 1954 | "raw": "{{WEBEX_API_URL}}telephony/voiceMessages/{{VOICE_MESSAGE_ID}}", 1955 | "host": [ 1956 | "{{WEBEX_API_URL}}telephony" 1957 | ], 1958 | "path": [ 1959 | "voiceMessages", 1960 | "{{VOICE_MESSAGE_ID}}" 1961 | ] 1962 | } 1963 | }, 1964 | "response": [] 1965 | } 1966 | ] 1967 | } 1968 | ], 1969 | "auth": { 1970 | "type": "bearer", 1971 | "bearer": [ 1972 | { 1973 | "key": "token", 1974 | "value": "{{WEBEX_TOKEN}}", 1975 | "type": "string" 1976 | } 1977 | ] 1978 | }, 1979 | "event": [ 1980 | { 1981 | "listen": "prerequest", 1982 | "script": { 1983 | "type": "text/javascript", 1984 | "exec": [ 1985 | "" 1986 | ] 1987 | } 1988 | }, 1989 | { 1990 | "listen": "test", 1991 | "script": { 1992 | "type": "text/javascript", 1993 | "exec": [ 1994 | "" 1995 | ] 1996 | } 1997 | } 1998 | ], 1999 | "variable": [ 2000 | { 2001 | "key": "WEBEX_TOKEN", 2002 | "value": "Set this to an authorized user's token" 2003 | }, 2004 | { 2005 | "key": "WEBEX_API_URL", 2006 | "value": "https://webexapis.com/v1/" 2007 | }, 2008 | { 2009 | "key": "DESTINATION", 2010 | "value": "Set this to the number or address to call" 2011 | }, 2012 | { 2013 | "key": "TRANSFER_DESTINATION", 2014 | "value": "Set this to the number or address to transfer to" 2015 | }, 2016 | { 2017 | "key": "PARK_DESTINATION", 2018 | "value": "The destination where the call needs to be park and retrieved from" 2019 | }, 2020 | { 2021 | "key": "_callId", 2022 | "value": "" 2023 | }, 2024 | { 2025 | "key": "VOICE_MESSAGE_ID", 2026 | "value": "Set this to the voice message Id" 2027 | } 2028 | ] 2029 | } -------------------------------------------------------------------------------- /images/edit-collection.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webex/postman-webex-calling/38d060c38ec69420c962111a22b59793fc2da626/images/edit-collection.png -------------------------------------------------------------------------------- /images/import.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webex/postman-webex-calling/38d060c38ec69420c962111a22b59793fc2da626/images/import.png -------------------------------------------------------------------------------- /images/response.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webex/postman-webex-calling/38d060c38ec69420c962111a22b59793fc2da626/images/response.png -------------------------------------------------------------------------------- /images/set-variables.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webex/postman-webex-calling/38d060c38ec69420c962111a22b59793fc2da626/images/set-variables.png -------------------------------------------------------------------------------- /provisioning-api/README.md: -------------------------------------------------------------------------------- 1 | # webex-calling-provisioning-apis 2 | 3 | ## Configure the Environment 4 | 5 | The environment variables for the collection in this folder: 6 | 7 | * WEBEX_TOKEN -- OAuth token with appropriate calling scopes. To get started quickly, developers can copy their temporary token from the [Webex For Developers Gettings Started Guide](https://developer.webex.com/docs/api/getting-started#accounts-and-authentication). 8 | * WEBEX_API_URL -- The URL of the API under test, generally the default value of "https://webexapis.com/v1/" does not need to be changed. 9 | * LOCATION_ID -- The location id for location feature APIs that require an id for the action. 10 | * PERSON_ID -- The person id for person feature APIs that require an id for the action. 11 | * MONITORED_AGENTID_1 -- The person/place id used by person feature APIs for being monitored. 12 | * MONITORED_AGENTID_2 -- The person/place id used by person feature APIs for being monitored. 13 | * SCHEDULE_TYPE -- Valid schedule type used by person feature schedule and event APIs. 14 | * WORKSPACE_ID -- Valid workspaceId used by the numbers feature for a workspace 15 | * LOCATIONID_FOR_DEVICES -- Valid locationId to which all configured devices belong. 16 | * MAC_ADDRESS -- The input MAC addresses that needs to be validated. 17 | * DEVICE_MODEL -- Model name of the device for which settings needs to be retrieved. 18 | * DEVICE_ID -- Valid device id to fetch/update current configuration settings. 19 | * APPLICATION_ID -- Valid application id. 20 | -------------------------------------------------------------------------------- /provisioning-api/webex-calling-provisioning-apis.json: -------------------------------------------------------------------------------- 1 | { 2 | "info": { 3 | "_postman_id": "9bfbb537-5d0d-45ad-8702-cb7731b03100", 4 | "name": "Webex Calling Provisioning APIs", 5 | "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", 6 | "_exporter_id": "13457826" 7 | }, 8 | "item": [ 9 | { 10 | "name": "Locations", 11 | "item": [ 12 | { 13 | "name": "Create Location", 14 | "event": [ 15 | { 16 | "listen": "test", 17 | "script": { 18 | "exec": [ 19 | "pm.test(\"Expected status code: 201\", function () {", 20 | " pm.response.to.have.status(201);", 21 | "});", 22 | "", 23 | "let response = pm.response.json();", 24 | "pm.collectionVariables.set(\"_locationId\", response.id);" 25 | ], 26 | "type": "text/javascript" 27 | } 28 | } 29 | ], 30 | "request": { 31 | "method": "POST", 32 | "header": [], 33 | "body": { 34 | "mode": "raw", 35 | "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}", 36 | "options": { 37 | "raw": { 38 | "language": "json" 39 | } 40 | } 41 | }, 42 | "url": { 43 | "raw": "{{WEBEX_API_URL}}/locations", 44 | "host": [ 45 | "{{WEBEX_API_URL}}" 46 | ], 47 | "path": [ 48 | "locations" 49 | ] 50 | } 51 | }, 52 | "response": [] 53 | }, 54 | { 55 | "name": "Get Location List", 56 | "event": [ 57 | { 58 | "listen": "test", 59 | "script": { 60 | "exec": [ 61 | "pm.test(\"Expected status code: 200\", function () {", 62 | " pm.response.to.have.status(200);", 63 | "});" 64 | ], 65 | "type": "text/javascript" 66 | } 67 | } 68 | ], 69 | "request": { 70 | "method": "GET", 71 | "header": [], 72 | "url": { 73 | "raw": "{{WEBEX_API_URL}}/locations", 74 | "host": [ 75 | "{{WEBEX_API_URL}}" 76 | ], 77 | "path": [ 78 | "locations" 79 | ], 80 | "query": [ 81 | { 82 | "key": "name", 83 | "value": "Denver", 84 | "disabled": true 85 | }, 86 | { 87 | "key": "max", 88 | "value": "10", 89 | "disabled": true 90 | } 91 | ] 92 | } 93 | }, 94 | "response": [] 95 | }, 96 | { 97 | "name": "Get Location", 98 | "event": [ 99 | { 100 | "listen": "test", 101 | "script": { 102 | "exec": [ 103 | "pm.test(\"Expected status code: 200\", function () {", 104 | " pm.response.to.have.status(200);", 105 | "});" 106 | ], 107 | "type": "text/javascript" 108 | } 109 | } 110 | ], 111 | "request": { 112 | "method": "GET", 113 | "header": [], 114 | "url": { 115 | "raw": "{{WEBEX_API_URL}}/locations/{{_locationId}}", 116 | "host": [ 117 | "{{WEBEX_API_URL}}" 118 | ], 119 | "path": [ 120 | "locations", 121 | "{{_locationId}}" 122 | ] 123 | } 124 | }, 125 | "response": [] 126 | }, 127 | { 128 | "name": "Modify Location", 129 | "event": [ 130 | { 131 | "listen": "test", 132 | "script": { 133 | "exec": [ 134 | "pm.test(\"Expected status code: 204\", function () {", 135 | " pm.response.to.have.status(204);", 136 | "});" 137 | ], 138 | "type": "text/javascript" 139 | } 140 | } 141 | ], 142 | "request": { 143 | "method": "PUT", 144 | "header": [], 145 | "body": { 146 | "mode": "raw", 147 | "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}", 148 | "options": { 149 | "raw": { 150 | "language": "json" 151 | } 152 | } 153 | }, 154 | "url": { 155 | "raw": "{{WEBEX_API_URL}}/locations/{{_locationId}}", 156 | "host": [ 157 | "{{WEBEX_API_URL}}" 158 | ], 159 | "path": [ 160 | "locations", 161 | "{{_locationId}}" 162 | ] 163 | } 164 | }, 165 | "response": [] 166 | } 167 | ] 168 | }, 169 | { 170 | "name": "Webex Calling Organization Settings", 171 | "item": [ 172 | { 173 | "name": "Location Settings", 174 | "item": [ 175 | { 176 | "name": "Voicemail", 177 | "item": [ 178 | { 179 | "name": "Voicemail Transcription", 180 | "item": [ 181 | { 182 | "name": "Get Voicemail Transcription Setting", 183 | "event": [ 184 | { 185 | "listen": "test", 186 | "script": { 187 | "exec": [ 188 | "pm.test(\"Expected status code: 200\", function () {", 189 | " pm.response.to.have.status(200);", 190 | "});" 191 | ], 192 | "type": "text/javascript" 193 | } 194 | } 195 | ], 196 | "request": { 197 | "method": "GET", 198 | "header": [], 199 | "url": { 200 | "raw": "{{WEBEX_API_URL}}/telephony/config/locations/{{LOCATION_ID}}/voicemail", 201 | "host": [ 202 | "{{WEBEX_API_URL}}" 203 | ], 204 | "path": [ 205 | "telephony", 206 | "config", 207 | "locations", 208 | "{{LOCATION_ID}}", 209 | "voicemail" 210 | ] 211 | } 212 | }, 213 | "response": [] 214 | }, 215 | { 216 | "name": "Modify Voicemail Transcription Setting", 217 | "event": [ 218 | { 219 | "listen": "test", 220 | "script": { 221 | "exec": [ 222 | "pm.test(\"Expected status code: 204\", function () {", 223 | " pm.response.to.have.status(204);", 224 | "});" 225 | ], 226 | "type": "text/javascript" 227 | } 228 | } 229 | ], 230 | "request": { 231 | "method": "PUT", 232 | "header": [], 233 | "body": { 234 | "mode": "raw", 235 | "raw": "{\n \"voicemailTranscriptionEnabled\": false\n}", 236 | "options": { 237 | "raw": { 238 | "language": "json" 239 | } 240 | } 241 | }, 242 | "url": { 243 | "raw": "{{WEBEX_API_URL}}/telephony/config/locations/{{LOCATION_ID}}/voicemail", 244 | "host": [ 245 | "{{WEBEX_API_URL}}" 246 | ], 247 | "path": [ 248 | "telephony", 249 | "config", 250 | "locations", 251 | "{{LOCATION_ID}}", 252 | "voicemail" 253 | ] 254 | } 255 | }, 256 | "response": [] 257 | } 258 | ] 259 | }, 260 | { 261 | "name": "Voicemail Groups", 262 | "item": [ 263 | { 264 | "name": "List Voicemail Groups", 265 | "event": [ 266 | { 267 | "listen": "test", 268 | "script": { 269 | "exec": [ 270 | "pm.test(\"Expected status code: 200\", function () {", 271 | " pm.response.to.have.status(200);", 272 | "});", 273 | "" 274 | ], 275 | "type": "text/javascript" 276 | } 277 | } 278 | ], 279 | "request": { 280 | "method": "GET", 281 | "header": [], 282 | "url": { 283 | "raw": "{{WEBEX_API_URL}}/telephony/config/voicemailGroups", 284 | "host": [ 285 | "{{WEBEX_API_URL}}" 286 | ], 287 | "path": [ 288 | "telephony", 289 | "config", 290 | "voicemailGroups" 291 | ] 292 | } 293 | }, 294 | "response": [] 295 | }, 296 | { 297 | "name": "Create a Voicemail Group", 298 | "event": [ 299 | { 300 | "listen": "test", 301 | "script": { 302 | "exec": [ 303 | "pm.test(\"Expected status code: 201\", function () {", 304 | " pm.response.to.have.status(201);", 305 | "});", 306 | "", 307 | "let response = pm.response.json();", 308 | "pm.collectionVariables.set(\"_voicemailGroupId\", response.id);" 309 | ], 310 | "type": "text/javascript" 311 | } 312 | } 313 | ], 314 | "request": { 315 | "method": "POST", 316 | "header": [], 317 | "body": { 318 | "mode": "raw", 319 | "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}", 320 | "options": { 321 | "raw": { 322 | "language": "json" 323 | } 324 | } 325 | }, 326 | "url": { 327 | "raw": "{{WEBEX_API_URL}}/telephony/config/locations/{{LOCATION_ID}}/voicemailGroups", 328 | "host": [ 329 | "{{WEBEX_API_URL}}" 330 | ], 331 | "path": [ 332 | "telephony", 333 | "config", 334 | "locations", 335 | "{{LOCATION_ID}}", 336 | "voicemailGroups" 337 | ] 338 | } 339 | }, 340 | "response": [] 341 | }, 342 | { 343 | "name": "Get Voicemail Group", 344 | "event": [ 345 | { 346 | "listen": "test", 347 | "script": { 348 | "exec": [ 349 | "pm.test(\"Expected status code: 200\", function () {", 350 | " pm.response.to.have.status(200);", 351 | "});", 352 | "" 353 | ], 354 | "type": "text/javascript" 355 | } 356 | } 357 | ], 358 | "request": { 359 | "method": "GET", 360 | "header": [], 361 | "url": { 362 | "raw": "{{WEBEX_API_URL}}/telephony/config/locations/{{LOCATION_ID}}/voicemailGroups/{{_voicemailGroupId}}", 363 | "host": [ 364 | "{{WEBEX_API_URL}}" 365 | ], 366 | "path": [ 367 | "telephony", 368 | "config", 369 | "locations", 370 | "{{LOCATION_ID}}", 371 | "voicemailGroups", 372 | "{{_voicemailGroupId}}" 373 | ] 374 | } 375 | }, 376 | "response": [] 377 | }, 378 | { 379 | "name": "Modify a Voicemail Group", 380 | "event": [ 381 | { 382 | "listen": "test", 383 | "script": { 384 | "exec": [ 385 | "pm.test(\"Expected status code: 204\", function () {", 386 | " pm.response.to.have.status(204);", 387 | "});" 388 | ], 389 | "type": "text/javascript" 390 | } 391 | } 392 | ], 393 | "request": { 394 | "method": "PUT", 395 | "header": [], 396 | "body": { 397 | "mode": "raw", 398 | "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}", 399 | "options": { 400 | "raw": { 401 | "language": "json" 402 | } 403 | } 404 | }, 405 | "url": { 406 | "raw": "{{WEBEX_API_URL}}/telephony/config/locations/{{LOCATION_ID}}/voicemailGroups/{{_voicemailGroupId}}", 407 | "host": [ 408 | "{{WEBEX_API_URL}}" 409 | ], 410 | "path": [ 411 | "telephony", 412 | "config", 413 | "locations", 414 | "{{LOCATION_ID}}", 415 | "voicemailGroups", 416 | "{{_voicemailGroupId}}" 417 | ] 418 | } 419 | }, 420 | "response": [] 421 | }, 422 | { 423 | "name": "Delete a Voicemail Group", 424 | "event": [ 425 | { 426 | "listen": "test", 427 | "script": { 428 | "exec": [ 429 | "pm.test(\"Expected status code: 204\", function () {", 430 | " pm.response.to.have.status(204);", 431 | "});", 432 | "" 433 | ], 434 | "type": "text/javascript" 435 | } 436 | } 437 | ], 438 | "request": { 439 | "method": "DELETE", 440 | "header": [], 441 | "url": { 442 | "raw": "{{WEBEX_API_URL}}/telephony/config/locations/{{LOCATION_ID}}/voicemailGroups/{{_voicemailGroupId}}", 443 | "host": [ 444 | "{{WEBEX_API_URL}}" 445 | ], 446 | "path": [ 447 | "telephony", 448 | "config", 449 | "locations", 450 | "{{LOCATION_ID}}", 451 | "voicemailGroups", 452 | "{{_voicemailGroupId}}" 453 | ] 454 | } 455 | }, 456 | "response": [] 457 | } 458 | ] 459 | } 460 | ] 461 | }, 462 | { 463 | "name": "Voice Portal", 464 | "item": [ 465 | { 466 | "name": "Get Voice Portal Information", 467 | "event": [ 468 | { 469 | "listen": "test", 470 | "script": { 471 | "exec": [ 472 | "pm.test(\"Expected status code: 200\", function () {", 473 | " pm.response.to.have.status(200);", 474 | "});" 475 | ], 476 | "type": "text/javascript" 477 | } 478 | } 479 | ], 480 | "request": { 481 | "method": "GET", 482 | "header": [], 483 | "url": { 484 | "raw": "{{WEBEX_API_URL}}/telephony/config/locations/{{LOCATION_ID}}/voicePortal", 485 | "host": [ 486 | "{{WEBEX_API_URL}}" 487 | ], 488 | "path": [ 489 | "telephony", 490 | "config", 491 | "locations", 492 | "{{LOCATION_ID}}", 493 | "voicePortal" 494 | ] 495 | } 496 | }, 497 | "response": [] 498 | }, 499 | { 500 | "name": "Modify Voice Portal Information", 501 | "event": [ 502 | { 503 | "listen": "test", 504 | "script": { 505 | "exec": [ 506 | "pm.test(\"Expected status code: 204\", function () {", 507 | " pm.response.to.have.status(204);", 508 | "});" 509 | ], 510 | "type": "text/javascript" 511 | } 512 | } 513 | ], 514 | "request": { 515 | "method": "PUT", 516 | "header": [], 517 | "body": { 518 | "mode": "raw", 519 | "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}", 520 | "options": { 521 | "raw": { 522 | "language": "json" 523 | } 524 | } 525 | }, 526 | "url": { 527 | "raw": "{{WEBEX_API_URL}}/telephony/config/locations/{{LOCATION_ID}}/voicePortal", 528 | "host": [ 529 | "{{WEBEX_API_URL}}" 530 | ], 531 | "path": [ 532 | "telephony", 533 | "config", 534 | "locations", 535 | "{{LOCATION_ID}}", 536 | "voicePortal" 537 | ] 538 | } 539 | }, 540 | "response": [] 541 | }, 542 | { 543 | "name": "Get Passcode Rules", 544 | "event": [ 545 | { 546 | "listen": "test", 547 | "script": { 548 | "exec": [ 549 | "pm.test(\"Expected status code: 200\", function () {", 550 | " pm.response.to.have.status(200);", 551 | "});" 552 | ], 553 | "type": "text/javascript" 554 | } 555 | } 556 | ], 557 | "request": { 558 | "method": "GET", 559 | "header": [], 560 | "url": { 561 | "raw": "{{WEBEX_API_URL}}/telephony/config/locations/{{LOCATION_ID}}/voicePortal/passcodeRules", 562 | "host": [ 563 | "{{WEBEX_API_URL}}" 564 | ], 565 | "path": [ 566 | "telephony", 567 | "config", 568 | "locations", 569 | "{{LOCATION_ID}}", 570 | "voicePortal", 571 | "passcodeRules" 572 | ] 573 | } 574 | }, 575 | "response": [] 576 | } 577 | ] 578 | }, 579 | { 580 | "name": "Intercept", 581 | "item": [ 582 | { 583 | "name": "Get Intercept Details", 584 | "event": [ 585 | { 586 | "listen": "test", 587 | "script": { 588 | "exec": [ 589 | "pm.test(\"Expected status code: 200\", function () {", 590 | " pm.response.to.have.status(200);", 591 | "});" 592 | ], 593 | "type": "text/javascript" 594 | } 595 | } 596 | ], 597 | "request": { 598 | "method": "GET", 599 | "header": [], 600 | "url": { 601 | "raw": "{{WEBEX_API_URL}}/telephony/config/locations/{{LOCATION_ID}}/intercept", 602 | "host": [ 603 | "{{WEBEX_API_URL}}" 604 | ], 605 | "path": [ 606 | "telephony", 607 | "config", 608 | "locations", 609 | "{{LOCATION_ID}}", 610 | "intercept" 611 | ] 612 | } 613 | }, 614 | "response": [] 615 | }, 616 | { 617 | "name": "Modify Intercept Details", 618 | "event": [ 619 | { 620 | "listen": "test", 621 | "script": { 622 | "exec": [ 623 | "pm.test(\"Expected status code: 204\", function () {", 624 | " pm.response.to.have.status(204);", 625 | "});" 626 | ], 627 | "type": "text/javascript" 628 | } 629 | } 630 | ], 631 | "request": { 632 | "method": "PUT", 633 | "header": [], 634 | "body": { 635 | "mode": "raw", 636 | "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}", 637 | "options": { 638 | "raw": { 639 | "language": "json" 640 | } 641 | } 642 | }, 643 | "url": { 644 | "raw": "{{WEBEX_API_URL}}/telephony/config/locations/{{LOCATION_ID}}/intercept", 645 | "host": [ 646 | "{{WEBEX_API_URL}}" 647 | ], 648 | "path": [ 649 | "telephony", 650 | "config", 651 | "locations", 652 | "{{LOCATION_ID}}", 653 | "intercept" 654 | ] 655 | } 656 | }, 657 | "response": [] 658 | } 659 | ] 660 | }, 661 | { 662 | "name": "Outgoing Permission", 663 | "item": [ 664 | { 665 | "name": "Outgoing Call Settings", 666 | "item": [ 667 | { 668 | "name": "Get Outgoing Call Settings", 669 | "event": [ 670 | { 671 | "listen": "test", 672 | "script": { 673 | "exec": [ 674 | "pm.test(\"Expected status code: 200\", function () {", 675 | " pm.response.to.have.status(200);", 676 | "});" 677 | ], 678 | "type": "text/javascript" 679 | } 680 | } 681 | ], 682 | "request": { 683 | "method": "GET", 684 | "header": [], 685 | "url": { 686 | "raw": "{{WEBEX_API_URL}}/telephony/config/locations/{{LOCATION_ID}}/outgoingPermission", 687 | "host": [ 688 | "{{WEBEX_API_URL}}" 689 | ], 690 | "path": [ 691 | "telephony", 692 | "config", 693 | "locations", 694 | "{{LOCATION_ID}}", 695 | "outgoingPermission" 696 | ] 697 | } 698 | }, 699 | "response": [] 700 | }, 701 | { 702 | "name": "Modify Outgoing Call Settings", 703 | "event": [ 704 | { 705 | "listen": "test", 706 | "script": { 707 | "exec": [ 708 | "pm.test(\"Expected status code: 204\", function () {", 709 | " pm.response.to.have.status(204);", 710 | "});" 711 | ], 712 | "type": "text/javascript" 713 | } 714 | } 715 | ], 716 | "request": { 717 | "method": "PUT", 718 | "header": [], 719 | "body": { 720 | "mode": "raw", 721 | "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}", 722 | "options": { 723 | "raw": { 724 | "language": "json" 725 | } 726 | } 727 | }, 728 | "url": { 729 | "raw": "{{WEBEX_API_URL}}/telephony/config/locations/{{LOCATION_ID}}/outgoingPermission", 730 | "host": [ 731 | "{{WEBEX_API_URL}}" 732 | ], 733 | "path": [ 734 | "telephony", 735 | "config", 736 | "locations", 737 | "{{LOCATION_ID}}", 738 | "outgoingPermission" 739 | ] 740 | } 741 | }, 742 | "response": [] 743 | } 744 | ] 745 | }, 746 | { 747 | "name": "Access Codes", 748 | "item": [ 749 | { 750 | "name": "Get Access Codes", 751 | "event": [ 752 | { 753 | "listen": "test", 754 | "script": { 755 | "exec": [ 756 | "pm.test(\"Expected status code: 200\", function () {", 757 | " pm.response.to.have.status(200);", 758 | "});" 759 | ], 760 | "type": "text/javascript" 761 | } 762 | } 763 | ], 764 | "request": { 765 | "method": "GET", 766 | "header": [], 767 | "url": { 768 | "raw": "{{WEBEX_API_URL}}/telephony/config/locations/{{LOCATION_ID}}/outgoingPermission/accessCodes", 769 | "host": [ 770 | "{{WEBEX_API_URL}}" 771 | ], 772 | "path": [ 773 | "telephony", 774 | "config", 775 | "locations", 776 | "{{LOCATION_ID}}", 777 | "outgoingPermission", 778 | "accessCodes" 779 | ] 780 | } 781 | }, 782 | "response": [] 783 | }, 784 | { 785 | "name": "Add Access Codes", 786 | "event": [ 787 | { 788 | "listen": "test", 789 | "script": { 790 | "exec": [ 791 | "pm.test(\"Expected status code: 201\", function () {", 792 | " pm.response.to.have.status(201);", 793 | "});" 794 | ], 795 | "type": "text/javascript" 796 | } 797 | } 798 | ], 799 | "request": { 800 | "method": "POST", 801 | "header": [], 802 | "body": { 803 | "mode": "raw", 804 | "raw": "{\n \"accessCodes\": [\n {\n \"code\": \"1357\",\n \"description\": \"Main Access Code\"\n },\n {\n \"code\": \"2468\",\n \"description\": \"Alternate Access Code\"\n }]\n}", 805 | "options": { 806 | "raw": { 807 | "language": "json" 808 | } 809 | } 810 | }, 811 | "url": { 812 | "raw": "{{WEBEX_API_URL}}/telephony/config/locations/{{LOCATION_ID}}/outgoingPermission/accessCodes", 813 | "host": [ 814 | "{{WEBEX_API_URL}}" 815 | ], 816 | "path": [ 817 | "telephony", 818 | "config", 819 | "locations", 820 | "{{LOCATION_ID}}", 821 | "outgoingPermission", 822 | "accessCodes" 823 | ] 824 | } 825 | }, 826 | "response": [] 827 | }, 828 | { 829 | "name": "Delete Access Codes", 830 | "event": [ 831 | { 832 | "listen": "test", 833 | "script": { 834 | "exec": [ 835 | "pm.test(\"Expected status code: 204\", function () {", 836 | " pm.response.to.have.status(204);", 837 | "});" 838 | ], 839 | "type": "text/javascript" 840 | } 841 | } 842 | ], 843 | "request": { 844 | "method": "PUT", 845 | "header": [], 846 | "body": { 847 | "mode": "raw", 848 | "raw": "{\n \"deleteCodes\" : [\n \"1357\",\n \"2468\"\n ]\n}", 849 | "options": { 850 | "raw": { 851 | "language": "json" 852 | } 853 | } 854 | }, 855 | "url": { 856 | "raw": "{{WEBEX_API_URL}}/telephony/config/locations/{{LOCATION_ID}}/outgoingPermission/accessCodes", 857 | "host": [ 858 | "{{WEBEX_API_URL}}" 859 | ], 860 | "path": [ 861 | "telephony", 862 | "config", 863 | "locations", 864 | "{{LOCATION_ID}}", 865 | "outgoingPermission", 866 | "accessCodes" 867 | ] 868 | } 869 | }, 870 | "response": [] 871 | } 872 | ] 873 | }, 874 | { 875 | "name": "Auto Transfer Numbers", 876 | "item": [ 877 | { 878 | "name": "Get Auto Transfer Numbers", 879 | "event": [ 880 | { 881 | "listen": "test", 882 | "script": { 883 | "exec": [ 884 | "pm.test(\"Expected status code: 200\", function () {", 885 | " pm.response.to.have.status(200);", 886 | "});" 887 | ], 888 | "type": "text/javascript" 889 | } 890 | } 891 | ], 892 | "request": { 893 | "method": "GET", 894 | "header": [], 895 | "url": { 896 | "raw": "{{WEBEX_API_URL}}/telephony/config/locations/{{LOCATION_ID}}/outgoingPermission/autoTransferNumbers", 897 | "host": [ 898 | "{{WEBEX_API_URL}}" 899 | ], 900 | "path": [ 901 | "telephony", 902 | "config", 903 | "locations", 904 | "{{LOCATION_ID}}", 905 | "outgoingPermission", 906 | "autoTransferNumbers" 907 | ] 908 | } 909 | }, 910 | "response": [] 911 | }, 912 | { 913 | "name": "Modify Auto Transfer Numbers", 914 | "event": [ 915 | { 916 | "listen": "test", 917 | "script": { 918 | "exec": [ 919 | "pm.test(\"Expected status code: 204\", function () {", 920 | " pm.response.to.have.status(204);", 921 | "});" 922 | ], 923 | "type": "text/javascript" 924 | } 925 | } 926 | ], 927 | "request": { 928 | "method": "PUT", 929 | "header": [], 930 | "body": { 931 | "mode": "raw", 932 | "raw": "{\n \"autoTransferNumber1\": \"1234456789\",\n \"autoTransferNumber2\": \"2234567891\",\n \"autoTransferNumber3\": \"3234567891\"\n}", 933 | "options": { 934 | "raw": { 935 | "language": "json" 936 | } 937 | } 938 | }, 939 | "url": { 940 | "raw": "{{WEBEX_API_URL}}/telephony/config/locations/{{LOCATION_ID}}/outgoingPermission/autoTransferNumbers", 941 | "host": [ 942 | "{{WEBEX_API_URL}}" 943 | ], 944 | "path": [ 945 | "telephony", 946 | "config", 947 | "locations", 948 | "{{LOCATION_ID}}", 949 | "outgoingPermission", 950 | "autoTransferNumbers" 951 | ] 952 | } 953 | }, 954 | "response": [] 955 | } 956 | ] 957 | } 958 | ] 959 | }, 960 | { 961 | "name": "Music On Hold", 962 | "item": [ 963 | { 964 | "name": "Get Music On Hold Settings", 965 | "event": [ 966 | { 967 | "listen": "test", 968 | "script": { 969 | "exec": [ 970 | "pm.test(\"Expected status code: 200\", function () {", 971 | " pm.response.to.have.status(200);", 972 | "});" 973 | ], 974 | "type": "text/javascript" 975 | } 976 | } 977 | ], 978 | "request": { 979 | "method": "GET", 980 | "header": [], 981 | "url": { 982 | "raw": "{{WEBEX_API_URL}}/telephony/config/locations/{{LOCATION_ID}}/musicOnHold", 983 | "host": [ 984 | "{{WEBEX_API_URL}}" 985 | ], 986 | "path": [ 987 | "telephony", 988 | "config", 989 | "locations", 990 | "{{LOCATION_ID}}", 991 | "musicOnHold" 992 | ] 993 | } 994 | }, 995 | "response": [] 996 | }, 997 | { 998 | "name": "Modify Music On Hold Settings", 999 | "event": [ 1000 | { 1001 | "listen": "test", 1002 | "script": { 1003 | "exec": [ 1004 | "pm.test(\"Expected status code: 204\", function () {", 1005 | " pm.response.to.have.status(204);", 1006 | "});" 1007 | ], 1008 | "type": "text/javascript" 1009 | } 1010 | } 1011 | ], 1012 | "request": { 1013 | "method": "PUT", 1014 | "header": [], 1015 | "body": { 1016 | "mode": "raw", 1017 | "raw": "{\n \"callHoldEnabled\": false,\n \"callParkEnabled\": true,\n \"greeting\": \"SYSTEM\"\n}", 1018 | "options": { 1019 | "raw": { 1020 | "language": "json" 1021 | } 1022 | } 1023 | }, 1024 | "url": { 1025 | "raw": "{{WEBEX_API_URL}}/telephony/config/locations/{{LOCATION_ID}}/musicOnHold", 1026 | "host": [ 1027 | "{{WEBEX_API_URL}}" 1028 | ], 1029 | "path": [ 1030 | "telephony", 1031 | "config", 1032 | "locations", 1033 | "{{LOCATION_ID}}", 1034 | "musicOnHold" 1035 | ] 1036 | } 1037 | }, 1038 | "response": [] 1039 | } 1040 | ] 1041 | }, 1042 | { 1043 | "name": "Announcement Language", 1044 | "item": [ 1045 | { 1046 | "name": "Modify Announcement Language", 1047 | "event": [ 1048 | { 1049 | "listen": "test", 1050 | "script": { 1051 | "exec": [ 1052 | "pm.test(\"Expected status code: 204\", function () {", 1053 | " pm.response.to.have.status(204);", 1054 | "});" 1055 | ], 1056 | "type": "text/javascript" 1057 | } 1058 | } 1059 | ], 1060 | "request": { 1061 | "method": "POST", 1062 | "header": [], 1063 | "body": { 1064 | "mode": "raw", 1065 | "raw": "{\n \"userEnabled\": true,\n \"serviceEnabled\": true,\n \"announcementLanguage\": \"en_us\"\n}", 1066 | "options": { 1067 | "raw": { 1068 | "language": "json" 1069 | } 1070 | } 1071 | }, 1072 | "url": { 1073 | "raw": "{{WEBEX_API_URL}}/telephony/config/locations/{{LOCATION_ID}}/actions/modifyAnnouncementLanguage/invoke", 1074 | "host": [ 1075 | "{{WEBEX_API_URL}}" 1076 | ], 1077 | "path": [ 1078 | "telephony", 1079 | "config", 1080 | "locations", 1081 | "{{LOCATION_ID}}", 1082 | "actions", 1083 | "modifyAnnouncementLanguage", 1084 | "invoke" 1085 | ] 1086 | } 1087 | }, 1088 | "response": [] 1089 | } 1090 | ] 1091 | }, 1092 | { 1093 | "name": "Private Network Connect", 1094 | "item": [ 1095 | { 1096 | "name": "Get Network Connection Type", 1097 | "event": [ 1098 | { 1099 | "listen": "test", 1100 | "script": { 1101 | "exec": [ 1102 | "pm.test(\"Expected status code: 200\", function () {", 1103 | " pm.response.to.have.status(200);", 1104 | "});" 1105 | ], 1106 | "type": "text/javascript" 1107 | } 1108 | } 1109 | ], 1110 | "request": { 1111 | "method": "GET", 1112 | "header": [], 1113 | "url": { 1114 | "raw": "{{WEBEX_API_URL}}/telephony/config/locations/{{LOCATION_ID}}/privateNetworkConnect", 1115 | "host": [ 1116 | "{{WEBEX_API_URL}}" 1117 | ], 1118 | "path": [ 1119 | "telephony", 1120 | "config", 1121 | "locations", 1122 | "{{LOCATION_ID}}", 1123 | "privateNetworkConnect" 1124 | ] 1125 | } 1126 | }, 1127 | "response": [] 1128 | }, 1129 | { 1130 | "name": "Modify Network Connection Type", 1131 | "event": [ 1132 | { 1133 | "listen": "test", 1134 | "script": { 1135 | "exec": [ 1136 | "pm.test(\"Expected status code: 204\", function () {", 1137 | " pm.response.to.have.status(204);", 1138 | "});" 1139 | ], 1140 | "type": "text/javascript" 1141 | } 1142 | } 1143 | ], 1144 | "request": { 1145 | "method": "PUT", 1146 | "header": [], 1147 | "body": { 1148 | "mode": "raw", 1149 | "raw": "{\n \"networkConnectionType\": \"PUBLIC_INTERNET\"\n}", 1150 | "options": { 1151 | "raw": { 1152 | "language": "json" 1153 | } 1154 | } 1155 | }, 1156 | "url": { 1157 | "raw": "{{WEBEX_API_URL}}/telephony/config/locations/{{LOCATION_ID}}/privateNetworkConnect", 1158 | "host": [ 1159 | "{{WEBEX_API_URL}}" 1160 | ], 1161 | "path": [ 1162 | "telephony", 1163 | "config", 1164 | "locations", 1165 | "{{LOCATION_ID}}", 1166 | "privateNetworkConnect" 1167 | ] 1168 | } 1169 | }, 1170 | "response": [] 1171 | } 1172 | ] 1173 | }, 1174 | { 1175 | "name": "Receptionist Contact Directory", 1176 | "item": [ 1177 | { 1178 | "name": "Create Receptionist Contact Directory", 1179 | "protocolProfileBehavior": { 1180 | "disabledSystemHeaders": {} 1181 | }, 1182 | "request": { 1183 | "method": "POST", 1184 | "header": [], 1185 | "body": { 1186 | "mode": "raw", 1187 | "raw": "{\n \"name\": \"test_receptionist\",\n \"contacts\": [\n {\n \"personId\": \"{{PERSON_ID}}\"\n }\n ]\n}", 1188 | "options": { 1189 | "raw": { 1190 | "language": "json" 1191 | } 1192 | } 1193 | }, 1194 | "url": { 1195 | "raw": "{{WEBEX_API_URL}}/telephony/config/locations/{{LOCATIONID_FOR_RECEPTIONIST}}/receptionistContacts/directories", 1196 | "host": [ 1197 | "{{WEBEX_API_URL}}" 1198 | ], 1199 | "path": [ 1200 | "telephony", 1201 | "config", 1202 | "locations", 1203 | "{{LOCATIONID_FOR_RECEPTIONIST}}", 1204 | "receptionistContacts", 1205 | "directories" 1206 | ] 1207 | } 1208 | }, 1209 | "response": [] 1210 | }, 1211 | { 1212 | "name": "Get Receptionist Contact Directories", 1213 | "event": [ 1214 | { 1215 | "listen": "test", 1216 | "script": { 1217 | "exec": [ 1218 | "pm.test(\"Status code is 200\", function () {", 1219 | " pm.response.to.have.status(200);", 1220 | "});", 1221 | "", 1222 | "let response = pm.response.json();", 1223 | "pm.collectionVariables.set(\"_directory.id\", response.directories[0].id);", 1224 | "" 1225 | ], 1226 | "type": "text/javascript" 1227 | } 1228 | } 1229 | ], 1230 | "request": { 1231 | "method": "GET", 1232 | "header": [], 1233 | "url": { 1234 | "raw": "{{WEBEX_API_URL}}/telephony/config/locations/{{LOCATIONID_FOR_RECEPTIONIST}}/receptionistContacts/directories", 1235 | "host": [ 1236 | "{{WEBEX_API_URL}}" 1237 | ], 1238 | "path": [ 1239 | "telephony", 1240 | "config", 1241 | "locations", 1242 | "{{LOCATIONID_FOR_RECEPTIONIST}}", 1243 | "receptionistContacts", 1244 | "directories" 1245 | ] 1246 | } 1247 | }, 1248 | "response": [] 1249 | }, 1250 | { 1251 | "name": "Delete Receptionist Contact Directory", 1252 | "protocolProfileBehavior": { 1253 | "disabledSystemHeaders": {} 1254 | }, 1255 | "request": { 1256 | "method": "DELETE", 1257 | "header": [], 1258 | "url": { 1259 | "raw": "{{WEBEX_API_URL}}/telephony/config/locations/{{LOCATIONID_FOR_RECEPTIONIST}}/receptionistContacts/directories/{{_directory.id}}", 1260 | "host": [ 1261 | "{{WEBEX_API_URL}}" 1262 | ], 1263 | "path": [ 1264 | "telephony", 1265 | "config", 1266 | "locations", 1267 | "{{LOCATIONID_FOR_RECEPTIONIST}}", 1268 | "receptionistContacts", 1269 | "directories", 1270 | "{{_directory.id}}" 1271 | ] 1272 | } 1273 | }, 1274 | "response": [] 1275 | } 1276 | ] 1277 | }, 1278 | { 1279 | "name": "Additional Settings", 1280 | "item": [ 1281 | { 1282 | "name": "Get Location", 1283 | "event": [ 1284 | { 1285 | "listen": "test", 1286 | "script": { 1287 | "exec": [ 1288 | "pm.test(\"Expected status code: 200\", function () {", 1289 | " pm.response.to.have.status(200);", 1290 | "});" 1291 | ], 1292 | "type": "text/javascript" 1293 | } 1294 | } 1295 | ], 1296 | "request": { 1297 | "method": "GET", 1298 | "header": [], 1299 | "url": { 1300 | "raw": "{{WEBEX_API_URL}}/telephony/config/locations/{{_locationId}}", 1301 | "host": [ 1302 | "{{WEBEX_API_URL}}" 1303 | ], 1304 | "path": [ 1305 | "telephony", 1306 | "config", 1307 | "locations", 1308 | "{{_locationId}}" 1309 | ] 1310 | } 1311 | }, 1312 | "response": [] 1313 | }, 1314 | { 1315 | "name": "Modify Location", 1316 | "event": [ 1317 | { 1318 | "listen": "test", 1319 | "script": { 1320 | "exec": [ 1321 | "pm.test(\"Expected status code: 204\", function () {", 1322 | " pm.response.to.have.status(204);", 1323 | "});" 1324 | ], 1325 | "type": "text/javascript" 1326 | } 1327 | } 1328 | ], 1329 | "request": { 1330 | "method": "PUT", 1331 | "header": [], 1332 | "body": { 1333 | "mode": "raw", 1334 | "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}", 1335 | "options": { 1336 | "raw": { 1337 | "language": "json" 1338 | } 1339 | } 1340 | }, 1341 | "url": { 1342 | "raw": "{{WEBEX_API_URL}}/telephony/config/locations/{{_locationId}}", 1343 | "host": [ 1344 | "{{WEBEX_API_URL}}" 1345 | ], 1346 | "path": [ 1347 | "telephony", 1348 | "config", 1349 | "locations", 1350 | "{{_locationId}}" 1351 | ] 1352 | } 1353 | }, 1354 | "response": [] 1355 | } 1356 | ] 1357 | } 1358 | ] 1359 | }, 1360 | { 1361 | "name": "Voicemail Rules and Settings", 1362 | "item": [ 1363 | { 1364 | "name": "Get Voicemail Rules", 1365 | "event": [ 1366 | { 1367 | "listen": "test", 1368 | "script": { 1369 | "exec": [ 1370 | "pm.test(\"Expected status code: 200\", function () {", 1371 | " pm.response.to.have.status(200);", 1372 | "});" 1373 | ], 1374 | "type": "text/javascript" 1375 | } 1376 | } 1377 | ], 1378 | "request": { 1379 | "method": "GET", 1380 | "header": [], 1381 | "url": { 1382 | "raw": "{{WEBEX_API_URL}}/telephony/config/voicemail/rules", 1383 | "host": [ 1384 | "{{WEBEX_API_URL}}" 1385 | ], 1386 | "path": [ 1387 | "telephony", 1388 | "config", 1389 | "voicemail", 1390 | "rules" 1391 | ] 1392 | } 1393 | }, 1394 | "response": [] 1395 | }, 1396 | { 1397 | "name": "Modify Voicemail Rules", 1398 | "event": [ 1399 | { 1400 | "listen": "test", 1401 | "script": { 1402 | "exec": [ 1403 | "pm.test(\"Expected status code: 204\", function () {", 1404 | " pm.response.to.have.status(204);", 1405 | "});" 1406 | ], 1407 | "type": "text/javascript" 1408 | } 1409 | } 1410 | ], 1411 | "request": { 1412 | "method": "PUT", 1413 | "header": [], 1414 | "body": { 1415 | "mode": "raw", 1416 | "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}", 1417 | "options": { 1418 | "raw": { 1419 | "language": "json" 1420 | } 1421 | } 1422 | }, 1423 | "url": { 1424 | "raw": "{{WEBEX_API_URL}}/telephony/config/voicemail/rules", 1425 | "host": [ 1426 | "{{WEBEX_API_URL}}" 1427 | ], 1428 | "path": [ 1429 | "telephony", 1430 | "config", 1431 | "voicemail", 1432 | "rules" 1433 | ] 1434 | } 1435 | }, 1436 | "response": [] 1437 | }, 1438 | { 1439 | "name": "Get Voicemail Settings", 1440 | "event": [ 1441 | { 1442 | "listen": "test", 1443 | "script": { 1444 | "exec": [ 1445 | "pm.test(\"Expected status code: 200\", function () {", 1446 | " pm.response.to.have.status(200);", 1447 | "});" 1448 | ], 1449 | "type": "text/javascript" 1450 | } 1451 | } 1452 | ], 1453 | "request": { 1454 | "method": "GET", 1455 | "header": [], 1456 | "url": { 1457 | "raw": "{{WEBEX_API_URL}}/telephony/config/voicemail/settings", 1458 | "host": [ 1459 | "{{WEBEX_API_URL}}" 1460 | ], 1461 | "path": [ 1462 | "telephony", 1463 | "config", 1464 | "voicemail", 1465 | "settings" 1466 | ] 1467 | } 1468 | }, 1469 | "response": [] 1470 | }, 1471 | { 1472 | "name": "Modify Voicemail Settings", 1473 | "event": [ 1474 | { 1475 | "listen": "test", 1476 | "script": { 1477 | "exec": [ 1478 | "pm.test(\"Expected status code: 204\", function () {", 1479 | " pm.response.to.have.status(204);", 1480 | "});" 1481 | ], 1482 | "type": "text/javascript" 1483 | } 1484 | } 1485 | ], 1486 | "request": { 1487 | "method": "PUT", 1488 | "header": [], 1489 | "body": { 1490 | "mode": "raw", 1491 | "raw": "{\n \"messageExpiryEnabled\": true,\n \"numberOfDaysForMessageExpiry\": 15,\n \"strictDeletionEnabled\": true,\n \"voiceMessageForwardingEnabled\": true\n}", 1492 | "options": { 1493 | "raw": { 1494 | "language": "json" 1495 | } 1496 | } 1497 | }, 1498 | "url": { 1499 | "raw": "{{WEBEX_API_URL}}/telephony/config/voicemail/settings", 1500 | "host": [ 1501 | "{{WEBEX_API_URL}}" 1502 | ], 1503 | "path": [ 1504 | "telephony", 1505 | "config", 1506 | "voicemail", 1507 | "settings" 1508 | ] 1509 | } 1510 | }, 1511 | "response": [] 1512 | } 1513 | ] 1514 | }, 1515 | { 1516 | "name": "Numbers", 1517 | "item": [ 1518 | { 1519 | "name": "Number Settings", 1520 | "event": [ 1521 | { 1522 | "listen": "test", 1523 | "script": { 1524 | "exec": [ 1525 | "pm.test(\"Expected status code: 200\", function () {", 1526 | " pm.response.to.have.status(200);", 1527 | "});", 1528 | "", 1529 | "let response = pm.response.json();", 1530 | "pm.collectionVariables.set(\"_ownerId\", response.phoneNumbers[0].owner.id);", 1531 | "pm.collectionVariables.set(\"_ownerType\", response.phoneNumbers[0].owner.type);", 1532 | "", 1533 | "var jsonArray = response.phoneNumbers;", 1534 | "var extensions = [];", 1535 | "for(var i=0;i<3;i++){", 1536 | "extensions[i] = jsonArray[i].extension;", 1537 | "}", 1538 | "pm.collectionVariables.set(\"_extensions\",extensions)", 1539 | "" 1540 | ], 1541 | "type": "text/javascript" 1542 | } 1543 | } 1544 | ], 1545 | "request": { 1546 | "auth": { 1547 | "type": "bearer", 1548 | "bearer": [ 1549 | { 1550 | "key": "token", 1551 | "value": "{{WEBEX_TOKEN}}", 1552 | "type": "string" 1553 | } 1554 | ] 1555 | }, 1556 | "method": "GET", 1557 | "header": [], 1558 | "url": { 1559 | "raw": "{{WEBEX_API_URL}}/telephony/config/numbers", 1560 | "host": [ 1561 | "{{WEBEX_API_URL}}" 1562 | ], 1563 | "path": [ 1564 | "telephony", 1565 | "config", 1566 | "numbers" 1567 | ], 1568 | "query": [ 1569 | { 1570 | "key": "max", 1571 | "value": "10", 1572 | "disabled": true 1573 | }, 1574 | { 1575 | "key": "offset", 1576 | "value": "200", 1577 | "disabled": true 1578 | }, 1579 | { 1580 | "key": "ownerId", 1581 | "value": "{{_ownerId}}", 1582 | "disabled": true 1583 | }, 1584 | { 1585 | "key": "locationId", 1586 | "value": "{{LOCATION_ID}}", 1587 | "disabled": true 1588 | }, 1589 | { 1590 | "key": "ownerType", 1591 | "value": "{{_ownerType}}", 1592 | "disabled": true 1593 | }, 1594 | { 1595 | "key": "ownerName", 1596 | "value": "", 1597 | "disabled": true 1598 | }, 1599 | { 1600 | "key": "available", 1601 | "value": "true", 1602 | "disabled": true 1603 | }, 1604 | { 1605 | "key": "order", 1606 | "value": "lastName-asc", 1607 | "disabled": true 1608 | }, 1609 | { 1610 | "key": "extension", 1611 | "value": "000", 1612 | "disabled": true 1613 | }, 1614 | { 1615 | "key": "numberType", 1616 | "value": "NUMBER", 1617 | "disabled": true 1618 | }, 1619 | { 1620 | "key": "phoneNumberType", 1621 | "value": "PRIMARY", 1622 | "disabled": true 1623 | }, 1624 | { 1625 | "key": "state", 1626 | "value": "ACTIVE", 1627 | "disabled": true 1628 | }, 1629 | { 1630 | "key": "details", 1631 | "value": "true", 1632 | "disabled": true 1633 | }, 1634 | { 1635 | "key": "tollFreeNumbers", 1636 | "value": "false", 1637 | "disabled": true 1638 | } 1639 | ] 1640 | } 1641 | }, 1642 | "response": [] 1643 | }, 1644 | { 1645 | "name": "Number Settings For Location", 1646 | "event": [ 1647 | { 1648 | "listen": "test", 1649 | "script": { 1650 | "exec": [ 1651 | "pm.test(\"Expected status code: 200\", function () {", 1652 | " pm.response.to.have.status(200);", 1653 | "});" 1654 | ], 1655 | "type": "text/javascript" 1656 | } 1657 | } 1658 | ], 1659 | "request": { 1660 | "auth": { 1661 | "type": "bearer", 1662 | "bearer": [ 1663 | { 1664 | "key": "token", 1665 | "value": "{{WEBEX_TOKEN}}", 1666 | "type": "string" 1667 | } 1668 | ] 1669 | }, 1670 | "method": "GET", 1671 | "header": [], 1672 | "url": { 1673 | "raw": "{{WEBEX_API_URL}}/telephony/config/numbers?locationId={{_locationIdForNumbers}}", 1674 | "host": [ 1675 | "{{WEBEX_API_URL}}" 1676 | ], 1677 | "path": [ 1678 | "telephony", 1679 | "config", 1680 | "numbers" 1681 | ], 1682 | "query": [ 1683 | { 1684 | "key": "locationId", 1685 | "value": "{{_locationIdForNumbers}}" 1686 | } 1687 | ] 1688 | } 1689 | }, 1690 | "response": [] 1691 | }, 1692 | { 1693 | "name": "Number Settings For Owner Id", 1694 | "event": [ 1695 | { 1696 | "listen": "test", 1697 | "script": { 1698 | "exec": [ 1699 | "pm.test(\"Expected status code: 200\", function () {", 1700 | " pm.response.to.have.status(200);", 1701 | "});" 1702 | ], 1703 | "type": "text/javascript" 1704 | } 1705 | } 1706 | ], 1707 | "request": { 1708 | "auth": { 1709 | "type": "bearer", 1710 | "bearer": [ 1711 | { 1712 | "key": "token", 1713 | "value": "{{WEBEX_TOKEN}}", 1714 | "type": "string" 1715 | } 1716 | ] 1717 | }, 1718 | "method": "GET", 1719 | "header": [], 1720 | "url": { 1721 | "raw": "{{WEBEX_API_URL}}/telephony/config/numbers?ownerId={{_ownerId}}", 1722 | "host": [ 1723 | "{{WEBEX_API_URL}}" 1724 | ], 1725 | "path": [ 1726 | "telephony", 1727 | "config", 1728 | "numbers" 1729 | ], 1730 | "query": [ 1731 | { 1732 | "key": "ownerId", 1733 | "value": "{{_ownerId}}" 1734 | } 1735 | ] 1736 | } 1737 | }, 1738 | "response": [] 1739 | }, 1740 | { 1741 | "name": "Number Settings For Owner Type", 1742 | "event": [ 1743 | { 1744 | "listen": "test", 1745 | "script": { 1746 | "exec": [ 1747 | "pm.test(\"Expected status code: 200\", function () {", 1748 | " pm.response.to.have.status(200);", 1749 | "});" 1750 | ], 1751 | "type": "text/javascript" 1752 | } 1753 | } 1754 | ], 1755 | "request": { 1756 | "auth": { 1757 | "type": "bearer", 1758 | "bearer": [ 1759 | { 1760 | "key": "token", 1761 | "value": "{{WEBEX_TOKEN}}", 1762 | "type": "string" 1763 | } 1764 | ] 1765 | }, 1766 | "method": "GET", 1767 | "header": [], 1768 | "url": { 1769 | "raw": "{{WEBEX_API_URL}}/telephony/config/numbers?ownerType={{_ownerType}}", 1770 | "host": [ 1771 | "{{WEBEX_API_URL}}" 1772 | ], 1773 | "path": [ 1774 | "telephony", 1775 | "config", 1776 | "numbers" 1777 | ], 1778 | "query": [ 1779 | { 1780 | "key": "ownerType", 1781 | "value": "{{_ownerType}}" 1782 | } 1783 | ] 1784 | } 1785 | }, 1786 | "response": [] 1787 | }, 1788 | { 1789 | "name": "Extension Settings", 1790 | "event": [ 1791 | { 1792 | "listen": "test", 1793 | "script": { 1794 | "exec": [ 1795 | "pm.test(\"Expected status code: 200\", function () {", 1796 | " pm.response.to.have.status(200);", 1797 | "});" 1798 | ], 1799 | "type": "text/javascript" 1800 | } 1801 | } 1802 | ], 1803 | "request": { 1804 | "method": "POST", 1805 | "header": [], 1806 | "body": { 1807 | "mode": "raw", 1808 | "raw": "{\n \"extensions\": [\n {{_extensions}}\n ]\n}", 1809 | "options": { 1810 | "raw": { 1811 | "language": "json" 1812 | } 1813 | } 1814 | }, 1815 | "url": { 1816 | "raw": "{{WEBEX_API_URL}}/telephony/config/actions/validateExtensions/invoke", 1817 | "host": [ 1818 | "{{WEBEX_API_URL}}" 1819 | ], 1820 | "path": [ 1821 | "telephony", 1822 | "config", 1823 | "actions", 1824 | "validateExtensions", 1825 | "invoke" 1826 | ] 1827 | } 1828 | }, 1829 | "response": [] 1830 | } 1831 | ] 1832 | }, 1833 | { 1834 | "name": "Devices", 1835 | "item": [ 1836 | { 1837 | "name": "Bulk Apis", 1838 | "item": [ 1839 | { 1840 | "name": "Device Settings For Organization", 1841 | "event": [ 1842 | { 1843 | "listen": "test", 1844 | "script": { 1845 | "exec": [ 1846 | "pm.test(\"Status code is 202\", function () {", 1847 | " pm.response.to.have.status(202);", 1848 | "});", 1849 | "", 1850 | "let response = pm.response.json();", 1851 | "pm.collectionVariables.set(\"_jobId\", response.id);", 1852 | "", 1853 | "postman.setNextRequest(\"Get Device Settings Job Details\")" 1854 | ], 1855 | "type": "text/javascript" 1856 | } 1857 | } 1858 | ], 1859 | "request": { 1860 | "method": "POST", 1861 | "header": [ 1862 | { 1863 | "key": "SPARK_FROM_HYDRA", 1864 | "value": "true", 1865 | "type": "default" 1866 | } 1867 | ], 1868 | "body": { 1869 | "mode": "raw", 1870 | "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}", 1871 | "options": { 1872 | "raw": { 1873 | "language": "json" 1874 | } 1875 | } 1876 | }, 1877 | "url": { 1878 | "raw": "{{WEBEX_API_URL}}/telephony/config/jobs/devices/callDeviceSettings", 1879 | "host": [ 1880 | "{{WEBEX_API_URL}}" 1881 | ], 1882 | "path": [ 1883 | "telephony", 1884 | "config", 1885 | "jobs", 1886 | "devices", 1887 | "callDeviceSettings" 1888 | ] 1889 | } 1890 | }, 1891 | "response": [] 1892 | }, 1893 | { 1894 | "name": "Device Settings For Location With Customizations", 1895 | "event": [ 1896 | { 1897 | "listen": "test", 1898 | "script": { 1899 | "exec": [ 1900 | "pm.test(\"Status code is 202\", function () {", 1901 | " pm.response.to.have.status(202);", 1902 | "});", 1903 | "", 1904 | "let response = pm.response.json();", 1905 | "pm.collectionVariables.set(\"_jobId\", response.id);" 1906 | ], 1907 | "type": "text/javascript" 1908 | } 1909 | } 1910 | ], 1911 | "request": { 1912 | "method": "POST", 1913 | "header": [ 1914 | { 1915 | "key": "SPARK_FROM_HYDRA", 1916 | "value": "true", 1917 | "type": "default" 1918 | } 1919 | ], 1920 | "body": { 1921 | "mode": "raw", 1922 | "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}", 1923 | "options": { 1924 | "raw": { 1925 | "language": "json" 1926 | } 1927 | } 1928 | }, 1929 | "url": { 1930 | "raw": "{{WEBEX_API_URL}}/telephony/config/jobs/devices/callDeviceSettings", 1931 | "host": [ 1932 | "{{WEBEX_API_URL}}" 1933 | ], 1934 | "path": [ 1935 | "telephony", 1936 | "config", 1937 | "jobs", 1938 | "devices", 1939 | "callDeviceSettings" 1940 | ] 1941 | } 1942 | }, 1943 | "response": [] 1944 | }, 1945 | { 1946 | "name": "Device Settings For Location Without Customizations", 1947 | "event": [ 1948 | { 1949 | "listen": "test", 1950 | "script": { 1951 | "exec": [ 1952 | "pm.test(\"Status code is 202\", function () {", 1953 | " pm.response.to.have.status(202);", 1954 | "});", 1955 | "", 1956 | "let response = pm.response.json();", 1957 | "pm.collectionVariables.set(\"_jobId\", response.id);" 1958 | ], 1959 | "type": "text/javascript" 1960 | } 1961 | } 1962 | ], 1963 | "request": { 1964 | "method": "POST", 1965 | "header": [ 1966 | { 1967 | "key": "SPARK_FROM_HYDRA", 1968 | "value": "true", 1969 | "type": "default" 1970 | } 1971 | ], 1972 | "body": { 1973 | "mode": "raw", 1974 | "raw": "{\n \"locationId\": \"{{LOCATIONID_FOR_DEVICES}}\",\n \"customEnabled\": false\n}", 1975 | "options": { 1976 | "raw": { 1977 | "language": "json" 1978 | } 1979 | } 1980 | }, 1981 | "url": { 1982 | "raw": "{{WEBEX_API_URL}}/telephony/config/jobs/devices/callDeviceSettings", 1983 | "host": [ 1984 | "{{WEBEX_API_URL}}" 1985 | ], 1986 | "path": [ 1987 | "telephony", 1988 | "config", 1989 | "jobs", 1990 | "devices", 1991 | "callDeviceSettings" 1992 | ] 1993 | } 1994 | }, 1995 | "response": [] 1996 | }, 1997 | { 1998 | "name": "Get Device Settings Job Details", 1999 | "event": [ 2000 | { 2001 | "listen": "test", 2002 | "script": { 2003 | "exec": [ 2004 | "" 2005 | ], 2006 | "type": "text/javascript" 2007 | } 2008 | } 2009 | ], 2010 | "request": { 2011 | "method": "GET", 2012 | "header": [ 2013 | { 2014 | "key": "SPARK_FROM_HYDRA", 2015 | "value": "true", 2016 | "type": "default" 2017 | } 2018 | ], 2019 | "url": { 2020 | "raw": "{{WEBEX_API_URL}}/telephony/config/jobs/devices/callDeviceSettings/{{_jobId}}", 2021 | "host": [ 2022 | "{{WEBEX_API_URL}}" 2023 | ], 2024 | "path": [ 2025 | "telephony", 2026 | "config", 2027 | "jobs", 2028 | "devices", 2029 | "callDeviceSettings", 2030 | "{{_jobId}}" 2031 | ] 2032 | } 2033 | }, 2034 | "response": [] 2035 | }, 2036 | { 2037 | "name": "List Device Settings Jobs", 2038 | "event": [ 2039 | { 2040 | "listen": "test", 2041 | "script": { 2042 | "exec": [ 2043 | "" 2044 | ], 2045 | "type": "text/javascript" 2046 | } 2047 | } 2048 | ], 2049 | "request": { 2050 | "method": "GET", 2051 | "header": [ 2052 | { 2053 | "key": "SPARK_FROM_HYDRA", 2054 | "value": "true", 2055 | "type": "default" 2056 | } 2057 | ], 2058 | "url": { 2059 | "raw": "{{WEBEX_API_URL}}/telephony/config/jobs/devices/callDeviceSettings", 2060 | "host": [ 2061 | "{{WEBEX_API_URL}}" 2062 | ], 2063 | "path": [ 2064 | "telephony", 2065 | "config", 2066 | "jobs", 2067 | "devices", 2068 | "callDeviceSettings" 2069 | ] 2070 | } 2071 | }, 2072 | "response": [] 2073 | }, 2074 | { 2075 | "name": "List Device Settings Errors", 2076 | "event": [ 2077 | { 2078 | "listen": "test", 2079 | "script": { 2080 | "exec": [ 2081 | "" 2082 | ], 2083 | "type": "text/javascript" 2084 | } 2085 | } 2086 | ], 2087 | "request": { 2088 | "method": "GET", 2089 | "header": [ 2090 | { 2091 | "key": "SPARK_FROM_HYDRA", 2092 | "value": "true", 2093 | "type": "default" 2094 | } 2095 | ], 2096 | "url": { 2097 | "raw": "{{WEBEX_API_URL}}/telephony/config/jobs/devices/callDeviceSettings/{{_jobId}}/errors", 2098 | "host": [ 2099 | "{{WEBEX_API_URL}}" 2100 | ], 2101 | "path": [ 2102 | "telephony", 2103 | "config", 2104 | "jobs", 2105 | "devices", 2106 | "callDeviceSettings", 2107 | "{{_jobId}}", 2108 | "errors" 2109 | ] 2110 | } 2111 | }, 2112 | "response": [] 2113 | } 2114 | ] 2115 | }, 2116 | { 2117 | "name": "Get Supported Devices", 2118 | "event": [ 2119 | { 2120 | "listen": "test", 2121 | "script": { 2122 | "exec": [ 2123 | "" 2124 | ], 2125 | "type": "text/javascript" 2126 | } 2127 | } 2128 | ], 2129 | "request": { 2130 | "method": "GET", 2131 | "header": [], 2132 | "url": { 2133 | "raw": "{{WEBEX_API_URL}}/telephony/config/supportedDevices", 2134 | "host": [ 2135 | "{{WEBEX_API_URL}}" 2136 | ], 2137 | "path": [ 2138 | "telephony", 2139 | "config", 2140 | "supportedDevices" 2141 | ] 2142 | } 2143 | }, 2144 | "response": [] 2145 | }, 2146 | { 2147 | "name": "Get Devices Settings", 2148 | "event": [ 2149 | { 2150 | "listen": "test", 2151 | "script": { 2152 | "exec": [ 2153 | "" 2154 | ], 2155 | "type": "text/javascript" 2156 | } 2157 | } 2158 | ], 2159 | "request": { 2160 | "method": "GET", 2161 | "header": [], 2162 | "url": { 2163 | "raw": "{{WEBEX_API_URL}}/telephony/config/devices/settings", 2164 | "host": [ 2165 | "{{WEBEX_API_URL}}" 2166 | ], 2167 | "path": [ 2168 | "telephony", 2169 | "config", 2170 | "devices", 2171 | "settings" 2172 | ] 2173 | } 2174 | }, 2175 | "response": [] 2176 | }, 2177 | { 2178 | "name": "Get Device Settings - Single Model Only", 2179 | "event": [ 2180 | { 2181 | "listen": "test", 2182 | "script": { 2183 | "exec": [ 2184 | "" 2185 | ], 2186 | "type": "text/javascript" 2187 | } 2188 | } 2189 | ], 2190 | "request": { 2191 | "method": "GET", 2192 | "header": [], 2193 | "url": { 2194 | "raw": "{{WEBEX_API_URL}}/telephony/config/devices/{{DEVICE_ID}}/settings?deviceModel={{DEVICE_MODEL}}", 2195 | "host": [ 2196 | "{{WEBEX_API_URL}}" 2197 | ], 2198 | "path": [ 2199 | "telephony", 2200 | "config", 2201 | "devices", 2202 | "{{DEVICE_ID}}", 2203 | "settings" 2204 | ], 2205 | "query": [ 2206 | { 2207 | "key": "deviceModel", 2208 | "value": "{{DEVICE_MODEL}}" 2209 | } 2210 | ] 2211 | } 2212 | }, 2213 | "response": [] 2214 | }, 2215 | { 2216 | "name": "Modify Device Settings - Single Model Only", 2217 | "event": [ 2218 | { 2219 | "listen": "test", 2220 | "script": { 2221 | "exec": [ 2222 | "" 2223 | ], 2224 | "type": "text/javascript" 2225 | } 2226 | } 2227 | ], 2228 | "request": { 2229 | "method": "PUT", 2230 | "header": [], 2231 | "body": { 2232 | "mode": "raw", 2233 | "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}", 2234 | "options": { 2235 | "raw": { 2236 | "language": "json" 2237 | } 2238 | } 2239 | }, 2240 | "url": { 2241 | "raw": "{{WEBEX_API_URL}}/telephony/config/devices/{{DEVICE_ID}}/settings", 2242 | "host": [ 2243 | "{{WEBEX_API_URL}}" 2244 | ], 2245 | "path": [ 2246 | "telephony", 2247 | "config", 2248 | "devices", 2249 | "{{DEVICE_ID}}", 2250 | "settings" 2251 | ], 2252 | "query": [ 2253 | { 2254 | "key": "deviceModel", 2255 | "value": "DMS Cisco 8865", 2256 | "disabled": true 2257 | } 2258 | ] 2259 | } 2260 | }, 2261 | "response": [] 2262 | }, 2263 | { 2264 | "name": "Apply Changes To A Device", 2265 | "event": [ 2266 | { 2267 | "listen": "test", 2268 | "script": { 2269 | "exec": [ 2270 | "" 2271 | ], 2272 | "type": "text/javascript" 2273 | } 2274 | } 2275 | ], 2276 | "request": { 2277 | "method": "POST", 2278 | "header": [], 2279 | "body": { 2280 | "mode": "raw", 2281 | "raw": "{\n \"macs\": [\n \"{{MAC_ADDRESS}}\"\n ]\n}", 2282 | "options": { 2283 | "raw": { 2284 | "language": "json" 2285 | } 2286 | } 2287 | }, 2288 | "url": { 2289 | "raw": "{{WEBEX_API_URL}}/telephony/config/devices/{{DEVICE_ID}}/actions/applyChanges/invoke", 2290 | "host": [ 2291 | "{{WEBEX_API_URL}}" 2292 | ], 2293 | "path": [ 2294 | "telephony", 2295 | "config", 2296 | "devices", 2297 | "{{DEVICE_ID}}", 2298 | "actions", 2299 | "applyChanges", 2300 | "invoke" 2301 | ] 2302 | } 2303 | }, 2304 | "response": [] 2305 | }, 2306 | { 2307 | "name": "Get Devices Settings For A Location", 2308 | "event": [ 2309 | { 2310 | "listen": "test", 2311 | "script": { 2312 | "exec": [ 2313 | "" 2314 | ], 2315 | "type": "text/javascript" 2316 | } 2317 | } 2318 | ], 2319 | "request": { 2320 | "method": "GET", 2321 | "header": [], 2322 | "url": { 2323 | "raw": "{{WEBEX_API_URL}}/telephony/config/locations/{{LOCATIONID_FOR_DEVICES}}/devices/settings", 2324 | "host": [ 2325 | "{{WEBEX_API_URL}}" 2326 | ], 2327 | "path": [ 2328 | "telephony", 2329 | "config", 2330 | "locations", 2331 | "{{LOCATIONID_FOR_DEVICES}}", 2332 | "devices", 2333 | "settings" 2334 | ] 2335 | } 2336 | }, 2337 | "response": [] 2338 | }, 2339 | { 2340 | "name": "Get Device Available Members", 2341 | "event": [ 2342 | { 2343 | "listen": "test", 2344 | "script": { 2345 | "exec": [ 2346 | "pm.test(\"Status code is 200\", function () {", 2347 | " pm.response.to.have.status(200);", 2348 | "});", 2349 | "", 2350 | "let response = pm.response.json();", 2351 | "pm.collectionVariables.set(\"_members.id\", response.members[0].id);", 2352 | "", 2353 | "const resBody = pm.response.json();", 2354 | "for (let i = 0; i < resBody.members.length; i++) {", 2355 | "if(resBody.members[i].memberType == \"PEOPLE\"){", 2356 | " pm.collectionVariables.set(\"_members.personId\", resBody.members[i].id);", 2357 | " break;", 2358 | "}", 2359 | "}", 2360 | "", 2361 | "for (let i = 0; i < resBody.members.length; i++) {", 2362 | "if(resBody.members[i].memberType == \"PLACE\"){", 2363 | " pm.collectionVariables.set(\"_members.workspaceId\", resBody.members[i].id);", 2364 | " break;", 2365 | "}", 2366 | "}" 2367 | ], 2368 | "type": "text/javascript" 2369 | } 2370 | } 2371 | ], 2372 | "request": { 2373 | "method": "GET", 2374 | "header": [], 2375 | "url": { 2376 | "raw": "{{WEBEX_API_URL}}/telephony/config/devices/{{DEVICE_ID}}/availableMembers", 2377 | "host": [ 2378 | "{{WEBEX_API_URL}}" 2379 | ], 2380 | "path": [ 2381 | "telephony", 2382 | "config", 2383 | "devices", 2384 | "{{DEVICE_ID}}", 2385 | "availableMembers" 2386 | ] 2387 | } 2388 | }, 2389 | "response": [] 2390 | }, 2391 | { 2392 | "name": "Get Device Members", 2393 | "event": [ 2394 | { 2395 | "listen": "test", 2396 | "script": { 2397 | "exec": [ 2398 | "pm.test(\"Status code is 200\", function () {", 2399 | " pm.response.to.have.status(200);", 2400 | "});", 2401 | "", 2402 | "let response = pm.response.json();", 2403 | "pm.collectionVariables.set(\"_members.id\", response.members[0].id);" 2404 | ], 2405 | "type": "text/javascript" 2406 | } 2407 | } 2408 | ], 2409 | "request": { 2410 | "method": "GET", 2411 | "header": [], 2412 | "url": { 2413 | "raw": "{{WEBEX_API_URL}}/telephony/config/devices/{{DEVICE_ID}}/members", 2414 | "host": [ 2415 | "{{WEBEX_API_URL}}" 2416 | ], 2417 | "path": [ 2418 | "telephony", 2419 | "config", 2420 | "devices", 2421 | "{{DEVICE_ID}}", 2422 | "members" 2423 | ] 2424 | } 2425 | }, 2426 | "response": [] 2427 | }, 2428 | { 2429 | "name": "Modify Device Members", 2430 | "event": [ 2431 | { 2432 | "listen": "test", 2433 | "script": { 2434 | "exec": [ 2435 | "" 2436 | ], 2437 | "type": "text/javascript" 2438 | } 2439 | } 2440 | ], 2441 | "request": { 2442 | "method": "PUT", 2443 | "header": [], 2444 | "body": { 2445 | "mode": "raw", 2446 | "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}", 2447 | "options": { 2448 | "raw": { 2449 | "language": "json" 2450 | } 2451 | } 2452 | }, 2453 | "url": { 2454 | "raw": "{{WEBEX_API_URL}}/telephony/config/devices/{{DEVICE_ID}}/members", 2455 | "host": [ 2456 | "{{WEBEX_API_URL}}" 2457 | ], 2458 | "path": [ 2459 | "telephony", 2460 | "config", 2461 | "devices", 2462 | "{{DEVICE_ID}}", 2463 | "members" 2464 | ] 2465 | } 2466 | }, 2467 | "response": [] 2468 | }, 2469 | { 2470 | "name": "Get DECT Devices Settings", 2471 | "event": [ 2472 | { 2473 | "listen": "test", 2474 | "script": { 2475 | "exec": [ 2476 | "" 2477 | ], 2478 | "type": "text/javascript" 2479 | } 2480 | } 2481 | ], 2482 | "request": { 2483 | "method": "GET", 2484 | "header": [], 2485 | "url": { 2486 | "raw": "{{WEBEX_API_URL}}/telephony/config/devices/dects/supportedDevices", 2487 | "host": [ 2488 | "{{WEBEX_API_URL}}" 2489 | ], 2490 | "path": [ 2491 | "telephony", 2492 | "config", 2493 | "devices", 2494 | "dects", 2495 | "supportedDevices" 2496 | ] 2497 | } 2498 | }, 2499 | "response": [] 2500 | }, 2501 | { 2502 | "name": "Validate Mac Address", 2503 | "event": [ 2504 | { 2505 | "listen": "test", 2506 | "script": { 2507 | "exec": [ 2508 | "" 2509 | ], 2510 | "type": "text/javascript" 2511 | } 2512 | } 2513 | ], 2514 | "request": { 2515 | "method": "POST", 2516 | "header": [], 2517 | "body": { 2518 | "mode": "raw", 2519 | "raw": "{\n \"macs\": [\n \"{{MAC_ADDRESS}}\"\n ]\n}", 2520 | "options": { 2521 | "raw": { 2522 | "language": "json" 2523 | } 2524 | } 2525 | }, 2526 | "url": { 2527 | "raw": "{{WEBEX_API_URL}}/telephony/config/devices/actions/validateMacs/invoke", 2528 | "host": [ 2529 | "{{WEBEX_API_URL}}" 2530 | ], 2531 | "path": [ 2532 | "telephony", 2533 | "config", 2534 | "devices", 2535 | "actions", 2536 | "validateMacs", 2537 | "invoke" 2538 | ] 2539 | } 2540 | }, 2541 | "response": [] 2542 | } 2543 | ] 2544 | } 2545 | ] 2546 | }, 2547 | { 2548 | "name": "Webex Calling Person Settings", 2549 | "item": [ 2550 | { 2551 | "name": "Call Waiting", 2552 | "item": [ 2553 | { 2554 | "name": "Get Call Waiting", 2555 | "event": [ 2556 | { 2557 | "listen": "test", 2558 | "script": { 2559 | "exec": [ 2560 | "pm.test(\"Expected status code: 200\", function () {", 2561 | " pm.response.to.have.status(200);", 2562 | "});" 2563 | ], 2564 | "type": "text/javascript" 2565 | } 2566 | } 2567 | ], 2568 | "request": { 2569 | "method": "GET", 2570 | "header": [], 2571 | "url": { 2572 | "raw": "{{WEBEX_API_URL}}/people/{{PERSON_ID}}/features/callWaiting", 2573 | "host": [ 2574 | "{{WEBEX_API_URL}}" 2575 | ], 2576 | "path": [ 2577 | "people", 2578 | "{{PERSON_ID}}", 2579 | "features", 2580 | "callWaiting" 2581 | ] 2582 | } 2583 | }, 2584 | "response": [] 2585 | }, 2586 | { 2587 | "name": "Update Call Waiting", 2588 | "event": [ 2589 | { 2590 | "listen": "test", 2591 | "script": { 2592 | "exec": [ 2593 | "pm.test(\"Expected status code: 204\", function () {", 2594 | " pm.response.to.have.status(204);", 2595 | "});" 2596 | ], 2597 | "type": "text/javascript" 2598 | } 2599 | } 2600 | ], 2601 | "request": { 2602 | "method": "PUT", 2603 | "header": [], 2604 | "body": { 2605 | "mode": "raw", 2606 | "raw": "{\r\n \"enabled\": true\r\n}", 2607 | "options": { 2608 | "raw": { 2609 | "language": "json" 2610 | } 2611 | } 2612 | }, 2613 | "url": { 2614 | "raw": "{{WEBEX_API_URL}}/people/{{PERSON_ID}}/features/callWaiting", 2615 | "host": [ 2616 | "{{WEBEX_API_URL}}" 2617 | ], 2618 | "path": [ 2619 | "people", 2620 | "{{PERSON_ID}}", 2621 | "features", 2622 | "callWaiting" 2623 | ] 2624 | } 2625 | }, 2626 | "response": [] 2627 | } 2628 | ] 2629 | }, 2630 | { 2631 | "name": "Privacy", 2632 | "item": [ 2633 | { 2634 | "name": "Get Privacy", 2635 | "event": [ 2636 | { 2637 | "listen": "test", 2638 | "script": { 2639 | "exec": [ 2640 | "pm.test(\"Expected status code: 200\", function () {", 2641 | " pm.response.to.have.status(200);", 2642 | "});" 2643 | ], 2644 | "type": "text/javascript" 2645 | } 2646 | } 2647 | ], 2648 | "request": { 2649 | "method": "GET", 2650 | "header": [], 2651 | "url": { 2652 | "raw": "{{WEBEX_API_URL}}/people/{{PERSON_ID}}/features/privacy", 2653 | "host": [ 2654 | "{{WEBEX_API_URL}}" 2655 | ], 2656 | "path": [ 2657 | "people", 2658 | "{{PERSON_ID}}", 2659 | "features", 2660 | "privacy" 2661 | ] 2662 | } 2663 | }, 2664 | "response": [] 2665 | }, 2666 | { 2667 | "name": "Update Privacy", 2668 | "event": [ 2669 | { 2670 | "listen": "test", 2671 | "script": { 2672 | "exec": [ 2673 | "pm.test(\"Expected status code: 204\", function () {", 2674 | " pm.response.to.have.status(204);", 2675 | "});" 2676 | ], 2677 | "type": "text/javascript" 2678 | } 2679 | } 2680 | ], 2681 | "request": { 2682 | "method": "PUT", 2683 | "header": [], 2684 | "body": { 2685 | "mode": "raw", 2686 | "raw": "{\n \"aaExtensionDialingEnabled\": false,\n \"aaNamingDialingEnabled\": true,\n \"enablePhoneStatusDirectoryPrivacy\": true,\n \"monitoringAgents\": [\n \"{{MONITORED_AGENTID_1}}\",\n \"{{MONITORED_AGENTID_2}}\"\n ]\n}", 2687 | "options": { 2688 | "raw": { 2689 | "language": "json" 2690 | } 2691 | } 2692 | }, 2693 | "url": { 2694 | "raw": "{{WEBEX_API_URL}}/people/{{PERSON_ID}}/features/privacy", 2695 | "host": [ 2696 | "{{WEBEX_API_URL}}" 2697 | ], 2698 | "path": [ 2699 | "people", 2700 | "{{PERSON_ID}}", 2701 | "features", 2702 | "privacy" 2703 | ] 2704 | } 2705 | }, 2706 | "response": [] 2707 | } 2708 | ] 2709 | }, 2710 | { 2711 | "name": "Schedules and Events", 2712 | "item": [ 2713 | { 2714 | "name": "Create Schedule", 2715 | "event": [ 2716 | { 2717 | "listen": "test", 2718 | "script": { 2719 | "exec": [ 2720 | "pm.test(\"Expected status code: 201\", function () {", 2721 | " pm.response.to.have.status(201);", 2722 | "});", 2723 | "", 2724 | "let response = pm.response.json();", 2725 | "pm.collectionVariables.set(\"_scheduleId\", response.id);" 2726 | ], 2727 | "type": "text/javascript" 2728 | } 2729 | } 2730 | ], 2731 | "protocolProfileBehavior": { 2732 | "disabledSystemHeaders": { 2733 | "content-type": true 2734 | } 2735 | }, 2736 | "request": { 2737 | "method": "POST", 2738 | "header": [ 2739 | { 2740 | "key": "Content-Type", 2741 | "value": "application/json", 2742 | "type": "text" 2743 | } 2744 | ], 2745 | "body": { 2746 | "mode": "raw", 2747 | "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}", 2748 | "options": { 2749 | "raw": { 2750 | "language": "json" 2751 | } 2752 | } 2753 | }, 2754 | "url": { 2755 | "raw": "{{WEBEX_API_URL}}/people/{{PERSON_ID}}/features/schedules", 2756 | "host": [ 2757 | "{{WEBEX_API_URL}}" 2758 | ], 2759 | "path": [ 2760 | "people", 2761 | "{{PERSON_ID}}", 2762 | "features", 2763 | "schedules" 2764 | ] 2765 | } 2766 | }, 2767 | "response": [] 2768 | }, 2769 | { 2770 | "name": "Get Schedule", 2771 | "event": [ 2772 | { 2773 | "listen": "test", 2774 | "script": { 2775 | "exec": [ 2776 | "pm.test(\"Expected status code: 200\", function () {", 2777 | " pm.response.to.have.status(200);", 2778 | "});" 2779 | ], 2780 | "type": "text/javascript" 2781 | } 2782 | } 2783 | ], 2784 | "request": { 2785 | "method": "GET", 2786 | "header": [], 2787 | "url": { 2788 | "raw": "{{WEBEX_API_URL}}/people/{{PERSON_ID}}/features/schedules/{{SCHEDULE_TYPE}}/{{_scheduleId}}", 2789 | "host": [ 2790 | "{{WEBEX_API_URL}}" 2791 | ], 2792 | "path": [ 2793 | "people", 2794 | "{{PERSON_ID}}", 2795 | "features", 2796 | "schedules", 2797 | "{{SCHEDULE_TYPE}}", 2798 | "{{_scheduleId}}" 2799 | ] 2800 | } 2801 | }, 2802 | "response": [] 2803 | }, 2804 | { 2805 | "name": "Update Schedule", 2806 | "event": [ 2807 | { 2808 | "listen": "test", 2809 | "script": { 2810 | "exec": [ 2811 | "pm.test(\"Expected status code: 200\", function () {", 2812 | " pm.response.to.have.status(200);", 2813 | "});", 2814 | "", 2815 | "let response = pm.response.json();", 2816 | "pm.collectionVariables.set(\"_scheduleId\", response.id);" 2817 | ], 2818 | "type": "text/javascript" 2819 | } 2820 | } 2821 | ], 2822 | "request": { 2823 | "method": "PUT", 2824 | "header": [], 2825 | "body": { 2826 | "mode": "raw", 2827 | "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}", 2828 | "options": { 2829 | "raw": { 2830 | "language": "json" 2831 | } 2832 | } 2833 | }, 2834 | "url": { 2835 | "raw": "{{WEBEX_API_URL}}/people/{{PERSON_ID}}/features/schedules/{{SCHEDULE_TYPE}}/{{_scheduleId}}", 2836 | "host": [ 2837 | "{{WEBEX_API_URL}}" 2838 | ], 2839 | "path": [ 2840 | "people", 2841 | "{{PERSON_ID}}", 2842 | "features", 2843 | "schedules", 2844 | "{{SCHEDULE_TYPE}}", 2845 | "{{_scheduleId}}" 2846 | ] 2847 | } 2848 | }, 2849 | "response": [] 2850 | }, 2851 | { 2852 | "name": "Create Event", 2853 | "event": [ 2854 | { 2855 | "listen": "test", 2856 | "script": { 2857 | "exec": [ 2858 | "pm.test(\"Expected status code: 201\", function () {", 2859 | " pm.response.to.have.status(201);", 2860 | "});", 2861 | "", 2862 | "let response = pm.response.json();", 2863 | "pm.collectionVariables.set(\"_eventId\", response.id);" 2864 | ], 2865 | "type": "text/javascript" 2866 | } 2867 | } 2868 | ], 2869 | "request": { 2870 | "method": "POST", 2871 | "header": [], 2872 | "body": { 2873 | "mode": "raw", 2874 | "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}", 2875 | "options": { 2876 | "raw": { 2877 | "language": "json" 2878 | } 2879 | } 2880 | }, 2881 | "url": { 2882 | "raw": "{{WEBEX_API_URL}}/people/{{PERSON_ID}}/features/schedules/{{SCHEDULE_TYPE}}/{{_scheduleId}}/events", 2883 | "host": [ 2884 | "{{WEBEX_API_URL}}" 2885 | ], 2886 | "path": [ 2887 | "people", 2888 | "{{PERSON_ID}}", 2889 | "features", 2890 | "schedules", 2891 | "{{SCHEDULE_TYPE}}", 2892 | "{{_scheduleId}}", 2893 | "events" 2894 | ] 2895 | } 2896 | }, 2897 | "response": [] 2898 | }, 2899 | { 2900 | "name": "Get Event", 2901 | "event": [ 2902 | { 2903 | "listen": "test", 2904 | "script": { 2905 | "exec": [ 2906 | "pm.test(\"Expected status code: 200\", function () {", 2907 | " pm.response.to.have.status(200);", 2908 | "});" 2909 | ], 2910 | "type": "text/javascript" 2911 | } 2912 | } 2913 | ], 2914 | "request": { 2915 | "method": "GET", 2916 | "header": [], 2917 | "url": { 2918 | "raw": "{{WEBEX_API_URL}}/people/{{PERSON_ID}}/features/schedules/{{SCHEDULE_TYPE}}/{{_scheduleId}}/events/{{_eventId}}", 2919 | "host": [ 2920 | "{{WEBEX_API_URL}}" 2921 | ], 2922 | "path": [ 2923 | "people", 2924 | "{{PERSON_ID}}", 2925 | "features", 2926 | "schedules", 2927 | "{{SCHEDULE_TYPE}}", 2928 | "{{_scheduleId}}", 2929 | "events", 2930 | "{{_eventId}}" 2931 | ] 2932 | } 2933 | }, 2934 | "response": [] 2935 | }, 2936 | { 2937 | "name": "Update Event", 2938 | "event": [ 2939 | { 2940 | "listen": "test", 2941 | "script": { 2942 | "exec": [ 2943 | "pm.test(\"Expected status code: 200\", function () {", 2944 | " pm.response.to.have.status(200);", 2945 | "});", 2946 | "", 2947 | "let response = pm.response.json();", 2948 | "pm.collectionVariables.set(\"_eventId\", response.id);" 2949 | ], 2950 | "type": "text/javascript" 2951 | } 2952 | } 2953 | ], 2954 | "request": { 2955 | "method": "PUT", 2956 | "header": [], 2957 | "body": { 2958 | "mode": "raw", 2959 | "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}", 2960 | "options": { 2961 | "raw": { 2962 | "language": "json" 2963 | } 2964 | } 2965 | }, 2966 | "url": { 2967 | "raw": "{{WEBEX_API_URL}}/people/{{PERSON_ID}}/features/schedules/{{SCHEDULE_TYPE}}/{{_scheduleId}}/events/{{_eventId}}", 2968 | "host": [ 2969 | "{{WEBEX_API_URL}}" 2970 | ], 2971 | "path": [ 2972 | "people", 2973 | "{{PERSON_ID}}", 2974 | "features", 2975 | "schedules", 2976 | "{{SCHEDULE_TYPE}}", 2977 | "{{_scheduleId}}", 2978 | "events", 2979 | "{{_eventId}}" 2980 | ] 2981 | } 2982 | }, 2983 | "response": [] 2984 | }, 2985 | { 2986 | "name": "Delete Event", 2987 | "event": [ 2988 | { 2989 | "listen": "test", 2990 | "script": { 2991 | "exec": [ 2992 | "pm.test(\"Expected status code: 204\", function () {", 2993 | " pm.response.to.have.status(204);", 2994 | "});", 2995 | "" 2996 | ], 2997 | "type": "text/javascript" 2998 | } 2999 | } 3000 | ], 3001 | "request": { 3002 | "method": "DELETE", 3003 | "header": [], 3004 | "url": { 3005 | "raw": "{{WEBEX_API_URL}}/people/{{PERSON_ID}}/features/schedules/{{SCHEDULE_TYPE}}/{{_scheduleId}}/events/{{_eventId}}", 3006 | "host": [ 3007 | "{{WEBEX_API_URL}}" 3008 | ], 3009 | "path": [ 3010 | "people", 3011 | "{{PERSON_ID}}", 3012 | "features", 3013 | "schedules", 3014 | "{{SCHEDULE_TYPE}}", 3015 | "{{_scheduleId}}", 3016 | "events", 3017 | "{{_eventId}}" 3018 | ] 3019 | } 3020 | }, 3021 | "response": [] 3022 | }, 3023 | { 3024 | "name": "Delete Schedule", 3025 | "event": [ 3026 | { 3027 | "listen": "test", 3028 | "script": { 3029 | "exec": [ 3030 | "pm.test(\"Expected status code: 204\", function () {", 3031 | " pm.response.to.have.status(204);", 3032 | "});", 3033 | "", 3034 | "" 3035 | ], 3036 | "type": "text/javascript" 3037 | } 3038 | } 3039 | ], 3040 | "request": { 3041 | "method": "DELETE", 3042 | "header": [], 3043 | "url": { 3044 | "raw": "{{WEBEX_API_URL}}/people/{{PERSON_ID}}/features/schedules/{{SCHEDULE_TYPE}}/{{_scheduleId}}", 3045 | "host": [ 3046 | "{{WEBEX_API_URL}}" 3047 | ], 3048 | "path": [ 3049 | "people", 3050 | "{{PERSON_ID}}", 3051 | "features", 3052 | "schedules", 3053 | "{{SCHEDULE_TYPE}}", 3054 | "{{_scheduleId}}" 3055 | ] 3056 | } 3057 | }, 3058 | "response": [] 3059 | }, 3060 | { 3061 | "name": "Get List Of Schedules", 3062 | "event": [ 3063 | { 3064 | "listen": "test", 3065 | "script": { 3066 | "exec": [ 3067 | "pm.test(\"Expected status code: 200\", function () {", 3068 | " pm.response.to.have.status(200);", 3069 | "});", 3070 | "" 3071 | ], 3072 | "type": "text/javascript" 3073 | } 3074 | } 3075 | ], 3076 | "request": { 3077 | "method": "GET", 3078 | "header": [], 3079 | "url": { 3080 | "raw": "{{WEBEX_API_URL}}/people/{{PERSON_ID}}/features/schedules?type={{SCHEDULE_TYPE}}", 3081 | "host": [ 3082 | "{{WEBEX_API_URL}}" 3083 | ], 3084 | "path": [ 3085 | "people", 3086 | "{{PERSON_ID}}", 3087 | "features", 3088 | "schedules" 3089 | ], 3090 | "query": [ 3091 | { 3092 | "key": "type", 3093 | "value": "{{SCHEDULE_TYPE}}" 3094 | } 3095 | ] 3096 | } 3097 | }, 3098 | "response": [] 3099 | } 3100 | ] 3101 | }, 3102 | { 3103 | "name": "Receptionist Client", 3104 | "item": [ 3105 | { 3106 | "name": "Get Reception", 3107 | "event": [ 3108 | { 3109 | "listen": "test", 3110 | "script": { 3111 | "exec": [ 3112 | "pm.test(\"Expected status code: 200\", function () {", 3113 | " pm.response.to.have.status(200);", 3114 | "});" 3115 | ], 3116 | "type": "text/javascript" 3117 | } 3118 | } 3119 | ], 3120 | "request": { 3121 | "method": "GET", 3122 | "header": [], 3123 | "url": { 3124 | "raw": "{{WEBEX_API_URL}}/people/{{PERSON_ID}}/features/reception", 3125 | "host": [ 3126 | "{{WEBEX_API_URL}}" 3127 | ], 3128 | "path": [ 3129 | "people", 3130 | "{{PERSON_ID}}", 3131 | "features", 3132 | "reception" 3133 | ] 3134 | } 3135 | }, 3136 | "response": [] 3137 | }, 3138 | { 3139 | "name": "Update Reception", 3140 | "event": [ 3141 | { 3142 | "listen": "test", 3143 | "script": { 3144 | "exec": [ 3145 | "pm.test(\"Expected status code: 204\", function () {", 3146 | " pm.response.to.have.status(204);", 3147 | "});" 3148 | ], 3149 | "type": "text/javascript" 3150 | } 3151 | } 3152 | ], 3153 | "request": { 3154 | "method": "PUT", 3155 | "header": [], 3156 | "body": { 3157 | "mode": "raw", 3158 | "raw": "{\r\n \"receptionEnabled\": true,\r\n \"monitoredMembers\": [\r\n \"{{MONITORED_AGENTID_1}}\",\r\n \"{{MONITORED_AGENTID_2}}\"\r\n ]\r\n}", 3159 | "options": { 3160 | "raw": { 3161 | "language": "json" 3162 | } 3163 | } 3164 | }, 3165 | "url": { 3166 | "raw": "{{WEBEX_API_URL}}/people/{{PERSON_ID}}/features/reception", 3167 | "host": [ 3168 | "{{WEBEX_API_URL}}" 3169 | ], 3170 | "path": [ 3171 | "people", 3172 | "{{PERSON_ID}}", 3173 | "features", 3174 | "reception" 3175 | ] 3176 | } 3177 | }, 3178 | "response": [] 3179 | } 3180 | ] 3181 | }, 3182 | { 3183 | "name": "Push-to-Talk", 3184 | "item": [ 3185 | { 3186 | "name": "Get Push-To-Talk", 3187 | "event": [ 3188 | { 3189 | "listen": "test", 3190 | "script": { 3191 | "exec": [ 3192 | "pm.test(\"Expected status code: 200\", function () {", 3193 | " pm.response.to.have.status(200);", 3194 | "});" 3195 | ], 3196 | "type": "text/javascript" 3197 | } 3198 | } 3199 | ], 3200 | "request": { 3201 | "method": "GET", 3202 | "header": [], 3203 | "url": { 3204 | "raw": "{{WEBEX_API_URL}}/people/{{PERSON_ID}}/features/pushToTalk", 3205 | "host": [ 3206 | "{{WEBEX_API_URL}}" 3207 | ], 3208 | "path": [ 3209 | "people", 3210 | "{{PERSON_ID}}", 3211 | "features", 3212 | "pushToTalk" 3213 | ] 3214 | } 3215 | }, 3216 | "response": [] 3217 | }, 3218 | { 3219 | "name": "Update Push-To-Talk", 3220 | "event": [ 3221 | { 3222 | "listen": "test", 3223 | "script": { 3224 | "exec": [ 3225 | "pm.test(\"Expected status code: 204\", function () {", 3226 | " pm.response.to.have.status(204);", 3227 | "});" 3228 | ], 3229 | "type": "text/javascript" 3230 | } 3231 | } 3232 | ], 3233 | "request": { 3234 | "method": "PUT", 3235 | "header": [], 3236 | "body": { 3237 | "mode": "raw", 3238 | "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}", 3239 | "options": { 3240 | "raw": { 3241 | "language": "json" 3242 | } 3243 | } 3244 | }, 3245 | "url": { 3246 | "raw": "{{WEBEX_API_URL}}/people/{{PERSON_ID}}/features/pushToTalk", 3247 | "host": [ 3248 | "{{WEBEX_API_URL}}" 3249 | ], 3250 | "path": [ 3251 | "people", 3252 | "{{PERSON_ID}}", 3253 | "features", 3254 | "pushToTalk" 3255 | ] 3256 | } 3257 | }, 3258 | "response": [] 3259 | } 3260 | ] 3261 | }, 3262 | { 3263 | "name": "Numbers", 3264 | "item": [ 3265 | { 3266 | "name": "Get Numbers", 3267 | "event": [ 3268 | { 3269 | "listen": "test", 3270 | "script": { 3271 | "exec": [ 3272 | "pm.test(\"Expected status code: 200\", function () {", 3273 | " pm.response.to.have.status(200);", 3274 | "});" 3275 | ], 3276 | "type": "text/javascript" 3277 | } 3278 | } 3279 | ], 3280 | "request": { 3281 | "method": "GET", 3282 | "header": [], 3283 | "url": { 3284 | "raw": "{{WEBEX_API_URL}}/people/{{PERSON_ID}}/features/numbers", 3285 | "host": [ 3286 | "{{WEBEX_API_URL}}" 3287 | ], 3288 | "path": [ 3289 | "people", 3290 | "{{PERSON_ID}}", 3291 | "features", 3292 | "numbers" 3293 | ] 3294 | } 3295 | }, 3296 | "response": [] 3297 | } 3298 | ] 3299 | }, 3300 | { 3301 | "name": "Hoteling", 3302 | "item": [ 3303 | { 3304 | "name": "Get Hoteling", 3305 | "event": [ 3306 | { 3307 | "listen": "test", 3308 | "script": { 3309 | "exec": [ 3310 | "pm.test(\"Expected status code: 200\", function () {", 3311 | " pm.response.to.have.status(200);", 3312 | "});" 3313 | ], 3314 | "type": "text/javascript" 3315 | } 3316 | } 3317 | ], 3318 | "request": { 3319 | "method": "GET", 3320 | "header": [], 3321 | "url": { 3322 | "raw": "{{WEBEX_API_URL}}/people/{{PERSON_ID}}/features/hoteling", 3323 | "host": [ 3324 | "{{WEBEX_API_URL}}" 3325 | ], 3326 | "path": [ 3327 | "people", 3328 | "{{PERSON_ID}}", 3329 | "features", 3330 | "hoteling" 3331 | ] 3332 | } 3333 | }, 3334 | "response": [] 3335 | }, 3336 | { 3337 | "name": "Update Hoteling", 3338 | "event": [ 3339 | { 3340 | "listen": "test", 3341 | "script": { 3342 | "exec": [ 3343 | "pm.test(\"Expected status code: 204\", function () {", 3344 | " pm.response.to.have.status(204);", 3345 | "});" 3346 | ], 3347 | "type": "text/javascript" 3348 | } 3349 | } 3350 | ], 3351 | "request": { 3352 | "method": "PUT", 3353 | "header": [], 3354 | "body": { 3355 | "mode": "raw", 3356 | "raw": "{\n \"enabled\": true\n}", 3357 | "options": { 3358 | "raw": { 3359 | "language": "json" 3360 | } 3361 | } 3362 | }, 3363 | "url": { 3364 | "raw": "{{WEBEX_API_URL}}/people/{{PERSON_ID}}/features/hoteling", 3365 | "host": [ 3366 | "{{WEBEX_API_URL}}" 3367 | ], 3368 | "path": [ 3369 | "people", 3370 | "{{PERSON_ID}}", 3371 | "features", 3372 | "hoteling" 3373 | ] 3374 | } 3375 | }, 3376 | "response": [] 3377 | } 3378 | ] 3379 | }, 3380 | { 3381 | "name": "Voicemail", 3382 | "item": [ 3383 | { 3384 | "name": "Reset Voicemail Pin", 3385 | "event": [ 3386 | { 3387 | "listen": "test", 3388 | "script": { 3389 | "exec": [ 3390 | "pm.test(\"Expected status code: 204\", function () {", 3391 | " pm.response.to.have.status(204);", 3392 | "});" 3393 | ], 3394 | "type": "text/javascript" 3395 | } 3396 | } 3397 | ], 3398 | "request": { 3399 | "method": "POST", 3400 | "header": [], 3401 | "url": { 3402 | "raw": "{{WEBEX_API_URL}}/people/{{PERSON_ID}}/features/voicemail/actions/resetPin/invoke", 3403 | "host": [ 3404 | "{{WEBEX_API_URL}}" 3405 | ], 3406 | "path": [ 3407 | "people", 3408 | "{{PERSON_ID}}", 3409 | "features", 3410 | "voicemail", 3411 | "actions", 3412 | "resetPin", 3413 | "invoke" 3414 | ] 3415 | } 3416 | }, 3417 | "response": [] 3418 | } 3419 | ] 3420 | }, 3421 | { 3422 | "name": "Incoming Permission", 3423 | "item": [ 3424 | { 3425 | "name": "Get Incoming Permission", 3426 | "event": [ 3427 | { 3428 | "listen": "test", 3429 | "script": { 3430 | "exec": [ 3431 | "pm.test(\"Expected status code: 200\", function () {", 3432 | " pm.response.to.have.status(200);", 3433 | "});" 3434 | ], 3435 | "type": "text/javascript" 3436 | } 3437 | } 3438 | ], 3439 | "request": { 3440 | "method": "GET", 3441 | "header": [], 3442 | "url": { 3443 | "raw": "{{WEBEX_API_URL}}/people/{{PERSON_ID}}/features/incomingPermission", 3444 | "host": [ 3445 | "{{WEBEX_API_URL}}" 3446 | ], 3447 | "path": [ 3448 | "people", 3449 | "{{PERSON_ID}}", 3450 | "features", 3451 | "incomingPermission" 3452 | ] 3453 | } 3454 | }, 3455 | "response": [] 3456 | }, 3457 | { 3458 | "name": "Update Incoming Permission", 3459 | "event": [ 3460 | { 3461 | "listen": "test", 3462 | "script": { 3463 | "exec": [ 3464 | "pm.test(\"Expected status code: 204\", function () {", 3465 | " pm.response.to.have.status(204);", 3466 | "});" 3467 | ], 3468 | "type": "text/javascript" 3469 | } 3470 | } 3471 | ], 3472 | "request": { 3473 | "method": "PUT", 3474 | "header": [], 3475 | "body": { 3476 | "mode": "raw", 3477 | "raw": "{\n \"useCustomEnabled\": false,\n \"externalTransfer\": \"ALLOW_ALL_EXTERNAL\",\n \"internalCallsEnabled\": true,\n \"collectCallsEnabled\": true\n}", 3478 | "options": { 3479 | "raw": { 3480 | "language": "json" 3481 | } 3482 | } 3483 | }, 3484 | "url": { 3485 | "raw": "{{WEBEX_API_URL}}/people/{{PERSON_ID}}/features/incomingPermission", 3486 | "host": [ 3487 | "{{WEBEX_API_URL}}" 3488 | ], 3489 | "path": [ 3490 | "people", 3491 | "{{PERSON_ID}}", 3492 | "features", 3493 | "incomingPermission" 3494 | ] 3495 | } 3496 | }, 3497 | "response": [] 3498 | } 3499 | ] 3500 | }, 3501 | { 3502 | "name": "Outgoing Permission", 3503 | "item": [ 3504 | { 3505 | "name": "Get Outgoing Permission", 3506 | "event": [ 3507 | { 3508 | "listen": "test", 3509 | "script": { 3510 | "exec": [ 3511 | "pm.test(\"Expected status code: 200\", function () {", 3512 | " pm.response.to.have.status(200);", 3513 | "});" 3514 | ], 3515 | "type": "text/javascript" 3516 | } 3517 | } 3518 | ], 3519 | "request": { 3520 | "method": "GET", 3521 | "header": [], 3522 | "url": { 3523 | "raw": "{{WEBEX_API_URL}}/people/{{PERSON_ID}}/features/outgoingPermission", 3524 | "host": [ 3525 | "{{WEBEX_API_URL}}" 3526 | ], 3527 | "path": [ 3528 | "people", 3529 | "{{PERSON_ID}}", 3530 | "features", 3531 | "outgoingPermission" 3532 | ] 3533 | } 3534 | }, 3535 | "response": [] 3536 | }, 3537 | { 3538 | "name": "Update Outgoing Permission", 3539 | "event": [ 3540 | { 3541 | "listen": "test", 3542 | "script": { 3543 | "exec": [ 3544 | "pm.test(\"Expected status code: 204\", function () {", 3545 | " pm.response.to.have.status(204);", 3546 | "});" 3547 | ], 3548 | "type": "text/javascript" 3549 | } 3550 | } 3551 | ], 3552 | "request": { 3553 | "method": "PUT", 3554 | "header": [], 3555 | "body": { 3556 | "mode": "raw", 3557 | "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}", 3558 | "options": { 3559 | "raw": { 3560 | "language": "json" 3561 | } 3562 | } 3563 | }, 3564 | "url": { 3565 | "raw": "{{WEBEX_API_URL}}/people/{{PERSON_ID}}/features/outgoingPermission", 3566 | "host": [ 3567 | "{{WEBEX_API_URL}}" 3568 | ], 3569 | "path": [ 3570 | "people", 3571 | "{{PERSON_ID}}", 3572 | "features", 3573 | "outgoingPermission" 3574 | ] 3575 | } 3576 | }, 3577 | "response": [] 3578 | } 3579 | ] 3580 | }, 3581 | { 3582 | "name": "Executive Assistant", 3583 | "item": [ 3584 | { 3585 | "name": "Get Executive Assistant", 3586 | "event": [ 3587 | { 3588 | "listen": "test", 3589 | "script": { 3590 | "exec": [ 3591 | "pm.test(\"Expected status code: 200\", function () {", 3592 | " pm.response.to.have.status(200);", 3593 | "});" 3594 | ], 3595 | "type": "text/javascript" 3596 | } 3597 | } 3598 | ], 3599 | "request": { 3600 | "method": "GET", 3601 | "header": [], 3602 | "url": { 3603 | "raw": "{{WEBEX_API_URL}}/people/{{PERSON_ID}}/features/executiveAssistant", 3604 | "host": [ 3605 | "{{WEBEX_API_URL}}" 3606 | ], 3607 | "path": [ 3608 | "people", 3609 | "{{PERSON_ID}}", 3610 | "features", 3611 | "executiveAssistant" 3612 | ] 3613 | } 3614 | }, 3615 | "response": [] 3616 | }, 3617 | { 3618 | "name": "Update Executive Assistant", 3619 | "event": [ 3620 | { 3621 | "listen": "test", 3622 | "script": { 3623 | "exec": [ 3624 | "pm.test(\"Expected status code: 204\", function () {", 3625 | " pm.response.to.have.status(204);", 3626 | "});" 3627 | ], 3628 | "type": "text/javascript" 3629 | } 3630 | } 3631 | ], 3632 | "request": { 3633 | "method": "PUT", 3634 | "header": [], 3635 | "body": { 3636 | "mode": "raw", 3637 | "raw": "{\n \"type\": \"ASSIGNED\"\n}", 3638 | "options": { 3639 | "raw": { 3640 | "language": "json" 3641 | } 3642 | } 3643 | }, 3644 | "url": { 3645 | "raw": "{{WEBEX_API_URL}}/people/{{PERSON_ID}}/features/executiveAssistant", 3646 | "host": [ 3647 | "{{WEBEX_API_URL}}" 3648 | ], 3649 | "path": [ 3650 | "people", 3651 | "{{PERSON_ID}}", 3652 | "features", 3653 | "executiveAssistant" 3654 | ] 3655 | } 3656 | }, 3657 | "response": [] 3658 | } 3659 | ] 3660 | }, 3661 | { 3662 | "name": "Application Services", 3663 | "item": [ 3664 | { 3665 | "name": "Get Application Services", 3666 | "event": [ 3667 | { 3668 | "listen": "test", 3669 | "script": { 3670 | "exec": [ 3671 | "pm.test(\"Expected status code: 200\", function () {", 3672 | " pm.response.to.have.status(200);", 3673 | "});" 3674 | ], 3675 | "type": "text/javascript" 3676 | } 3677 | } 3678 | ], 3679 | "request": { 3680 | "method": "GET", 3681 | "header": [], 3682 | "url": { 3683 | "raw": "{{WEBEX_API_URL}}/people/{{PERSON_ID}}/features/applications", 3684 | "host": [ 3685 | "{{WEBEX_API_URL}}" 3686 | ], 3687 | "path": [ 3688 | "people", 3689 | "{{PERSON_ID}}", 3690 | "features", 3691 | "applications" 3692 | ] 3693 | } 3694 | }, 3695 | "response": [] 3696 | }, 3697 | { 3698 | "name": "Update Application Services", 3699 | "event": [ 3700 | { 3701 | "listen": "test", 3702 | "script": { 3703 | "exec": [ 3704 | "pm.test(\"Expected status code: 204\", function () {", 3705 | " pm.response.to.have.status(204);", 3706 | "});" 3707 | ], 3708 | "type": "text/javascript" 3709 | } 3710 | } 3711 | ], 3712 | "request": { 3713 | "method": "PUT", 3714 | "header": [], 3715 | "body": { 3716 | "mode": "raw", 3717 | "raw": "{\n \"ringDevicesForClickToDialCallsEnabled\": true,\n \"ringDevicesForGroupPageEnabled\": false,\n \"ringDevicesForCallParkEnabled\": true,\n \"desktopClientEnabled\": true,\n \"mobileClientEnabled\": true,\n \"tabletClientEnabled\": true\n}", 3718 | "options": { 3719 | "raw": { 3720 | "language": "json" 3721 | } 3722 | } 3723 | }, 3724 | "url": { 3725 | "raw": "{{WEBEX_API_URL}}/people/{{PERSON_ID}}/features/applications", 3726 | "host": [ 3727 | "{{WEBEX_API_URL}}" 3728 | ], 3729 | "path": [ 3730 | "people", 3731 | "{{PERSON_ID}}", 3732 | "features", 3733 | "applications" 3734 | ] 3735 | } 3736 | }, 3737 | "response": [] 3738 | } 3739 | ] 3740 | }, 3741 | { 3742 | "name": "Monitoring", 3743 | "item": [ 3744 | { 3745 | "name": "Get Monitoring", 3746 | "event": [ 3747 | { 3748 | "listen": "test", 3749 | "script": { 3750 | "exec": [ 3751 | "pm.test(\"Expected status code: 200\", function () {", 3752 | " pm.response.to.have.status(200);", 3753 | "});" 3754 | ], 3755 | "type": "text/javascript" 3756 | } 3757 | } 3758 | ], 3759 | "request": { 3760 | "method": "GET", 3761 | "header": [], 3762 | "url": { 3763 | "raw": "{{WEBEX_API_URL}}/people/{{PERSON_ID}}/features/monitoring", 3764 | "host": [ 3765 | "{{WEBEX_API_URL}}" 3766 | ], 3767 | "path": [ 3768 | "people", 3769 | "{{PERSON_ID}}", 3770 | "features", 3771 | "monitoring" 3772 | ] 3773 | } 3774 | }, 3775 | "response": [] 3776 | }, 3777 | { 3778 | "name": "Update Monitoring", 3779 | "event": [ 3780 | { 3781 | "listen": "test", 3782 | "script": { 3783 | "exec": [ 3784 | "pm.test(\"Expected status code: 204\", function () {", 3785 | " pm.response.to.have.status(204);", 3786 | "});" 3787 | ], 3788 | "type": "text/javascript" 3789 | } 3790 | } 3791 | ], 3792 | "request": { 3793 | "method": "PUT", 3794 | "header": [], 3795 | "body": { 3796 | "mode": "raw", 3797 | "raw": "{\n \"enableCallParkNotification\":true,\n \"monitoredElements\":[\n \"{{MONITORED_AGENTID_1}}\",\n \"{{MONITORED_AGENTID_2}}\"\n ]\n}", 3798 | "options": { 3799 | "raw": { 3800 | "language": "json" 3801 | } 3802 | } 3803 | }, 3804 | "url": { 3805 | "raw": "{{WEBEX_API_URL}}/people/{{PERSON_ID}}/features/monitoring", 3806 | "host": [ 3807 | "{{WEBEX_API_URL}}" 3808 | ], 3809 | "path": [ 3810 | "people", 3811 | "{{PERSON_ID}}", 3812 | "features", 3813 | "monitoring" 3814 | ] 3815 | } 3816 | }, 3817 | "response": [] 3818 | } 3819 | ] 3820 | }, 3821 | { 3822 | "name": "Devices", 3823 | "item": [ 3824 | { 3825 | "name": "Get Device Settings For A Person", 3826 | "event": [ 3827 | { 3828 | "listen": "test", 3829 | "script": { 3830 | "exec": [ 3831 | "" 3832 | ], 3833 | "type": "text/javascript" 3834 | } 3835 | } 3836 | ], 3837 | "request": { 3838 | "method": "GET", 3839 | "header": [], 3840 | "url": { 3841 | "raw": "{{WEBEX_API_URL}}/telephony/config/people/{{_members.personId}}/devices", 3842 | "host": [ 3843 | "{{WEBEX_API_URL}}" 3844 | ], 3845 | "path": [ 3846 | "telephony", 3847 | "config", 3848 | "people", 3849 | "{{_members.personId}}", 3850 | "devices" 3851 | ] 3852 | } 3853 | }, 3854 | "response": [] 3855 | }, 3856 | { 3857 | "name": "Get Person's Application Members", 3858 | "event": [ 3859 | { 3860 | "listen": "test", 3861 | "script": { 3862 | "exec": [ 3863 | "pm.test(\"Status code is 200\", function () {", 3864 | " pm.response.to.have.status(200);", 3865 | "});", 3866 | "", 3867 | "let response = pm.response.json();", 3868 | "pm.collectionVariables.set(\"_members.id\", response.members[0].id);" 3869 | ], 3870 | "type": "text/javascript" 3871 | } 3872 | } 3873 | ], 3874 | "protocolProfileBehavior": { 3875 | "disableBodyPruning": true 3876 | }, 3877 | "request": { 3878 | "method": "GET", 3879 | "header": [], 3880 | "body": { 3881 | "mode": "raw", 3882 | "raw": "" 3883 | }, 3884 | "url": { 3885 | "raw": "{{WEBEX_API_URL}}/telephony/config/people/{{_members.personId}}/applications/{{APPLICATION_ID}}/members", 3886 | "host": [ 3887 | "{{WEBEX_API_URL}}" 3888 | ], 3889 | "path": [ 3890 | "telephony", 3891 | "config", 3892 | "people", 3893 | "{{_members.personId}}", 3894 | "applications", 3895 | "{{APPLICATION_ID}}", 3896 | "members" 3897 | ] 3898 | } 3899 | }, 3900 | "response": [] 3901 | }, 3902 | { 3903 | "name": "Modify Person's Application Members", 3904 | "event": [ 3905 | { 3906 | "listen": "test", 3907 | "script": { 3908 | "exec": [ 3909 | "" 3910 | ], 3911 | "type": "text/javascript" 3912 | } 3913 | } 3914 | ], 3915 | "request": { 3916 | "method": "PUT", 3917 | "header": [], 3918 | "body": { 3919 | "mode": "raw", 3920 | "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", 3921 | "options": { 3922 | "raw": { 3923 | "language": "json" 3924 | } 3925 | } 3926 | }, 3927 | "url": { 3928 | "raw": "{{WEBEX_API_URL}}/telephony/config/people/{{_members.personId}}/applications/{{APPLICATION_ID}}/members", 3929 | "host": [ 3930 | "{{WEBEX_API_URL}}" 3931 | ], 3932 | "path": [ 3933 | "telephony", 3934 | "config", 3935 | "people", 3936 | "{{_members.personId}}", 3937 | "applications", 3938 | "{{APPLICATION_ID}}", 3939 | "members" 3940 | ] 3941 | } 3942 | }, 3943 | "response": [] 3944 | }, 3945 | { 3946 | "name": "Get Person's Application Available Members", 3947 | "event": [ 3948 | { 3949 | "listen": "test", 3950 | "script": { 3951 | "exec": [ 3952 | "pm.test(\"Status code is 200\", function () {", 3953 | " pm.response.to.have.status(200);", 3954 | "});", 3955 | "", 3956 | "let response = pm.response.json();", 3957 | "pm.collectionVariables.set(\"_members.id\", response.members[0].id);" 3958 | ], 3959 | "type": "text/javascript" 3960 | } 3961 | } 3962 | ], 3963 | "request": { 3964 | "method": "GET", 3965 | "header": [], 3966 | "url": { 3967 | "raw": "{{WEBEX_API_URL}}/telephony/config/people/{{_members.personId}}/applications/{{APPLICATION_ID}}/availableMembers", 3968 | "host": [ 3969 | "{{WEBEX_API_URL}}" 3970 | ], 3971 | "path": [ 3972 | "telephony", 3973 | "config", 3974 | "people", 3975 | "{{_members.personId}}", 3976 | "applications", 3977 | "{{APPLICATION_ID}}", 3978 | "availableMembers" 3979 | ] 3980 | } 3981 | }, 3982 | "response": [] 3983 | } 3984 | ] 3985 | }, 3986 | { 3987 | "name": "Music On Hold", 3988 | "item": [ 3989 | { 3990 | "name": "Upload the Binary file", 3991 | "event": [ 3992 | { 3993 | "listen": "test", 3994 | "script": { 3995 | "exec": [ 3996 | "pm.test(\"Expected status code: 201\", function () {", 3997 | " if (pm.response.code == 403) {", 3998 | " throw new Error(\"Got status code 403. Ensure your auth token contains spark-admin:telephony_config_write scope.\");", 3999 | " }", 4000 | " pm.response.to.have.status(201);", 4001 | "});", 4002 | "", 4003 | "let response = pm.response.json();", 4004 | "pm.collectionVariables.set(\"_announcementId\", response.id);", 4005 | "" 4006 | ], 4007 | "type": "text/javascript" 4008 | } 4009 | } 4010 | ], 4011 | "request": { 4012 | "method": "POST", 4013 | "header": [], 4014 | "body": { 4015 | "mode": "formdata", 4016 | "formdata": [ 4017 | { 4018 | "key": "file", 4019 | "type": "file", 4020 | "src": [] 4021 | }, 4022 | { 4023 | "key": "name", 4024 | "value": "MOHFile", 4025 | "type": "text" 4026 | } 4027 | ] 4028 | }, 4029 | "url": { 4030 | "raw": "{{WEBEX_API_URL}}/telephony/config/locations/{{_locationId}}/announcements", 4031 | "host": [ 4032 | "{{WEBEX_API_URL}}" 4033 | ], 4034 | "path": [ 4035 | "telephony", 4036 | "config", 4037 | "locations", 4038 | "{{_locationId}}", 4039 | "announcements" 4040 | ] 4041 | } 4042 | }, 4043 | "response": [] 4044 | }, 4045 | { 4046 | "name": "Get User Music On Hold", 4047 | "event": [ 4048 | { 4049 | "listen": "test", 4050 | "script": { 4051 | "exec": [ 4052 | "pm.test(\"Expected status code: 200\", function () {", 4053 | " pm.response.to.have.status(200);", 4054 | "});" 4055 | ], 4056 | "type": "text/javascript" 4057 | } 4058 | } 4059 | ], 4060 | "request": { 4061 | "method": "GET", 4062 | "header": [], 4063 | "url": { 4064 | "raw": "{{WEBEX_API_URL}}/telephony/config/people/{{PERSON_ID}}/musicOnHold", 4065 | "host": [ 4066 | "{{WEBEX_API_URL}}" 4067 | ], 4068 | "path": [ 4069 | "telephony", 4070 | "config", 4071 | "people", 4072 | "{{PERSON_ID}}", 4073 | "musicOnHold" 4074 | ] 4075 | } 4076 | }, 4077 | "response": [] 4078 | }, 4079 | { 4080 | "name": "Update User Music On Hold with Custom Greeting", 4081 | "event": [ 4082 | { 4083 | "listen": "test", 4084 | "script": { 4085 | "exec": [ 4086 | "pm.test(\"Expected status code: 204\", function () {", 4087 | " pm.response.to.have.status(204);", 4088 | "});" 4089 | ], 4090 | "type": "text/javascript" 4091 | } 4092 | } 4093 | ], 4094 | "request": { 4095 | "method": "PUT", 4096 | "header": [], 4097 | "body": { 4098 | "mode": "raw", 4099 | "raw": "{\n \"mohEnabled\": true,\n \"greeting\": \"CUSTOM\",\n \"audioAnnouncementFile\": {\n \"id\": \"{{_announcementId}}\"\n }\n}", 4100 | "options": { 4101 | "raw": { 4102 | "language": "json" 4103 | } 4104 | } 4105 | }, 4106 | "url": { 4107 | "raw": "{{WEBEX_API_URL}}/telephony/config/people/{{PERSON_ID}}/musicOnHold", 4108 | "host": [ 4109 | "{{WEBEX_API_URL}}" 4110 | ], 4111 | "path": [ 4112 | "telephony", 4113 | "config", 4114 | "people", 4115 | "{{PERSON_ID}}", 4116 | "musicOnHold" 4117 | ] 4118 | } 4119 | }, 4120 | "response": [] 4121 | }, 4122 | { 4123 | "name": "Get User Music On Hold after modifying", 4124 | "event": [ 4125 | { 4126 | "listen": "test", 4127 | "script": { 4128 | "exec": [ 4129 | "pm.test(\"Expected status code: 200\", function () {", 4130 | " pm.response.to.have.status(200);", 4131 | "});" 4132 | ], 4133 | "type": "text/javascript" 4134 | } 4135 | } 4136 | ], 4137 | "request": { 4138 | "method": "GET", 4139 | "header": [], 4140 | "url": { 4141 | "raw": "{{WEBEX_API_URL}}/telephony/config/people/{{PERSON_ID}}/musicOnHold", 4142 | "host": [ 4143 | "{{WEBEX_API_URL}}" 4144 | ], 4145 | "path": [ 4146 | "telephony", 4147 | "config", 4148 | "people", 4149 | "{{PERSON_ID}}", 4150 | "musicOnHold" 4151 | ] 4152 | } 4153 | }, 4154 | "response": [] 4155 | }, 4156 | { 4157 | "name": "Update User Music On Hold with Default Greeting", 4158 | "event": [ 4159 | { 4160 | "listen": "test", 4161 | "script": { 4162 | "exec": [ 4163 | "pm.test(\"Expected status code: 204\", function () {", 4164 | " if (pm.response.code == 403) {", 4165 | " throw new Error(\"Got status code 403. Ensure your auth token contains spark-admin:telephony_config_write scope.\");", 4166 | " }", 4167 | " pm.response.to.have.status(204);", 4168 | "});", 4169 | "" 4170 | ], 4171 | "type": "text/javascript" 4172 | } 4173 | } 4174 | ], 4175 | "request": { 4176 | "method": "PUT", 4177 | "header": [], 4178 | "body": { 4179 | "mode": "raw", 4180 | "raw": "{\n \"mohEnabled\": true,\n \"greeting\": \"DEFAULT\",\n \"audioAnnouncementFile\": null\n}", 4181 | "options": { 4182 | "raw": { 4183 | "language": "json" 4184 | } 4185 | } 4186 | }, 4187 | "url": { 4188 | "raw": "{{WEBEX_API_URL}}/telephony/config/people/{{PERSON_ID}}/musicOnHold", 4189 | "host": [ 4190 | "{{WEBEX_API_URL}}" 4191 | ], 4192 | "path": [ 4193 | "telephony", 4194 | "config", 4195 | "people", 4196 | "{{PERSON_ID}}", 4197 | "musicOnHold" 4198 | ] 4199 | } 4200 | }, 4201 | "response": [] 4202 | }, 4203 | { 4204 | "name": "Delete Announcement Details", 4205 | "event": [ 4206 | { 4207 | "listen": "test", 4208 | "script": { 4209 | "exec": [ 4210 | "pm.test(\"Expected status code: 204\", function () {", 4211 | " if (pm.response.code == 403) {", 4212 | " throw new Error(\"Got status code 403. Ensure your auth token contains spark-admin:telephony_config_write scope.\");", 4213 | " }", 4214 | " pm.response.to.have.status(204);", 4215 | "});", 4216 | "" 4217 | ], 4218 | "type": "text/javascript" 4219 | } 4220 | } 4221 | ], 4222 | "request": { 4223 | "method": "DELETE", 4224 | "header": [], 4225 | "url": { 4226 | "raw": "{{WEBEX_API_URL}}/telephony/config/locations/{{_locationId}}/announcements/{{_announcementId}}", 4227 | "host": [ 4228 | "{{WEBEX_API_URL}}" 4229 | ], 4230 | "path": [ 4231 | "telephony", 4232 | "config", 4233 | "locations", 4234 | "{{_locationId}}", 4235 | "announcements", 4236 | "{{_announcementId}}" 4237 | ] 4238 | } 4239 | }, 4240 | "response": [] 4241 | } 4242 | ] 4243 | } 4244 | ] 4245 | }, 4246 | { 4247 | "name": "Webex Calling Workspace Settings", 4248 | "item": [ 4249 | { 4250 | "name": "Number Settings", 4251 | "item": [ 4252 | { 4253 | "name": "Workspace numbers List", 4254 | "event": [ 4255 | { 4256 | "listen": "test", 4257 | "script": { 4258 | "exec": [ 4259 | "pm.test(\"Expected status code: 200\", function () {", 4260 | " pm.response.to.have.status(200);", 4261 | "});" 4262 | ], 4263 | "type": "text/javascript" 4264 | } 4265 | } 4266 | ], 4267 | "request": { 4268 | "method": "GET", 4269 | "header": [ 4270 | { 4271 | "key": "Content-Type", 4272 | "value": "application/json", 4273 | "type": "default" 4274 | } 4275 | ], 4276 | "url": { 4277 | "raw": "{{WEBEX_API_URL}}/workspaces/{{WORKSPACE_ID}}/features/numbers", 4278 | "host": [ 4279 | "{{WEBEX_API_URL}}" 4280 | ], 4281 | "path": [ 4282 | "workspaces", 4283 | "{{WORKSPACE_ID}}", 4284 | "features", 4285 | "numbers" 4286 | ] 4287 | } 4288 | }, 4289 | "response": [] 4290 | } 4291 | ] 4292 | }, 4293 | { 4294 | "name": "Device Settings", 4295 | "item": [ 4296 | { 4297 | "name": "Get Device Settings For A Workspace", 4298 | "event": [ 4299 | { 4300 | "listen": "test", 4301 | "script": { 4302 | "exec": [ 4303 | "" 4304 | ], 4305 | "type": "text/javascript" 4306 | } 4307 | } 4308 | ], 4309 | "request": { 4310 | "method": "GET", 4311 | "header": [], 4312 | "url": { 4313 | "raw": "{{WEBEX_API_URL}}/telephony/config/workspaces/{{_members.workspaceId}}/devices", 4314 | "host": [ 4315 | "{{WEBEX_API_URL}}" 4316 | ], 4317 | "path": [ 4318 | "telephony", 4319 | "config", 4320 | "workspaces", 4321 | "{{_members.workspaceId}}", 4322 | "devices" 4323 | ] 4324 | } 4325 | }, 4326 | "response": [] 4327 | }, 4328 | { 4329 | "name": "Modify Device Settings For A Workspace", 4330 | "event": [ 4331 | { 4332 | "listen": "test", 4333 | "script": { 4334 | "exec": [ 4335 | "" 4336 | ], 4337 | "type": "text/javascript" 4338 | } 4339 | } 4340 | ], 4341 | "request": { 4342 | "method": "PUT", 4343 | "header": [], 4344 | "body": { 4345 | "mode": "raw", 4346 | "raw": "{\n\"enabled\": true,\n\"limitGuestUse\": true,\n\"guestHoursLimit\": 12\n}", 4347 | "options": { 4348 | "raw": { 4349 | "language": "json" 4350 | } 4351 | } 4352 | }, 4353 | "url": { 4354 | "raw": "{{WEBEX_API_URL}}/telephony/config/workspaces/{{_members.workspaceId}}/devices", 4355 | "host": [ 4356 | "{{WEBEX_API_URL}}" 4357 | ], 4358 | "path": [ 4359 | "telephony", 4360 | "config", 4361 | "workspaces", 4362 | "{{_members.workspaceId}}", 4363 | "devices" 4364 | ] 4365 | } 4366 | }, 4367 | "response": [] 4368 | } 4369 | ] 4370 | }, 4371 | { 4372 | "name": "Music On Hold", 4373 | "item": [ 4374 | { 4375 | "name": "Upload the Binary file", 4376 | "event": [ 4377 | { 4378 | "listen": "test", 4379 | "script": { 4380 | "exec": [ 4381 | "pm.test(\"Expected status code: 201\", function () {", 4382 | " if (pm.response.code == 403) {", 4383 | " throw new Error(\"Got status code 403. Ensure your auth token contains spark-admin:telephony_config_write scope.\");", 4384 | " }", 4385 | " pm.response.to.have.status(201);", 4386 | "});", 4387 | "", 4388 | "let response = pm.response.json();", 4389 | "pm.collectionVariables.set(\"_announcementId\", response.id);", 4390 | "" 4391 | ], 4392 | "type": "text/javascript" 4393 | } 4394 | } 4395 | ], 4396 | "request": { 4397 | "method": "POST", 4398 | "header": [], 4399 | "body": { 4400 | "mode": "formdata", 4401 | "formdata": [ 4402 | { 4403 | "key": "file", 4404 | "type": "file", 4405 | "src": [] 4406 | }, 4407 | { 4408 | "key": "name", 4409 | "value": "MOHFile", 4410 | "type": "text" 4411 | } 4412 | ] 4413 | }, 4414 | "url": { 4415 | "raw": "{{WEBEX_API_URL}}/telephony/config/locations/{{_locationId}}/announcements", 4416 | "host": [ 4417 | "{{WEBEX_API_URL}}" 4418 | ], 4419 | "path": [ 4420 | "telephony", 4421 | "config", 4422 | "locations", 4423 | "{{_locationId}}", 4424 | "announcements" 4425 | ] 4426 | } 4427 | }, 4428 | "response": [] 4429 | }, 4430 | { 4431 | "name": "Get Workspace Music On Hold", 4432 | "event": [ 4433 | { 4434 | "listen": "test", 4435 | "script": { 4436 | "exec": [ 4437 | "pm.test(\"Expected status code: 200\", function () {", 4438 | " pm.response.to.have.status(200);", 4439 | "});" 4440 | ], 4441 | "type": "text/javascript" 4442 | } 4443 | } 4444 | ], 4445 | "request": { 4446 | "method": "GET", 4447 | "header": [], 4448 | "url": { 4449 | "raw": "{{WEBEX_API_URL}}/telephony/config/workspaces/{{WORKSPACE_ID}}/musicOnHold", 4450 | "host": [ 4451 | "{{WEBEX_API_URL}}" 4452 | ], 4453 | "path": [ 4454 | "telephony", 4455 | "config", 4456 | "workspaces", 4457 | "{{WORKSPACE_ID}}", 4458 | "musicOnHold" 4459 | ] 4460 | } 4461 | }, 4462 | "response": [] 4463 | }, 4464 | { 4465 | "name": "Update Workspace Music On Hold with Custom Greeting", 4466 | "event": [ 4467 | { 4468 | "listen": "test", 4469 | "script": { 4470 | "exec": [ 4471 | "pm.test(\"Expected status code: 204\", function () {", 4472 | " pm.response.to.have.status(204);", 4473 | "});" 4474 | ], 4475 | "type": "text/javascript" 4476 | } 4477 | } 4478 | ], 4479 | "request": { 4480 | "method": "PUT", 4481 | "header": [], 4482 | "body": { 4483 | "mode": "raw", 4484 | "raw": "{\n \"mohEnabled\": true,\n \"greeting\": \"CUSTOM\",\n \"audioAnnouncementFile\": {\n \"id\": \"{{_announcementId}}\"\n }\n}", 4485 | "options": { 4486 | "raw": { 4487 | "language": "json" 4488 | } 4489 | } 4490 | }, 4491 | "url": { 4492 | "raw": "{{WEBEX_API_URL}}/telephony/config/workspaces/{{WORKSPACE_ID}}/musicOnHold", 4493 | "host": [ 4494 | "{{WEBEX_API_URL}}" 4495 | ], 4496 | "path": [ 4497 | "telephony", 4498 | "config", 4499 | "workspaces", 4500 | "{{WORKSPACE_ID}}", 4501 | "musicOnHold" 4502 | ] 4503 | } 4504 | }, 4505 | "response": [] 4506 | }, 4507 | { 4508 | "name": "Get Workspace Music On Hold after modifying", 4509 | "event": [ 4510 | { 4511 | "listen": "test", 4512 | "script": { 4513 | "exec": [ 4514 | "pm.test(\"Expected status code: 200\", function () {", 4515 | " pm.response.to.have.status(200);", 4516 | "});" 4517 | ], 4518 | "type": "text/javascript" 4519 | } 4520 | } 4521 | ], 4522 | "request": { 4523 | "method": "GET", 4524 | "header": [], 4525 | "url": { 4526 | "raw": "{{WEBEX_API_URL}}/telephony/config/workspaces/{{WORKSPACE_ID}}/musicOnHold", 4527 | "host": [ 4528 | "{{WEBEX_API_URL}}" 4529 | ], 4530 | "path": [ 4531 | "telephony", 4532 | "config", 4533 | "workspaces", 4534 | "{{WORKSPACE_ID}}", 4535 | "musicOnHold" 4536 | ] 4537 | } 4538 | }, 4539 | "response": [] 4540 | }, 4541 | { 4542 | "name": "Update Workspace Music On Hold with Default Greeting", 4543 | "event": [ 4544 | { 4545 | "listen": "test", 4546 | "script": { 4547 | "exec": [ 4548 | "pm.test(\"Expected status code: 204\", function () {", 4549 | " if (pm.response.code == 403) {", 4550 | " throw new Error(\"Got status code 403. Ensure your auth token contains spark-admin:telephony_config_write scope.\");", 4551 | " }", 4552 | " pm.response.to.have.status(204);", 4553 | "});", 4554 | "" 4555 | ], 4556 | "type": "text/javascript" 4557 | } 4558 | } 4559 | ], 4560 | "request": { 4561 | "method": "PUT", 4562 | "header": [], 4563 | "body": { 4564 | "mode": "raw", 4565 | "raw": "{\n \"mohEnabled\": true,\n \"greeting\": \"DEFAULT\",\n \"audioAnnouncementFile\": null\n}", 4566 | "options": { 4567 | "raw": { 4568 | "language": "json" 4569 | } 4570 | } 4571 | }, 4572 | "url": { 4573 | "raw": "{{WEBEX_API_URL}}/telephony/config/workspaces/{{WORKSPACE_ID}}/musicOnHold", 4574 | "host": [ 4575 | "{{WEBEX_API_URL}}" 4576 | ], 4577 | "path": [ 4578 | "telephony", 4579 | "config", 4580 | "workspaces", 4581 | "{{WORKSPACE_ID}}", 4582 | "musicOnHold" 4583 | ] 4584 | } 4585 | }, 4586 | "response": [] 4587 | }, 4588 | { 4589 | "name": "Delete Announcement Details", 4590 | "event": [ 4591 | { 4592 | "listen": "test", 4593 | "script": { 4594 | "exec": [ 4595 | "pm.test(\"Expected status code: 204\", function () {", 4596 | " if (pm.response.code == 403) {", 4597 | " throw new Error(\"Got status code 403. Ensure your auth token contains spark-admin:telephony_config_write scope.\");", 4598 | " }", 4599 | " pm.response.to.have.status(204);", 4600 | "});", 4601 | "" 4602 | ], 4603 | "type": "text/javascript" 4604 | } 4605 | } 4606 | ], 4607 | "request": { 4608 | "method": "DELETE", 4609 | "header": [], 4610 | "url": { 4611 | "raw": "{{WEBEX_API_URL}}/telephony/config/locations/{{_locationId}}/announcements/{{_announcementId}}", 4612 | "host": [ 4613 | "{{WEBEX_API_URL}}" 4614 | ], 4615 | "path": [ 4616 | "telephony", 4617 | "config", 4618 | "locations", 4619 | "{{_locationId}}", 4620 | "announcements", 4621 | "{{_announcementId}}" 4622 | ] 4623 | } 4624 | }, 4625 | "response": [] 4626 | } 4627 | ] 4628 | } 4629 | ] 4630 | } 4631 | ], 4632 | "auth": { 4633 | "type": "bearer", 4634 | "bearer": [ 4635 | { 4636 | "key": "token", 4637 | "value": "{{WEBEX_TOKEN}}", 4638 | "type": "string" 4639 | } 4640 | ] 4641 | }, 4642 | "event": [ 4643 | { 4644 | "listen": "prerequest", 4645 | "script": { 4646 | "type": "text/javascript", 4647 | "exec": [ 4648 | "" 4649 | ] 4650 | } 4651 | }, 4652 | { 4653 | "listen": "test", 4654 | "script": { 4655 | "type": "text/javascript", 4656 | "exec": [ 4657 | "" 4658 | ] 4659 | } 4660 | } 4661 | ], 4662 | "variable": [ 4663 | { 4664 | "key": "WEBEX_TOKEN", 4665 | "value": "Set this to an authorized user's token" 4666 | }, 4667 | { 4668 | "key": "WEBEX_API_URL", 4669 | "value": "https://webexapis.com/v1" 4670 | }, 4671 | { 4672 | "key": "LOCATION_ID", 4673 | "value": "Set this to the location Id" 4674 | }, 4675 | { 4676 | "key": "_voicemailGroupId", 4677 | "value": "" 4678 | }, 4679 | { 4680 | "key": "PERSON_ID", 4681 | "value": "Set this to a valid person ID" 4682 | }, 4683 | { 4684 | "key": "MONITORED_AGENTID_1", 4685 | "value": "Set this to a valid person id that need to be monitored" 4686 | }, 4687 | { 4688 | "key": "MONITORED_AGENTID_2", 4689 | "value": "Set this to a valid person id that need to be monitored" 4690 | }, 4691 | { 4692 | "key": "_scheduleId", 4693 | "value": "" 4694 | }, 4695 | { 4696 | "key": "SCHEDULE_TYPE", 4697 | "value": "Set this to a valid hydra schedule type" 4698 | }, 4699 | { 4700 | "key": "_eventId", 4701 | "value": "" 4702 | }, 4703 | { 4704 | "key": "_locationIdForNumbers", 4705 | "value": "", 4706 | "type": "default" 4707 | }, 4708 | { 4709 | "key": "_ownerId", 4710 | "value": "", 4711 | "type": "default" 4712 | }, 4713 | { 4714 | "key": "_ownerType", 4715 | "value": "", 4716 | "type": "default" 4717 | }, 4718 | { 4719 | "key": "WORKSPACE_ID", 4720 | "value": "Set this to a valid workspace Id", 4721 | "type": "default" 4722 | }, 4723 | { 4724 | "key": "LOCATIONID_FOR_DEVICES", 4725 | "value": "Set this to a valid location Id for devices", 4726 | "type": "default" 4727 | }, 4728 | { 4729 | "key": "MAC_ADDRESS_LIST", 4730 | "value": "Set this to a mac address(es) to be validated", 4731 | "type": "default" 4732 | }, 4733 | { 4734 | "key": "DEVICE_MODEL", 4735 | "value": "Set this to a valid device model name", 4736 | "type": "default" 4737 | }, 4738 | { 4739 | "key": "DEVICE_ID", 4740 | "value": "Set this to a valid device id", 4741 | "type": "default" 4742 | }, 4743 | { 4744 | "key": "APPLICATION_ID", 4745 | "value": "Set this to a valid user's application id", 4746 | "type": "default" 4747 | }, 4748 | { 4749 | "key": "LOCATIONID_FOR_RECEPTIONIST", 4750 | "value": "Set this to a valid location Id for receptionist contact directory", 4751 | "type": "default" 4752 | }, 4753 | { 4754 | "key": "_extensions", 4755 | "value": "" 4756 | }, 4757 | { 4758 | "key": "_members.id", 4759 | "value": "", 4760 | "type": "default" 4761 | }, 4762 | { 4763 | "key": "_members.personId", 4764 | "value": "", 4765 | "type": "default" 4766 | }, 4767 | { 4768 | "key": "_members.workspaceId", 4769 | "value": "", 4770 | "type": "default" 4771 | }, 4772 | { 4773 | "key": "_jobId", 4774 | "value": "" 4775 | }, 4776 | { 4777 | "key": "_directory.id", 4778 | "value": "Auto set by Get Receptionist Contact Directories", 4779 | "type": "default" 4780 | }, 4781 | { 4782 | "key": "_locationId", 4783 | "value": "" 4784 | }, 4785 | { 4786 | "key": "_announcementId", 4787 | "value": "Auto set by Create Announcement Tests Javascript" 4788 | } 4789 | ] 4790 | } --------------------------------------------------------------------------------