From d7711c26592cd0a88349b29031e50f224ab9e212 Mon Sep 17 00:00:00 2001 From: Tyler Long Date: Wed, 9 Jun 2021 18:24:45 -0700 Subject: [PATCH] New spec, new code --- code-generator/package.json | 8 +- code-generator/yarn.lock | 393 +- samples.md | 3535 +++++++++-------- .../definitions/AccountOperatorInfo.java | 1 + .../definitions/AnsweringRuleInfo.java | 9 + ...tomaticLocationUpdatesPhoneNumberInfo.java | 1 + ...tomaticLocationUpdatesSiteInfoRequest.java | 14 + .../definitions/CallQueueMemberInfo.java | 1 + .../definitions/CompanyPhoneNumberInfo.java | 1 + .../ringcentral/definitions/ContactInfo.java | 9 + .../CreateMessageStoreReportRequest.java | 19 +- .../ringcentral/definitions/CurrencyInfo.java | 5 +- .../definitions/DeleteMessageParameters.java | 1 + .../definitions/DeviceCountryResource.java | 2 +- .../definitions/DeviceExtensionInfo.java | 1 + .../DevicePhoneLinesEmergencyAddressInfo.java | 4 +- .../definitions/DevicePhoneNumberInfo.java | 1 + .../definitions/ExtensionDeviceResponse.java | 3 +- .../definitions/ExtensionInfoCallLog.java | 1 + .../definitions/ExtensionUpdateRequest.java | 4 +- .../definitions/FavoriteContactResource.java | 2 +- .../definitions/GetAccountInfoResponse.java | 1 + .../definitions/GetDeviceInfoResponse.java | 3 +- .../GetInternalTextMessageInfoResponse.java | 2 + .../definitions/GetMessageInfoResponse.java | 2 + .../definitions/GetPresenceExtensionInfo.java | 1 + .../GetSMSMessageInfoResponse.java | 2 + .../definitions/GetTokenRequest.java | 2 +- ...tomaticLocationUpdatesUsersParameters.java | 2 +- ...cesAutomaticLocationUpdatesParameters.java | 2 +- .../ListDomesticCountriesParameters.java | 26 + .../definitions/ListStatesParameters.java | 1 + .../definitions/MessageAttachmentInfo.java | 1 + .../ringcentral/definitions/MessageBody.java | 1 + .../definitions/MessageStoreReport.java | 13 +- .../definitions/MissedCallExtensionInfo.java | 15 + .../definitions/MissedCallInfo.java | 25 + .../definitions/NotificationSettings.java | 9 + .../NotificationSettingsUpdateRequest.java | 9 + .../definitions/PersonalContactResource.java | 1 + .../definitions/RecipientInfo.java | 1 + .../SipRegistrationDeviceInfo.java | 1 + .../SyncAddressBookParameters.java | 1 + .../definitions/SyncMessagesParameters.java | 1 + .../UnconditionalForwardingInfo.java | 2 +- .../UserPhoneNumberExtensionInfo.java | 1 + .../definitions/UserPhoneNumberInfo.java | 1 + .../paths/restapi/dictionary/Index.java | 5 + .../paths/restapi/dictionary/brand/Index.java | 27 + .../brand/contractedcountry/Index.java | 46 + 50 files changed, 2251 insertions(+), 1968 deletions(-) create mode 100644 src/main/java/com/ringcentral/definitions/AutomaticLocationUpdatesSiteInfoRequest.java create mode 100644 src/main/java/com/ringcentral/definitions/ListDomesticCountriesParameters.java create mode 100644 src/main/java/com/ringcentral/definitions/MissedCallExtensionInfo.java create mode 100644 src/main/java/com/ringcentral/definitions/MissedCallInfo.java create mode 100644 src/main/java/com/ringcentral/paths/restapi/dictionary/brand/Index.java create mode 100644 src/main/java/com/ringcentral/paths/restapi/dictionary/brand/contractedcountry/Index.java diff --git a/code-generator/package.json b/code-generator/package.json index c8e284c2..a6225c93 100644 --- a/code-generator/package.json +++ b/code-generator/package.json @@ -10,14 +10,14 @@ "change-case": "^4.1.2", "lower-case-first": "^2.0.2", "ramda": "^0.27.1", - "ringcentral-open-api-parser": "^0.4.4" + "ringcentral-open-api-parser": "^0.4.6" }, "devDependencies": { - "@types/node": "^15.0.2", + "@types/node": "^15.12.2", "@types/ramda": "^0.27.40", "gts": "^3.1.0", - "ts-node": "^9.1.1", - "typescript": "^4.2.4", + "ts-node": "^10.0.0", + "typescript": "^4.3.2", "yarn-upgrade-all": "^0.5.4" } } diff --git a/code-generator/yarn.lock b/code-generator/yarn.lock index cee48397..cb27cb84 100644 --- a/code-generator/yarn.lock +++ b/code-generator/yarn.lock @@ -10,74 +10,60 @@ "@babel/highlight" "^7.10.4" "@babel/code-frame@^7.0.0": - version "7.12.13" - resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.12.13.tgz#dcfc826beef65e75c50e21d3837d7d95798dd658" - integrity sha512-HV1Cm0Q3ZrpCR93tkWOYiuYIgLxZXZFVG2VgK+MBWjUqZTundupbfx2aXarXuw5Ko5aMcjtJgbSs4vUGBS5v6g== + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.14.5.tgz#23b08d740e83f49c5e59945fbf1b43e80bbf4edb" + integrity sha512-9pzDqyc6OLDaqe+zbACgFkb6fKMNG6CObKpnYXChRsvYGyEdc7CA2BaqeOM+vOtCS5ndmJicPJhKAwYRI6UfFw== dependencies: - "@babel/highlight" "^7.12.13" + "@babel/highlight" "^7.14.5" -"@babel/helper-validator-identifier@^7.12.11": - version "7.12.11" - resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.12.11.tgz#c9a1f021917dcb5ccf0d4e453e399022981fc9ed" - integrity sha512-np/lG3uARFybkoHokJUmf1QfEvRVCPbmQeUQpKow5cQ3xWrV9i3rUHodKDJPQfTVX61qKi+UdYk8kik84n7XOw== - -"@babel/helper-validator-identifier@^7.14.0": - version "7.14.0" - resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.14.0.tgz#d26cad8a47c65286b15df1547319a5d0bcf27288" - integrity sha512-V3ts7zMSu5lfiwWDVWzRDGIN+lnCEUdaXgtVHJgLb1rGaA6jMrtB9EmE7L18foXJIE8Un/A/h6NJfGQp/e1J4A== +"@babel/helper-validator-identifier@^7.14.5": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.14.5.tgz#d0f0e277c512e0c938277faa85a3968c9a44c0e8" + integrity sha512-5lsetuxCLilmVGyiLEfoHBRX8UCFD+1m2x3Rj97WrW3V7H3u4RWRXA4evMjImCsin2J2YT0QaVDGf+z8ondbAg== -"@babel/highlight@^7.10.4": - version "7.14.0" - resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.14.0.tgz#3197e375711ef6bf834e67d0daec88e4f46113cf" - integrity sha512-YSCOwxvTYEIMSGaBQb5kDDsCopDdiUGsqpatp3fOlI4+2HQSkTmEVWnVuySdAC5EWCqSWWTv0ib63RjR7dTBdg== +"@babel/highlight@^7.10.4", "@babel/highlight@^7.14.5": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.14.5.tgz#6861a52f03966405001f6aa534a01a24d99e8cd9" + integrity sha512-qf9u2WFWVV0MppaL877j2dBtQIDgmidgjGk5VIMw3OadXvYaXn66U1BFlH2t4+t3i+8PhedppRv+i40ABzd+gg== dependencies: - "@babel/helper-validator-identifier" "^7.14.0" + "@babel/helper-validator-identifier" "^7.14.5" chalk "^2.0.0" js-tokens "^4.0.0" -"@babel/highlight@^7.12.13": - version "7.13.10" - resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.13.10.tgz#a8b2a66148f5b27d666b15d81774347a731d52d1" - integrity sha512-5aPpe5XQPzflQrFwL1/QoeHkP2MsA4JCntcXHRhEsdsfPVkvPi2w7Qix4iV7t5S/oC9OodGrggd8aco1g3SZFg== - dependencies: - "@babel/helper-validator-identifier" "^7.12.11" - chalk "^2.0.0" - js-tokens "^4.0.0" - -"@eslint/eslintrc@^0.4.0": - version "0.4.0" - resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-0.4.0.tgz#99cc0a0584d72f1df38b900fb062ba995f395547" - integrity sha512-2ZPCc+uNbjV5ERJr+aKSPRwZgKd2z11x0EgLvb1PURmUrn9QNRXFqje0Ldq454PfAVyaJYyrDvvIKSFP4NnBog== +"@eslint/eslintrc@^0.4.2": + version "0.4.2" + resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-0.4.2.tgz#f63d0ef06f5c0c57d76c4ab5f63d3835c51b0179" + integrity sha512-8nmGq/4ycLpIwzvhI4tNDmQztZ8sp+hI7cyG8i1nQDhkAbRzHpXPidRAHlNvCZQpJTKw5ItIpMw9RSToGF00mg== dependencies: ajv "^6.12.4" debug "^4.1.1" espree "^7.3.0" - globals "^12.1.0" + globals "^13.9.0" ignore "^4.0.6" import-fresh "^3.2.1" js-yaml "^3.13.1" minimatch "^3.0.4" strip-json-comments "^3.1.1" -"@nodelib/fs.scandir@2.1.4": - version "2.1.4" - resolved "https://registry.yarnpkg.com/@nodelib/fs.scandir/-/fs.scandir-2.1.4.tgz#d4b3549a5db5de2683e0c1071ab4f140904bbf69" - integrity sha512-33g3pMJk3bg5nXbL/+CY6I2eJDzZAni49PfJnL5fghPTggPvBd/pFNSgJsdAgWptuFu7qq/ERvOYFlhvsLTCKA== +"@nodelib/fs.scandir@2.1.5": + version "2.1.5" + resolved "https://registry.yarnpkg.com/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz#7619c2eb21b25483f6d167548b4cfd5a7488c3d5" + integrity sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g== dependencies: - "@nodelib/fs.stat" "2.0.4" + "@nodelib/fs.stat" "2.0.5" run-parallel "^1.1.9" -"@nodelib/fs.stat@2.0.4", "@nodelib/fs.stat@^2.0.2": - version "2.0.4" - resolved "https://registry.yarnpkg.com/@nodelib/fs.stat/-/fs.stat-2.0.4.tgz#a3f2dd61bab43b8db8fa108a121cfffe4c676655" - integrity sha512-IYlHJA0clt2+Vg7bccq+TzRdJvv19c2INqBSsoOLp1je7xjtr7J26+WXR72MCdvU9q1qTzIWDfhMf+DRvQJK4Q== +"@nodelib/fs.stat@2.0.5", "@nodelib/fs.stat@^2.0.2": + version "2.0.5" + resolved "https://registry.yarnpkg.com/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz#5bd262af94e9d25bd1e71b05deed44876a222e8b" + integrity sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A== "@nodelib/fs.walk@^1.2.3": - version "1.2.6" - resolved "https://registry.yarnpkg.com/@nodelib/fs.walk/-/fs.walk-1.2.6.tgz#cce9396b30aa5afe9e3756608f5831adcb53d063" - integrity sha512-8Broas6vTtW4GIXTAHDoE32hnN2M5ykgCpWGbuXHQ15vEMqr23pB76e/GZcYsZCHALv50ktd24qhEyKr6wBtow== + version "1.2.7" + resolved "https://registry.yarnpkg.com/@nodelib/fs.walk/-/fs.walk-1.2.7.tgz#94c23db18ee4653e129abd26fb06f870ac9e1ee2" + integrity sha512-BTIhocbPBSrRmHxOAJFtR18oLhxTtAFDAvL8hY1S3iU8k+E60W/YFs4jrixGzQjMpF4qPXxIQHcjVD9dz1C2QA== dependencies: - "@nodelib/fs.scandir" "2.1.4" + "@nodelib/fs.scandir" "2.1.5" fastq "^1.6.0" "@sindresorhus/is@^0.14.0": @@ -92,12 +78,32 @@ dependencies: defer-to-connect "^1.0.1" +"@tsconfig/node10@^1.0.7": + version "1.0.8" + resolved "https://registry.yarnpkg.com/@tsconfig/node10/-/node10-1.0.8.tgz#c1e4e80d6f964fbecb3359c43bd48b40f7cadad9" + integrity sha512-6XFfSQmMgq0CFLY1MslA/CPUfhIL919M1rMsa5lP2P097N2Wd1sSX0tx1u4olM16fLNhtHZpRhedZJphNJqmZg== + +"@tsconfig/node12@^1.0.7": + version "1.0.8" + resolved "https://registry.yarnpkg.com/@tsconfig/node12/-/node12-1.0.8.tgz#a883d62f049a64fea1e56a6bbe66828d11c6241b" + integrity sha512-LM6XwBhjZRls1qJGpiM/It09SntEwe9M0riXRfQ9s6XlJQG0JPGl92ET18LtGeYh/GuOtafIXqwZeqLOd0FNFQ== + +"@tsconfig/node14@^1.0.0": + version "1.0.1" + resolved "https://registry.yarnpkg.com/@tsconfig/node14/-/node14-1.0.1.tgz#95f2d167ffb9b8d2068b0b235302fafd4df711f2" + integrity sha512-509r2+yARFfHHE7T6Puu2jjkoycftovhXRqW328PDXTVGKihlb1P8Z9mMZH04ebyajfRY7dedfGynlrFHJUQCg== + +"@tsconfig/node16@^1.0.1": + version "1.0.1" + resolved "https://registry.yarnpkg.com/@tsconfig/node16/-/node16-1.0.1.tgz#a6ca6a9a0ff366af433f42f5f0e124794ff6b8f1" + integrity sha512-FTgBI767POY/lKNDNbIzgAX6miIDBs6NTCbdlDb8TrWovHsSvaVIZDlTqym29C6UqhzwcJx4CYr+AlrMywA0cA== + "@types/color-name@^1.1.1": version "1.1.1" resolved "https://registry.yarnpkg.com/@types/color-name/-/color-name-1.1.1.tgz#1c1261bbeaa10a8055bbc5d8ab84b7b2afc846a0" integrity sha512-rr+OQyAjxze7GgWrSaJwydHStIhHq2lvY3BOC2Mj7KnzI7XK0Uw1TOOdI9lDoajEbSWLiYgoo4f1R51erQfhPQ== -"@types/json-schema@^7.0.3": +"@types/json-schema@^7.0.7": version "7.0.7" resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.7.tgz#98a993516c859eb0d5c4c8f098317a9ea68db9ad" integrity sha512-cxWFQVseBm6O9Gbw1IWb8r6OS4OhSt3hPZLkFApLjM8TEXROBuQGLAH2i2gZpcXdLBIrpXuTDhH7Vbm1iXmNGA== @@ -107,10 +113,10 @@ resolved "https://registry.yarnpkg.com/@types/minimist/-/minimist-1.2.1.tgz#283f669ff76d7b8260df8ab7a4262cc83d988256" integrity sha512-fZQQafSREFyuZcdWFAExYjBiCL7AUCdgsk80iO0q4yihYYdcIiH28CcuPTGFgLOCC8RlW49GSQxdHwZP+I7CNg== -"@types/node@^15.0.2": - version "15.0.2" - resolved "https://registry.yarnpkg.com/@types/node/-/node-15.0.2.tgz#51e9c0920d1b45936ea04341aa3e2e58d339fb67" - integrity sha512-p68+a+KoxpoB47015IeYZYRrdqMUcpbK8re/zpFB8Ld46LHC1lPEbp3EXgkEhAYEcPvjJF6ZO+869SQ0aH1dcA== +"@types/node@^15.12.2": + version "15.12.2" + resolved "https://registry.yarnpkg.com/@types/node/-/node-15.12.2.tgz#1f2b42c4be7156ff4a6f914b2fb03d05fa84e38d" + integrity sha512-zjQ69G564OCIWIOHSXyQEEDpdpGl+G348RAKY0XXy9Z5kU9Vzv1GMNnkar/ZJ8dzXB3COzD9Mo9NtRZ4xfgUww== "@types/normalize-package-data@^2.4.0": version "2.4.0" @@ -125,73 +131,73 @@ ts-toolbelt "^6.15.1" "@typescript-eslint/eslint-plugin@^4.2.0": - version "4.22.1" - resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-4.22.1.tgz#6bcdbaa4548553ab861b4e5f34936ead1349a543" - integrity sha512-kVTAghWDDhsvQ602tHBc6WmQkdaYbkcTwZu+7l24jtJiYvm9l+/y/b2BZANEezxPDiX5MK2ZecE+9BFi/YJryw== + version "4.26.1" + resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-4.26.1.tgz#b9c7313321cb837e2bf8bebe7acc2220659e67d3" + integrity sha512-aoIusj/8CR+xDWmZxARivZjbMBQTT9dImUtdZ8tVCVRXgBUuuZyM5Of5A9D9arQPxbi/0rlJLcuArclz/rCMJw== dependencies: - "@typescript-eslint/experimental-utils" "4.22.1" - "@typescript-eslint/scope-manager" "4.22.1" - debug "^4.1.1" + "@typescript-eslint/experimental-utils" "4.26.1" + "@typescript-eslint/scope-manager" "4.26.1" + debug "^4.3.1" functional-red-black-tree "^1.0.1" - lodash "^4.17.15" - regexpp "^3.0.0" - semver "^7.3.2" - tsutils "^3.17.1" - -"@typescript-eslint/experimental-utils@4.22.1": - version "4.22.1" - resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-4.22.1.tgz#3938a5c89b27dc9a39b5de63a62ab1623ab27497" - integrity sha512-svYlHecSMCQGDO2qN1v477ax/IDQwWhc7PRBiwAdAMJE7GXk5stF4Z9R/8wbRkuX/5e9dHqbIWxjeOjckK3wLQ== - dependencies: - "@types/json-schema" "^7.0.3" - "@typescript-eslint/scope-manager" "4.22.1" - "@typescript-eslint/types" "4.22.1" - "@typescript-eslint/typescript-estree" "4.22.1" - eslint-scope "^5.0.0" - eslint-utils "^2.0.0" + lodash "^4.17.21" + regexpp "^3.1.0" + semver "^7.3.5" + tsutils "^3.21.0" + +"@typescript-eslint/experimental-utils@4.26.1": + version "4.26.1" + resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-4.26.1.tgz#a35980a2390da9232aa206b27f620eab66e94142" + integrity sha512-sQHBugRhrXzRCs9PaGg6rowie4i8s/iD/DpTB+EXte8OMDfdCG5TvO73XlO9Wc/zi0uyN4qOmX9hIjQEyhnbmQ== + dependencies: + "@types/json-schema" "^7.0.7" + "@typescript-eslint/scope-manager" "4.26.1" + "@typescript-eslint/types" "4.26.1" + "@typescript-eslint/typescript-estree" "4.26.1" + eslint-scope "^5.1.1" + eslint-utils "^3.0.0" "@typescript-eslint/parser@^4.2.0": - version "4.22.1" - resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-4.22.1.tgz#a95bda0fd01d994a15fc3e99dc984294f25c19cc" - integrity sha512-l+sUJFInWhuMxA6rtirzjooh8cM/AATAe3amvIkqKFeMzkn85V+eLzb1RyuXkHak4dLfYzOmF6DXPyflJvjQnw== - dependencies: - "@typescript-eslint/scope-manager" "4.22.1" - "@typescript-eslint/types" "4.22.1" - "@typescript-eslint/typescript-estree" "4.22.1" - debug "^4.1.1" - -"@typescript-eslint/scope-manager@4.22.1": - version "4.22.1" - resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-4.22.1.tgz#5bb357f94f9cd8b94e6be43dd637eb73b8f355b4" - integrity sha512-d5bAiPBiessSmNi8Amq/RuLslvcumxLmyhf1/Xa9IuaoFJ0YtshlJKxhlbY7l2JdEk3wS0EnmnfeJWSvADOe0g== - dependencies: - "@typescript-eslint/types" "4.22.1" - "@typescript-eslint/visitor-keys" "4.22.1" - -"@typescript-eslint/types@4.22.1": - version "4.22.1" - resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-4.22.1.tgz#bf99c6cec0b4a23d53a61894816927f2adad856a" - integrity sha512-2HTkbkdAeI3OOcWbqA8hWf/7z9c6gkmnWNGz0dKSLYLWywUlkOAQ2XcjhlKLj5xBFDf8FgAOF5aQbnLRvgNbCw== - -"@typescript-eslint/typescript-estree@4.22.1": - version "4.22.1" - resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-4.22.1.tgz#dca379eead8cdfd4edc04805e83af6d148c164f9" - integrity sha512-p3We0pAPacT+onSGM+sPR+M9CblVqdA9F1JEdIqRVlxK5Qth4ochXQgIyb9daBomyQKAXbygxp1aXQRV0GC79A== - dependencies: - "@typescript-eslint/types" "4.22.1" - "@typescript-eslint/visitor-keys" "4.22.1" - debug "^4.1.1" - globby "^11.0.1" + version "4.26.1" + resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-4.26.1.tgz#cecfdd5eb7a5c13aabce1c1cfd7fbafb5a0f1e8e" + integrity sha512-q7F3zSo/nU6YJpPJvQveVlIIzx9/wu75lr6oDbDzoeIRWxpoc/HQ43G4rmMoCc5my/3uSj2VEpg/D83LYZF5HQ== + dependencies: + "@typescript-eslint/scope-manager" "4.26.1" + "@typescript-eslint/types" "4.26.1" + "@typescript-eslint/typescript-estree" "4.26.1" + debug "^4.3.1" + +"@typescript-eslint/scope-manager@4.26.1": + version "4.26.1" + resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-4.26.1.tgz#075a74a15ff33ee3a7ed33e5fce16ee86689f662" + integrity sha512-TW1X2p62FQ8Rlne+WEShyd7ac2LA6o27S9i131W4NwDSfyeVlQWhw8ylldNNS8JG6oJB9Ha9Xyc+IUcqipvheQ== + dependencies: + "@typescript-eslint/types" "4.26.1" + "@typescript-eslint/visitor-keys" "4.26.1" + +"@typescript-eslint/types@4.26.1": + version "4.26.1" + resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-4.26.1.tgz#9e7c523f73c34b04a765e4167ca5650436ef1d38" + integrity sha512-STyMPxR3cS+LaNvS8yK15rb8Y0iL0tFXq0uyl6gY45glyI7w0CsyqyEXl/Fa0JlQy+pVANeK3sbwPneCbWE7yg== + +"@typescript-eslint/typescript-estree@4.26.1": + version "4.26.1" + resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-4.26.1.tgz#b2ce2e789233d62283fae2c16baabd4f1dbc9633" + integrity sha512-l3ZXob+h0NQzz80lBGaykdScYaiEbFqznEs99uwzm8fPHhDjwaBFfQkjUC/slw6Sm7npFL8qrGEAMxcfBsBJUg== + dependencies: + "@typescript-eslint/types" "4.26.1" + "@typescript-eslint/visitor-keys" "4.26.1" + debug "^4.3.1" + globby "^11.0.3" is-glob "^4.0.1" - semver "^7.3.2" - tsutils "^3.17.1" + semver "^7.3.5" + tsutils "^3.21.0" -"@typescript-eslint/visitor-keys@4.22.1": - version "4.22.1" - resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-4.22.1.tgz#6045ae25a11662c671f90b3a403d682dfca0b7a6" - integrity sha512-WPkOrIRm+WCLZxXQHCi+WG8T2MMTUFR70rWjdWYddLT7cEfb2P4a3O/J2U1FBVsSFTocXLCoXWY6MZGejeStvQ== +"@typescript-eslint/visitor-keys@4.26.1": + version "4.26.1" + resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-4.26.1.tgz#0d55ea735cb0d8903b198017d6d4f518fdaac546" + integrity sha512-IGouNSSd+6x/fHtYRyLOM6/C+QxMDzWlDtN41ea+flWuSF9g02iqcIlX8wM53JkfljoIjP0U+yp7SiTS1onEkw== dependencies: - "@typescript-eslint/types" "4.22.1" + "@typescript-eslint/types" "4.26.1" eslint-visitor-keys "^2.0.0" acorn-jsx@^5.3.1: @@ -215,9 +221,9 @@ ajv@^6.10.0, ajv@^6.12.4: uri-js "^4.2.2" ajv@^8.0.1: - version "8.2.0" - resolved "https://registry.yarnpkg.com/ajv/-/ajv-8.2.0.tgz#c89d3380a784ce81b2085f48811c4c101df4c602" - integrity sha512-WSNGFuyWd//XO8n/m/EaOlNLtO0yL8EXT/74LqT4khdhpZjP7lkj/kT5uwRmGitKEVp/Oj7ZUHeGfPtgHhQ5CA== + version "8.6.0" + resolved "https://registry.yarnpkg.com/ajv/-/ajv-8.6.0.tgz#60cc45d9c46a477d80d92c48076d972c342e5720" + integrity sha512-cnUG4NSBiM4YFBxgZIj/In3/6KX+rQ2l2YPRVcvAMQGWEPKuXoPIhxzwqh31jA3IPbI4qEOp/5ILI4ynioXsGQ== dependencies: fast-deep-equal "^3.1.1" json-schema-traverse "^1.0.0" @@ -538,7 +544,7 @@ crypto-random-string@^2.0.0: resolved "https://registry.yarnpkg.com/crypto-random-string/-/crypto-random-string-2.0.0.tgz#ef2a7a966ec11083388369baa02ebead229b30d5" integrity sha512-v1plID3y9r/lPhviJ1wrXpLeyUIGAZ2SHNYTEapm7/8A9nLPoyvVp3RK/EPFqn5kEznyWgYZNsRtYYIWbuG8KA== -debug@^4.0.1, debug@^4.1.1: +debug@^4.0.1, debug@^4.1.1, debug@^4.3.1: version "4.3.1" resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.1.tgz#f0d229c505e0c6d8c49ac553d1b13dc183f6b2ee" integrity sha512-doEwdvm4PCeK4K3RQN2ZC2BYUBaxwLARCqZmMjtF8a51J2Rb0xpVloFRnCODwqjpwnAoao4pelN8l3RJdv3gRQ== @@ -660,6 +666,11 @@ escape-string-regexp@^1.0.5: resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" integrity sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ= +escape-string-regexp@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34" + integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA== + eslint-config-prettier@^7.0.0: version "7.2.0" resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-7.2.0.tgz#f4a4bd2832e810e8cc7c1411ec85b3e85c0c53f9" @@ -692,7 +703,7 @@ eslint-plugin-prettier@^3.1.4: dependencies: prettier-linter-helpers "^1.0.0" -eslint-scope@^5.0.0, eslint-scope@^5.1.1: +eslint-scope@^5.1.1: version "5.1.1" resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-5.1.1.tgz#e786e59a66cb92b3f6c1fb0d508aab174848f48c" integrity sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw== @@ -707,6 +718,13 @@ eslint-utils@^2.0.0, eslint-utils@^2.1.0: dependencies: eslint-visitor-keys "^1.1.0" +eslint-utils@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/eslint-utils/-/eslint-utils-3.0.0.tgz#8aebaface7345bb33559db0a1f13a1d2d48c3672" + integrity sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA== + dependencies: + eslint-visitor-keys "^2.0.0" + eslint-visitor-keys@^1.1.0, eslint-visitor-keys@^1.3.0: version "1.3.0" resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz#30ebd1ef7c2fdff01c3a4f151044af25fab0523e" @@ -718,27 +736,29 @@ eslint-visitor-keys@^2.0.0: integrity sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw== eslint@^7.10.0: - version "7.25.0" - resolved "https://registry.yarnpkg.com/eslint/-/eslint-7.25.0.tgz#1309e4404d94e676e3e831b3a3ad2b050031eb67" - integrity sha512-TVpSovpvCNpLURIScDRB6g5CYu/ZFq9GfX2hLNIV4dSBKxIWojeDODvYl3t0k0VtMxYeR8OXPCFE5+oHMlGfhw== + version "7.28.0" + resolved "https://registry.yarnpkg.com/eslint/-/eslint-7.28.0.tgz#435aa17a0b82c13bb2be9d51408b617e49c1e820" + integrity sha512-UMfH0VSjP0G4p3EWirscJEQ/cHqnT/iuH6oNZOB94nBjWbMnhGEPxsZm1eyIW0C/9jLI0Fow4W5DXLjEI7mn1g== dependencies: "@babel/code-frame" "7.12.11" - "@eslint/eslintrc" "^0.4.0" + "@eslint/eslintrc" "^0.4.2" ajv "^6.10.0" chalk "^4.0.0" cross-spawn "^7.0.2" debug "^4.0.1" doctrine "^3.0.0" enquirer "^2.3.5" + escape-string-regexp "^4.0.0" eslint-scope "^5.1.1" eslint-utils "^2.1.0" eslint-visitor-keys "^2.0.0" espree "^7.3.1" esquery "^1.4.0" esutils "^2.0.2" + fast-deep-equal "^3.1.3" file-entry-cache "^6.0.1" functional-red-black-tree "^1.0.1" - glob-parent "^5.0.0" + glob-parent "^5.1.2" globals "^13.6.0" ignore "^4.0.6" import-fresh "^3.0.0" @@ -747,7 +767,7 @@ eslint@^7.10.0: js-yaml "^3.13.1" json-stable-stringify-without-jsonify "^1.0.1" levn "^0.4.1" - lodash "^4.17.21" + lodash.merge "^4.6.2" minimatch "^3.0.4" natural-compare "^1.4.0" optionator "^0.9.1" @@ -756,7 +776,7 @@ eslint@^7.10.0: semver "^7.2.1" strip-ansi "^6.0.0" strip-json-comments "^3.1.0" - table "^6.0.4" + table "^6.0.9" text-table "^0.2.0" v8-compile-cache "^2.0.3" @@ -804,9 +824,9 @@ esutils@^2.0.2: integrity sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g== execa@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/execa/-/execa-5.0.0.tgz#4029b0007998a841fbd1032e5f4de86a3c1e3376" - integrity sha512-ov6w/2LCiuyO4RLYGdpFGjkcs0wMTgGE8PrkTHikeUy5iJekXyPIKUjifk5CsE0pt7sMCrMZ3YNqoCj6idQOnQ== + version "5.1.1" + resolved "https://registry.yarnpkg.com/execa/-/execa-5.1.1.tgz#f80ad9cbf4298f7bd1d4c9555c21e93741c411dd" + integrity sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg== dependencies: cross-spawn "^7.0.3" get-stream "^6.0.0" @@ -827,7 +847,7 @@ external-editor@^3.0.3: iconv-lite "^0.4.24" tmp "^0.0.33" -fast-deep-equal@^3.1.1: +fast-deep-equal@^3.1.1, fast-deep-equal@^3.1.3: version "3.1.3" resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525" integrity sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q== @@ -942,7 +962,7 @@ get-stream@^6.0.0: resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-6.0.1.tgz#a262d8eef67aced57c2852ad6167526a43cbf7b7" integrity sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg== -glob-parent@^5.0.0, glob-parent@^5.1.0: +glob-parent@^5.1.0, glob-parent@^5.1.2: version "5.1.2" resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.2.tgz#869832c58034fe68a4093c17dc15e8340d8401c4" integrity sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow== @@ -968,21 +988,14 @@ global-dirs@^3.0.0: dependencies: ini "2.0.0" -globals@^12.1.0: - version "12.4.0" - resolved "https://registry.yarnpkg.com/globals/-/globals-12.4.0.tgz#a18813576a41b00a24a97e7f815918c2e19925f8" - integrity sha512-BWICuzzDvDoH54NHKCseDanAhE3CeDorgDL5MT6LMXXj2WCnd9UC2szdk4AWLfjdgNBCXLUanXYcpBBKOSWGwg== - dependencies: - type-fest "^0.8.1" - -globals@^13.6.0: - version "13.8.0" - resolved "https://registry.yarnpkg.com/globals/-/globals-13.8.0.tgz#3e20f504810ce87a8d72e55aecf8435b50f4c1b3" - integrity sha512-rHtdA6+PDBIjeEvA91rpqzEvk/k3/i7EeNQiryiWuJH0Hw9cpyJMAt2jtbAwUaRdhD+573X4vWw6IcjKPasi9Q== +globals@^13.6.0, globals@^13.9.0: + version "13.9.0" + resolved "https://registry.yarnpkg.com/globals/-/globals-13.9.0.tgz#4bf2bf635b334a173fb1daf7c5e6b218ecdc06cb" + integrity sha512-74/FduwI/JaIrr1H8e71UbDE+5x7pIPs1C2rrwC52SszOo043CsWOZEMW7o2Y58xwm9b+0RBKDxY5n2sUpEFxA== dependencies: type-fest "^0.20.2" -globby@^11.0.1: +globby@^11.0.3: version "11.0.3" resolved "https://registry.yarnpkg.com/globby/-/globby-11.0.3.tgz#9b1f0cb523e171dd1ad8c7b2a9fb4b644b9593cb" integrity sha512-ffdmosjA807y7+lA1NM0jELARVmYul/715xiILEjo3hBLPTcirgQNnXECn5g3mtR8TOLCVbkfua1Hpen25/Xcg== @@ -1190,9 +1203,9 @@ is-ci@^2.0.0: ci-info "^2.0.0" is-core-module@^2.2.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.2.0.tgz#97037ef3d52224d85163f5597b2b63d9afed981a" - integrity sha512-XRAfAdyyY5F5cOXn7hYQDqh2Xmii+DEfIcQGxK/uNwMHhIkPWO0g8msXcbzLe+MpGoR951MlqM/2iIlU4vKDdQ== + version "2.4.0" + resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.4.0.tgz#8e9fc8e15027b011418026e98f0e6f4d86305cc1" + integrity sha512-6A2fkfq1rfeQZjxrZJGerpLCTHRNEBiSgnu0+obeJpEPZRUooHgsizvzv0ZjJwOz3iWIHdJtVWJ/tmPr3D21/A== dependencies: has "^1.0.3" @@ -1360,21 +1373,21 @@ lodash.clonedeep@^4.5.0: resolved "https://registry.yarnpkg.com/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz#e23f3f9c4f8fbdde872529c1071857a086e5ccef" integrity sha1-4j8/nE+Pvd6HJSnBBxhXoIblzO8= +lodash.merge@^4.6.2: + version "4.6.2" + resolved "https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-4.6.2.tgz#558aa53b43b661e1925a0afdfa36a9a1085fe57a" + integrity sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ== + lodash.truncate@^4.4.2: version "4.4.2" resolved "https://registry.yarnpkg.com/lodash.truncate/-/lodash.truncate-4.4.2.tgz#5a350da0b1113b837ecfffd5812cbe58d6eae193" integrity sha1-WjUNoLERO4N+z//VgSy+WNbq4ZM= -lodash@^4.17.15, lodash@^4.17.21: +lodash@^4.17.19, lodash@^4.17.21: version "4.17.21" resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c" integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg== -lodash@^4.17.19: - version "4.17.20" - resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.20.tgz#b44a9b6297bcb698f1c51a3545a2b3b368d59c52" - integrity sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA== - lower-case-first@^2.0.2: version "2.0.2" resolved "https://registry.yarnpkg.com/lower-case-first/-/lower-case-first-2.0.2.tgz#64c2324a2250bf7c37c5901e76a5b5309301160b" @@ -1549,9 +1562,9 @@ normalize-package-data@^3.0.0: validate-npm-package-license "^3.0.1" normalize-url@^4.1.0: - version "4.5.0" - resolved "https://registry.yarnpkg.com/normalize-url/-/normalize-url-4.5.0.tgz#453354087e6ca96957bd8f5baf753f5982142129" - integrity sha512-2s47yzUxdexf1OhyRi4Em83iQk0aPvwTddtFz4hnSSw9dCEsLEGf6SwIO8ss/19S9iBb5sJaOuTvTGDeZI00BQ== + version "4.5.1" + resolved "https://registry.yarnpkg.com/normalize-url/-/normalize-url-4.5.1.tgz#0dd90cf1288ee1d1313b87081c9a5932ee48518a" + integrity sha512-9UZCFRHQdNrfTpGg8+1INIg93B6zE0aXMVFkw1WFwvO4SlZywU6aLg5Of0Ap/PgcbSw4LNxvMWXMeugwMCX0AA== npm-run-path@^4.0.1: version "4.0.1" @@ -1574,7 +1587,7 @@ onetime@^5.1.0, onetime@^5.1.2: dependencies: mimic-fn "^2.1.0" -openapi-types@^8.0.0: +openapi-types@8.0.0: version "8.0.0" resolved "https://registry.yarnpkg.com/openapi-types/-/openapi-types-8.0.0.tgz#7e1979538798d31a3c3bfed667e5e9295402f9bc" integrity sha512-dcHYyCDOAy4QQTrur5Sn1L3lPVspB7rd04Rw/Q7AsMvfV797IiWgmKziFCbq8VhnBoREU/SPPSBDxtK9Biwa1g== @@ -1687,9 +1700,9 @@ path-key@^3.0.0, path-key@^3.1.0: integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q== path-parse@^1.0.6: - version "1.0.6" - resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.6.tgz#d62dbb5679405d72c4737ec58600e9ddcf06d24c" - integrity sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw== + version "1.0.7" + resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735" + integrity sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw== path-type@^4.0.0: version "4.0.0" @@ -1697,9 +1710,9 @@ path-type@^4.0.0: integrity sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw== picomatch@^2.2.1, picomatch@^2.2.3: - version "2.2.3" - resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.2.3.tgz#465547f359ccc206d3c48e46a1bcb89bf7ee619d" - integrity sha512-KpELjfwcCDUb9PeigTs2mBJzXUPzAuP2oPcA989He8Rte0+YUAjw1JVedDhuTKPkHjSYzMN3npC9luThGYEKdg== + version "2.3.0" + resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.0.tgz#f1f061de8f6a4bf022892e2d128234fb98302972" + integrity sha512-lY1Q/PiJGC2zOv/z391WOTD+Z02bCgsFfvxoXXf6h7kv9o+WmsmzYqrAwY63sNgOxE4xEdq0WyUnXfKeBrSvYw== prelude-ls@^1.2.1: version "1.2.1" @@ -1719,9 +1732,9 @@ prettier-linter-helpers@^1.0.0: fast-diff "^1.1.2" prettier@^2.1.2: - version "2.2.1" - resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.2.1.tgz#795a1a78dd52f073da0cd42b21f9c91381923ff5" - integrity sha512-PqyhM2yCjg/oKkFPtTGUojv7gnZAoG80ttl45O6x2Ug/rMJw4wcc9k6aaf2hibP7BGVCCM33gZoGjyvt9mm16Q== + version "2.3.1" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.3.1.tgz#76903c3f8c4449bc9ac597acefa24dc5ad4cbea6" + integrity sha512-p+vNbgpLjif/+D+DwAZAbndtRrR0md0MwfmOVN9N+2RgyACMT+7tfaRnT+WDPkqnuVwleyuBIG2XBxKDme3hPA== progress@^2.0.0: version "2.0.3" @@ -1864,12 +1877,12 @@ rimraf@^3.0.2: dependencies: glob "^7.1.3" -ringcentral-open-api-parser@^0.4.4: - version "0.4.4" - resolved "https://registry.yarnpkg.com/ringcentral-open-api-parser/-/ringcentral-open-api-parser-0.4.4.tgz#d0c1a848ae4563c805bc2568094cfe9bc06ec52f" - integrity sha512-WcGhlioef2yKBgmoxAOV0q6DXKMdyD665LGjGHNffENDuceagZ9Adet6T9Xq1+qJGXzIKqU3h9r5B0UPiyR6vQ== +ringcentral-open-api-parser@^0.4.6: + version "0.4.6" + resolved "https://registry.yarnpkg.com/ringcentral-open-api-parser/-/ringcentral-open-api-parser-0.4.6.tgz#fddbfe99c7d6ed6179ad6d1cf99ad6f37f2d96ac" + integrity sha512-l4j33OQWczJDuFFOBol51fxKEyg4bY11hmXpR/5TxyX2IwjP3oNWQcWYl8pfp9UkxIYbCXqu2RewvXJRZgwLZQ== dependencies: - openapi-types "^8.0.0" + openapi-types "8.0.0" ramda "^0.27.1" run-async@^2.4.0: @@ -1913,7 +1926,7 @@ semver@^6.0.0, semver@^6.1.0, semver@^6.2.0, semver@^6.3.0: resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d" integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw== -semver@^7.2.1, semver@^7.3.2, semver@^7.3.4: +semver@^7.2.1, semver@^7.3.4, semver@^7.3.5: version "7.3.5" resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.5.tgz#0b621c879348d8998e4b0e4be94b3f12e6018ef7" integrity sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ== @@ -2003,9 +2016,9 @@ spdx-expression-parse@^3.0.0: spdx-license-ids "^3.0.0" spdx-license-ids@^3.0.0: - version "3.0.7" - resolved "https://registry.yarnpkg.com/spdx-license-ids/-/spdx-license-ids-3.0.7.tgz#e9c18a410e5ed7e12442a549fbd8afa767038d65" - integrity sha512-U+MTEOO0AiDzxwFvoa4JVnMV6mZlJKk2sBLt90s7G0Gd0Mlknc7kxEn3nuDPNZRta7O2uy8oLcZLVT+4sqNZHQ== + version "3.0.9" + resolved "https://registry.yarnpkg.com/spdx-license-ids/-/spdx-license-ids-3.0.9.tgz#8a595135def9592bda69709474f1cbeea7c2467f" + integrity sha512-Ki212dKK4ogX+xDo4CtOZBVIwhsKBEfsEEcwmJfLQzirgc2jIWdzg40Unxz/HzEUqM1WFzVlQSMF9kZZ2HboLQ== sprintf-js@~1.0.2: version "1.0.3" @@ -2080,10 +2093,10 @@ supports-color@^7.1.0: dependencies: has-flag "^4.0.0" -table@^6.0.4: - version "6.7.0" - resolved "https://registry.yarnpkg.com/table/-/table-6.7.0.tgz#26274751f0ee099c547f6cb91d3eff0d61d155b2" - integrity sha512-SAM+5p6V99gYiiy2gT5ArdzgM1dLDed0nkrWmG6Fry/bUS/m9x83BwpJUOf1Qj/x2qJd+thL6IkIx7qPGRxqBw== +table@^6.0.9: + version "6.7.1" + resolved "https://registry.yarnpkg.com/table/-/table-6.7.1.tgz#ee05592b7143831a8c94f3cee6aae4c1ccef33e2" + integrity sha512-ZGum47Yi6KOOFDE8m223td53ath2enHcYLgOCjGr5ngu8bdIARQk6mN/wRMv4yMRcHnCSnHbCEha4sobQx5yWg== dependencies: ajv "^8.0.1" lodash.clonedeep "^4.5.0" @@ -2122,15 +2135,19 @@ to-regex-range@^5.0.1: is-number "^7.0.0" trim-newlines@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/trim-newlines/-/trim-newlines-3.0.0.tgz#79726304a6a898aa8373427298d54c2ee8b1cb30" - integrity sha512-C4+gOpvmxaSMKuEf9Qc134F1ZuOHVXKRbtEflf4NTtuuJDEIJ9p5PXsalL8SkeRw+qit1Mo+yuvMPAKwWg/1hA== - -ts-node@^9.1.1: - version "9.1.1" - resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-9.1.1.tgz#51a9a450a3e959401bda5f004a72d54b936d376d" - integrity sha512-hPlt7ZACERQGf03M253ytLY3dHbGNGrAq9qIHWUY9XHYl1z7wYngSr3OQ5xmui8o2AaxsONxIzjafLUiWBo1Fg== - dependencies: + version "3.0.1" + resolved "https://registry.yarnpkg.com/trim-newlines/-/trim-newlines-3.0.1.tgz#260a5d962d8b752425b32f3a7db0dcacd176c144" + integrity sha512-c1PTsA3tYrIsLGkJkzHF+w9F2EyxfXGo4UyJc4pFL++FMjnq0HJS69T3M7d//gKrFKwy429bouPescbjecU+Zw== + +ts-node@^10.0.0: + version "10.0.0" + resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-10.0.0.tgz#05f10b9a716b0b624129ad44f0ea05dac84ba3be" + integrity sha512-ROWeOIUvfFbPZkoDis0L/55Fk+6gFQNZwwKPLinacRl6tsxstTF1DbAcLKkovwnpKMVvOMHP1TIbnwXwtLg1gg== + dependencies: + "@tsconfig/node10" "^1.0.7" + "@tsconfig/node12" "^1.0.7" + "@tsconfig/node14" "^1.0.0" + "@tsconfig/node16" "^1.0.1" arg "^4.1.0" create-require "^1.1.0" diff "^4.0.1" @@ -2153,7 +2170,7 @@ tslib@^2.0.3: resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.1.0.tgz#da60860f1c2ecaa5703ab7d39bc05b6bf988b97a" integrity sha512-hcVC3wYEziELGGmEEXue7D75zbwIIVUMWAVbHItGPx0ziyXxrOMQx4rQEVEV45Ut/1IotuEvwqPopzIOkDMf0A== -tsutils@^3.17.1: +tsutils@^3.21.0: version "3.21.0" resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-3.21.0.tgz#b48717d394cea6c1e096983eed58e9d61715b623" integrity sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA== @@ -2199,10 +2216,10 @@ typedarray-to-buffer@^3.1.5: dependencies: is-typedarray "^1.0.0" -typescript@^4.2.4: - version "4.2.4" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.2.4.tgz#8610b59747de028fda898a8aef0e103f156d0961" - integrity sha512-V+evlYHZnQkaz8TRBuxTA92yZBPotr5H+WhQ7bD3hZUndx5tGOa1fuCgeSjxAzM1RiN5IzvadIXTVefuuwZCRg== +typescript@^4.3.2: + version "4.3.2" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.3.2.tgz#399ab18aac45802d6f2498de5054fcbbe716a805" + integrity sha512-zZ4hShnmnoVnAHpVHWpTcxdv7dWP60S2FsydQLV8V5PbS3FifjWFFRiHSWpDJahly88PRyV5teTSLoq4eG7mKw== unique-string@^2.0.0: version "2.0.0" diff --git a/samples.md b/samples.md index 91341851..0f1ee435 100644 --- a/samples.md +++ b/samples.md @@ -293,3377 +293,3452 @@ rc.revoke(); [Try it out](https://developer.ringcentral.com/api-reference#OAuth-2.0-revokeToken) in API Explorer. -## createA2PSMS -Send A2P SMS +## readCompanyCallLog +Get Company Call Log Records Name|Value -|- -HTTP Method|`POST` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/a2p-sms/batch` -Rate Limit Group|`Light` -App Permission|`A2PSMS` -User Permission|`N/A` +HTTP Method|`GET` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/call-log` +Rate Limit Group|`Heavy` +App Permission|`ReadCallLog` +User Permission|`FullCompanyCallLog` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -CreateMessageBatchResponse result = rc.restapi(apiVersion).account(accountId).a2pSms().batch().post(createSMSMessageBatchRequest); +AccountCallLogResponse result = rc.restapi(apiVersion).account(accountId).callLog().list(readCompanyCallLogParameters); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `createSMSMessageBatchRequest` is of type [CreateSMSMessageBatchRequest](./src/main/java/com/ringcentral/definitions/CreateSMSMessageBatchRequest.java) -- `result` is of type [CreateMessageBatchResponse](./src/main/java/com/ringcentral/definitions/CreateMessageBatchResponse.java) +- `readCompanyCallLogParameters` is of type [ReadCompanyCallLogParameters](./src/main/java/com/ringcentral/definitions/ReadCompanyCallLogParameters.java) +- `result` is of type [AccountCallLogResponse](./src/main/java/com/ringcentral/definitions/AccountCallLogResponse.java) -[Try it out](https://developer.ringcentral.com/api-reference#High-Volume-SMS-createA2PSMS) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Log-readCompanyCallLog) in API Explorer. -## readA2PBatch -Get A2P SMS Batch +## readCompanyCallRecord +Get Company Call Log Record(s) Name|Value -|- HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/a2p-sms/batch/{batchId}` -Rate Limit Group|`Light` -App Permission|`A2PSMS` -User Permission|`N/A` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/call-log/{callRecordId}` +Rate Limit Group|`Heavy` +App Permission|`ReadCallLog` +User Permission|`FullCompanyCallLog` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -MessageBatchResponse result = rc.restapi(apiVersion).account(accountId).a2pSms().batch(batchId).get(); +CompanyCallLogRecord result = rc.restapi(apiVersion).account(accountId).callLog(callRecordId).get(readCompanyCallRecordParameters); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `result` is of type [MessageBatchResponse](./src/main/java/com/ringcentral/definitions/MessageBatchResponse.java) +- `readCompanyCallRecordParameters` is of type [ReadCompanyCallRecordParameters](./src/main/java/com/ringcentral/definitions/ReadCompanyCallRecordParameters.java) +- `result` is of type [CompanyCallLogRecord](./src/main/java/com/ringcentral/definitions/CompanyCallLogRecord.java) -[Try it out](https://developer.ringcentral.com/api-reference#High-Volume-SMS-readA2PBatch) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Log-readCompanyCallRecord) in API Explorer. -## listA2PSMS -Get A2P SMS List +## readDevice +Get Device Name|Value -|- HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/a2p-sms/messages` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/device/{deviceId}` Rate Limit Group|`Light` -App Permission|`A2PSMS` -User Permission|`N/A` +App Permission|`ReadAccounts` +User Permission|`ReadCompanyDevices` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -MessageListResponse result = rc.restapi(apiVersion).account(accountId).a2pSms().messages().list(listA2PSMSParameters); +GetDeviceInfoResponse result = rc.restapi(apiVersion).account(accountId).device(deviceId).get(readDeviceParameters); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `listA2PSMSParameters` is of type [ListA2PSMSParameters](./src/main/java/com/ringcentral/definitions/ListA2PSMSParameters.java) -- `result` is of type [MessageListResponse](./src/main/java/com/ringcentral/definitions/MessageListResponse.java) +- `readDeviceParameters` is of type [ReadDeviceParameters](./src/main/java/com/ringcentral/definitions/ReadDeviceParameters.java) +- `result` is of type [GetDeviceInfoResponse](./src/main/java/com/ringcentral/definitions/GetDeviceInfoResponse.java) -[Try it out](https://developer.ringcentral.com/api-reference#High-Volume-SMS-listA2PSMS) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Devices-readDevice) in API Explorer. -## readA2PSMS -Get A2P SMS +## updateDevice +Update Device Name|Value -|- -HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/a2p-sms/messages/{messageId}` -Rate Limit Group|`Light` -App Permission|`A2PSMS` -User Permission|`N/A` +HTTP Method|`PUT` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/device/{deviceId}` +Rate Limit Group|`Medium` +App Permission|`EditAccounts` +User Permission|`EditCompanyDevices` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -MessageDetailsResponse result = rc.restapi(apiVersion).account(accountId).a2pSms().messages(messageId).get(); +GetDeviceInfoResponse result = rc.restapi(apiVersion).account(accountId).device(deviceId).put(accountDeviceUpdate, updateDeviceParameters); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `result` is of type [MessageDetailsResponse](./src/main/java/com/ringcentral/definitions/MessageDetailsResponse.java) +- `accountDeviceUpdate` is of type [AccountDeviceUpdate](./src/main/java/com/ringcentral/definitions/AccountDeviceUpdate.java) +- `updateDeviceParameters` is of type [UpdateDeviceParameters](./src/main/java/com/ringcentral/definitions/UpdateDeviceParameters.java) +- `result` is of type [GetDeviceInfoResponse](./src/main/java/com/ringcentral/definitions/GetDeviceInfoResponse.java) -[Try it out](https://developer.ringcentral.com/api-reference#High-Volume-SMS-readA2PSMS) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Devices-updateDevice) in API Explorer. -## readA2PSMSOptOuts -Get Opted Out Numbers +## listExtensions +Get Extension List Name|Value -|- HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/a2p-sms/opt-outs` -Rate Limit Group|`Light` -App Permission|`A2PSMS` -User Permission|`N/A` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/extension` +Rate Limit Group|`Medium` +App Permission|`ReadAccounts` +User Permission|`ReadExtensions` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -OptOutListResponse result = rc.restapi(apiVersion).account(accountId).a2pSms().optOuts().get(readA2PSMSOptOutsParameters); +GetExtensionListResponse result = rc.restapi(apiVersion).account(accountId).extension().list(listExtensionsParameters); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `readA2PSMSOptOutsParameters` is of type [ReadA2PSMSOptOutsParameters](./src/main/java/com/ringcentral/definitions/ReadA2PSMSOptOutsParameters.java) -- `result` is of type [OptOutListResponse](./src/main/java/com/ringcentral/definitions/OptOutListResponse.java) +- `listExtensionsParameters` is of type [ListExtensionsParameters](./src/main/java/com/ringcentral/definitions/ListExtensionsParameters.java) +- `result` is of type [GetExtensionListResponse](./src/main/java/com/ringcentral/definitions/GetExtensionListResponse.java) -[Try it out](https://developer.ringcentral.com/api-reference#High-Volume-SMS-readA2PSMSOptOuts) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Extensions-listExtensions) in API Explorer. -## listCompanyActiveCalls -Get Company Active Calls +## createExtension +Create Extension Name|Value -|- -HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/active-calls` -Rate Limit Group|`Heavy` -App Permission|`ReadCallLog` -User Permission|`ReadCallLog` +HTTP Method|`POST` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/extension` +Rate Limit Group|`Medium` +App Permission|`EditAccounts` +User Permission|`AddRemoveUsers` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -CompanyActiveCallsResponse result = rc.restapi(apiVersion).account(accountId).activeCalls().get(listCompanyActiveCallsParameters); +ExtensionCreationResponse result = rc.restapi(apiVersion).account(accountId).extension().post(extensionCreationRequest); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `listCompanyActiveCallsParameters` is of type [ListCompanyActiveCallsParameters](./src/main/java/com/ringcentral/definitions/ListCompanyActiveCallsParameters.java) -- `result` is of type [CompanyActiveCallsResponse](./src/main/java/com/ringcentral/definitions/CompanyActiveCallsResponse.java) +- `extensionCreationRequest` is of type [ExtensionCreationRequest](./src/main/java/com/ringcentral/definitions/ExtensionCreationRequest.java) +- `result` is of type [ExtensionCreationResponse](./src/main/java/com/ringcentral/definitions/ExtensionCreationResponse.java) -[Try it out](https://developer.ringcentral.com/api-reference#Call-Log-listCompanyActiveCalls) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Extensions-createExtension) in API Explorer. -## listCompanyAnsweringRules -Get Company Call Handling Rule List +## readExtension +Get Extension Name|Value -|- HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/answering-rule` -Rate Limit Group|`Medium` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/extension/{extensionId}` +Rate Limit Group|`Light` App Permission|`ReadAccounts` -User Permission|`ReadCompanyAnsweringRules` +User Permission|`ReadExtensions` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -CompanyAnsweringRuleList result = rc.restapi(apiVersion).account(accountId).answeringRule().list(listCompanyAnsweringRulesParameters); +GetExtensionInfoResponse result = rc.restapi(apiVersion).account(accountId).extension(extensionId).get(); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `listCompanyAnsweringRulesParameters` is of type [ListCompanyAnsweringRulesParameters](./src/main/java/com/ringcentral/definitions/ListCompanyAnsweringRulesParameters.java) -- `result` is of type [CompanyAnsweringRuleList](./src/main/java/com/ringcentral/definitions/CompanyAnsweringRuleList.java) +- Parameter `extensionId` is optional with default value `~` +- `result` is of type [GetExtensionInfoResponse](./src/main/java/com/ringcentral/definitions/GetExtensionInfoResponse.java) -[Try it out](https://developer.ringcentral.com/api-reference#Call-Handling-Rules-listCompanyAnsweringRules) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#User-Settings-readExtension) in API Explorer. -## createCompanyAnsweringRule -Create Company Call Handling Rule +## updateExtension +Update Extension Name|Value -|- -HTTP Method|`POST` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/answering-rule` +HTTP Method|`PUT` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/extension/{extensionId}` Rate Limit Group|`Medium` -App Permission|`EditAccounts` -User Permission|`EditCompanyAnsweringRules` +App Permission|`EditExtensions` +User Permission|`EditUserInfo OR EditUserCredentials` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -CompanyAnsweringRuleInfo result = rc.restapi(apiVersion).account(accountId).answeringRule().post(companyAnsweringRuleRequest); +GetExtensionInfoResponse result = rc.restapi(apiVersion).account(accountId).extension(extensionId).put(extensionUpdateRequest); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `companyAnsweringRuleRequest` is of type [CompanyAnsweringRuleRequest](./src/main/java/com/ringcentral/definitions/CompanyAnsweringRuleRequest.java) -- `result` is of type [CompanyAnsweringRuleInfo](./src/main/java/com/ringcentral/definitions/CompanyAnsweringRuleInfo.java) +- Parameter `extensionId` is optional with default value `~` +- `extensionUpdateRequest` is of type [ExtensionUpdateRequest](./src/main/java/com/ringcentral/definitions/ExtensionUpdateRequest.java) +- `result` is of type [GetExtensionInfoResponse](./src/main/java/com/ringcentral/definitions/GetExtensionInfoResponse.java) -[Try it out](https://developer.ringcentral.com/api-reference#Call-Handling-Rules-createCompanyAnsweringRule) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#User-Settings-updateExtension) in API Explorer. -## readCompanyAnsweringRule -Get Company Call Handling Rule +## deleteExtension +Delete Extension Name|Value -|- -HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/answering-rule/{ruleId}` -Rate Limit Group|`Light` -App Permission|`ReadAccounts` -User Permission|`ReadCompanyAnsweringRules` +HTTP Method|`DELETE` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/extension/{extensionId}` +Rate Limit Group|`Medium` +App Permission|`EditAccounts` +User Permission|`AddRemoveUsers` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -CompanyAnsweringRuleInfo result = rc.restapi(apiVersion).account(accountId).answeringRule(ruleId).get(); +String result = rc.restapi(apiVersion).account(accountId).extension(extensionId).delete(deleteExtensionParameters); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `result` is of type [CompanyAnsweringRuleInfo](./src/main/java/com/ringcentral/definitions/CompanyAnsweringRuleInfo.java) +- Parameter `extensionId` is optional with default value `~` +- `deleteExtensionParameters` is of type [DeleteExtensionParameters](./src/main/java/com/ringcentral/definitions/DeleteExtensionParameters.java) +- `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Call-Handling-Rules-readCompanyAnsweringRule) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#User-Settings-deleteExtension) in API Explorer. -## updateCompanyAnsweringRule -Update Company Call Handling Rule +## createCompanyGreeting +Create Company Greeting Name|Value -|- -HTTP Method|`PUT` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/answering-rule/{ruleId}` +HTTP Method|`POST` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/greeting` Rate Limit Group|`Medium` App Permission|`EditAccounts` -User Permission|`EditCompanyAnsweringRules` +User Permission|`ReadUserInfo` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -CompanyAnsweringRuleInfo result = rc.restapi(apiVersion).account(accountId).answeringRule(ruleId).put(companyAnsweringRuleUpdate); +CustomCompanyGreetingInfo result = rc.restapi(apiVersion).account(accountId).greeting().post(createCompanyGreetingRequest); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `companyAnsweringRuleUpdate` is of type [CompanyAnsweringRuleUpdate](./src/main/java/com/ringcentral/definitions/CompanyAnsweringRuleUpdate.java) -- `result` is of type [CompanyAnsweringRuleInfo](./src/main/java/com/ringcentral/definitions/CompanyAnsweringRuleInfo.java) +- `createCompanyGreetingRequest` is of type [CreateCompanyGreetingRequest](./src/main/java/com/ringcentral/definitions/CreateCompanyGreetingRequest.java) +- `result` is of type [CustomCompanyGreetingInfo](./src/main/java/com/ringcentral/definitions/CustomCompanyGreetingInfo.java) -[Try it out](https://developer.ringcentral.com/api-reference#Call-Handling-Rules-updateCompanyAnsweringRule) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Greetings-createCompanyGreeting) in API Explorer. -## deleteCompanyAnsweringRule -Delete Company Call Handling Rule +## createIVRMenu +Create IVR Menu Name|Value -|- -HTTP Method|`DELETE` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/answering-rule/{ruleId}` -Rate Limit Group|`Medium` +HTTP Method|`POST` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/ivr-menus` +Rate Limit Group|`Heavy` App Permission|`EditAccounts` -User Permission|`EditCompanyAnsweringRules` +User Permission|`AutoReceptionist` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -String result = rc.restapi(apiVersion).account(accountId).answeringRule(ruleId).delete(); +IVRMenuInfo result = rc.restapi(apiVersion).account(accountId).ivrMenus().post(iVRMenuInfo); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `result` is an empty string +- `iVRMenuInfo` is of type [IVRMenuInfo](./src/main/java/com/ringcentral/definitions/IVRMenuInfo.java) +- `result` is of type [IVRMenuInfo](./src/main/java/com/ringcentral/definitions/IVRMenuInfo.java) -[Try it out](https://developer.ringcentral.com/api-reference#Call-Handling-Rules-deleteCompanyAnsweringRule) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#IVR-createIVRMenu) in API Explorer. -## readAccountBusinessAddress -Get Account Business Address +## readIVRMenu +Get IVR Menu Name|Value -|- HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/business-address` -Rate Limit Group|`Light` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/ivr-menus/{ivrMenuId}` +Rate Limit Group|`Medium` App Permission|`ReadAccounts` -User Permission|`ReadCompanyInfo` +User Permission|`AutoReceptionist` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -AccountBusinessAddressResource result = rc.restapi(apiVersion).account(accountId).businessAddress().get(); +IVRMenuInfo result = rc.restapi(apiVersion).account(accountId).ivrMenus(ivrMenuId).get(); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `result` is of type [AccountBusinessAddressResource](./src/main/java/com/ringcentral/definitions/AccountBusinessAddressResource.java) +- `result` is of type [IVRMenuInfo](./src/main/java/com/ringcentral/definitions/IVRMenuInfo.java) -[Try it out](https://developer.ringcentral.com/api-reference#Company-readAccountBusinessAddress) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#IVR-readIVRMenu) in API Explorer. -## updateAccountBusinessAddress -Update Company Business Address +## updateIVRMenu +Update IVR Menu Name|Value -|- HTTP Method|`PUT` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/business-address` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/ivr-menus/{ivrMenuId}` Rate Limit Group|`Medium` -App Permission|`EditAccounts` -User Permission|`EditCompanyInfo` +App Permission|`ReadAccounts` +User Permission|`AutoReceptionist` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -AccountBusinessAddressResource result = rc.restapi(apiVersion).account(accountId).businessAddress().put(modifyAccountBusinessAddressRequest); +IVRMenuInfo result = rc.restapi(apiVersion).account(accountId).ivrMenus(ivrMenuId).put(iVRMenuInfo); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `modifyAccountBusinessAddressRequest` is of type [ModifyAccountBusinessAddressRequest](./src/main/java/com/ringcentral/definitions/ModifyAccountBusinessAddressRequest.java) -- `result` is of type [AccountBusinessAddressResource](./src/main/java/com/ringcentral/definitions/AccountBusinessAddressResource.java) +- `iVRMenuInfo` is of type [IVRMenuInfo](./src/main/java/com/ringcentral/definitions/IVRMenuInfo.java) +- `result` is of type [IVRMenuInfo](./src/main/java/com/ringcentral/definitions/IVRMenuInfo.java) -[Try it out](https://developer.ringcentral.com/api-reference#Company-updateAccountBusinessAddress) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#IVR-updateIVRMenu) in API Explorer. -## readCompanyBusinessHours -Get Company Business Hours +## readAccountPresence +Get User Presence Status List Name|Value -|- HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/business-hours` -Rate Limit Group|`Light` -App Permission|`ReadAccounts` -User Permission|`ReadUserAnsweringRules` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/presence` +Rate Limit Group|`Heavy` +App Permission|`ReadPresence` +User Permission|`ReadPresenceStatus` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -CompanyBusinessHours result = rc.restapi(apiVersion).account(accountId).businessHours().get(); +AccountPresenceInfo result = rc.restapi(apiVersion).account(accountId).presence().get(readAccountPresenceParameters); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `result` is of type [CompanyBusinessHours](./src/main/java/com/ringcentral/definitions/CompanyBusinessHours.java) +- `readAccountPresenceParameters` is of type [ReadAccountPresenceParameters](./src/main/java/com/ringcentral/definitions/ReadAccountPresenceParameters.java) +- `result` is of type [AccountPresenceInfo](./src/main/java/com/ringcentral/definitions/AccountPresenceInfo.java) -[Try it out](https://developer.ringcentral.com/api-reference#Business-Hours-readCompanyBusinessHours) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Presence-readAccountPresence) in API Explorer. -## updateCompanyBusinessHours -Update Company Business Hours +## readCallRecording +Get Call Recording Name|Value -|- -HTTP Method|`PUT` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/business-hours` -Rate Limit Group|`Medium` -App Permission|`EditExtensions` -User Permission|`EditUserAnsweringRules` +HTTP Method|`GET` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/recording/{recordingId}` +Rate Limit Group|`Heavy` +App Permission|`ReadCallRecording` +User Permission|`ReadCallRecording` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -CompanyBusinessHours result = rc.restapi(apiVersion).account(accountId).businessHours().put(companyBusinessHoursUpdateRequest); +GetCallRecordingResponse result = rc.restapi(apiVersion).account(accountId).recording(recordingId).get(); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `companyBusinessHoursUpdateRequest` is of type [CompanyBusinessHoursUpdateRequest](./src/main/java/com/ringcentral/definitions/CompanyBusinessHoursUpdateRequest.java) -- `result` is of type [CompanyBusinessHours](./src/main/java/com/ringcentral/definitions/CompanyBusinessHours.java) +- `result` is of type [GetCallRecordingResponse](./src/main/java/com/ringcentral/definitions/GetCallRecordingResponse.java) -[Try it out](https://developer.ringcentral.com/api-reference#Business-Hours-updateCompanyBusinessHours) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Recordings-readCallRecording) in API Explorer. -## readCompanyCallLog -Get Company Call Log Records +## listUserTemplates +Get User Template List Name|Value -|- HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/call-log` -Rate Limit Group|`Heavy` -App Permission|`ReadCallLog` -User Permission|`FullCompanyCallLog` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/templates` +Rate Limit Group|`Medium` +App Permission|`ReadAccounts` +User Permission|`ReadCompanyInfo` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -AccountCallLogResponse result = rc.restapi(apiVersion).account(accountId).callLog().list(readCompanyCallLogParameters); +UserTemplates result = rc.restapi(apiVersion).account(accountId).templates().list(listUserTemplatesParameters); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `readCompanyCallLogParameters` is of type [ReadCompanyCallLogParameters](./src/main/java/com/ringcentral/definitions/ReadCompanyCallLogParameters.java) -- `result` is of type [AccountCallLogResponse](./src/main/java/com/ringcentral/definitions/AccountCallLogResponse.java) +- `listUserTemplatesParameters` is of type [ListUserTemplatesParameters](./src/main/java/com/ringcentral/definitions/ListUserTemplatesParameters.java) +- `result` is of type [UserTemplates](./src/main/java/com/ringcentral/definitions/UserTemplates.java) -[Try it out](https://developer.ringcentral.com/api-reference#Call-Log-readCompanyCallLog) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Extensions-listUserTemplates) in API Explorer. -## readCompanyCallRecord -Get Company Call Log Record(s) +## readUserTemplate +Get User Template Name|Value -|- HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/call-log/{callRecordId}` -Rate Limit Group|`Heavy` -App Permission|`ReadCallLog` -User Permission|`FullCompanyCallLog` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/templates/{templateId}` +Rate Limit Group|`Light` +App Permission|`ReadAccounts` +User Permission|`ReadCompanyInfo` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -CompanyCallLogRecord result = rc.restapi(apiVersion).account(accountId).callLog(callRecordId).get(readCompanyCallRecordParameters); +TemplateInfo result = rc.restapi(apiVersion).account(accountId).templates(templateId).get(); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `readCompanyCallRecordParameters` is of type [ReadCompanyCallRecordParameters](./src/main/java/com/ringcentral/definitions/ReadCompanyCallRecordParameters.java) -- `result` is of type [CompanyCallLogRecord](./src/main/java/com/ringcentral/definitions/CompanyCallLogRecord.java) +- `result` is of type [TemplateInfo](./src/main/java/com/ringcentral/definitions/TemplateInfo.java) -[Try it out](https://developer.ringcentral.com/api-reference#Call-Log-readCompanyCallRecord) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Extensions-readUserTemplate) in API Explorer. -## syncAccountCallLog -Sync Company Call Log +## listStates +Get States List Name|Value -|- HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/call-log-sync` -Rate Limit Group|`Heavy` -App Permission|`ReadCallLog` -User Permission|`ReadCallLog` +Endpoint|`/restapi/{apiVersion}/dictionary/state` +Rate Limit Group|`Light` +App Permission|`N/A` +User Permission|`N/A` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -AccountCallLogSyncResponse result = rc.restapi(apiVersion).account(accountId).callLogSync().get(syncAccountCallLogParameters); +GetStateListResponse result = rc.restapi(apiVersion).dictionary().state().list(listStatesParameters); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- Parameter `accountId` is optional with default value `~` -- `syncAccountCallLogParameters` is of type [SyncAccountCallLogParameters](./src/main/java/com/ringcentral/definitions/SyncAccountCallLogParameters.java) -- `result` is of type [AccountCallLogSyncResponse](./src/main/java/com/ringcentral/definitions/AccountCallLogSyncResponse.java) +- `listStatesParameters` is of type [ListStatesParameters](./src/main/java/com/ringcentral/definitions/ListStatesParameters.java) +- `result` is of type [GetStateListResponse](./src/main/java/com/ringcentral/definitions/GetStateListResponse.java) -[Try it out](https://developer.ringcentral.com/api-reference#Call-Log-syncAccountCallLog) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Regional-Settings-listStates) in API Explorer. -## listCallQueues -Get Call Queue List +## readState +Get State Name|Value -|- HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/call-queues` -Rate Limit Group|`Medium` -App Permission|`ReadAccounts` -User Permission|`ReadExtensions` +Endpoint|`/restapi/{apiVersion}/dictionary/state/{stateId}` +Rate Limit Group|`Light` +App Permission|`N/A` +User Permission|`N/A` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -CallQueues result = rc.restapi(apiVersion).account(accountId).callQueues().list(listCallQueuesParameters); +GetStateInfoResponse result = rc.restapi(apiVersion).dictionary().state(stateId).get(); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- Parameter `accountId` is optional with default value `~` -- `listCallQueuesParameters` is of type [ListCallQueuesParameters](./src/main/java/com/ringcentral/definitions/ListCallQueuesParameters.java) -- `result` is of type [CallQueues](./src/main/java/com/ringcentral/definitions/CallQueues.java) +- `result` is of type [GetStateInfoResponse](./src/main/java/com/ringcentral/definitions/GetStateInfoResponse.java) -[Try it out](https://developer.ringcentral.com/api-reference#Call-Queues-listCallQueues) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Regional-Settings-readState) in API Explorer. -## readCallQueueInfo -Get Call Queue +## listGlipChats +Get Chats Name|Value -|- HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/call-queues/{groupId}` -Rate Limit Group|`Light` -App Permission|`ReadAccounts` -User Permission|`ReadExtensions` +Endpoint|`/restapi/{apiVersion}/glip/chats` +Rate Limit Group|`Medium` +App Permission|`Glip` +User Permission|`Glip` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -CallQueueDetails result = rc.restapi(apiVersion).account(accountId).callQueues(groupId).get(); +GlipChatsList result = rc.restapi(apiVersion).glip().chats().list(listGlipChatsParameters); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- Parameter `accountId` is optional with default value `~` -- `result` is of type [CallQueueDetails](./src/main/java/com/ringcentral/definitions/CallQueueDetails.java) +- `listGlipChatsParameters` is of type [ListGlipChatsParameters](./src/main/java/com/ringcentral/definitions/ListGlipChatsParameters.java) +- `result` is of type [GlipChatsList](./src/main/java/com/ringcentral/definitions/GlipChatsList.java) -[Try it out](https://developer.ringcentral.com/api-reference#Call-Queues-readCallQueueInfo) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Chats-listGlipChats) in API Explorer. -## updateCallQueueInfo -Update Call Queue +## readGlipChat +Get Chat Name|Value -|- -HTTP Method|`PUT` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/call-queues/{groupId}` +HTTP Method|`GET` +Endpoint|`/restapi/{apiVersion}/glip/chats/{chatId}` Rate Limit Group|`Light` -App Permission|`EditExtensions` -User Permission|`EditUserInfo` +App Permission|`Glip` +User Permission|`Glip` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -CallQueueDetails result = rc.restapi(apiVersion).account(accountId).callQueues(groupId).put(callQueueUpdateDetails); +GlipChatInfo result = rc.restapi(apiVersion).glip().chats(chatId).get(); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- Parameter `accountId` is optional with default value `~` -- `callQueueUpdateDetails` is of type [CallQueueUpdateDetails](./src/main/java/com/ringcentral/definitions/CallQueueUpdateDetails.java) -- `result` is of type [CallQueueDetails](./src/main/java/com/ringcentral/definitions/CallQueueDetails.java) +- `result` is of type [GlipChatInfo](./src/main/java/com/ringcentral/definitions/GlipChatInfo.java) -[Try it out](https://developer.ringcentral.com/api-reference#Call-Queues-updateCallQueueInfo) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Chats-readGlipChat) in API Explorer. -## readCallRecordingSettings -Get Call Recording Settings +## listChatNotes +Get Chat Notes Name|Value -|- HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/call-recording` -Rate Limit Group|`Light` -App Permission|`ReadAccounts` -User Permission|`ReadCompanyInfo` +Endpoint|`/restapi/{apiVersion}/glip/chats/{chatId}/notes` +Rate Limit Group|`Heavy` +App Permission|`Glip` +User Permission|`Glip` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -CallRecordingSettingsResource result = rc.restapi(apiVersion).account(accountId).callRecording().get(); +GlipNotesInfo result = rc.restapi(apiVersion).glip().chats(chatId).notes().get(listChatNotesParameters); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- Parameter `accountId` is optional with default value `~` -- `result` is of type [CallRecordingSettingsResource](./src/main/java/com/ringcentral/definitions/CallRecordingSettingsResource.java) +- `listChatNotesParameters` is of type [ListChatNotesParameters](./src/main/java/com/ringcentral/definitions/ListChatNotesParameters.java) +- `result` is of type [GlipNotesInfo](./src/main/java/com/ringcentral/definitions/GlipNotesInfo.java) -[Try it out](https://developer.ringcentral.com/api-reference#Call-Recording-Settings-readCallRecordingSettings) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Notes-listChatNotes) in API Explorer. -## updateCallRecordingSettings -Update Call Recording Settings +## createChatNote +Create Note Name|Value -|- -HTTP Method|`PUT` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/call-recording` +HTTP Method|`POST` +Endpoint|`/restapi/{apiVersion}/glip/chats/{chatId}/notes` Rate Limit Group|`Medium` -App Permission|`EditAccounts` -User Permission|`EditCompanyInfo` +App Permission|`Glip` +User Permission|`Glip` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -CallRecordingSettingsResource result = rc.restapi(apiVersion).account(accountId).callRecording().put(callRecordingSettingsResource); +GlipNoteInfo result = rc.restapi(apiVersion).glip().chats(chatId).notes().post(glipNoteCreate); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- Parameter `accountId` is optional with default value `~` -- `callRecordingSettingsResource` is of type [CallRecordingSettingsResource](./src/main/java/com/ringcentral/definitions/CallRecordingSettingsResource.java) -- `result` is of type [CallRecordingSettingsResource](./src/main/java/com/ringcentral/definitions/CallRecordingSettingsResource.java) +- `glipNoteCreate` is of type [GlipNoteCreate](./src/main/java/com/ringcentral/definitions/GlipNoteCreate.java) +- `result` is of type [GlipNoteInfo](./src/main/java/com/ringcentral/definitions/GlipNoteInfo.java) -[Try it out](https://developer.ringcentral.com/api-reference#Call-Recording-Settings-updateCallRecordingSettings) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Notes-createChatNote) in API Explorer. -## listCustomFields -Get Custom Field List +## readGlipPosts +Get Posts Name|Value -|- HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/custom-fields` -Rate Limit Group|`Light` -App Permission|`ReadAccounts` -User Permission|`ReadUserInfo` +Endpoint|`/restapi/{apiVersion}/glip/chats/{chatId}/posts` +Rate Limit Group|`Medium` +App Permission|`Glip` +User Permission|`Glip` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -CustomFieldsResource result = rc.restapi(apiVersion).account(accountId).customFields().get(); +GlipPostsList result = rc.restapi(apiVersion).glip().chats(chatId).posts().list(readGlipPostsParameters); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- Parameter `accountId` is optional with default value `~` -- `result` is of type [CustomFieldsResource](./src/main/java/com/ringcentral/definitions/CustomFieldsResource.java) +- `readGlipPostsParameters` is of type [ReadGlipPostsParameters](./src/main/java/com/ringcentral/definitions/ReadGlipPostsParameters.java) +- `result` is of type [GlipPostsList](./src/main/java/com/ringcentral/definitions/GlipPostsList.java) -[Try it out](https://developer.ringcentral.com/api-reference#Custom-Fields-listCustomFields) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Posts-readGlipPosts) in API Explorer. -## createCustomField -Create Custom Field +## createGlipPost +Create Post Name|Value -|- HTTP Method|`POST` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/custom-fields` -Rate Limit Group|`Light` -App Permission|`EditAccounts` -User Permission|`Users` +Endpoint|`/restapi/{apiVersion}/glip/chats/{chatId}/posts` +Rate Limit Group|`Medium` +App Permission|`Glip` +User Permission|`Glip` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -CustomFieldResource result = rc.restapi(apiVersion).account(accountId).customFields().post(customFieldCreateRequest); +GlipPostInfo result = rc.restapi(apiVersion).glip().chats(chatId).posts().post(glipPostPostBody); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- Parameter `accountId` is optional with default value `~` -- `customFieldCreateRequest` is of type [CustomFieldCreateRequest](./src/main/java/com/ringcentral/definitions/CustomFieldCreateRequest.java) -- `result` is of type [CustomFieldResource](./src/main/java/com/ringcentral/definitions/CustomFieldResource.java) +- `glipPostPostBody` is of type [GlipPostPostBody](./src/main/java/com/ringcentral/definitions/GlipPostPostBody.java) +- `result` is of type [GlipPostInfo](./src/main/java/com/ringcentral/definitions/GlipPostInfo.java) -[Try it out](https://developer.ringcentral.com/api-reference#Custom-Fields-createCustomField) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Posts-createGlipPost) in API Explorer. -## updateCustomField -Update Сustom Field +## readGlipPost +Get Post Name|Value -|- -HTTP Method|`PUT` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/custom-fields/{fieldId}` +HTTP Method|`GET` +Endpoint|`/restapi/{apiVersion}/glip/chats/{chatId}/posts/{postId}` Rate Limit Group|`Light` -App Permission|`EditAccounts` -User Permission|`Users` +App Permission|`Glip` +User Permission|`Glip` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -CustomFieldResource result = rc.restapi(apiVersion).account(accountId).customFields(fieldId).put(customFieldUpdateRequest); +GlipPostInfo result = rc.restapi(apiVersion).glip().chats(chatId).posts(postId).get(); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- Parameter `accountId` is optional with default value `~` -- `customFieldUpdateRequest` is of type [CustomFieldUpdateRequest](./src/main/java/com/ringcentral/definitions/CustomFieldUpdateRequest.java) -- `result` is of type [CustomFieldResource](./src/main/java/com/ringcentral/definitions/CustomFieldResource.java) +- `result` is of type [GlipPostInfo](./src/main/java/com/ringcentral/definitions/GlipPostInfo.java) -[Try it out](https://developer.ringcentral.com/api-reference#Custom-Fields-updateCustomField) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Posts-readGlipPost) in API Explorer. -## deleteCustomField -Delete Custom Field +## deleteGlipPost +Delete Post Name|Value -|- HTTP Method|`DELETE` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/custom-fields/{fieldId}` -Rate Limit Group|`Light` -App Permission|`EditAccounts` -User Permission|`Users` +Endpoint|`/restapi/{apiVersion}/glip/chats/{chatId}/posts/{postId}` +Rate Limit Group|`Medium` +App Permission|`Glip` +User Permission|`Glip` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -String result = rc.restapi(apiVersion).account(accountId).customFields(fieldId).delete(); +String result = rc.restapi(apiVersion).glip().chats(chatId).posts(postId).delete(); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- Parameter `accountId` is optional with default value `~` - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Custom-Fields-deleteCustomField) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Posts-deleteGlipPost) in API Explorer. -## readDevice -Get Device +## patchGlipPost +Update Post Name|Value -|- -HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/device/{deviceId}` -Rate Limit Group|`Light` -App Permission|`ReadAccounts` -User Permission|`ReadCompanyDevices` +HTTP Method|`PATCH` +Endpoint|`/restapi/{apiVersion}/glip/chats/{chatId}/posts/{postId}` +Rate Limit Group|`Medium` +App Permission|`Glip` +User Permission|`Glip` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -GetDeviceInfoResponse result = rc.restapi(apiVersion).account(accountId).device(deviceId).get(readDeviceParameters); +GlipPostInfo result = rc.restapi(apiVersion).glip().chats(chatId).posts(postId).patch(glipPatchPostBody); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- Parameter `accountId` is optional with default value `~` -- `readDeviceParameters` is of type [ReadDeviceParameters](./src/main/java/com/ringcentral/definitions/ReadDeviceParameters.java) -- `result` is of type [GetDeviceInfoResponse](./src/main/java/com/ringcentral/definitions/GetDeviceInfoResponse.java) +- `glipPatchPostBody` is of type [GlipPatchPostBody](./src/main/java/com/ringcentral/definitions/GlipPatchPostBody.java) +- `result` is of type [GlipPostInfo](./src/main/java/com/ringcentral/definitions/GlipPostInfo.java) -[Try it out](https://developer.ringcentral.com/api-reference#Devices-readDevice) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Posts-patchGlipPost) in API Explorer. -## updateDevice -Update Device +## markChatRead +Mark Chat as Read Name|Value -|- -HTTP Method|`PUT` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/device/{deviceId}` +HTTP Method|`POST` +Endpoint|`/restapi/{apiVersion}/glip/chats/{chatId}/read` Rate Limit Group|`Medium` -App Permission|`EditAccounts` -User Permission|`EditCompanyDevices` +App Permission|`GlipInternal` +User Permission|`N/A` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -GetDeviceInfoResponse result = rc.restapi(apiVersion).account(accountId).device(deviceId).put(accountDeviceUpdate, updateDeviceParameters); +String result = rc.restapi(apiVersion).glip().chats(chatId).read().post(); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- Parameter `accountId` is optional with default value `~` -- `accountDeviceUpdate` is of type [AccountDeviceUpdate](./src/main/java/com/ringcentral/definitions/AccountDeviceUpdate.java) -- `updateDeviceParameters` is of type [UpdateDeviceParameters](./src/main/java/com/ringcentral/definitions/UpdateDeviceParameters.java) -- `result` is of type [GetDeviceInfoResponse](./src/main/java/com/ringcentral/definitions/GetDeviceInfoResponse.java) +- `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Devices-updateDevice) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Chats-markChatRead) in API Explorer. -## listDirectoryEntries -Get Company Directory Entries +## listChatTasks +Get Chat Tasks Name|Value -|- HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/directory/entries` -Rate Limit Group|`Medium` -App Permission|`ReadAccounts` +Endpoint|`/restapi/{apiVersion}/glip/chats/{chatId}/tasks` +Rate Limit Group|`Heavy` +App Permission|`N/A` User Permission|`N/A` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -DirectoryResource result = rc.restapi(apiVersion).account(accountId).directory().entries().list(listDirectoryEntriesParameters); +GlipTaskList result = rc.restapi(apiVersion).glip().chats(chatId).tasks().get(listChatTasksParameters); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- Parameter `accountId` is optional with default value `~` -- `listDirectoryEntriesParameters` is of type [ListDirectoryEntriesParameters](./src/main/java/com/ringcentral/definitions/ListDirectoryEntriesParameters.java) -- `result` is of type [DirectoryResource](./src/main/java/com/ringcentral/definitions/DirectoryResource.java) +- `listChatTasksParameters` is of type [ListChatTasksParameters](./src/main/java/com/ringcentral/definitions/ListChatTasksParameters.java) +- `result` is of type [GlipTaskList](./src/main/java/com/ringcentral/definitions/GlipTaskList.java) -[Try it out](https://developer.ringcentral.com/api-reference#Internal-Contacts-listDirectoryEntries) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Tasks-listChatTasks) in API Explorer. -## readDirectoryEntry -Get Corporate Directory Entry +## createTask +Create Task Name|Value -|- -HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/directory/entries/{entryId}` +HTTP Method|`POST` +Endpoint|`/restapi/{apiVersion}/glip/chats/{chatId}/tasks` Rate Limit Group|`Medium` -App Permission|`ReadAccounts` +App Permission|`N/A` User Permission|`N/A` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -ContactResource result = rc.restapi(apiVersion).account(accountId).directory().entries(entryId).get(); +GlipTaskInfo result = rc.restapi(apiVersion).glip().chats(chatId).tasks().post(glipCreateTask); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- Parameter `accountId` is optional with default value `~` -- `result` is of type [ContactResource](./src/main/java/com/ringcentral/definitions/ContactResource.java) +- `glipCreateTask` is of type [GlipCreateTask](./src/main/java/com/ringcentral/definitions/GlipCreateTask.java) +- `result` is of type [GlipTaskInfo](./src/main/java/com/ringcentral/definitions/GlipTaskInfo.java) -[Try it out](https://developer.ringcentral.com/api-reference#Internal-Contacts-readDirectoryEntry) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Tasks-createTask) in API Explorer. -## listExtensions -Get Extension List +## readGlipCompany +Get Company Info Name|Value -|- HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/extension` -Rate Limit Group|`Medium` -App Permission|`ReadAccounts` -User Permission|`ReadExtensions` +Endpoint|`/restapi/{apiVersion}/glip/companies/{companyId}` +Rate Limit Group|`Light` +App Permission|`Glip` +User Permission|`Glip` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -GetExtensionListResponse result = rc.restapi(apiVersion).account(accountId).extension().list(listExtensionsParameters); +GlipCompany result = rc.restapi(apiVersion).glip().companies(companyId).get(); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- Parameter `accountId` is optional with default value `~` -- `listExtensionsParameters` is of type [ListExtensionsParameters](./src/main/java/com/ringcentral/definitions/ListExtensionsParameters.java) -- `result` is of type [GetExtensionListResponse](./src/main/java/com/ringcentral/definitions/GetExtensionListResponse.java) +- `result` is of type [GlipCompany](./src/main/java/com/ringcentral/definitions/GlipCompany.java) -[Try it out](https://developer.ringcentral.com/api-reference#Extensions-listExtensions) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Glip-Profile-readGlipCompany) in API Explorer. -## createExtension -Create Extension +## listDataExportTasks +Get Data Export Task List Name|Value -|- -HTTP Method|`POST` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/extension` +HTTP Method|`GET` +Endpoint|`/restapi/{apiVersion}/glip/data-export` Rate Limit Group|`Medium` -App Permission|`EditAccounts` -User Permission|`AddRemoveUsers` +App Permission|`Glip` +User Permission|`N/A` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -ExtensionCreationResponse result = rc.restapi(apiVersion).account(accountId).extension().post(extensionCreationRequest); +DataExportTaskList result = rc.restapi(apiVersion).glip().dataExport().list(listDataExportTasksParameters); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- Parameter `accountId` is optional with default value `~` -- `extensionCreationRequest` is of type [ExtensionCreationRequest](./src/main/java/com/ringcentral/definitions/ExtensionCreationRequest.java) -- `result` is of type [ExtensionCreationResponse](./src/main/java/com/ringcentral/definitions/ExtensionCreationResponse.java) +- `listDataExportTasksParameters` is of type [ListDataExportTasksParameters](./src/main/java/com/ringcentral/definitions/ListDataExportTasksParameters.java) +- `result` is of type [DataExportTaskList](./src/main/java/com/ringcentral/definitions/DataExportTaskList.java) -[Try it out](https://developer.ringcentral.com/api-reference#Extensions-createExtension) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Glip-Compliance-Exports-listDataExportTasks) in API Explorer. -## readExtension -Get Extension +## createDataExportTask +Create Data Export Task Name|Value -|- -HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/extension/{extensionId}` -Rate Limit Group|`Light` -App Permission|`ReadAccounts` -User Permission|`ReadExtensions` +HTTP Method|`POST` +Endpoint|`/restapi/{apiVersion}/glip/data-export` +Rate Limit Group|`Heavy` +App Permission|`Glip` +User Permission|`N/A` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -GetExtensionInfoResponse result = rc.restapi(apiVersion).account(accountId).extension(extensionId).get(); +DataExportTask result = rc.restapi(apiVersion).glip().dataExport().post(createDataExportTaskRequest); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- Parameter `accountId` is optional with default value `~` -- Parameter `extensionId` is optional with default value `~` -- `result` is of type [GetExtensionInfoResponse](./src/main/java/com/ringcentral/definitions/GetExtensionInfoResponse.java) +- `createDataExportTaskRequest` is of type [CreateDataExportTaskRequest](./src/main/java/com/ringcentral/definitions/CreateDataExportTaskRequest.java) +- `result` is of type [DataExportTask](./src/main/java/com/ringcentral/definitions/DataExportTask.java) -[Try it out](https://developer.ringcentral.com/api-reference#User-Settings-readExtension) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Glip-Compliance-Exports-createDataExportTask) in API Explorer. -## updateExtension -Update Extension +## readDataExportTask +Get Data Export Task Name|Value -|- -HTTP Method|`PUT` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/extension/{extensionId}` +HTTP Method|`GET` +Endpoint|`/restapi/{apiVersion}/glip/data-export/{taskId}` Rate Limit Group|`Medium` -App Permission|`EditExtensions` -User Permission|`EditUserInfo OR EditUserCredentials` +App Permission|`Glip` +User Permission|`N/A` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -GetExtensionInfoResponse result = rc.restapi(apiVersion).account(accountId).extension(extensionId).put(extensionUpdateRequest); +DataExportTask result = rc.restapi(apiVersion).glip().dataExport(taskId).get(); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- Parameter `accountId` is optional with default value `~` -- Parameter `extensionId` is optional with default value `~` -- `extensionUpdateRequest` is of type [ExtensionUpdateRequest](./src/main/java/com/ringcentral/definitions/ExtensionUpdateRequest.java) -- `result` is of type [GetExtensionInfoResponse](./src/main/java/com/ringcentral/definitions/GetExtensionInfoResponse.java) +- `result` is of type [DataExportTask](./src/main/java/com/ringcentral/definitions/DataExportTask.java) -[Try it out](https://developer.ringcentral.com/api-reference#User-Settings-updateExtension) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Glip-Compliance-Exports-readDataExportTask) in API Explorer. -## deleteExtension -Delete Extension +## readGlipEveryone +Get Everyone Chat Name|Value -|- -HTTP Method|`DELETE` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/extension/{extensionId}` -Rate Limit Group|`Medium` -App Permission|`EditAccounts` -User Permission|`AddRemoveUsers` +HTTP Method|`GET` +Endpoint|`/restapi/{apiVersion}/glip/everyone` +Rate Limit Group|`Light` +App Permission|`Glip` +User Permission|`Glip` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -String result = rc.restapi(apiVersion).account(accountId).extension(extensionId).delete(deleteExtensionParameters); +GlipEveryoneInfo result = rc.restapi(apiVersion).glip().everyone().get(); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- Parameter `accountId` is optional with default value `~` -- Parameter `extensionId` is optional with default value `~` -- `deleteExtensionParameters` is of type [DeleteExtensionParameters](./src/main/java/com/ringcentral/definitions/DeleteExtensionParameters.java) -- `result` is an empty string +- `result` is of type [GlipEveryoneInfo](./src/main/java/com/ringcentral/definitions/GlipEveryoneInfo.java) -[Try it out](https://developer.ringcentral.com/api-reference#User-Settings-deleteExtension) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Teams-readGlipEveryone) in API Explorer. -## readUserCallLog -Get User Call Log Records +## patchGlipEveryone +Update Everyone Сhat Name|Value -|- -HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/extension/{extensionId}/call-log` -Rate Limit Group|`Heavy` -App Permission|`ReadCallLog` -User Permission|`ReadCallLog` +HTTP Method|`PATCH` +Endpoint|`/restapi/{apiVersion}/glip/everyone` +Rate Limit Group|`Medium` +App Permission|`Glip` +User Permission|`Glip` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -UserCallLogResponse result = rc.restapi(apiVersion).account(accountId).extension(extensionId).callLog().list(readUserCallLogParameters); +GlipEveryoneInfo result = rc.restapi(apiVersion).glip().everyone().patch(updateGlipEveryoneRequest); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- Parameter `accountId` is optional with default value `~` -- Parameter `extensionId` is optional with default value `~` -- `readUserCallLogParameters` is of type [ReadUserCallLogParameters](./src/main/java/com/ringcentral/definitions/ReadUserCallLogParameters.java) -- `result` is of type [UserCallLogResponse](./src/main/java/com/ringcentral/definitions/UserCallLogResponse.java) +- `updateGlipEveryoneRequest` is of type [UpdateGlipEveryoneRequest](./src/main/java/com/ringcentral/definitions/UpdateGlipEveryoneRequest.java) +- `result` is of type [GlipEveryoneInfo](./src/main/java/com/ringcentral/definitions/GlipEveryoneInfo.java) -[Try it out](https://developer.ringcentral.com/api-reference#Call-Log-readUserCallLog) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Teams-patchGlipEveryone) in API Explorer. -## deleteUserCallLog -Delete User Call Log +## listFavoriteChats +Get Favorite Chats Name|Value -|- -HTTP Method|`DELETE` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/extension/{extensionId}/call-log` -Rate Limit Group|`Heavy` -App Permission|`EditCallLog` -User Permission|`EditCallLog` +HTTP Method|`GET` +Endpoint|`/restapi/{apiVersion}/glip/favorites` +Rate Limit Group|`Light` +App Permission|`Glip` +User Permission|`Glip` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -String result = rc.restapi(apiVersion).account(accountId).extension(extensionId).callLog().delete(deleteUserCallLogParameters); +GlipChatsListWithoutNavigation result = rc.restapi(apiVersion).glip().favorites().get(listFavoriteChatsParameters); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- Parameter `accountId` is optional with default value `~` -- Parameter `extensionId` is optional with default value `~` -- `deleteUserCallLogParameters` is of type [DeleteUserCallLogParameters](./src/main/java/com/ringcentral/definitions/DeleteUserCallLogParameters.java) -- `result` is an empty string - -[Try it out](https://developer.ringcentral.com/api-reference#Call-Log-deleteUserCallLog) in API Explorer. +- `listFavoriteChatsParameters` is of type [ListFavoriteChatsParameters](./src/main/java/com/ringcentral/definitions/ListFavoriteChatsParameters.java) +- `result` is of type [GlipChatsListWithoutNavigation](./src/main/java/com/ringcentral/definitions/GlipChatsListWithoutNavigation.java) + +[Try it out](https://developer.ringcentral.com/api-reference#Chats-listFavoriteChats) in API Explorer. -## readUserCallRecord -Get User Call Record +## readUserNote +Get Note Name|Value -|- HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/extension/{extensionId}/call-log/{callRecordId}` -Rate Limit Group|`Heavy` -App Permission|`ReadCallLog` -User Permission|`ReadCallLog` +Endpoint|`/restapi/{apiVersion}/glip/notes/{noteId}` +Rate Limit Group|`Medium` +App Permission|`Glip` +User Permission|`Glip` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -UserCallLogRecord result = rc.restapi(apiVersion).account(accountId).extension(extensionId).callLog(callRecordId).get(readUserCallRecordParameters); +GetGlipNoteInfo result = rc.restapi(apiVersion).glip().notes(noteId).get(); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- Parameter `accountId` is optional with default value `~` -- Parameter `extensionId` is optional with default value `~` -- `readUserCallRecordParameters` is of type [ReadUserCallRecordParameters](./src/main/java/com/ringcentral/definitions/ReadUserCallRecordParameters.java) -- `result` is of type [UserCallLogRecord](./src/main/java/com/ringcentral/definitions/UserCallLogRecord.java) +- `result` is of type [GetGlipNoteInfo](./src/main/java/com/ringcentral/definitions/GetGlipNoteInfo.java) -[Try it out](https://developer.ringcentral.com/api-reference#Call-Log-readUserCallRecord) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Notes-readUserNote) in API Explorer. -## listExtensionDevices -Get Extension Device List +## deleteNote +Delete Note Name|Value -|- -HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/extension/{extensionId}/device` -Rate Limit Group|`Light` -App Permission|`ReadAccounts` -User Permission|`ReadUserDevices` +HTTP Method|`DELETE` +Endpoint|`/restapi/{apiVersion}/glip/notes/{noteId}` +Rate Limit Group|`Medium` +App Permission|`Glip` +User Permission|`Glip` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -GetExtensionDevicesResponse result = rc.restapi(apiVersion).account(accountId).extension(extensionId).device().get(listExtensionDevicesParameters); +String result = rc.restapi(apiVersion).glip().notes(noteId).delete(); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- Parameter `accountId` is optional with default value `~` -- Parameter `extensionId` is optional with default value `~` -- `listExtensionDevicesParameters` is of type [ListExtensionDevicesParameters](./src/main/java/com/ringcentral/definitions/ListExtensionDevicesParameters.java) -- `result` is of type [GetExtensionDevicesResponse](./src/main/java/com/ringcentral/definitions/GetExtensionDevicesResponse.java) +- `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Devices-listExtensionDevices) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Notes-deleteNote) in API Explorer. -## createFaxMessage -Create Fax Message +## patchNote +Update Note Name|Value -|- -HTTP Method|`POST` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/extension/{extensionId}/fax` -Rate Limit Group|`Heavy` -App Permission|`Faxes` -User Permission|`OutboundFaxes` +HTTP Method|`PATCH` +Endpoint|`/restapi/{apiVersion}/glip/notes/{noteId}` +Rate Limit Group|`Medium` +App Permission|`Glip` +User Permission|`Glip` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -FaxResponse result = rc.restapi(apiVersion).account(accountId).extension(extensionId).fax().post(createFaxMessageRequest); +GlipNoteInfo result = rc.restapi(apiVersion).glip().notes(noteId).patch(glipNoteCreate); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- Parameter `accountId` is optional with default value `~` -- Parameter `extensionId` is optional with default value `~` -- `createFaxMessageRequest` is of type [CreateFaxMessageRequest](./src/main/java/com/ringcentral/definitions/CreateFaxMessageRequest.java) -- `result` is of type [FaxResponse](./src/main/java/com/ringcentral/definitions/FaxResponse.java) +- `glipNoteCreate` is of type [GlipNoteCreate](./src/main/java/com/ringcentral/definitions/GlipNoteCreate.java) +- `result` is of type [GlipNoteInfo](./src/main/java/com/ringcentral/definitions/GlipNoteInfo.java) -[Try it out](https://developer.ringcentral.com/api-reference#Fax-createFaxMessage) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Notes-patchNote) in API Explorer. -## listExtensionGrants -Get Extension Grant List +## readTask +Get Task Name|Value -|- HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/extension/{extensionId}/grant` -Rate Limit Group|`Light` -App Permission|`ReadAccounts` -User Permission|`ReadExtensions` +Endpoint|`/restapi/{apiVersion}/glip/tasks/{taskId}` +Rate Limit Group|`Medium` +App Permission|`N/A` +User Permission|`N/A` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -GetExtensionGrantListResponse result = rc.restapi(apiVersion).account(accountId).extension(extensionId).grant().get(listExtensionGrantsParameters); +GlipTaskInfo result = rc.restapi(apiVersion).glip().tasks(taskId).get(); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- Parameter `accountId` is optional with default value `~` -- Parameter `extensionId` is optional with default value `~` -- `listExtensionGrantsParameters` is of type [ListExtensionGrantsParameters](./src/main/java/com/ringcentral/definitions/ListExtensionGrantsParameters.java) -- `result` is of type [GetExtensionGrantListResponse](./src/main/java/com/ringcentral/definitions/GetExtensionGrantListResponse.java) +- `result` is of type [GlipTaskInfo](./src/main/java/com/ringcentral/definitions/GlipTaskInfo.java) -[Try it out](https://developer.ringcentral.com/api-reference#User-Settings-listExtensionGrants) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Tasks-readTask) in API Explorer. -## createCustomUserGreeting -Create Custom User Greeting +## deleteTask +Delete Task Name|Value -|- -HTTP Method|`POST` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/extension/{extensionId}/greeting` -Rate Limit Group|`Heavy` -App Permission|`EditExtensions` -User Permission|`EditUserAnsweringRules` +HTTP Method|`DELETE` +Endpoint|`/restapi/{apiVersion}/glip/tasks/{taskId}` +Rate Limit Group|`Medium` +App Permission|`N/A` +User Permission|`N/A` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -CustomUserGreetingInfo result = rc.restapi(apiVersion).account(accountId).extension(extensionId).greeting().post(createCustomUserGreetingRequest, createCustomUserGreetingParameters); +String result = rc.restapi(apiVersion).glip().tasks(taskId).delete(); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- Parameter `accountId` is optional with default value `~` -- Parameter `extensionId` is optional with default value `~` -- `createCustomUserGreetingRequest` is of type [CreateCustomUserGreetingRequest](./src/main/java/com/ringcentral/definitions/CreateCustomUserGreetingRequest.java) -- `createCustomUserGreetingParameters` is of type [CreateCustomUserGreetingParameters](./src/main/java/com/ringcentral/definitions/CreateCustomUserGreetingParameters.java) -- `result` is of type [CustomUserGreetingInfo](./src/main/java/com/ringcentral/definitions/CustomUserGreetingInfo.java) +- `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Greetings-createCustomUserGreeting) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Tasks-deleteTask) in API Explorer. -## readCustomGreeting -Get Custom Greeting +## patchTask +Patch Task Name|Value -|- -HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/extension/{extensionId}/greeting/{greetingId}` +HTTP Method|`PATCH` +Endpoint|`/restapi/{apiVersion}/glip/tasks/{taskId}` Rate Limit Group|`Medium` -App Permission|`ReadAccounts` -User Permission|`ReadUserInfo` +App Permission|`N/A` +User Permission|`N/A` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -CustomUserGreetingInfo result = rc.restapi(apiVersion).account(accountId).extension(extensionId).greeting(greetingId).get(); +GlipTaskList result = rc.restapi(apiVersion).glip().tasks(taskId).patch(glipUpdateTask); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- Parameter `accountId` is optional with default value `~` -- Parameter `extensionId` is optional with default value `~` -- `result` is of type [CustomUserGreetingInfo](./src/main/java/com/ringcentral/definitions/CustomUserGreetingInfo.java) +- `glipUpdateTask` is of type [GlipUpdateTask](./src/main/java/com/ringcentral/definitions/GlipUpdateTask.java) +- `result` is of type [GlipTaskList](./src/main/java/com/ringcentral/definitions/GlipTaskList.java) -[Try it out](https://developer.ringcentral.com/api-reference#Greetings-readCustomGreeting) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Tasks-patchTask) in API Explorer. -## listMeetings -Get Scheduled Meetings +## listGlipTeams +Get Teams Name|Value -|- HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/extension/{extensionId}/meeting` -Rate Limit Group|`Light` -App Permission|`Meetings` -User Permission|`Meetings` +Endpoint|`/restapi/{apiVersion}/glip/teams` +Rate Limit Group|`Medium` +App Permission|`Glip` +User Permission|`Glip` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -MeetingsResource result = rc.restapi(apiVersion).account(accountId).extension(extensionId).meeting().list(); +GlipTeamsList result = rc.restapi(apiVersion).glip().teams().list(listGlipTeamsParameters); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- Parameter `accountId` is optional with default value `~` -- Parameter `extensionId` is optional with default value `~` -- `result` is of type [MeetingsResource](./src/main/java/com/ringcentral/definitions/MeetingsResource.java) +- `listGlipTeamsParameters` is of type [ListGlipTeamsParameters](./src/main/java/com/ringcentral/definitions/ListGlipTeamsParameters.java) +- `result` is of type [GlipTeamsList](./src/main/java/com/ringcentral/definitions/GlipTeamsList.java) -[Try it out](https://developer.ringcentral.com/api-reference#Meeting-Management-listMeetings) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Teams-listGlipTeams) in API Explorer. -## createMeeting -Create Meeting +## createGlipTeam +Create Team Name|Value -|- HTTP Method|`POST` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/extension/{extensionId}/meeting` +Endpoint|`/restapi/{apiVersion}/glip/teams` Rate Limit Group|`Medium` -App Permission|`Meetings` -User Permission|`Meetings` +App Permission|`Glip` +User Permission|`Glip` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -MeetingResponseResource result = rc.restapi(apiVersion).account(accountId).extension(extensionId).meeting().post(meetingRequestResource); +GlipTeamInfo result = rc.restapi(apiVersion).glip().teams().post(glipPostTeamBody); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- Parameter `accountId` is optional with default value `~` -- Parameter `extensionId` is optional with default value `~` -- `meetingRequestResource` is of type [MeetingRequestResource](./src/main/java/com/ringcentral/definitions/MeetingRequestResource.java) -- `result` is of type [MeetingResponseResource](./src/main/java/com/ringcentral/definitions/MeetingResponseResource.java) +- `glipPostTeamBody` is of type [GlipPostTeamBody](./src/main/java/com/ringcentral/definitions/GlipPostTeamBody.java) +- `result` is of type [GlipTeamInfo](./src/main/java/com/ringcentral/definitions/GlipTeamInfo.java) -[Try it out](https://developer.ringcentral.com/api-reference#Meeting-Management-createMeeting) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Teams-createGlipTeam) in API Explorer. -## readMeeting -Get Meeting Info +## readGlipTeam +Get Team Name|Value -|- HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/extension/{extensionId}/meeting/{meetingId}` +Endpoint|`/restapi/{apiVersion}/glip/teams/{chatId}` Rate Limit Group|`Light` -App Permission|`Meetings` -User Permission|`Meetings` +App Permission|`Glip` +User Permission|`Glip` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -MeetingResponseResource result = rc.restapi(apiVersion).account(accountId).extension(extensionId).meeting(meetingId).get(); +GlipTeamInfo result = rc.restapi(apiVersion).glip().teams(chatId).get(); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- Parameter `accountId` is optional with default value `~` -- Parameter `extensionId` is optional with default value `~` -- `result` is of type [MeetingResponseResource](./src/main/java/com/ringcentral/definitions/MeetingResponseResource.java) +- `result` is of type [GlipTeamInfo](./src/main/java/com/ringcentral/definitions/GlipTeamInfo.java) -[Try it out](https://developer.ringcentral.com/api-reference#Meeting-Management-readMeeting) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Teams-readGlipTeam) in API Explorer. -## updateMeeting -Update Meeting +## deleteGlipTeam +Delete Team Name|Value -|- -HTTP Method|`PUT` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/extension/{extensionId}/meeting/{meetingId}` +HTTP Method|`DELETE` +Endpoint|`/restapi/{apiVersion}/glip/teams/{chatId}` Rate Limit Group|`Medium` -App Permission|`Meetings` -User Permission|`Meetings` +App Permission|`Glip` +User Permission|`Glip` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -MeetingResponseResource result = rc.restapi(apiVersion).account(accountId).extension(extensionId).meeting(meetingId).put(meetingRequestResource); +String result = rc.restapi(apiVersion).glip().teams(chatId).delete(); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- Parameter `accountId` is optional with default value `~` -- Parameter `extensionId` is optional with default value `~` -- `meetingRequestResource` is of type [MeetingRequestResource](./src/main/java/com/ringcentral/definitions/MeetingRequestResource.java) -- `result` is of type [MeetingResponseResource](./src/main/java/com/ringcentral/definitions/MeetingResponseResource.java) +- `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Meeting-Management-updateMeeting) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Teams-deleteGlipTeam) in API Explorer. -## deleteMeeting -Delete Meeting +## patchGlipTeam +Update Team Name|Value -|- -HTTP Method|`DELETE` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/extension/{extensionId}/meeting/{meetingId}` +HTTP Method|`PATCH` +Endpoint|`/restapi/{apiVersion}/glip/teams/{chatId}` Rate Limit Group|`Medium` -App Permission|`Meetings` -User Permission|`Meetings` +App Permission|`Glip` +User Permission|`Glip` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -String result = rc.restapi(apiVersion).account(accountId).extension(extensionId).meeting(meetingId).delete(); +GlipTeamInfo result = rc.restapi(apiVersion).glip().teams(chatId).patch(glipPatchTeamBody); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- Parameter `accountId` is optional with default value `~` -- Parameter `extensionId` is optional with default value `~` -- `result` is an empty string +- `glipPatchTeamBody` is of type [GlipPatchTeamBody](./src/main/java/com/ringcentral/definitions/GlipPatchTeamBody.java) +- `result` is of type [GlipTeamInfo](./src/main/java/com/ringcentral/definitions/GlipTeamInfo.java) -[Try it out](https://developer.ringcentral.com/api-reference#Meeting-Management-deleteMeeting) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Teams-patchGlipTeam) in API Explorer. -## createMMS -Send MMS +## readGlipEvents +Get User Events List Name|Value -|- -HTTP Method|`POST` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/extension/{extensionId}/mms` +HTTP Method|`GET` +Endpoint|`/restapi/{apiVersion}/glip/events` Rate Limit Group|`Medium` -App Permission|`SMS` -User Permission|`OutboundSMS` +App Permission|`Glip` +User Permission|`Glip` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -GetSMSMessageInfoResponse result = rc.restapi(apiVersion).account(accountId).extension(extensionId).mms().post(CreateMMSMessage); +GlipEventsInfo result = rc.restapi(apiVersion).glip().events().list(readGlipEventsParameters); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- Parameter `accountId` is optional with default value `~` -- Parameter `extensionId` is optional with default value `~` -- `CreateMMSMessage` is of type [CreateMMSMessage](./src/main/java/com/ringcentral/definitions/CreateMMSMessage.java) -- `result` is of type [GetSMSMessageInfoResponse](./src/main/java/com/ringcentral/definitions/GetSMSMessageInfoResponse.java) +- `readGlipEventsParameters` is of type [ReadGlipEventsParameters](./src/main/java/com/ringcentral/definitions/ReadGlipEventsParameters.java) +- `result` is of type [GlipEventsInfo](./src/main/java/com/ringcentral/definitions/GlipEventsInfo.java) -[Try it out](https://developer.ringcentral.com/api-reference#SMS-createMMS) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Calendar-Events-readGlipEvents) in API Explorer. -## createSMSMessage -Send SMS +## createEvent +Create Event Name|Value -|- HTTP Method|`POST` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/extension/{extensionId}/sms` +Endpoint|`/restapi/{apiVersion}/glip/events` Rate Limit Group|`Medium` -App Permission|`SMS` -User Permission|`OutboundSMS` +App Permission|`Glip` +User Permission|`Glip` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -GetSMSMessageInfoResponse result = rc.restapi(apiVersion).account(accountId).extension(extensionId).sms().post(CreateSMSMessage); +GlipEventInfo result = rc.restapi(apiVersion).glip().events().post(glipEventCreate); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- Parameter `accountId` is optional with default value `~` -- Parameter `extensionId` is optional with default value `~` -- `CreateSMSMessage` is of type [CreateSMSMessage](./src/main/java/com/ringcentral/definitions/CreateSMSMessage.java) -- `result` is of type [GetSMSMessageInfoResponse](./src/main/java/com/ringcentral/definitions/GetSMSMessageInfoResponse.java) +- `glipEventCreate` is of type [GlipEventCreate](./src/main/java/com/ringcentral/definitions/GlipEventCreate.java) +- `result` is of type [GlipEventInfo](./src/main/java/com/ringcentral/definitions/GlipEventInfo.java) -[Try it out](https://developer.ringcentral.com/api-reference#SMS-createSMSMessage) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Calendar-Events-createEvent) in API Explorer. -## createCompanyGreeting -Create Company Greeting +## readEvent +Get Event Name|Value -|- -HTTP Method|`POST` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/greeting` +HTTP Method|`GET` +Endpoint|`/restapi/{apiVersion}/glip/events/{eventId}` Rate Limit Group|`Medium` -App Permission|`EditAccounts` -User Permission|`ReadUserInfo` +App Permission|`Glip` +User Permission|`Glip` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -CustomCompanyGreetingInfo result = rc.restapi(apiVersion).account(accountId).greeting().post(createCompanyGreetingRequest); +GlipEventInfo result = rc.restapi(apiVersion).glip().events(eventId).get(); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- Parameter `accountId` is optional with default value `~` -- `createCompanyGreetingRequest` is of type [CreateCompanyGreetingRequest](./src/main/java/com/ringcentral/definitions/CreateCompanyGreetingRequest.java) -- `result` is of type [CustomCompanyGreetingInfo](./src/main/java/com/ringcentral/definitions/CustomCompanyGreetingInfo.java) +- `result` is of type [GlipEventInfo](./src/main/java/com/ringcentral/definitions/GlipEventInfo.java) -[Try it out](https://developer.ringcentral.com/api-reference#Greetings-createCompanyGreeting) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Calendar-Events-readEvent) in API Explorer. -## createIVRMenu -Create IVR Menu +## updateEvent +Update Event Name|Value -|- -HTTP Method|`POST` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/ivr-menus` -Rate Limit Group|`Heavy` -App Permission|`EditAccounts` -User Permission|`AutoReceptionist` +HTTP Method|`PUT` +Endpoint|`/restapi/{apiVersion}/glip/events/{eventId}` +Rate Limit Group|`Medium` +App Permission|`Glip` +User Permission|`Glip` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -IVRMenuInfo result = rc.restapi(apiVersion).account(accountId).ivrMenus().post(iVRMenuInfo); +GlipEventInfo result = rc.restapi(apiVersion).glip().events(eventId).put(glipEventCreate); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- Parameter `accountId` is optional with default value `~` -- `iVRMenuInfo` is of type [IVRMenuInfo](./src/main/java/com/ringcentral/definitions/IVRMenuInfo.java) -- `result` is of type [IVRMenuInfo](./src/main/java/com/ringcentral/definitions/IVRMenuInfo.java) +- `glipEventCreate` is of type [GlipEventCreate](./src/main/java/com/ringcentral/definitions/GlipEventCreate.java) +- `result` is of type [GlipEventInfo](./src/main/java/com/ringcentral/definitions/GlipEventInfo.java) -[Try it out](https://developer.ringcentral.com/api-reference#IVR-createIVRMenu) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Calendar-Events-updateEvent) in API Explorer. -## readIVRMenu -Get IVR Menu +## deleteEvent +Delete Event Name|Value -|- -HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/ivr-menus/{ivrMenuId}` +HTTP Method|`DELETE` +Endpoint|`/restapi/{apiVersion}/glip/events/{eventId}` Rate Limit Group|`Medium` -App Permission|`ReadAccounts` -User Permission|`AutoReceptionist` +App Permission|`Glip` +User Permission|`Glip` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -IVRMenuInfo result = rc.restapi(apiVersion).account(accountId).ivrMenus(ivrMenuId).get(); +String result = rc.restapi(apiVersion).glip().events(eventId).delete(); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- Parameter `accountId` is optional with default value `~` -- `result` is of type [IVRMenuInfo](./src/main/java/com/ringcentral/definitions/IVRMenuInfo.java) +- `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#IVR-readIVRMenu) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Calendar-Events-deleteEvent) in API Explorer. -## updateIVRMenu -Update IVR Menu +## lockNote +Lock Note Name|Value -|- -HTTP Method|`PUT` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/ivr-menus/{ivrMenuId}` -Rate Limit Group|`Medium` -App Permission|`ReadAccounts` -User Permission|`AutoReceptionist` +HTTP Method|`POST` +Endpoint|`/restapi/{apiVersion}/glip/notes/{noteId}/lock` +Rate Limit Group|`Light` +App Permission|`Glip` +User Permission|`Glip` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -IVRMenuInfo result = rc.restapi(apiVersion).account(accountId).ivrMenus(ivrMenuId).put(iVRMenuInfo); +String result = rc.restapi(apiVersion).glip().notes(noteId).lock().post(); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- Parameter `accountId` is optional with default value `~` -- `iVRMenuInfo` is of type [IVRMenuInfo](./src/main/java/com/ringcentral/definitions/IVRMenuInfo.java) -- `result` is of type [IVRMenuInfo](./src/main/java/com/ringcentral/definitions/IVRMenuInfo.java) +- `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#IVR-updateIVRMenu) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Notes-lockNote) in API Explorer. -## listIVRPrompts -Get IVR Prompt List +## readGlipPerson +Get Person Name|Value -|- HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/ivr-prompts` -Rate Limit Group|`Medium` -App Permission|`ReadAccounts` -User Permission|`ReadCompanyGreetings` +Endpoint|`/restapi/{apiVersion}/glip/persons/{personId}` +Rate Limit Group|`Light` +App Permission|`Glip` +User Permission|`Glip` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -IVRPrompts result = rc.restapi(apiVersion).account(accountId).ivrPrompts().list(); +GlipPersonInfo result = rc.restapi(apiVersion).glip().persons(personId).get(); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- Parameter `accountId` is optional with default value `~` -- `result` is of type [IVRPrompts](./src/main/java/com/ringcentral/definitions/IVRPrompts.java) +- `result` is of type [GlipPersonInfo](./src/main/java/com/ringcentral/definitions/GlipPersonInfo.java) -[Try it out](https://developer.ringcentral.com/api-reference#IVR-listIVRPrompts) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Glip-Profile-readGlipPerson) in API Explorer. -## createIVRPrompt -Create IVR Prompts +## addGlipTeamMembers +Add Team Members Name|Value -|- HTTP Method|`POST` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/ivr-prompts` -Rate Limit Group|`Heavy` -App Permission|`EditAccounts` -User Permission|`EditCompanyGreetings` +Endpoint|`/restapi/{apiVersion}/glip/teams/{chatId}/add` +Rate Limit Group|`Medium` +App Permission|`Glip` +User Permission|`Glip` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -PromptInfo result = rc.restapi(apiVersion).account(accountId).ivrPrompts().post(createIVRPromptRequest); +String result = rc.restapi(apiVersion).glip().teams(chatId).add().post(glipPostMembersListBody); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- Parameter `accountId` is optional with default value `~` -- `createIVRPromptRequest` is of type [CreateIVRPromptRequest](./src/main/java/com/ringcentral/definitions/CreateIVRPromptRequest.java) -- `result` is of type [PromptInfo](./src/main/java/com/ringcentral/definitions/PromptInfo.java) +- `glipPostMembersListBody` is of type [GlipPostMembersListBody](./src/main/java/com/ringcentral/definitions/GlipPostMembersListBody.java) +- `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#IVR-createIVRPrompt) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Teams-addGlipTeamMembers) in API Explorer. -## readIVRPrompt -Get IVR Prompt +## removeGlipTeamMembers +Remove Team Members Name|Value -|- -HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/ivr-prompts/{promptId}` +HTTP Method|`POST` +Endpoint|`/restapi/{apiVersion}/glip/teams/{chatId}/remove` Rate Limit Group|`Medium` -App Permission|`ReadAccounts` -User Permission|`ReadCompanyGreetings` +App Permission|`Glip` +User Permission|`Glip` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -PromptInfo result = rc.restapi(apiVersion).account(accountId).ivrPrompts(promptId).get(); +String result = rc.restapi(apiVersion).glip().teams(chatId).remove().post(glipPostMembersIdsListBody); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- Parameter `accountId` is optional with default value `~` -- `result` is of type [PromptInfo](./src/main/java/com/ringcentral/definitions/PromptInfo.java) +- `glipPostMembersIdsListBody` is of type [GlipPostMembersIdsListBody](./src/main/java/com/ringcentral/definitions/GlipPostMembersIdsListBody.java) +- `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#IVR-readIVRPrompt) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Teams-removeGlipTeamMembers) in API Explorer. -## updateIVRPrompt -Update IVR Prompt +## listGlipWebhooks +Get Webhooks Name|Value -|- -HTTP Method|`PUT` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/ivr-prompts/{promptId}` +HTTP Method|`GET` +Endpoint|`/restapi/{apiVersion}/glip/webhooks` Rate Limit Group|`Medium` -App Permission|`EditAccounts` -User Permission|`EditCompanyGreetings` +App Permission|`Glip` +User Permission|`Glip` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -PromptInfo result = rc.restapi(apiVersion).account(accountId).ivrPrompts(promptId).put(updateIVRPromptRequest); +GlipWebhookList result = rc.restapi(apiVersion).glip().webhooks().list(); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- Parameter `accountId` is optional with default value `~` -- `updateIVRPromptRequest` is of type [UpdateIVRPromptRequest](./src/main/java/com/ringcentral/definitions/UpdateIVRPromptRequest.java) -- `result` is of type [PromptInfo](./src/main/java/com/ringcentral/definitions/PromptInfo.java) +- `result` is of type [GlipWebhookList](./src/main/java/com/ringcentral/definitions/GlipWebhookList.java) -[Try it out](https://developer.ringcentral.com/api-reference#IVR-updateIVRPrompt) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Glip-Webhooks-listGlipWebhooks) in API Explorer. -## deleteIVRPrompt -Delete IVR Prompt +## readGlipWebhook +Get Webhook Name|Value -|- -HTTP Method|`DELETE` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/ivr-prompts/{promptId}` -Rate Limit Group|`Heavy` -App Permission|`EditAccounts` -User Permission|`EditCompanyGreetings` +HTTP Method|`GET` +Endpoint|`/restapi/{apiVersion}/glip/webhooks/{webhookId}` +Rate Limit Group|`Medium` +App Permission|`Glip` +User Permission|`Glip` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -String result = rc.restapi(apiVersion).account(accountId).ivrPrompts(promptId).delete(); +GlipWebhookList result = rc.restapi(apiVersion).glip().webhooks(webhookId).get(); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- Parameter `accountId` is optional with default value `~` -- `result` is an empty string +- `result` is of type [GlipWebhookList](./src/main/java/com/ringcentral/definitions/GlipWebhookList.java) -[Try it out](https://developer.ringcentral.com/api-reference#IVR-deleteIVRPrompt) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Glip-Webhooks-readGlipWebhook) in API Explorer. -## listAccountPhoneNumbers -Get Company Phone Number List +## deleteGlipWebhook +Delete Webhook Name|Value -|- -HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/phone-number` -Rate Limit Group|`Heavy` -App Permission|`ReadAccounts` -User Permission|`ReadCompanyPhoneNumbers` +HTTP Method|`DELETE` +Endpoint|`/restapi/{apiVersion}/glip/webhooks/{webhookId}` +Rate Limit Group|`Medium` +App Permission|`Glip` +User Permission|`Glip` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -AccountPhoneNumbers result = rc.restapi(apiVersion).account(accountId).phoneNumber().list(listAccountPhoneNumbersParameters); +String result = rc.restapi(apiVersion).glip().webhooks(webhookId).delete(); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- Parameter `accountId` is optional with default value `~` -- `listAccountPhoneNumbersParameters` is of type [ListAccountPhoneNumbersParameters](./src/main/java/com/ringcentral/definitions/ListAccountPhoneNumbersParameters.java) -- `result` is of type [AccountPhoneNumbers](./src/main/java/com/ringcentral/definitions/AccountPhoneNumbers.java) +- `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Phone-Numbers-listAccountPhoneNumbers) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Glip-Webhooks-deleteGlipWebhook) in API Explorer. -## readAccountPhoneNumber -Get Phone Number +## listSubscriptions +Get Subscription List Name|Value -|- HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/phone-number/{phoneNumberId}` +Endpoint|`/restapi/{apiVersion}/subscription` Rate Limit Group|`Light` -App Permission|`ReadAccounts` -User Permission|`ReadCompanyPhoneNumbers` +App Permission|`N/A` +User Permission|`N/A` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -CompanyPhoneNumberInfo result = rc.restapi(apiVersion).account(accountId).phoneNumber(phoneNumberId).get(); +RecordsCollectionResourceSubscriptionResponse result = rc.restapi(apiVersion).subscription().list(); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- Parameter `accountId` is optional with default value `~` -- `result` is of type [CompanyPhoneNumberInfo](./src/main/java/com/ringcentral/definitions/CompanyPhoneNumberInfo.java) +- `result` is of type [RecordsCollectionResourceSubscriptionResponse](./src/main/java/com/ringcentral/definitions/RecordsCollectionResourceSubscriptionResponse.java) -[Try it out](https://developer.ringcentral.com/api-reference#Phone-Numbers-readAccountPhoneNumber) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Subscriptions-listSubscriptions) in API Explorer. -## readAccountPresence -Get User Presence Status List +## createSubscription +Create Subscription Name|Value -|- -HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/presence` -Rate Limit Group|`Heavy` -App Permission|`ReadPresence` -User Permission|`ReadPresenceStatus` +HTTP Method|`POST` +Endpoint|`/restapi/{apiVersion}/subscription` +Rate Limit Group|`Medium` +App Permission|`N/A` +User Permission|`N/A` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -AccountPresenceInfo result = rc.restapi(apiVersion).account(accountId).presence().get(readAccountPresenceParameters); +SubscriptionInfo result = rc.restapi(apiVersion).subscription().post(createSubscriptionRequest); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- Parameter `accountId` is optional with default value `~` -- `readAccountPresenceParameters` is of type [ReadAccountPresenceParameters](./src/main/java/com/ringcentral/definitions/ReadAccountPresenceParameters.java) -- `result` is of type [AccountPresenceInfo](./src/main/java/com/ringcentral/definitions/AccountPresenceInfo.java) +- `createSubscriptionRequest` is of type [CreateSubscriptionRequest](./src/main/java/com/ringcentral/definitions/CreateSubscriptionRequest.java) +- `result` is of type [SubscriptionInfo](./src/main/java/com/ringcentral/definitions/SubscriptionInfo.java) -[Try it out](https://developer.ringcentral.com/api-reference#Presence-readAccountPresence) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Subscriptions-createSubscription) in API Explorer. -## readCallRecording -Get Call Recording +## readSubscription +Get Subscription Name|Value -|- HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/recording/{recordingId}` -Rate Limit Group|`Heavy` -App Permission|`ReadCallRecording` -User Permission|`ReadCallRecording` +Endpoint|`/restapi/{apiVersion}/subscription/{subscriptionId}` +Rate Limit Group|`Light` +App Permission|`N/A` +User Permission|`N/A` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -GetCallRecordingResponse result = rc.restapi(apiVersion).account(accountId).recording(recordingId).get(); +SubscriptionInfo result = rc.restapi(apiVersion).subscription(subscriptionId).get(); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- Parameter `accountId` is optional with default value `~` -- `result` is of type [GetCallRecordingResponse](./src/main/java/com/ringcentral/definitions/GetCallRecordingResponse.java) +- `result` is of type [SubscriptionInfo](./src/main/java/com/ringcentral/definitions/SubscriptionInfo.java) -[Try it out](https://developer.ringcentral.com/api-reference#Call-Recordings-readCallRecording) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Subscriptions-readSubscription) in API Explorer. -## listCallRecordingData -Get Call Recordings Data +## updateSubscription +Update Subscription Name|Value -|- -HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/recording/{recordingId}/content` -Rate Limit Group|`Heavy` -App Permission|`ReadCallRecording` -User Permission|`ReadCallRecording` +HTTP Method|`PUT` +Endpoint|`/restapi/{apiVersion}/subscription/{subscriptionId}` +Rate Limit Group|`Medium` +App Permission|`N/A` +User Permission|`N/A` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -byte[] result = rc.restapi(apiVersion).account(accountId).recording(recordingId).content().get(); +SubscriptionInfo result = rc.restapi(apiVersion).subscription(subscriptionId).put(modifySubscriptionRequest); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- Parameter `accountId` is optional with default value `~` -- `result` is of type `byte[]` - -### ❗❗❗ Code sample above may not work - -Please refer to [Binary content downloading](/README.md#Binary-content-downloading). +- `modifySubscriptionRequest` is of type [ModifySubscriptionRequest](./src/main/java/com/ringcentral/definitions/ModifySubscriptionRequest.java) +- `result` is of type [SubscriptionInfo](./src/main/java/com/ringcentral/definitions/SubscriptionInfo.java) -[Try it out](https://developer.ringcentral.com/api-reference#Call-Recordings-listCallRecordingData) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Subscriptions-updateSubscription) in API Explorer. -## readAccountServiceInfo -Get Account Service Info +## deleteSubscription +Cancel Subscription Name|Value -|- -HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/service-info` -Rate Limit Group|`Light` -App Permission|`ReadAccounts` -User Permission|`ReadServicePlanInfo` +HTTP Method|`DELETE` +Endpoint|`/restapi/{apiVersion}/subscription/{subscriptionId}` +Rate Limit Group|`Medium` +App Permission|`N/A` +User Permission|`N/A` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -GetServiceInfoResponse result = rc.restapi(apiVersion).account(accountId).serviceInfo().get(); +String result = rc.restapi(apiVersion).subscription(subscriptionId).delete(); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- Parameter `accountId` is optional with default value `~` -- `result` is of type [GetServiceInfoResponse](./src/main/java/com/ringcentral/definitions/GetServiceInfoResponse.java) +- `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Company-readAccountServiceInfo) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Subscriptions-deleteSubscription) in API Explorer. -## listUserTemplates -Get User Template List +## searchViaPost2 +Search/List Users Name|Value -|- -HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/templates` -Rate Limit Group|`Medium` +HTTP Method|`POST` +Endpoint|`/scim/{version}/Users/dotSearch` +Rate Limit Group|`Light` App Permission|`ReadAccounts` -User Permission|`ReadCompanyInfo` +User Permission|`N/A` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -UserTemplates result = rc.restapi(apiVersion).account(accountId).templates().list(listUserTemplatesParameters); +UserSearchResponse result = rc.scim(version).users().dotSearch().post(searchRequest); rc.revoke(); ``` -- Parameter `apiVersion` is optional with default value `v1.0` -- Parameter `accountId` is optional with default value `~` -- `listUserTemplatesParameters` is of type [ListUserTemplatesParameters](./src/main/java/com/ringcentral/definitions/ListUserTemplatesParameters.java) -- `result` is of type [UserTemplates](./src/main/java/com/ringcentral/definitions/UserTemplates.java) +- Parameter `version` is optional with default value `v2` +- `searchRequest` is of type [SearchRequest](./src/main/java/com/ringcentral/definitions/SearchRequest.java) +- `result` is of type [UserSearchResponse](./src/main/java/com/ringcentral/definitions/UserSearchResponse.java) -[Try it out](https://developer.ringcentral.com/api-reference#Extensions-listUserTemplates) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#SCIM-searchViaPost2) in API Explorer. -## readUserTemplate -Get User Template +## joinGlipTeam +Join Team Name|Value -|- -HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/templates/{templateId}` -Rate Limit Group|`Light` -App Permission|`ReadAccounts` -User Permission|`ReadCompanyInfo` +HTTP Method|`POST` +Endpoint|`/restapi/{apiVersion}/glip/teams/{chatId}/join` +Rate Limit Group|`Medium` +App Permission|`Glip` +User Permission|`Glip` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -TemplateInfo result = rc.restapi(apiVersion).account(accountId).templates(templateId).get(); +String result = rc.restapi(apiVersion).glip().teams(chatId).join().post(); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- Parameter `accountId` is optional with default value `~` -- `result` is of type [TemplateInfo](./src/main/java/com/ringcentral/definitions/TemplateInfo.java) +- `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Extensions-readUserTemplate) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Teams-joinGlipTeam) in API Explorer. -## createSIPRegistration -Register Device +## readGlipPreferences +Get Preferences Name|Value -|- -HTTP Method|`POST` -Endpoint|`/restapi/{apiVersion}/client-info/sip-provision` -Rate Limit Group|`Heavy` -App Permission|`VoipCalling` -User Permission|`N/A` +HTTP Method|`GET` +Endpoint|`/restapi/{apiVersion}/glip/preferences` +Rate Limit Group|`Medium` +App Permission|`Glip` +User Permission|`Glip` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -CreateSipRegistrationResponse result = rc.restapi(apiVersion).clientInfo().sipProvision().post(createSipRegistrationRequest); +GlipPreferencesInfo result = rc.restapi(apiVersion).glip().preferences().get(); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `createSipRegistrationRequest` is of type [CreateSipRegistrationRequest](./src/main/java/com/ringcentral/definitions/CreateSipRegistrationRequest.java) -- `result` is of type [CreateSipRegistrationResponse](./src/main/java/com/ringcentral/definitions/CreateSipRegistrationResponse.java) +- `result` is of type [GlipPreferencesInfo](./src/main/java/com/ringcentral/definitions/GlipPreferencesInfo.java) -[Try it out](https://developer.ringcentral.com/api-reference#Device-SIP-Registration-createSIPRegistration) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Glip-Profile-readGlipPreferences) in API Explorer. -## listCountries -Get Country List +## leaveGlipTeam +Leave Team Name|Value -|- -HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/dictionary/country` -Rate Limit Group|`Light` -App Permission|`N/A` -User Permission|`N/A` +HTTP Method|`POST` +Endpoint|`/restapi/{apiVersion}/glip/teams/{chatId}/leave` +Rate Limit Group|`Medium` +App Permission|`Glip` +User Permission|`Glip` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -GetCountryListResponse result = rc.restapi(apiVersion).dictionary().country().list(listCountriesParameters); +String result = rc.restapi(apiVersion).glip().teams(chatId).leave().post(); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `listCountriesParameters` is of type [ListCountriesParameters](./src/main/java/com/ringcentral/definitions/ListCountriesParameters.java) -- `result` is of type [GetCountryListResponse](./src/main/java/com/ringcentral/definitions/GetCountryListResponse.java) +- `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Regional-Settings-listCountries) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Teams-leaveGlipTeam) in API Explorer. -## readCountry -Get Country +## createA2PSMS +Send A2P SMS Name|Value -|- -HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/dictionary/country/{countryId}` +HTTP Method|`POST` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/a2p-sms/batch` Rate Limit Group|`Light` -App Permission|`N/A` +App Permission|`A2PSMS` User Permission|`N/A` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -GetCountryInfoDictionaryResponse result = rc.restapi(apiVersion).dictionary().country(countryId).get(); +CreateMessageBatchResponse result = rc.restapi(apiVersion).account(accountId).a2pSms().batch().post(createSMSMessageBatchRequest); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `result` is of type [GetCountryInfoDictionaryResponse](./src/main/java/com/ringcentral/definitions/GetCountryInfoDictionaryResponse.java) +- Parameter `accountId` is optional with default value `~` +- `createSMSMessageBatchRequest` is of type [CreateSMSMessageBatchRequest](./src/main/java/com/ringcentral/definitions/CreateSMSMessageBatchRequest.java) +- `result` is of type [CreateMessageBatchResponse](./src/main/java/com/ringcentral/definitions/CreateMessageBatchResponse.java) -[Try it out](https://developer.ringcentral.com/api-reference#Regional-Settings-readCountry) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#High-Volume-SMS-createA2PSMS) in API Explorer. -## listFaxCoverPages -Get Fax Cover Page List +## readA2PBatch +Get A2P SMS Batch Name|Value -|- HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/dictionary/fax-cover-page` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/a2p-sms/batch/{batchId}` Rate Limit Group|`Light` -App Permission|`N/A` +App Permission|`A2PSMS` User Permission|`N/A` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -ListFaxCoverPagesResponse result = rc.restapi(apiVersion).dictionary().faxCoverPage().get(listFaxCoverPagesParameters); +MessageBatchResponse result = rc.restapi(apiVersion).account(accountId).a2pSms().batch(batchId).get(); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `listFaxCoverPagesParameters` is of type [ListFaxCoverPagesParameters](./src/main/java/com/ringcentral/definitions/ListFaxCoverPagesParameters.java) -- `result` is of type [ListFaxCoverPagesResponse](./src/main/java/com/ringcentral/definitions/ListFaxCoverPagesResponse.java) +- Parameter `accountId` is optional with default value `~` +- `result` is of type [MessageBatchResponse](./src/main/java/com/ringcentral/definitions/MessageBatchResponse.java) -[Try it out](https://developer.ringcentral.com/api-reference#Fax-listFaxCoverPages) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#High-Volume-SMS-readA2PBatch) in API Explorer. -## listStandardGreetings -Get Standard Greeting List +## listA2PSMS +Get A2P SMS List Name|Value -|- HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/dictionary/greeting` -Rate Limit Group|`Medium` -App Permission|`N/A` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/a2p-sms/messages` +Rate Limit Group|`Light` +App Permission|`A2PSMS` User Permission|`N/A` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -DictionaryGreetingList result = rc.restapi(apiVersion).dictionary().greeting().list(listStandardGreetingsParameters); +MessageListResponse result = rc.restapi(apiVersion).account(accountId).a2pSms().messages().list(listA2PSMSParameters); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `listStandardGreetingsParameters` is of type [ListStandardGreetingsParameters](./src/main/java/com/ringcentral/definitions/ListStandardGreetingsParameters.java) -- `result` is of type [DictionaryGreetingList](./src/main/java/com/ringcentral/definitions/DictionaryGreetingList.java) +- Parameter `accountId` is optional with default value `~` +- `listA2PSMSParameters` is of type [ListA2PSMSParameters](./src/main/java/com/ringcentral/definitions/ListA2PSMSParameters.java) +- `result` is of type [MessageListResponse](./src/main/java/com/ringcentral/definitions/MessageListResponse.java) -[Try it out](https://developer.ringcentral.com/api-reference#Greetings-listStandardGreetings) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#High-Volume-SMS-listA2PSMS) in API Explorer. -## readStandardGreeting -Get Standard Greeting +## readA2PSMS +Get A2P SMS Name|Value -|- HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/dictionary/greeting/{greetingId}` -Rate Limit Group|`Medium` -App Permission|`N/A` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/a2p-sms/messages/{messageId}` +Rate Limit Group|`Light` +App Permission|`A2PSMS` User Permission|`N/A` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -DictionaryGreetingInfo result = rc.restapi(apiVersion).dictionary().greeting(greetingId).get(); +MessageDetailsResponse result = rc.restapi(apiVersion).account(accountId).a2pSms().messages(messageId).get(); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `result` is of type [DictionaryGreetingInfo](./src/main/java/com/ringcentral/definitions/DictionaryGreetingInfo.java) +- Parameter `accountId` is optional with default value `~` +- `result` is of type [MessageDetailsResponse](./src/main/java/com/ringcentral/definitions/MessageDetailsResponse.java) -[Try it out](https://developer.ringcentral.com/api-reference#Greetings-readStandardGreeting) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#High-Volume-SMS-readA2PSMS) in API Explorer. -## listLanguages -Get Language List +## readA2PSMSOptOuts +Get Opted Out Numbers Name|Value -|- HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/dictionary/language` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/a2p-sms/opt-outs` Rate Limit Group|`Light` -App Permission|`N/A` +App Permission|`A2PSMS` User Permission|`N/A` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -LanguageList result = rc.restapi(apiVersion).dictionary().language().list(); +OptOutListResponse result = rc.restapi(apiVersion).account(accountId).a2pSms().optOuts().get(readA2PSMSOptOutsParameters); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `result` is of type [LanguageList](./src/main/java/com/ringcentral/definitions/LanguageList.java) +- Parameter `accountId` is optional with default value `~` +- `readA2PSMSOptOutsParameters` is of type [ReadA2PSMSOptOutsParameters](./src/main/java/com/ringcentral/definitions/ReadA2PSMSOptOutsParameters.java) +- `result` is of type [OptOutListResponse](./src/main/java/com/ringcentral/definitions/OptOutListResponse.java) -[Try it out](https://developer.ringcentral.com/api-reference#Regional-Settings-listLanguages) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#High-Volume-SMS-readA2PSMSOptOuts) in API Explorer. -## readLanguage -Get Language +## listCompanyActiveCalls +Get Company Active Calls Name|Value -|- HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/dictionary/language/{languageId}` -Rate Limit Group|`Light` -App Permission|`N/A` -User Permission|`N/A` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/active-calls` +Rate Limit Group|`Heavy` +App Permission|`ReadCallLog` +User Permission|`ReadCallLog` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -LanguageInfo result = rc.restapi(apiVersion).dictionary().language(languageId).get(); +CompanyActiveCallsResponse result = rc.restapi(apiVersion).account(accountId).activeCalls().get(listCompanyActiveCallsParameters); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `result` is of type [LanguageInfo](./src/main/java/com/ringcentral/definitions/LanguageInfo.java) +- Parameter `accountId` is optional with default value `~` +- `listCompanyActiveCallsParameters` is of type [ListCompanyActiveCallsParameters](./src/main/java/com/ringcentral/definitions/ListCompanyActiveCallsParameters.java) +- `result` is of type [CompanyActiveCallsResponse](./src/main/java/com/ringcentral/definitions/CompanyActiveCallsResponse.java) -[Try it out](https://developer.ringcentral.com/api-reference#Regional-Settings-readLanguage) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Log-listCompanyActiveCalls) in API Explorer. -## listLocations -Get Location List +## listCompanyAnsweringRules +Get Company Call Handling Rule List Name|Value -|- HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/dictionary/location` -Rate Limit Group|`Light` -App Permission|`N/A` -User Permission|`N/A` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/answering-rule` +Rate Limit Group|`Medium` +App Permission|`ReadAccounts` +User Permission|`ReadCompanyAnsweringRules` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -GetLocationListResponse result = rc.restapi(apiVersion).dictionary().location().get(listLocationsParameters); +CompanyAnsweringRuleList result = rc.restapi(apiVersion).account(accountId).answeringRule().list(listCompanyAnsweringRulesParameters); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `listLocationsParameters` is of type [ListLocationsParameters](./src/main/java/com/ringcentral/definitions/ListLocationsParameters.java) -- `result` is of type [GetLocationListResponse](./src/main/java/com/ringcentral/definitions/GetLocationListResponse.java) +- Parameter `accountId` is optional with default value `~` +- `listCompanyAnsweringRulesParameters` is of type [ListCompanyAnsweringRulesParameters](./src/main/java/com/ringcentral/definitions/ListCompanyAnsweringRulesParameters.java) +- `result` is of type [CompanyAnsweringRuleList](./src/main/java/com/ringcentral/definitions/CompanyAnsweringRuleList.java) -[Try it out](https://developer.ringcentral.com/api-reference#Regional-Settings-listLocations) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Handling-Rules-listCompanyAnsweringRules) in API Explorer. -## listStates -Get States List +## createCompanyAnsweringRule +Create Company Call Handling Rule Name|Value -|- -HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/dictionary/state` -Rate Limit Group|`Light` -App Permission|`N/A` -User Permission|`N/A` +HTTP Method|`POST` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/answering-rule` +Rate Limit Group|`Medium` +App Permission|`EditAccounts` +User Permission|`EditCompanyAnsweringRules` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -GetStateListResponse result = rc.restapi(apiVersion).dictionary().state().list(listStatesParameters); +CompanyAnsweringRuleInfo result = rc.restapi(apiVersion).account(accountId).answeringRule().post(companyAnsweringRuleRequest); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `listStatesParameters` is of type [ListStatesParameters](./src/main/java/com/ringcentral/definitions/ListStatesParameters.java) -- `result` is of type [GetStateListResponse](./src/main/java/com/ringcentral/definitions/GetStateListResponse.java) +- Parameter `accountId` is optional with default value `~` +- `companyAnsweringRuleRequest` is of type [CompanyAnsweringRuleRequest](./src/main/java/com/ringcentral/definitions/CompanyAnsweringRuleRequest.java) +- `result` is of type [CompanyAnsweringRuleInfo](./src/main/java/com/ringcentral/definitions/CompanyAnsweringRuleInfo.java) -[Try it out](https://developer.ringcentral.com/api-reference#Regional-Settings-listStates) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Handling-Rules-createCompanyAnsweringRule) in API Explorer. -## readState -Get State +## readCompanyAnsweringRule +Get Company Call Handling Rule Name|Value -|- HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/dictionary/state/{stateId}` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/answering-rule/{ruleId}` Rate Limit Group|`Light` -App Permission|`N/A` -User Permission|`N/A` +App Permission|`ReadAccounts` +User Permission|`ReadCompanyAnsweringRules` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -GetStateInfoResponse result = rc.restapi(apiVersion).dictionary().state(stateId).get(); +CompanyAnsweringRuleInfo result = rc.restapi(apiVersion).account(accountId).answeringRule(ruleId).get(); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `result` is of type [GetStateInfoResponse](./src/main/java/com/ringcentral/definitions/GetStateInfoResponse.java) +- Parameter `accountId` is optional with default value `~` +- `result` is of type [CompanyAnsweringRuleInfo](./src/main/java/com/ringcentral/definitions/CompanyAnsweringRuleInfo.java) -[Try it out](https://developer.ringcentral.com/api-reference#Regional-Settings-readState) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Handling-Rules-readCompanyAnsweringRule) in API Explorer. -## listTimezones -Get Timezone List +## updateCompanyAnsweringRule +Update Company Call Handling Rule Name|Value -|- -HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/dictionary/timezone` -Rate Limit Group|`Light` -App Permission|`N/A` -User Permission|`N/A` +HTTP Method|`PUT` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/answering-rule/{ruleId}` +Rate Limit Group|`Medium` +App Permission|`EditAccounts` +User Permission|`EditCompanyAnsweringRules` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -GetTimezoneListResponse result = rc.restapi(apiVersion).dictionary().timezone().list(listTimezonesParameters); +CompanyAnsweringRuleInfo result = rc.restapi(apiVersion).account(accountId).answeringRule(ruleId).put(companyAnsweringRuleUpdate); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `listTimezonesParameters` is of type [ListTimezonesParameters](./src/main/java/com/ringcentral/definitions/ListTimezonesParameters.java) -- `result` is of type [GetTimezoneListResponse](./src/main/java/com/ringcentral/definitions/GetTimezoneListResponse.java) +- Parameter `accountId` is optional with default value `~` +- `companyAnsweringRuleUpdate` is of type [CompanyAnsweringRuleUpdate](./src/main/java/com/ringcentral/definitions/CompanyAnsweringRuleUpdate.java) +- `result` is of type [CompanyAnsweringRuleInfo](./src/main/java/com/ringcentral/definitions/CompanyAnsweringRuleInfo.java) -[Try it out](https://developer.ringcentral.com/api-reference#Regional-Settings-listTimezones) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Handling-Rules-updateCompanyAnsweringRule) in API Explorer. -## readTimezone -Get Timezone +## deleteCompanyAnsweringRule +Delete Company Call Handling Rule Name|Value -|- -HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/dictionary/timezone/{timezoneId}` -Rate Limit Group|`Light` -App Permission|`N/A` -User Permission|`N/A` +HTTP Method|`DELETE` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/answering-rule/{ruleId}` +Rate Limit Group|`Medium` +App Permission|`EditAccounts` +User Permission|`EditCompanyAnsweringRules` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -GetTimezoneInfoResponse result = rc.restapi(apiVersion).dictionary().timezone(timezoneId).get(readTimezoneParameters); +String result = rc.restapi(apiVersion).account(accountId).answeringRule(ruleId).delete(); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `readTimezoneParameters` is of type [ReadTimezoneParameters](./src/main/java/com/ringcentral/definitions/ReadTimezoneParameters.java) -- `result` is of type [GetTimezoneInfoResponse](./src/main/java/com/ringcentral/definitions/GetTimezoneInfoResponse.java) +- Parameter `accountId` is optional with default value `~` +- `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Regional-Settings-readTimezone) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Handling-Rules-deleteCompanyAnsweringRule) in API Explorer. -## listGlipChats -Get Chats +## readAccountBusinessAddress +Get Account Business Address Name|Value -|- HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/glip/chats` -Rate Limit Group|`Medium` -App Permission|`Glip` -User Permission|`Glip` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/business-address` +Rate Limit Group|`Light` +App Permission|`ReadAccounts` +User Permission|`ReadCompanyInfo` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -GlipChatsList result = rc.restapi(apiVersion).glip().chats().list(listGlipChatsParameters); +AccountBusinessAddressResource result = rc.restapi(apiVersion).account(accountId).businessAddress().get(); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `listGlipChatsParameters` is of type [ListGlipChatsParameters](./src/main/java/com/ringcentral/definitions/ListGlipChatsParameters.java) -- `result` is of type [GlipChatsList](./src/main/java/com/ringcentral/definitions/GlipChatsList.java) +- Parameter `accountId` is optional with default value `~` +- `result` is of type [AccountBusinessAddressResource](./src/main/java/com/ringcentral/definitions/AccountBusinessAddressResource.java) -[Try it out](https://developer.ringcentral.com/api-reference#Chats-listGlipChats) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Company-readAccountBusinessAddress) in API Explorer. -## readGlipChat -Get Chat +## updateAccountBusinessAddress +Update Company Business Address Name|Value -|- -HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/glip/chats/{chatId}` -Rate Limit Group|`Light` -App Permission|`Glip` -User Permission|`Glip` +HTTP Method|`PUT` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/business-address` +Rate Limit Group|`Medium` +App Permission|`EditAccounts` +User Permission|`EditCompanyInfo` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -GlipChatInfo result = rc.restapi(apiVersion).glip().chats(chatId).get(); +AccountBusinessAddressResource result = rc.restapi(apiVersion).account(accountId).businessAddress().put(modifyAccountBusinessAddressRequest); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `result` is of type [GlipChatInfo](./src/main/java/com/ringcentral/definitions/GlipChatInfo.java) +- Parameter `accountId` is optional with default value `~` +- `modifyAccountBusinessAddressRequest` is of type [ModifyAccountBusinessAddressRequest](./src/main/java/com/ringcentral/definitions/ModifyAccountBusinessAddressRequest.java) +- `result` is of type [AccountBusinessAddressResource](./src/main/java/com/ringcentral/definitions/AccountBusinessAddressResource.java) -[Try it out](https://developer.ringcentral.com/api-reference#Chats-readGlipChat) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Company-updateAccountBusinessAddress) in API Explorer. -## favoriteGlipChat -Add Chat to Favorites +## readCompanyBusinessHours +Get Company Business Hours Name|Value -|- -HTTP Method|`POST` -Endpoint|`/restapi/{apiVersion}/glip/chats/{chatId}/favorite` -Rate Limit Group|`Medium` -App Permission|`Glip` -User Permission|`Glip` +HTTP Method|`GET` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/business-hours` +Rate Limit Group|`Light` +App Permission|`ReadAccounts` +User Permission|`ReadUserAnsweringRules` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -String result = rc.restapi(apiVersion).glip().chats(chatId).favorite().post(); +CompanyBusinessHours result = rc.restapi(apiVersion).account(accountId).businessHours().get(); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `result` is an empty string +- Parameter `accountId` is optional with default value `~` +- `result` is of type [CompanyBusinessHours](./src/main/java/com/ringcentral/definitions/CompanyBusinessHours.java) -[Try it out](https://developer.ringcentral.com/api-reference#Chats-favoriteGlipChat) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Business-Hours-readCompanyBusinessHours) in API Explorer. -## listChatNotes -Get Chat Notes +## updateCompanyBusinessHours +Update Company Business Hours Name|Value -|- -HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/glip/chats/{chatId}/notes` -Rate Limit Group|`Heavy` -App Permission|`Glip` -User Permission|`Glip` +HTTP Method|`PUT` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/business-hours` +Rate Limit Group|`Medium` +App Permission|`EditExtensions` +User Permission|`EditUserAnsweringRules` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -GlipNotesInfo result = rc.restapi(apiVersion).glip().chats(chatId).notes().get(listChatNotesParameters); +CompanyBusinessHours result = rc.restapi(apiVersion).account(accountId).businessHours().put(companyBusinessHoursUpdateRequest); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `listChatNotesParameters` is of type [ListChatNotesParameters](./src/main/java/com/ringcentral/definitions/ListChatNotesParameters.java) -- `result` is of type [GlipNotesInfo](./src/main/java/com/ringcentral/definitions/GlipNotesInfo.java) +- Parameter `accountId` is optional with default value `~` +- `companyBusinessHoursUpdateRequest` is of type [CompanyBusinessHoursUpdateRequest](./src/main/java/com/ringcentral/definitions/CompanyBusinessHoursUpdateRequest.java) +- `result` is of type [CompanyBusinessHours](./src/main/java/com/ringcentral/definitions/CompanyBusinessHours.java) -[Try it out](https://developer.ringcentral.com/api-reference#Notes-listChatNotes) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Business-Hours-updateCompanyBusinessHours) in API Explorer. -## createChatNote -Create Note +## syncAccountCallLog +Sync Company Call Log Name|Value -|- -HTTP Method|`POST` -Endpoint|`/restapi/{apiVersion}/glip/chats/{chatId}/notes` -Rate Limit Group|`Medium` -App Permission|`Glip` -User Permission|`Glip` +HTTP Method|`GET` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/call-log-sync` +Rate Limit Group|`Heavy` +App Permission|`ReadCallLog` +User Permission|`ReadCallLog` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -GlipNoteInfo result = rc.restapi(apiVersion).glip().chats(chatId).notes().post(glipNoteCreate); +AccountCallLogSyncResponse result = rc.restapi(apiVersion).account(accountId).callLogSync().get(syncAccountCallLogParameters); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `glipNoteCreate` is of type [GlipNoteCreate](./src/main/java/com/ringcentral/definitions/GlipNoteCreate.java) -- `result` is of type [GlipNoteInfo](./src/main/java/com/ringcentral/definitions/GlipNoteInfo.java) +- Parameter `accountId` is optional with default value `~` +- `syncAccountCallLogParameters` is of type [SyncAccountCallLogParameters](./src/main/java/com/ringcentral/definitions/SyncAccountCallLogParameters.java) +- `result` is of type [AccountCallLogSyncResponse](./src/main/java/com/ringcentral/definitions/AccountCallLogSyncResponse.java) -[Try it out](https://developer.ringcentral.com/api-reference#Notes-createChatNote) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Log-syncAccountCallLog) in API Explorer. -## readGlipPosts -Get Posts +## listCallQueues +Get Call Queue List Name|Value -|- HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/glip/chats/{chatId}/posts` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/call-queues` Rate Limit Group|`Medium` -App Permission|`Glip` -User Permission|`Glip` +App Permission|`ReadAccounts` +User Permission|`ReadExtensions` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -GlipPostsList result = rc.restapi(apiVersion).glip().chats(chatId).posts().list(readGlipPostsParameters); +CallQueues result = rc.restapi(apiVersion).account(accountId).callQueues().list(listCallQueuesParameters); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `readGlipPostsParameters` is of type [ReadGlipPostsParameters](./src/main/java/com/ringcentral/definitions/ReadGlipPostsParameters.java) -- `result` is of type [GlipPostsList](./src/main/java/com/ringcentral/definitions/GlipPostsList.java) - -[Try it out](https://developer.ringcentral.com/api-reference#Posts-readGlipPosts) in API Explorer. +- Parameter `accountId` is optional with default value `~` +- `listCallQueuesParameters` is of type [ListCallQueuesParameters](./src/main/java/com/ringcentral/definitions/ListCallQueuesParameters.java) +- `result` is of type [CallQueues](./src/main/java/com/ringcentral/definitions/CallQueues.java) +[Try it out](https://developer.ringcentral.com/api-reference#Call-Queues-listCallQueues) in API Explorer. -## createGlipPost -Create Post + +## readCallQueueInfo +Get Call Queue Name|Value -|- -HTTP Method|`POST` -Endpoint|`/restapi/{apiVersion}/glip/chats/{chatId}/posts` -Rate Limit Group|`Medium` -App Permission|`Glip` -User Permission|`Glip` +HTTP Method|`GET` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/call-queues/{groupId}` +Rate Limit Group|`Light` +App Permission|`ReadAccounts` +User Permission|`ReadExtensions` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -GlipPostInfo result = rc.restapi(apiVersion).glip().chats(chatId).posts().post(glipPostPostBody); +CallQueueDetails result = rc.restapi(apiVersion).account(accountId).callQueues(groupId).get(); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `glipPostPostBody` is of type [GlipPostPostBody](./src/main/java/com/ringcentral/definitions/GlipPostPostBody.java) -- `result` is of type [GlipPostInfo](./src/main/java/com/ringcentral/definitions/GlipPostInfo.java) +- Parameter `accountId` is optional with default value `~` +- `result` is of type [CallQueueDetails](./src/main/java/com/ringcentral/definitions/CallQueueDetails.java) -[Try it out](https://developer.ringcentral.com/api-reference#Posts-createGlipPost) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Queues-readCallQueueInfo) in API Explorer. -## readGlipPost -Get Post +## updateCallQueueInfo +Update Call Queue + +Name|Value +-|- +HTTP Method|`PUT` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/call-queues/{groupId}` +Rate Limit Group|`Light` +App Permission|`EditExtensions` +User Permission|`EditUserInfo` + +```java +RestClient rc = new RestClient(clientID, clientSecret, serverURL); +rc.authorize(username, extension, password); +CallQueueDetails result = rc.restapi(apiVersion).account(accountId).callQueues(groupId).put(callQueueUpdateDetails); +rc.revoke(); +``` + +- Parameter `apiVersion` is optional with default value `v1.0` +- Parameter `accountId` is optional with default value `~` +- `callQueueUpdateDetails` is of type [CallQueueUpdateDetails](./src/main/java/com/ringcentral/definitions/CallQueueUpdateDetails.java) +- `result` is of type [CallQueueDetails](./src/main/java/com/ringcentral/definitions/CallQueueDetails.java) + +[Try it out](https://developer.ringcentral.com/api-reference#Call-Queues-updateCallQueueInfo) in API Explorer. + + +## readCallRecordingSettings +Get Call Recording Settings Name|Value -|- HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/glip/chats/{chatId}/posts/{postId}` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/call-recording` Rate Limit Group|`Light` -App Permission|`Glip` -User Permission|`Glip` +App Permission|`ReadAccounts` +User Permission|`ReadCompanyInfo` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -GlipPostInfo result = rc.restapi(apiVersion).glip().chats(chatId).posts(postId).get(); +CallRecordingSettingsResource result = rc.restapi(apiVersion).account(accountId).callRecording().get(); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `result` is of type [GlipPostInfo](./src/main/java/com/ringcentral/definitions/GlipPostInfo.java) +- Parameter `accountId` is optional with default value `~` +- `result` is of type [CallRecordingSettingsResource](./src/main/java/com/ringcentral/definitions/CallRecordingSettingsResource.java) -[Try it out](https://developer.ringcentral.com/api-reference#Posts-readGlipPost) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Recording-Settings-readCallRecordingSettings) in API Explorer. -## deleteGlipPost -Delete Post +## updateCallRecordingSettings +Update Call Recording Settings Name|Value -|- -HTTP Method|`DELETE` -Endpoint|`/restapi/{apiVersion}/glip/chats/{chatId}/posts/{postId}` +HTTP Method|`PUT` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/call-recording` Rate Limit Group|`Medium` -App Permission|`Glip` -User Permission|`Glip` +App Permission|`EditAccounts` +User Permission|`EditCompanyInfo` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -String result = rc.restapi(apiVersion).glip().chats(chatId).posts(postId).delete(); +CallRecordingSettingsResource result = rc.restapi(apiVersion).account(accountId).callRecording().put(callRecordingSettingsResource); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `result` is an empty string +- Parameter `accountId` is optional with default value `~` +- `callRecordingSettingsResource` is of type [CallRecordingSettingsResource](./src/main/java/com/ringcentral/definitions/CallRecordingSettingsResource.java) +- `result` is of type [CallRecordingSettingsResource](./src/main/java/com/ringcentral/definitions/CallRecordingSettingsResource.java) -[Try it out](https://developer.ringcentral.com/api-reference#Posts-deleteGlipPost) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Recording-Settings-updateCallRecordingSettings) in API Explorer. -## patchGlipPost -Update Post +## listCustomFields +Get Custom Field List Name|Value -|- -HTTP Method|`PATCH` -Endpoint|`/restapi/{apiVersion}/glip/chats/{chatId}/posts/{postId}` -Rate Limit Group|`Medium` -App Permission|`Glip` -User Permission|`Glip` +HTTP Method|`GET` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/custom-fields` +Rate Limit Group|`Light` +App Permission|`ReadAccounts` +User Permission|`ReadUserInfo` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -GlipPostInfo result = rc.restapi(apiVersion).glip().chats(chatId).posts(postId).patch(glipPatchPostBody); +CustomFieldsResource result = rc.restapi(apiVersion).account(accountId).customFields().get(); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `glipPatchPostBody` is of type [GlipPatchPostBody](./src/main/java/com/ringcentral/definitions/GlipPatchPostBody.java) -- `result` is of type [GlipPostInfo](./src/main/java/com/ringcentral/definitions/GlipPostInfo.java) +- Parameter `accountId` is optional with default value `~` +- `result` is of type [CustomFieldsResource](./src/main/java/com/ringcentral/definitions/CustomFieldsResource.java) -[Try it out](https://developer.ringcentral.com/api-reference#Posts-patchGlipPost) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Custom-Fields-listCustomFields) in API Explorer. -## markChatRead -Mark Chat as Read +## createCustomField +Create Custom Field Name|Value -|- HTTP Method|`POST` -Endpoint|`/restapi/{apiVersion}/glip/chats/{chatId}/read` -Rate Limit Group|`Medium` -App Permission|`GlipInternal` -User Permission|`N/A` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/custom-fields` +Rate Limit Group|`Light` +App Permission|`EditAccounts` +User Permission|`Users` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -String result = rc.restapi(apiVersion).glip().chats(chatId).read().post(); +CustomFieldResource result = rc.restapi(apiVersion).account(accountId).customFields().post(customFieldCreateRequest); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `result` is an empty string +- Parameter `accountId` is optional with default value `~` +- `customFieldCreateRequest` is of type [CustomFieldCreateRequest](./src/main/java/com/ringcentral/definitions/CustomFieldCreateRequest.java) +- `result` is of type [CustomFieldResource](./src/main/java/com/ringcentral/definitions/CustomFieldResource.java) -[Try it out](https://developer.ringcentral.com/api-reference#Chats-markChatRead) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Custom-Fields-createCustomField) in API Explorer. -## listChatTasks -Get Chat Tasks +## updateCustomField +Update Сustom Field Name|Value -|- -HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/glip/chats/{chatId}/tasks` -Rate Limit Group|`Heavy` -App Permission|`N/A` -User Permission|`N/A` +HTTP Method|`PUT` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/custom-fields/{fieldId}` +Rate Limit Group|`Light` +App Permission|`EditAccounts` +User Permission|`Users` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -GlipTaskList result = rc.restapi(apiVersion).glip().chats(chatId).tasks().get(listChatTasksParameters); +CustomFieldResource result = rc.restapi(apiVersion).account(accountId).customFields(fieldId).put(customFieldUpdateRequest); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `listChatTasksParameters` is of type [ListChatTasksParameters](./src/main/java/com/ringcentral/definitions/ListChatTasksParameters.java) -- `result` is of type [GlipTaskList](./src/main/java/com/ringcentral/definitions/GlipTaskList.java) +- Parameter `accountId` is optional with default value `~` +- `customFieldUpdateRequest` is of type [CustomFieldUpdateRequest](./src/main/java/com/ringcentral/definitions/CustomFieldUpdateRequest.java) +- `result` is of type [CustomFieldResource](./src/main/java/com/ringcentral/definitions/CustomFieldResource.java) -[Try it out](https://developer.ringcentral.com/api-reference#Tasks-listChatTasks) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Custom-Fields-updateCustomField) in API Explorer. -## createTask -Create Task +## deleteCustomField +Delete Custom Field Name|Value -|- -HTTP Method|`POST` -Endpoint|`/restapi/{apiVersion}/glip/chats/{chatId}/tasks` -Rate Limit Group|`Medium` -App Permission|`N/A` -User Permission|`N/A` +HTTP Method|`DELETE` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/custom-fields/{fieldId}` +Rate Limit Group|`Light` +App Permission|`EditAccounts` +User Permission|`Users` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -GlipTaskInfo result = rc.restapi(apiVersion).glip().chats(chatId).tasks().post(glipCreateTask); +String result = rc.restapi(apiVersion).account(accountId).customFields(fieldId).delete(); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `glipCreateTask` is of type [GlipCreateTask](./src/main/java/com/ringcentral/definitions/GlipCreateTask.java) -- `result` is of type [GlipTaskInfo](./src/main/java/com/ringcentral/definitions/GlipTaskInfo.java) +- Parameter `accountId` is optional with default value `~` +- `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Tasks-createTask) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Custom-Fields-deleteCustomField) in API Explorer. -## unfavoriteGlipChat -Remove Chat from Favorites +## listDirectoryEntries +Get Company Directory Entries Name|Value -|- -HTTP Method|`POST` -Endpoint|`/restapi/{apiVersion}/glip/chats/{chatId}/unfavorite` +HTTP Method|`GET` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/directory/entries` Rate Limit Group|`Medium` -App Permission|`Glip` -User Permission|`Glip` +App Permission|`ReadAccounts` +User Permission|`N/A` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -String result = rc.restapi(apiVersion).glip().chats(chatId).unfavorite().post(); +DirectoryResource result = rc.restapi(apiVersion).account(accountId).directory().entries().list(listDirectoryEntriesParameters); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `result` is an empty string +- Parameter `accountId` is optional with default value `~` +- `listDirectoryEntriesParameters` is of type [ListDirectoryEntriesParameters](./src/main/java/com/ringcentral/definitions/ListDirectoryEntriesParameters.java) +- `result` is of type [DirectoryResource](./src/main/java/com/ringcentral/definitions/DirectoryResource.java) -[Try it out](https://developer.ringcentral.com/api-reference#Chats-unfavoriteGlipChat) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Internal-Contacts-listDirectoryEntries) in API Explorer. -## markChatUnread -Mark Chat as Unread +## readDirectoryEntry +Get Corporate Directory Entry Name|Value -|- -HTTP Method|`POST` -Endpoint|`/restapi/{apiVersion}/glip/chats/{chatId}/unread` +HTTP Method|`GET` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/directory/entries/{entryId}` Rate Limit Group|`Medium` -App Permission|`GlipInternal` +App Permission|`ReadAccounts` User Permission|`N/A` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -String result = rc.restapi(apiVersion).glip().chats(chatId).unread().post(); +ContactResource result = rc.restapi(apiVersion).account(accountId).directory().entries(entryId).get(); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `result` is an empty string +- Parameter `accountId` is optional with default value `~` +- `result` is of type [ContactResource](./src/main/java/com/ringcentral/definitions/ContactResource.java) -[Try it out](https://developer.ringcentral.com/api-reference#Chats-markChatUnread) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Internal-Contacts-readDirectoryEntry) in API Explorer. -## readGlipCompany -Get Company Info +## readUserCallLog +Get User Call Log Records Name|Value -|- HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/glip/companies/{companyId}` -Rate Limit Group|`Light` -App Permission|`Glip` -User Permission|`Glip` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/extension/{extensionId}/call-log` +Rate Limit Group|`Heavy` +App Permission|`ReadCallLog` +User Permission|`ReadCallLog` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -GlipCompany result = rc.restapi(apiVersion).glip().companies(companyId).get(); +UserCallLogResponse result = rc.restapi(apiVersion).account(accountId).extension(extensionId).callLog().list(readUserCallLogParameters); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `result` is of type [GlipCompany](./src/main/java/com/ringcentral/definitions/GlipCompany.java) +- Parameter `accountId` is optional with default value `~` +- Parameter `extensionId` is optional with default value `~` +- `readUserCallLogParameters` is of type [ReadUserCallLogParameters](./src/main/java/com/ringcentral/definitions/ReadUserCallLogParameters.java) +- `result` is of type [UserCallLogResponse](./src/main/java/com/ringcentral/definitions/UserCallLogResponse.java) -[Try it out](https://developer.ringcentral.com/api-reference#Glip-Profile-readGlipCompany) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Log-readUserCallLog) in API Explorer. -## listGlipConversations -Get Conversations +## deleteUserCallLog +Delete User Call Log Name|Value -|- -HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/glip/conversations` -Rate Limit Group|`Medium` -App Permission|`Glip` -User Permission|`Glip` +HTTP Method|`DELETE` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/extension/{extensionId}/call-log` +Rate Limit Group|`Heavy` +App Permission|`EditCallLog` +User Permission|`EditCallLog` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -GlipConversationsList result = rc.restapi(apiVersion).glip().conversations().list(listGlipConversationsParameters); +String result = rc.restapi(apiVersion).account(accountId).extension(extensionId).callLog().delete(deleteUserCallLogParameters); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `listGlipConversationsParameters` is of type [ListGlipConversationsParameters](./src/main/java/com/ringcentral/definitions/ListGlipConversationsParameters.java) -- `result` is of type [GlipConversationsList](./src/main/java/com/ringcentral/definitions/GlipConversationsList.java) +- Parameter `accountId` is optional with default value `~` +- Parameter `extensionId` is optional with default value `~` +- `deleteUserCallLogParameters` is of type [DeleteUserCallLogParameters](./src/main/java/com/ringcentral/definitions/DeleteUserCallLogParameters.java) +- `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Conversations-listGlipConversations) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Log-deleteUserCallLog) in API Explorer. -## createGlipConversation -Create/Open Conversation +## readUserCallRecord +Get User Call Record Name|Value -|- -HTTP Method|`POST` -Endpoint|`/restapi/{apiVersion}/glip/conversations` -Rate Limit Group|`Medium` -App Permission|`Glip` -User Permission|`Glip` +HTTP Method|`GET` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/extension/{extensionId}/call-log/{callRecordId}` +Rate Limit Group|`Heavy` +App Permission|`ReadCallLog` +User Permission|`ReadCallLog` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -GlipConversationInfo result = rc.restapi(apiVersion).glip().conversations().post(createGlipConversationRequest); +UserCallLogRecord result = rc.restapi(apiVersion).account(accountId).extension(extensionId).callLog(callRecordId).get(readUserCallRecordParameters); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `createGlipConversationRequest` is of type [CreateGlipConversationRequest](./src/main/java/com/ringcentral/definitions/CreateGlipConversationRequest.java) -- `result` is of type [GlipConversationInfo](./src/main/java/com/ringcentral/definitions/GlipConversationInfo.java) +- Parameter `accountId` is optional with default value `~` +- Parameter `extensionId` is optional with default value `~` +- `readUserCallRecordParameters` is of type [ReadUserCallRecordParameters](./src/main/java/com/ringcentral/definitions/ReadUserCallRecordParameters.java) +- `result` is of type [UserCallLogRecord](./src/main/java/com/ringcentral/definitions/UserCallLogRecord.java) -[Try it out](https://developer.ringcentral.com/api-reference#Conversations-createGlipConversation) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Log-readUserCallRecord) in API Explorer. -## readGlipConversation -Get Conversation +## listExtensionDevices +Get Extension Device List Name|Value -|- HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/glip/conversations/{chatId}` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/extension/{extensionId}/device` Rate Limit Group|`Light` -App Permission|`Glip` -User Permission|`Glip` +App Permission|`ReadAccounts` +User Permission|`ReadUserDevices` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -GlipConversationInfo result = rc.restapi(apiVersion).glip().conversations(chatId).get(); +GetExtensionDevicesResponse result = rc.restapi(apiVersion).account(accountId).extension(extensionId).device().get(listExtensionDevicesParameters); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `result` is of type [GlipConversationInfo](./src/main/java/com/ringcentral/definitions/GlipConversationInfo.java) +- Parameter `accountId` is optional with default value `~` +- Parameter `extensionId` is optional with default value `~` +- `listExtensionDevicesParameters` is of type [ListExtensionDevicesParameters](./src/main/java/com/ringcentral/definitions/ListExtensionDevicesParameters.java) +- `result` is of type [GetExtensionDevicesResponse](./src/main/java/com/ringcentral/definitions/GetExtensionDevicesResponse.java) -[Try it out](https://developer.ringcentral.com/api-reference#Conversations-readGlipConversation) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Devices-listExtensionDevices) in API Explorer. -## listDataExportTasks -Get Data Export Task List +## createFaxMessage +Create Fax Message + +Name|Value +-|- +HTTP Method|`POST` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/extension/{extensionId}/fax` +Rate Limit Group|`Heavy` +App Permission|`Faxes` +User Permission|`OutboundFaxes` + +```java +RestClient rc = new RestClient(clientID, clientSecret, serverURL); +rc.authorize(username, extension, password); +FaxResponse result = rc.restapi(apiVersion).account(accountId).extension(extensionId).fax().post(createFaxMessageRequest); +rc.revoke(); +``` + +- Parameter `apiVersion` is optional with default value `v1.0` +- Parameter `accountId` is optional with default value `~` +- Parameter `extensionId` is optional with default value `~` +- `createFaxMessageRequest` is of type [CreateFaxMessageRequest](./src/main/java/com/ringcentral/definitions/CreateFaxMessageRequest.java) +- `result` is of type [FaxResponse](./src/main/java/com/ringcentral/definitions/FaxResponse.java) + +[Try it out](https://developer.ringcentral.com/api-reference#Fax-createFaxMessage) in API Explorer. + + +## listExtensionGrants +Get Extension Grant List Name|Value -|- HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/glip/data-export` -Rate Limit Group|`Medium` -App Permission|`Glip` -User Permission|`N/A` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/extension/{extensionId}/grant` +Rate Limit Group|`Light` +App Permission|`ReadAccounts` +User Permission|`ReadExtensions` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -DataExportTaskList result = rc.restapi(apiVersion).glip().dataExport().list(listDataExportTasksParameters); +GetExtensionGrantListResponse result = rc.restapi(apiVersion).account(accountId).extension(extensionId).grant().get(listExtensionGrantsParameters); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `listDataExportTasksParameters` is of type [ListDataExportTasksParameters](./src/main/java/com/ringcentral/definitions/ListDataExportTasksParameters.java) -- `result` is of type [DataExportTaskList](./src/main/java/com/ringcentral/definitions/DataExportTaskList.java) +- Parameter `accountId` is optional with default value `~` +- Parameter `extensionId` is optional with default value `~` +- `listExtensionGrantsParameters` is of type [ListExtensionGrantsParameters](./src/main/java/com/ringcentral/definitions/ListExtensionGrantsParameters.java) +- `result` is of type [GetExtensionGrantListResponse](./src/main/java/com/ringcentral/definitions/GetExtensionGrantListResponse.java) -[Try it out](https://developer.ringcentral.com/api-reference#Glip-Compliance-Exports-listDataExportTasks) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#User-Settings-listExtensionGrants) in API Explorer. -## createDataExportTask -Create Data Export Task +## createCustomUserGreeting +Create Custom User Greeting Name|Value -|- HTTP Method|`POST` -Endpoint|`/restapi/{apiVersion}/glip/data-export` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/extension/{extensionId}/greeting` Rate Limit Group|`Heavy` -App Permission|`Glip` -User Permission|`N/A` +App Permission|`EditExtensions` +User Permission|`EditUserAnsweringRules` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -DataExportTask result = rc.restapi(apiVersion).glip().dataExport().post(createDataExportTaskRequest); +CustomUserGreetingInfo result = rc.restapi(apiVersion).account(accountId).extension(extensionId).greeting().post(createCustomUserGreetingRequest, createCustomUserGreetingParameters); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `createDataExportTaskRequest` is of type [CreateDataExportTaskRequest](./src/main/java/com/ringcentral/definitions/CreateDataExportTaskRequest.java) -- `result` is of type [DataExportTask](./src/main/java/com/ringcentral/definitions/DataExportTask.java) +- Parameter `accountId` is optional with default value `~` +- Parameter `extensionId` is optional with default value `~` +- `createCustomUserGreetingRequest` is of type [CreateCustomUserGreetingRequest](./src/main/java/com/ringcentral/definitions/CreateCustomUserGreetingRequest.java) +- `createCustomUserGreetingParameters` is of type [CreateCustomUserGreetingParameters](./src/main/java/com/ringcentral/definitions/CreateCustomUserGreetingParameters.java) +- `result` is of type [CustomUserGreetingInfo](./src/main/java/com/ringcentral/definitions/CustomUserGreetingInfo.java) -[Try it out](https://developer.ringcentral.com/api-reference#Glip-Compliance-Exports-createDataExportTask) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Greetings-createCustomUserGreeting) in API Explorer. -## readDataExportTask -Get Data Export Task +## readCustomGreeting +Get Custom Greeting Name|Value -|- HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/glip/data-export/{taskId}` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/extension/{extensionId}/greeting/{greetingId}` Rate Limit Group|`Medium` -App Permission|`Glip` -User Permission|`N/A` +App Permission|`ReadAccounts` +User Permission|`ReadUserInfo` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -DataExportTask result = rc.restapi(apiVersion).glip().dataExport(taskId).get(); +CustomUserGreetingInfo result = rc.restapi(apiVersion).account(accountId).extension(extensionId).greeting(greetingId).get(); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `result` is of type [DataExportTask](./src/main/java/com/ringcentral/definitions/DataExportTask.java) +- Parameter `accountId` is optional with default value `~` +- Parameter `extensionId` is optional with default value `~` +- `result` is of type [CustomUserGreetingInfo](./src/main/java/com/ringcentral/definitions/CustomUserGreetingInfo.java) -[Try it out](https://developer.ringcentral.com/api-reference#Glip-Compliance-Exports-readDataExportTask) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Greetings-readCustomGreeting) in API Explorer. -## readDataExportTaskDataset -Get Data Export Task Dataset +## listMeetings +Get Scheduled Meetings Name|Value -|- HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/glip/data-export/{taskId}/datasets/{datasetId}` -Rate Limit Group|`Heavy` -App Permission|`Glip` -User Permission|`N/A` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/extension/{extensionId}/meeting` +Rate Limit Group|`Light` +App Permission|`Meetings` +User Permission|`Meetings` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -byte[] result = rc.restapi(apiVersion).glip().dataExport(taskId).datasets(datasetId).get(); +MeetingsResource result = rc.restapi(apiVersion).account(accountId).extension(extensionId).meeting().list(); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `result` is of type `byte[]` +- Parameter `accountId` is optional with default value `~` +- Parameter `extensionId` is optional with default value `~` +- `result` is of type [MeetingsResource](./src/main/java/com/ringcentral/definitions/MeetingsResource.java) -### ❗❗❗ Code sample above may not work +[Try it out](https://developer.ringcentral.com/api-reference#Meeting-Management-listMeetings) in API Explorer. -Please refer to [Binary content downloading](/README.md#Binary-content-downloading). -[Try it out](https://developer.ringcentral.com/api-reference#Glip-Compliance-Exports-readDataExportTaskDataset) in API Explorer. +## createMeeting +Create Meeting +Name|Value +-|- +HTTP Method|`POST` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/extension/{extensionId}/meeting` +Rate Limit Group|`Medium` +App Permission|`Meetings` +User Permission|`Meetings` -## readGlipEveryone -Get Everyone Chat +```java +RestClient rc = new RestClient(clientID, clientSecret, serverURL); +rc.authorize(username, extension, password); +MeetingResponseResource result = rc.restapi(apiVersion).account(accountId).extension(extensionId).meeting().post(meetingRequestResource); +rc.revoke(); +``` + +- Parameter `apiVersion` is optional with default value `v1.0` +- Parameter `accountId` is optional with default value `~` +- Parameter `extensionId` is optional with default value `~` +- `meetingRequestResource` is of type [MeetingRequestResource](./src/main/java/com/ringcentral/definitions/MeetingRequestResource.java) +- `result` is of type [MeetingResponseResource](./src/main/java/com/ringcentral/definitions/MeetingResponseResource.java) + +[Try it out](https://developer.ringcentral.com/api-reference#Meeting-Management-createMeeting) in API Explorer. + + +## readMeeting +Get Meeting Info Name|Value -|- HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/glip/everyone` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/extension/{extensionId}/meeting/{meetingId}` Rate Limit Group|`Light` -App Permission|`Glip` -User Permission|`Glip` +App Permission|`Meetings` +User Permission|`Meetings` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -GlipEveryoneInfo result = rc.restapi(apiVersion).glip().everyone().get(); +MeetingResponseResource result = rc.restapi(apiVersion).account(accountId).extension(extensionId).meeting(meetingId).get(); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `result` is of type [GlipEveryoneInfo](./src/main/java/com/ringcentral/definitions/GlipEveryoneInfo.java) +- Parameter `accountId` is optional with default value `~` +- Parameter `extensionId` is optional with default value `~` +- `result` is of type [MeetingResponseResource](./src/main/java/com/ringcentral/definitions/MeetingResponseResource.java) -[Try it out](https://developer.ringcentral.com/api-reference#Teams-readGlipEveryone) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Meeting-Management-readMeeting) in API Explorer. -## patchGlipEveryone -Update Everyone Сhat +## updateMeeting +Update Meeting Name|Value -|- -HTTP Method|`PATCH` -Endpoint|`/restapi/{apiVersion}/glip/everyone` +HTTP Method|`PUT` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/extension/{extensionId}/meeting/{meetingId}` Rate Limit Group|`Medium` -App Permission|`Glip` -User Permission|`Glip` +App Permission|`Meetings` +User Permission|`Meetings` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -GlipEveryoneInfo result = rc.restapi(apiVersion).glip().everyone().patch(updateGlipEveryoneRequest); +MeetingResponseResource result = rc.restapi(apiVersion).account(accountId).extension(extensionId).meeting(meetingId).put(meetingRequestResource); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `updateGlipEveryoneRequest` is of type [UpdateGlipEveryoneRequest](./src/main/java/com/ringcentral/definitions/UpdateGlipEveryoneRequest.java) -- `result` is of type [GlipEveryoneInfo](./src/main/java/com/ringcentral/definitions/GlipEveryoneInfo.java) +- Parameter `accountId` is optional with default value `~` +- Parameter `extensionId` is optional with default value `~` +- `meetingRequestResource` is of type [MeetingRequestResource](./src/main/java/com/ringcentral/definitions/MeetingRequestResource.java) +- `result` is of type [MeetingResponseResource](./src/main/java/com/ringcentral/definitions/MeetingResponseResource.java) -[Try it out](https://developer.ringcentral.com/api-reference#Teams-patchGlipEveryone) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Meeting-Management-updateMeeting) in API Explorer. -## listFavoriteChats -Get Favorite Chats +## deleteMeeting +Delete Meeting Name|Value -|- -HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/glip/favorites` -Rate Limit Group|`Light` -App Permission|`Glip` -User Permission|`Glip` +HTTP Method|`DELETE` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/extension/{extensionId}/meeting/{meetingId}` +Rate Limit Group|`Medium` +App Permission|`Meetings` +User Permission|`Meetings` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -GlipChatsListWithoutNavigation result = rc.restapi(apiVersion).glip().favorites().get(listFavoriteChatsParameters); +String result = rc.restapi(apiVersion).account(accountId).extension(extensionId).meeting(meetingId).delete(); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `listFavoriteChatsParameters` is of type [ListFavoriteChatsParameters](./src/main/java/com/ringcentral/definitions/ListFavoriteChatsParameters.java) -- `result` is of type [GlipChatsListWithoutNavigation](./src/main/java/com/ringcentral/definitions/GlipChatsListWithoutNavigation.java) +- Parameter `accountId` is optional with default value `~` +- Parameter `extensionId` is optional with default value `~` +- `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Chats-listFavoriteChats) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Meeting-Management-deleteMeeting) in API Explorer. -## listGroupEvents -Get Group Events +## createMMS +Send MMS Name|Value -|- -HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/glip/groups/{groupId}/events` +HTTP Method|`POST` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/extension/{extensionId}/mms` Rate Limit Group|`Medium` -App Permission|`Glip` -User Permission|`Glip` +App Permission|`SMS` +User Permission|`OutboundSMS` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -GlipEventInfo result = rc.restapi(apiVersion).glip().groups(groupId).events().get(); +GetSMSMessageInfoResponse result = rc.restapi(apiVersion).account(accountId).extension(extensionId).mms().post(CreateMMSMessage); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `result` is of type [GlipEventInfo](./src/main/java/com/ringcentral/definitions/GlipEventInfo.java) +- Parameter `accountId` is optional with default value `~` +- Parameter `extensionId` is optional with default value `~` +- `CreateMMSMessage` is of type [CreateMMSMessage](./src/main/java/com/ringcentral/definitions/CreateMMSMessage.java) +- `result` is of type [GetSMSMessageInfoResponse](./src/main/java/com/ringcentral/definitions/GetSMSMessageInfoResponse.java) -[Try it out](https://developer.ringcentral.com/api-reference#Calendar-Events-listGroupEvents) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#SMS-createMMS) in API Explorer. -## createEventByGroupId -Create Event by Group ID +## createRingOutCall +Make RingOut Call Name|Value -|- HTTP Method|`POST` -Endpoint|`/restapi/{apiVersion}/glip/groups/{groupId}/events` -Rate Limit Group|`Medium` -App Permission|`Glip` -User Permission|`Glip` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/extension/{extensionId}/ring-out` +Rate Limit Group|`Heavy` +App Permission|`RingOut` +User Permission|`N/A` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -GlipEventInfo result = rc.restapi(apiVersion).glip().groups(groupId).events().post(glipEventCreate); +GetRingOutStatusResponse result = rc.restapi(apiVersion).account(accountId).extension(extensionId).ringOut().post(makeRingOutRequest); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `glipEventCreate` is of type [GlipEventCreate](./src/main/java/com/ringcentral/definitions/GlipEventCreate.java) -- `result` is of type [GlipEventInfo](./src/main/java/com/ringcentral/definitions/GlipEventInfo.java) +- Parameter `accountId` is optional with default value `~` +- Parameter `extensionId` is optional with default value `~` +- `makeRingOutRequest` is of type [MakeRingOutRequest](./src/main/java/com/ringcentral/definitions/MakeRingOutRequest.java) +- `result` is of type [GetRingOutStatusResponse](./src/main/java/com/ringcentral/definitions/GetRingOutStatusResponse.java) -[Try it out](https://developer.ringcentral.com/api-reference#Calendar-Events-createEventByGroupId) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#RingOut-createRingOutCall) in API Explorer. -## listGlipGroupWebhooks -Get Webhooks in Group +## readRingOutCallStatus +Get RingOut Call Status Name|Value -|- HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/glip/groups/{groupId}/webhooks` -Rate Limit Group|`Medium` -App Permission|`Glip` -User Permission|`Glip` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/extension/{extensionId}/ring-out/{ringoutId}` +Rate Limit Group|`Light` +App Permission|`RingOut` +User Permission|`N/A` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -GlipWebhookList result = rc.restapi(apiVersion).glip().groups(groupId).webhooks().get(); +GetRingOutStatusResponse result = rc.restapi(apiVersion).account(accountId).extension(extensionId).ringOut(ringoutId).get(); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `result` is of type [GlipWebhookList](./src/main/java/com/ringcentral/definitions/GlipWebhookList.java) +- Parameter `accountId` is optional with default value `~` +- Parameter `extensionId` is optional with default value `~` +- `result` is of type [GetRingOutStatusResponse](./src/main/java/com/ringcentral/definitions/GetRingOutStatusResponse.java) -[Try it out](https://developer.ringcentral.com/api-reference#Glip-Webhooks-listGlipGroupWebhooks) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#RingOut-readRingOutCallStatus) in API Explorer. -## createGlipGroupWebhook -Create Webhook in Group +## deleteRingOutCall +Cancel RingOut Call Name|Value -|- -HTTP Method|`POST` -Endpoint|`/restapi/{apiVersion}/glip/groups/{groupId}/webhooks` -Rate Limit Group|`Medium` -App Permission|`Glip` -User Permission|`Glip` +HTTP Method|`DELETE` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/extension/{extensionId}/ring-out/{ringoutId}` +Rate Limit Group|`Heavy` +App Permission|`RingOut` +User Permission|`N/A` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -GlipWebhookInfo result = rc.restapi(apiVersion).glip().groups(groupId).webhooks().post(); +String result = rc.restapi(apiVersion).account(accountId).extension(extensionId).ringOut(ringoutId).delete(); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `result` is of type [GlipWebhookInfo](./src/main/java/com/ringcentral/definitions/GlipWebhookInfo.java) +- Parameter `accountId` is optional with default value `~` +- Parameter `extensionId` is optional with default value `~` +- `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Glip-Webhooks-createGlipGroupWebhook) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#RingOut-deleteRingOutCall) in API Explorer. -## readUserNote -Get Note +## createSMSMessage +Send SMS Name|Value -|- -HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/glip/notes/{noteId}` +HTTP Method|`POST` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/extension/{extensionId}/sms` Rate Limit Group|`Medium` -App Permission|`Glip` -User Permission|`Glip` +App Permission|`SMS` +User Permission|`OutboundSMS` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -GetGlipNoteInfo result = rc.restapi(apiVersion).glip().notes(noteId).get(); +GetSMSMessageInfoResponse result = rc.restapi(apiVersion).account(accountId).extension(extensionId).sms().post(CreateSMSMessage); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `result` is of type [GetGlipNoteInfo](./src/main/java/com/ringcentral/definitions/GetGlipNoteInfo.java) +- Parameter `accountId` is optional with default value `~` +- Parameter `extensionId` is optional with default value `~` +- `CreateSMSMessage` is of type [CreateSMSMessage](./src/main/java/com/ringcentral/definitions/CreateSMSMessage.java) +- `result` is of type [GetSMSMessageInfoResponse](./src/main/java/com/ringcentral/definitions/GetSMSMessageInfoResponse.java) -[Try it out](https://developer.ringcentral.com/api-reference#Notes-readUserNote) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#SMS-createSMSMessage) in API Explorer. -## deleteNote -Delete Note +## listIVRPrompts +Get IVR Prompt List Name|Value -|- -HTTP Method|`DELETE` -Endpoint|`/restapi/{apiVersion}/glip/notes/{noteId}` +HTTP Method|`GET` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/ivr-prompts` Rate Limit Group|`Medium` -App Permission|`Glip` -User Permission|`Glip` +App Permission|`ReadAccounts` +User Permission|`ReadCompanyGreetings` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -String result = rc.restapi(apiVersion).glip().notes(noteId).delete(); +IVRPrompts result = rc.restapi(apiVersion).account(accountId).ivrPrompts().list(); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `result` is an empty string +- Parameter `accountId` is optional with default value `~` +- `result` is of type [IVRPrompts](./src/main/java/com/ringcentral/definitions/IVRPrompts.java) -[Try it out](https://developer.ringcentral.com/api-reference#Notes-deleteNote) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#IVR-listIVRPrompts) in API Explorer. -## patchNote -Update Note +## createIVRPrompt +Create IVR Prompts Name|Value -|- -HTTP Method|`PATCH` -Endpoint|`/restapi/{apiVersion}/glip/notes/{noteId}` -Rate Limit Group|`Medium` -App Permission|`Glip` -User Permission|`Glip` +HTTP Method|`POST` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/ivr-prompts` +Rate Limit Group|`Heavy` +App Permission|`EditAccounts` +User Permission|`EditCompanyGreetings` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -GlipNoteInfo result = rc.restapi(apiVersion).glip().notes(noteId).patch(glipNoteCreate); +PromptInfo result = rc.restapi(apiVersion).account(accountId).ivrPrompts().post(createIVRPromptRequest); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `glipNoteCreate` is of type [GlipNoteCreate](./src/main/java/com/ringcentral/definitions/GlipNoteCreate.java) -- `result` is of type [GlipNoteInfo](./src/main/java/com/ringcentral/definitions/GlipNoteInfo.java) +- Parameter `accountId` is optional with default value `~` +- `createIVRPromptRequest` is of type [CreateIVRPromptRequest](./src/main/java/com/ringcentral/definitions/CreateIVRPromptRequest.java) +- `result` is of type [PromptInfo](./src/main/java/com/ringcentral/definitions/PromptInfo.java) -[Try it out](https://developer.ringcentral.com/api-reference#Notes-patchNote) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#IVR-createIVRPrompt) in API Explorer. -## publishNote -Publish Note +## readIVRPrompt +Get IVR Prompt Name|Value -|- -HTTP Method|`POST` -Endpoint|`/restapi/{apiVersion}/glip/notes/{noteId}/publish` +HTTP Method|`GET` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/ivr-prompts/{promptId}` Rate Limit Group|`Medium` -App Permission|`Glip` -User Permission|`Glip` +App Permission|`ReadAccounts` +User Permission|`ReadCompanyGreetings` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -String result = rc.restapi(apiVersion).glip().notes(noteId).publish().post(); +PromptInfo result = rc.restapi(apiVersion).account(accountId).ivrPrompts(promptId).get(); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `result` is an empty string +- Parameter `accountId` is optional with default value `~` +- `result` is of type [PromptInfo](./src/main/java/com/ringcentral/definitions/PromptInfo.java) -[Try it out](https://developer.ringcentral.com/api-reference#Notes-publishNote) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#IVR-readIVRPrompt) in API Explorer. -## unlockNote -Unlock Note +## updateIVRPrompt +Update IVR Prompt Name|Value -|- -HTTP Method|`POST` -Endpoint|`/restapi/{apiVersion}/glip/notes/{noteId}/unlock` -Rate Limit Group|`Light` -App Permission|`Glip` -User Permission|`Glip` +HTTP Method|`PUT` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/ivr-prompts/{promptId}` +Rate Limit Group|`Medium` +App Permission|`EditAccounts` +User Permission|`EditCompanyGreetings` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -String result = rc.restapi(apiVersion).glip().notes(noteId).unlock().post(); +PromptInfo result = rc.restapi(apiVersion).account(accountId).ivrPrompts(promptId).put(updateIVRPromptRequest); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `result` is an empty string +- Parameter `accountId` is optional with default value `~` +- `updateIVRPromptRequest` is of type [UpdateIVRPromptRequest](./src/main/java/com/ringcentral/definitions/UpdateIVRPromptRequest.java) +- `result` is of type [PromptInfo](./src/main/java/com/ringcentral/definitions/PromptInfo.java) -[Try it out](https://developer.ringcentral.com/api-reference#Notes-unlockNote) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#IVR-updateIVRPrompt) in API Explorer. -## listRecentChats -Get Recent Chats +## deleteIVRPrompt +Delete IVR Prompt Name|Value -|- -HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/glip/recent/chats` -Rate Limit Group|`Light` -App Permission|`Glip` -User Permission|`Glip` +HTTP Method|`DELETE` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/ivr-prompts/{promptId}` +Rate Limit Group|`Heavy` +App Permission|`EditAccounts` +User Permission|`EditCompanyGreetings` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -GlipChatsListWithoutNavigation result = rc.restapi(apiVersion).glip().recent().chats().get(listRecentChatsParameters); +String result = rc.restapi(apiVersion).account(accountId).ivrPrompts(promptId).delete(); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `listRecentChatsParameters` is of type [ListRecentChatsParameters](./src/main/java/com/ringcentral/definitions/ListRecentChatsParameters.java) -- `result` is of type [GlipChatsListWithoutNavigation](./src/main/java/com/ringcentral/definitions/GlipChatsListWithoutNavigation.java) +- Parameter `accountId` is optional with default value `~` +- `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Chats-listRecentChats) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#IVR-deleteIVRPrompt) in API Explorer. -## readTask -Get Task +## listAccountPhoneNumbers +Get Company Phone Number List Name|Value -|- HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/glip/tasks/{taskId}` -Rate Limit Group|`Medium` -App Permission|`N/A` -User Permission|`N/A` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/phone-number` +Rate Limit Group|`Heavy` +App Permission|`ReadAccounts` +User Permission|`ReadCompanyPhoneNumbers` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -GlipTaskInfo result = rc.restapi(apiVersion).glip().tasks(taskId).get(); +AccountPhoneNumbers result = rc.restapi(apiVersion).account(accountId).phoneNumber().list(listAccountPhoneNumbersParameters); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `result` is of type [GlipTaskInfo](./src/main/java/com/ringcentral/definitions/GlipTaskInfo.java) +- Parameter `accountId` is optional with default value `~` +- `listAccountPhoneNumbersParameters` is of type [ListAccountPhoneNumbersParameters](./src/main/java/com/ringcentral/definitions/ListAccountPhoneNumbersParameters.java) +- `result` is of type [AccountPhoneNumbers](./src/main/java/com/ringcentral/definitions/AccountPhoneNumbers.java) -[Try it out](https://developer.ringcentral.com/api-reference#Tasks-readTask) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Phone-Numbers-listAccountPhoneNumbers) in API Explorer. -## deleteTask -Delete Task +## readAccountPhoneNumber +Get Phone Number Name|Value -|- -HTTP Method|`DELETE` -Endpoint|`/restapi/{apiVersion}/glip/tasks/{taskId}` -Rate Limit Group|`Medium` -App Permission|`N/A` -User Permission|`N/A` +HTTP Method|`GET` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/phone-number/{phoneNumberId}` +Rate Limit Group|`Light` +App Permission|`ReadAccounts` +User Permission|`ReadCompanyPhoneNumbers` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -String result = rc.restapi(apiVersion).glip().tasks(taskId).delete(); +CompanyPhoneNumberInfo result = rc.restapi(apiVersion).account(accountId).phoneNumber(phoneNumberId).get(); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `result` is an empty string +- Parameter `accountId` is optional with default value `~` +- `result` is of type [CompanyPhoneNumberInfo](./src/main/java/com/ringcentral/definitions/CompanyPhoneNumberInfo.java) -[Try it out](https://developer.ringcentral.com/api-reference#Tasks-deleteTask) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Phone-Numbers-readAccountPhoneNumber) in API Explorer. -## patchTask -Patch Task +## listCallRecordingData +Get Call Recordings Data Name|Value -|- -HTTP Method|`PATCH` -Endpoint|`/restapi/{apiVersion}/glip/tasks/{taskId}` -Rate Limit Group|`Medium` -App Permission|`N/A` -User Permission|`N/A` +HTTP Method|`GET` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/recording/{recordingId}/content` +Rate Limit Group|`Heavy` +App Permission|`ReadCallRecording` +User Permission|`ReadCallRecording` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -GlipTaskList result = rc.restapi(apiVersion).glip().tasks(taskId).patch(glipUpdateTask); +byte[] result = rc.restapi(apiVersion).account(accountId).recording(recordingId).content().get(); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `glipUpdateTask` is of type [GlipUpdateTask](./src/main/java/com/ringcentral/definitions/GlipUpdateTask.java) -- `result` is of type [GlipTaskList](./src/main/java/com/ringcentral/definitions/GlipTaskList.java) +- Parameter `accountId` is optional with default value `~` +- `result` is of type `byte[]` -[Try it out](https://developer.ringcentral.com/api-reference#Tasks-patchTask) in API Explorer. +### ❗❗❗ Code sample above may not work + +Please refer to [Binary content downloading](/README.md#Binary-content-downloading). +[Try it out](https://developer.ringcentral.com/api-reference#Call-Recordings-listCallRecordingData) in API Explorer. -## completeTask -Complete Task + +## readAccountServiceInfo +Get Account Service Info Name|Value -|- -HTTP Method|`POST` -Endpoint|`/restapi/{apiVersion}/glip/tasks/{taskId}/complete` -Rate Limit Group|`Medium` -App Permission|`N/A` -User Permission|`N/A` +HTTP Method|`GET` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/service-info` +Rate Limit Group|`Light` +App Permission|`ReadAccounts` +User Permission|`ReadServicePlanInfo` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -String result = rc.restapi(apiVersion).glip().tasks(taskId).complete().post(glipCompleteTask); +GetServiceInfoResponse result = rc.restapi(apiVersion).account(accountId).serviceInfo().get(); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `glipCompleteTask` is of type [GlipCompleteTask](./src/main/java/com/ringcentral/definitions/GlipCompleteTask.java) -- `result` is an empty string +- Parameter `accountId` is optional with default value `~` +- `result` is of type [GetServiceInfoResponse](./src/main/java/com/ringcentral/definitions/GetServiceInfoResponse.java) -[Try it out](https://developer.ringcentral.com/api-reference#Tasks-completeTask) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Company-readAccountServiceInfo) in API Explorer. -## listGlipTeams -Get Teams +## createSIPRegistration +Register Device Name|Value -|- -HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/glip/teams` -Rate Limit Group|`Medium` -App Permission|`Glip` -User Permission|`Glip` +HTTP Method|`POST` +Endpoint|`/restapi/{apiVersion}/client-info/sip-provision` +Rate Limit Group|`Heavy` +App Permission|`VoipCalling` +User Permission|`N/A` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -GlipTeamsList result = rc.restapi(apiVersion).glip().teams().list(listGlipTeamsParameters); +CreateSipRegistrationResponse result = rc.restapi(apiVersion).clientInfo().sipProvision().post(createSipRegistrationRequest); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `listGlipTeamsParameters` is of type [ListGlipTeamsParameters](./src/main/java/com/ringcentral/definitions/ListGlipTeamsParameters.java) -- `result` is of type [GlipTeamsList](./src/main/java/com/ringcentral/definitions/GlipTeamsList.java) +- `createSipRegistrationRequest` is of type [CreateSipRegistrationRequest](./src/main/java/com/ringcentral/definitions/CreateSipRegistrationRequest.java) +- `result` is of type [CreateSipRegistrationResponse](./src/main/java/com/ringcentral/definitions/CreateSipRegistrationResponse.java) -[Try it out](https://developer.ringcentral.com/api-reference#Teams-listGlipTeams) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Device-SIP-Registration-createSIPRegistration) in API Explorer. -## createGlipTeam -Create Team +## listCountries +Get Country List Name|Value -|- -HTTP Method|`POST` -Endpoint|`/restapi/{apiVersion}/glip/teams` -Rate Limit Group|`Medium` -App Permission|`Glip` -User Permission|`Glip` +HTTP Method|`GET` +Endpoint|`/restapi/{apiVersion}/dictionary/country` +Rate Limit Group|`Light` +App Permission|`N/A` +User Permission|`N/A` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -GlipTeamInfo result = rc.restapi(apiVersion).glip().teams().post(glipPostTeamBody); +GetCountryListResponse result = rc.restapi(apiVersion).dictionary().country().list(listCountriesParameters); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `glipPostTeamBody` is of type [GlipPostTeamBody](./src/main/java/com/ringcentral/definitions/GlipPostTeamBody.java) -- `result` is of type [GlipTeamInfo](./src/main/java/com/ringcentral/definitions/GlipTeamInfo.java) +- `listCountriesParameters` is of type [ListCountriesParameters](./src/main/java/com/ringcentral/definitions/ListCountriesParameters.java) +- `result` is of type [GetCountryListResponse](./src/main/java/com/ringcentral/definitions/GetCountryListResponse.java) -[Try it out](https://developer.ringcentral.com/api-reference#Teams-createGlipTeam) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Regional-Settings-listCountries) in API Explorer. -## readGlipTeam -Get Team +## readCountry +Get Country Name|Value -|- HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/glip/teams/{chatId}` +Endpoint|`/restapi/{apiVersion}/dictionary/country/{countryId}` Rate Limit Group|`Light` -App Permission|`Glip` -User Permission|`Glip` +App Permission|`N/A` +User Permission|`N/A` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -GlipTeamInfo result = rc.restapi(apiVersion).glip().teams(chatId).get(); +GetCountryInfoDictionaryResponse result = rc.restapi(apiVersion).dictionary().country(countryId).get(); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `result` is of type [GlipTeamInfo](./src/main/java/com/ringcentral/definitions/GlipTeamInfo.java) +- `result` is of type [GetCountryInfoDictionaryResponse](./src/main/java/com/ringcentral/definitions/GetCountryInfoDictionaryResponse.java) -[Try it out](https://developer.ringcentral.com/api-reference#Teams-readGlipTeam) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Regional-Settings-readCountry) in API Explorer. -## deleteGlipTeam -Delete Team +## listFaxCoverPages +Get Fax Cover Page List Name|Value -|- -HTTP Method|`DELETE` -Endpoint|`/restapi/{apiVersion}/glip/teams/{chatId}` -Rate Limit Group|`Medium` -App Permission|`Glip` -User Permission|`Glip` +HTTP Method|`GET` +Endpoint|`/restapi/{apiVersion}/dictionary/fax-cover-page` +Rate Limit Group|`Light` +App Permission|`N/A` +User Permission|`N/A` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -String result = rc.restapi(apiVersion).glip().teams(chatId).delete(); +ListFaxCoverPagesResponse result = rc.restapi(apiVersion).dictionary().faxCoverPage().get(listFaxCoverPagesParameters); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `result` is an empty string +- `listFaxCoverPagesParameters` is of type [ListFaxCoverPagesParameters](./src/main/java/com/ringcentral/definitions/ListFaxCoverPagesParameters.java) +- `result` is of type [ListFaxCoverPagesResponse](./src/main/java/com/ringcentral/definitions/ListFaxCoverPagesResponse.java) -[Try it out](https://developer.ringcentral.com/api-reference#Teams-deleteGlipTeam) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Fax-listFaxCoverPages) in API Explorer. -## patchGlipTeam -Update Team +## listStandardGreetings +Get Standard Greeting List Name|Value -|- -HTTP Method|`PATCH` -Endpoint|`/restapi/{apiVersion}/glip/teams/{chatId}` +HTTP Method|`GET` +Endpoint|`/restapi/{apiVersion}/dictionary/greeting` Rate Limit Group|`Medium` -App Permission|`Glip` -User Permission|`Glip` +App Permission|`N/A` +User Permission|`N/A` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -GlipTeamInfo result = rc.restapi(apiVersion).glip().teams(chatId).patch(glipPatchTeamBody); +DictionaryGreetingList result = rc.restapi(apiVersion).dictionary().greeting().list(listStandardGreetingsParameters); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `glipPatchTeamBody` is of type [GlipPatchTeamBody](./src/main/java/com/ringcentral/definitions/GlipPatchTeamBody.java) -- `result` is of type [GlipTeamInfo](./src/main/java/com/ringcentral/definitions/GlipTeamInfo.java) +- `listStandardGreetingsParameters` is of type [ListStandardGreetingsParameters](./src/main/java/com/ringcentral/definitions/ListStandardGreetingsParameters.java) +- `result` is of type [DictionaryGreetingList](./src/main/java/com/ringcentral/definitions/DictionaryGreetingList.java) -[Try it out](https://developer.ringcentral.com/api-reference#Teams-patchGlipTeam) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Greetings-listStandardGreetings) in API Explorer. -## readGlipEvents -Get User Events List +## readStandardGreeting +Get Standard Greeting Name|Value -|- HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/glip/events` +Endpoint|`/restapi/{apiVersion}/dictionary/greeting/{greetingId}` Rate Limit Group|`Medium` -App Permission|`Glip` -User Permission|`Glip` +App Permission|`N/A` +User Permission|`N/A` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -GlipEventsInfo result = rc.restapi(apiVersion).glip().events().list(readGlipEventsParameters); +DictionaryGreetingInfo result = rc.restapi(apiVersion).dictionary().greeting(greetingId).get(); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `readGlipEventsParameters` is of type [ReadGlipEventsParameters](./src/main/java/com/ringcentral/definitions/ReadGlipEventsParameters.java) -- `result` is of type [GlipEventsInfo](./src/main/java/com/ringcentral/definitions/GlipEventsInfo.java) +- `result` is of type [DictionaryGreetingInfo](./src/main/java/com/ringcentral/definitions/DictionaryGreetingInfo.java) -[Try it out](https://developer.ringcentral.com/api-reference#Calendar-Events-readGlipEvents) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Greetings-readStandardGreeting) in API Explorer. -## createEvent -Create Event +## listLanguages +Get Language List Name|Value -|- -HTTP Method|`POST` -Endpoint|`/restapi/{apiVersion}/glip/events` -Rate Limit Group|`Medium` -App Permission|`Glip` -User Permission|`Glip` +HTTP Method|`GET` +Endpoint|`/restapi/{apiVersion}/dictionary/language` +Rate Limit Group|`Light` +App Permission|`N/A` +User Permission|`N/A` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -GlipEventInfo result = rc.restapi(apiVersion).glip().events().post(glipEventCreate); +LanguageList result = rc.restapi(apiVersion).dictionary().language().list(); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `glipEventCreate` is of type [GlipEventCreate](./src/main/java/com/ringcentral/definitions/GlipEventCreate.java) -- `result` is of type [GlipEventInfo](./src/main/java/com/ringcentral/definitions/GlipEventInfo.java) +- `result` is of type [LanguageList](./src/main/java/com/ringcentral/definitions/LanguageList.java) -[Try it out](https://developer.ringcentral.com/api-reference#Calendar-Events-createEvent) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Regional-Settings-listLanguages) in API Explorer. -## readEvent -Get Event +## readLanguage +Get Language Name|Value -|- HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/glip/events/{eventId}` -Rate Limit Group|`Medium` -App Permission|`Glip` -User Permission|`Glip` +Endpoint|`/restapi/{apiVersion}/dictionary/language/{languageId}` +Rate Limit Group|`Light` +App Permission|`N/A` +User Permission|`N/A` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -GlipEventInfo result = rc.restapi(apiVersion).glip().events(eventId).get(); +LanguageInfo result = rc.restapi(apiVersion).dictionary().language(languageId).get(); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `result` is of type [GlipEventInfo](./src/main/java/com/ringcentral/definitions/GlipEventInfo.java) +- `result` is of type [LanguageInfo](./src/main/java/com/ringcentral/definitions/LanguageInfo.java) -[Try it out](https://developer.ringcentral.com/api-reference#Calendar-Events-readEvent) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Regional-Settings-readLanguage) in API Explorer. -## updateEvent -Update Event +## listLocations +Get Location List Name|Value -|- -HTTP Method|`PUT` -Endpoint|`/restapi/{apiVersion}/glip/events/{eventId}` -Rate Limit Group|`Medium` -App Permission|`Glip` -User Permission|`Glip` +HTTP Method|`GET` +Endpoint|`/restapi/{apiVersion}/dictionary/location` +Rate Limit Group|`Light` +App Permission|`N/A` +User Permission|`N/A` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -GlipEventInfo result = rc.restapi(apiVersion).glip().events(eventId).put(glipEventCreate); +GetLocationListResponse result = rc.restapi(apiVersion).dictionary().location().get(listLocationsParameters); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `glipEventCreate` is of type [GlipEventCreate](./src/main/java/com/ringcentral/definitions/GlipEventCreate.java) -- `result` is of type [GlipEventInfo](./src/main/java/com/ringcentral/definitions/GlipEventInfo.java) +- `listLocationsParameters` is of type [ListLocationsParameters](./src/main/java/com/ringcentral/definitions/ListLocationsParameters.java) +- `result` is of type [GetLocationListResponse](./src/main/java/com/ringcentral/definitions/GetLocationListResponse.java) -[Try it out](https://developer.ringcentral.com/api-reference#Calendar-Events-updateEvent) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Regional-Settings-listLocations) in API Explorer. -## deleteEvent -Delete Event +## listTimezones +Get Timezone List Name|Value -|- -HTTP Method|`DELETE` -Endpoint|`/restapi/{apiVersion}/glip/events/{eventId}` -Rate Limit Group|`Medium` -App Permission|`Glip` -User Permission|`Glip` +HTTP Method|`GET` +Endpoint|`/restapi/{apiVersion}/dictionary/timezone` +Rate Limit Group|`Light` +App Permission|`N/A` +User Permission|`N/A` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -String result = rc.restapi(apiVersion).glip().events(eventId).delete(); +GetTimezoneListResponse result = rc.restapi(apiVersion).dictionary().timezone().list(listTimezonesParameters); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `result` is an empty string +- `listTimezonesParameters` is of type [ListTimezonesParameters](./src/main/java/com/ringcentral/definitions/ListTimezonesParameters.java) +- `result` is of type [GetTimezoneListResponse](./src/main/java/com/ringcentral/definitions/GetTimezoneListResponse.java) -[Try it out](https://developer.ringcentral.com/api-reference#Calendar-Events-deleteEvent) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Regional-Settings-listTimezones) in API Explorer. -## lockNote -Lock Note +## readTimezone +Get Timezone Name|Value -|- -HTTP Method|`POST` -Endpoint|`/restapi/{apiVersion}/glip/notes/{noteId}/lock` +HTTP Method|`GET` +Endpoint|`/restapi/{apiVersion}/dictionary/timezone/{timezoneId}` Rate Limit Group|`Light` -App Permission|`Glip` -User Permission|`Glip` +App Permission|`N/A` +User Permission|`N/A` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -String result = rc.restapi(apiVersion).glip().notes(noteId).lock().post(); +GetTimezoneInfoResponse result = rc.restapi(apiVersion).dictionary().timezone(timezoneId).get(readTimezoneParameters); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `result` is an empty string +- `readTimezoneParameters` is of type [ReadTimezoneParameters](./src/main/java/com/ringcentral/definitions/ReadTimezoneParameters.java) +- `result` is of type [GetTimezoneInfoResponse](./src/main/java/com/ringcentral/definitions/GetTimezoneInfoResponse.java) -[Try it out](https://developer.ringcentral.com/api-reference#Notes-lockNote) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Regional-Settings-readTimezone) in API Explorer. -## readGlipPerson -Get Person +## favoriteGlipChat +Add Chat to Favorites Name|Value -|- -HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/glip/persons/{personId}` -Rate Limit Group|`Light` +HTTP Method|`POST` +Endpoint|`/restapi/{apiVersion}/glip/chats/{chatId}/favorite` +Rate Limit Group|`Medium` App Permission|`Glip` User Permission|`Glip` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -GlipPersonInfo result = rc.restapi(apiVersion).glip().persons(personId).get(); +String result = rc.restapi(apiVersion).glip().chats(chatId).favorite().post(); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `result` is of type [GlipPersonInfo](./src/main/java/com/ringcentral/definitions/GlipPersonInfo.java) +- `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Glip-Profile-readGlipPerson) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Chats-favoriteGlipChat) in API Explorer. -## readGlipPreferences -Get Preferences +## unfavoriteGlipChat +Remove Chat from Favorites Name|Value -|- -HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/glip/preferences` +HTTP Method|`POST` +Endpoint|`/restapi/{apiVersion}/glip/chats/{chatId}/unfavorite` Rate Limit Group|`Medium` App Permission|`Glip` User Permission|`Glip` @@ -3671,48 +3746,47 @@ User Permission|`Glip` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -GlipPreferencesInfo result = rc.restapi(apiVersion).glip().preferences().get(); +String result = rc.restapi(apiVersion).glip().chats(chatId).unfavorite().post(); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `result` is of type [GlipPreferencesInfo](./src/main/java/com/ringcentral/definitions/GlipPreferencesInfo.java) +- `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Glip-Profile-readGlipPreferences) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Chats-unfavoriteGlipChat) in API Explorer. -## addGlipTeamMembers -Add Team Members +## markChatUnread +Mark Chat as Unread Name|Value -|- HTTP Method|`POST` -Endpoint|`/restapi/{apiVersion}/glip/teams/{chatId}/add` +Endpoint|`/restapi/{apiVersion}/glip/chats/{chatId}/unread` Rate Limit Group|`Medium` -App Permission|`Glip` -User Permission|`Glip` +App Permission|`GlipInternal` +User Permission|`N/A` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -String result = rc.restapi(apiVersion).glip().teams(chatId).add().post(glipPostMembersListBody); +String result = rc.restapi(apiVersion).glip().chats(chatId).unread().post(); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `glipPostMembersListBody` is of type [GlipPostMembersListBody](./src/main/java/com/ringcentral/definitions/GlipPostMembersListBody.java) - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Teams-addGlipTeamMembers) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Chats-markChatUnread) in API Explorer. -## archiveGlipTeam -Archive Team +## listGlipConversations +Get Conversations Name|Value -|- -HTTP Method|`POST` -Endpoint|`/restapi/{apiVersion}/glip/teams/{chatId}/archive` +HTTP Method|`GET` +Endpoint|`/restapi/{apiVersion}/glip/conversations` Rate Limit Group|`Medium` App Permission|`Glip` User Permission|`Glip` @@ -3720,23 +3794,24 @@ User Permission|`Glip` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -String result = rc.restapi(apiVersion).glip().teams(chatId).archive().post(); +GlipConversationsList result = rc.restapi(apiVersion).glip().conversations().list(listGlipConversationsParameters); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `result` is an empty string +- `listGlipConversationsParameters` is of type [ListGlipConversationsParameters](./src/main/java/com/ringcentral/definitions/ListGlipConversationsParameters.java) +- `result` is of type [GlipConversationsList](./src/main/java/com/ringcentral/definitions/GlipConversationsList.java) -[Try it out](https://developer.ringcentral.com/api-reference#Teams-archiveGlipTeam) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Conversations-listGlipConversations) in API Explorer. -## leaveGlipTeam -Leave Team +## createGlipConversation +Create/Open Conversation Name|Value -|- HTTP Method|`POST` -Endpoint|`/restapi/{apiVersion}/glip/teams/{chatId}/leave` +Endpoint|`/restapi/{apiVersion}/glip/conversations` Rate Limit Group|`Medium` App Permission|`Glip` User Permission|`Glip` @@ -3744,71 +3819,76 @@ User Permission|`Glip` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -String result = rc.restapi(apiVersion).glip().teams(chatId).leave().post(); +GlipConversationInfo result = rc.restapi(apiVersion).glip().conversations().post(createGlipConversationRequest); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `result` is an empty string +- `createGlipConversationRequest` is of type [CreateGlipConversationRequest](./src/main/java/com/ringcentral/definitions/CreateGlipConversationRequest.java) +- `result` is of type [GlipConversationInfo](./src/main/java/com/ringcentral/definitions/GlipConversationInfo.java) -[Try it out](https://developer.ringcentral.com/api-reference#Teams-leaveGlipTeam) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Conversations-createGlipConversation) in API Explorer. -## listGlipWebhooks -Get Webhooks +## readGlipConversation +Get Conversation Name|Value -|- HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/glip/webhooks` -Rate Limit Group|`Medium` +Endpoint|`/restapi/{apiVersion}/glip/conversations/{chatId}` +Rate Limit Group|`Light` App Permission|`Glip` User Permission|`Glip` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -GlipWebhookList result = rc.restapi(apiVersion).glip().webhooks().list(); +GlipConversationInfo result = rc.restapi(apiVersion).glip().conversations(chatId).get(); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `result` is of type [GlipWebhookList](./src/main/java/com/ringcentral/definitions/GlipWebhookList.java) +- `result` is of type [GlipConversationInfo](./src/main/java/com/ringcentral/definitions/GlipConversationInfo.java) -[Try it out](https://developer.ringcentral.com/api-reference#Glip-Webhooks-listGlipWebhooks) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Conversations-readGlipConversation) in API Explorer. -## readGlipWebhook -Get Webhook +## readDataExportTaskDataset +Get Data Export Task Dataset Name|Value -|- HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/glip/webhooks/{webhookId}` -Rate Limit Group|`Medium` +Endpoint|`/restapi/{apiVersion}/glip/data-export/{taskId}/datasets/{datasetId}` +Rate Limit Group|`Heavy` App Permission|`Glip` -User Permission|`Glip` +User Permission|`N/A` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -GlipWebhookList result = rc.restapi(apiVersion).glip().webhooks(webhookId).get(); +byte[] result = rc.restapi(apiVersion).glip().dataExport(taskId).datasets(datasetId).get(); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `result` is of type [GlipWebhookList](./src/main/java/com/ringcentral/definitions/GlipWebhookList.java) +- `result` is of type `byte[]` -[Try it out](https://developer.ringcentral.com/api-reference#Glip-Webhooks-readGlipWebhook) in API Explorer. +### ❗❗❗ Code sample above may not work + +Please refer to [Binary content downloading](/README.md#Binary-content-downloading). +[Try it out](https://developer.ringcentral.com/api-reference#Glip-Compliance-Exports-readDataExportTaskDataset) in API Explorer. -## deleteGlipWebhook -Delete Webhook + +## listGroupEvents +Get Group Events Name|Value -|- -HTTP Method|`DELETE` -Endpoint|`/restapi/{apiVersion}/glip/webhooks/{webhookId}` +HTTP Method|`GET` +Endpoint|`/restapi/{apiVersion}/glip/groups/{groupId}/events` Rate Limit Group|`Medium` App Permission|`Glip` User Permission|`Glip` @@ -3816,194 +3896,194 @@ User Permission|`Glip` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -String result = rc.restapi(apiVersion).glip().webhooks(webhookId).delete(); +GlipEventInfo result = rc.restapi(apiVersion).glip().groups(groupId).events().get(); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `result` is an empty string +- `result` is of type [GlipEventInfo](./src/main/java/com/ringcentral/definitions/GlipEventInfo.java) -[Try it out](https://developer.ringcentral.com/api-reference#Glip-Webhooks-deleteGlipWebhook) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Calendar-Events-listGroupEvents) in API Explorer. -## listSubscriptions -Get Subscription List +## createEventByGroupId +Create Event by Group ID Name|Value -|- -HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/subscription` -Rate Limit Group|`Light` -App Permission|`N/A` -User Permission|`N/A` +HTTP Method|`POST` +Endpoint|`/restapi/{apiVersion}/glip/groups/{groupId}/events` +Rate Limit Group|`Medium` +App Permission|`Glip` +User Permission|`Glip` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -RecordsCollectionResourceSubscriptionResponse result = rc.restapi(apiVersion).subscription().list(); +GlipEventInfo result = rc.restapi(apiVersion).glip().groups(groupId).events().post(glipEventCreate); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `result` is of type [RecordsCollectionResourceSubscriptionResponse](./src/main/java/com/ringcentral/definitions/RecordsCollectionResourceSubscriptionResponse.java) +- `glipEventCreate` is of type [GlipEventCreate](./src/main/java/com/ringcentral/definitions/GlipEventCreate.java) +- `result` is of type [GlipEventInfo](./src/main/java/com/ringcentral/definitions/GlipEventInfo.java) -[Try it out](https://developer.ringcentral.com/api-reference#Subscriptions-listSubscriptions) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Calendar-Events-createEventByGroupId) in API Explorer. -## createSubscription -Create Subscription +## listGlipGroupWebhooks +Get Webhooks in Group Name|Value -|- -HTTP Method|`POST` -Endpoint|`/restapi/{apiVersion}/subscription` +HTTP Method|`GET` +Endpoint|`/restapi/{apiVersion}/glip/groups/{groupId}/webhooks` Rate Limit Group|`Medium` -App Permission|`N/A` -User Permission|`N/A` +App Permission|`Glip` +User Permission|`Glip` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -SubscriptionInfo result = rc.restapi(apiVersion).subscription().post(createSubscriptionRequest); +GlipWebhookList result = rc.restapi(apiVersion).glip().groups(groupId).webhooks().get(); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `createSubscriptionRequest` is of type [CreateSubscriptionRequest](./src/main/java/com/ringcentral/definitions/CreateSubscriptionRequest.java) -- `result` is of type [SubscriptionInfo](./src/main/java/com/ringcentral/definitions/SubscriptionInfo.java) +- `result` is of type [GlipWebhookList](./src/main/java/com/ringcentral/definitions/GlipWebhookList.java) -[Try it out](https://developer.ringcentral.com/api-reference#Subscriptions-createSubscription) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Glip-Webhooks-listGlipGroupWebhooks) in API Explorer. -## readSubscription -Get Subscription +## createGlipGroupWebhook +Create Webhook in Group Name|Value -|- -HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/subscription/{subscriptionId}` -Rate Limit Group|`Light` -App Permission|`N/A` -User Permission|`N/A` +HTTP Method|`POST` +Endpoint|`/restapi/{apiVersion}/glip/groups/{groupId}/webhooks` +Rate Limit Group|`Medium` +App Permission|`Glip` +User Permission|`Glip` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -SubscriptionInfo result = rc.restapi(apiVersion).subscription(subscriptionId).get(); +GlipWebhookInfo result = rc.restapi(apiVersion).glip().groups(groupId).webhooks().post(); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `result` is of type [SubscriptionInfo](./src/main/java/com/ringcentral/definitions/SubscriptionInfo.java) +- `result` is of type [GlipWebhookInfo](./src/main/java/com/ringcentral/definitions/GlipWebhookInfo.java) -[Try it out](https://developer.ringcentral.com/api-reference#Subscriptions-readSubscription) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Glip-Webhooks-createGlipGroupWebhook) in API Explorer. -## updateSubscription -Update Subscription +## publishNote +Publish Note Name|Value -|- -HTTP Method|`PUT` -Endpoint|`/restapi/{apiVersion}/subscription/{subscriptionId}` +HTTP Method|`POST` +Endpoint|`/restapi/{apiVersion}/glip/notes/{noteId}/publish` Rate Limit Group|`Medium` -App Permission|`N/A` -User Permission|`N/A` +App Permission|`Glip` +User Permission|`Glip` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -SubscriptionInfo result = rc.restapi(apiVersion).subscription(subscriptionId).put(modifySubscriptionRequest); +String result = rc.restapi(apiVersion).glip().notes(noteId).publish().post(); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `modifySubscriptionRequest` is of type [ModifySubscriptionRequest](./src/main/java/com/ringcentral/definitions/ModifySubscriptionRequest.java) -- `result` is of type [SubscriptionInfo](./src/main/java/com/ringcentral/definitions/SubscriptionInfo.java) +- `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Subscriptions-updateSubscription) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Notes-publishNote) in API Explorer. -## deleteSubscription -Cancel Subscription +## unlockNote +Unlock Note Name|Value -|- -HTTP Method|`DELETE` -Endpoint|`/restapi/{apiVersion}/subscription/{subscriptionId}` -Rate Limit Group|`Medium` -App Permission|`N/A` -User Permission|`N/A` +HTTP Method|`POST` +Endpoint|`/restapi/{apiVersion}/glip/notes/{noteId}/unlock` +Rate Limit Group|`Light` +App Permission|`Glip` +User Permission|`Glip` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -String result = rc.restapi(apiVersion).subscription(subscriptionId).delete(); +String result = rc.restapi(apiVersion).glip().notes(noteId).unlock().post(); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Subscriptions-deleteSubscription) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Notes-unlockNote) in API Explorer. -## searchViaPost2 -Search/List Users +## listRecentChats +Get Recent Chats Name|Value -|- -HTTP Method|`POST` -Endpoint|`/scim/{version}/Users/dotSearch` +HTTP Method|`GET` +Endpoint|`/restapi/{apiVersion}/glip/recent/chats` Rate Limit Group|`Light` -App Permission|`ReadAccounts` -User Permission|`N/A` +App Permission|`Glip` +User Permission|`Glip` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -UserSearchResponse result = rc.scim(version).users().dotSearch().post(searchRequest); +GlipChatsListWithoutNavigation result = rc.restapi(apiVersion).glip().recent().chats().get(listRecentChatsParameters); rc.revoke(); ``` -- Parameter `version` is optional with default value `v2` -- `searchRequest` is of type [SearchRequest](./src/main/java/com/ringcentral/definitions/SearchRequest.java) -- `result` is of type [UserSearchResponse](./src/main/java/com/ringcentral/definitions/UserSearchResponse.java) +- Parameter `apiVersion` is optional with default value `v1.0` +- `listRecentChatsParameters` is of type [ListRecentChatsParameters](./src/main/java/com/ringcentral/definitions/ListRecentChatsParameters.java) +- `result` is of type [GlipChatsListWithoutNavigation](./src/main/java/com/ringcentral/definitions/GlipChatsListWithoutNavigation.java) -[Try it out](https://developer.ringcentral.com/api-reference#SCIM-searchViaPost2) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Chats-listRecentChats) in API Explorer. -## joinGlipTeam -Join Team +## completeTask +Complete Task Name|Value -|- HTTP Method|`POST` -Endpoint|`/restapi/{apiVersion}/glip/teams/{chatId}/join` +Endpoint|`/restapi/{apiVersion}/glip/tasks/{taskId}/complete` Rate Limit Group|`Medium` -App Permission|`Glip` -User Permission|`Glip` +App Permission|`N/A` +User Permission|`N/A` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -String result = rc.restapi(apiVersion).glip().teams(chatId).join().post(); +String result = rc.restapi(apiVersion).glip().tasks(taskId).complete().post(glipCompleteTask); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` +- `glipCompleteTask` is of type [GlipCompleteTask](./src/main/java/com/ringcentral/definitions/GlipCompleteTask.java) - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Teams-joinGlipTeam) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Tasks-completeTask) in API Explorer. -## removeGlipTeamMembers -Remove Team Members +## archiveGlipTeam +Archive Team Name|Value -|- HTTP Method|`POST` -Endpoint|`/restapi/{apiVersion}/glip/teams/{chatId}/remove` +Endpoint|`/restapi/{apiVersion}/glip/teams/{chatId}/archive` Rate Limit Group|`Medium` App Permission|`Glip` User Permission|`Glip` @@ -4011,15 +4091,14 @@ User Permission|`Glip` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -String result = rc.restapi(apiVersion).glip().teams(chatId).remove().post(glipPostMembersIdsListBody); +String result = rc.restapi(apiVersion).glip().teams(chatId).archive().post(); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `glipPostMembersIdsListBody` is of type [GlipPostMembersIdsListBody](./src/main/java/com/ringcentral/definitions/GlipPostMembersIdsListBody.java) - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Teams-removeGlipTeamMembers) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Teams-archiveGlipTeam) in API Explorer. ## unarchiveGlipTeam @@ -5839,85 +5918,6 @@ Please refer to [Binary content downloading](/README.md#Binary-content-downloadi [Try it out](https://developer.ringcentral.com/api-reference#User-Settings-readScaledProfileImage) in API Explorer. -## createRingOutCall -Make RingOut Call - -Name|Value --|- -HTTP Method|`POST` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/extension/{extensionId}/ring-out` -Rate Limit Group|`Heavy` -App Permission|`RingOut` -User Permission|`N/A` - -```java -RestClient rc = new RestClient(clientID, clientSecret, serverURL); -rc.authorize(username, extension, password); -GetRingOutStatusResponse result = rc.restapi(apiVersion).account(accountId).extension(extensionId).ringOut().post(makeRingOutRequest); -rc.revoke(); -``` - -- Parameter `apiVersion` is optional with default value `v1.0` -- Parameter `accountId` is optional with default value `~` -- Parameter `extensionId` is optional with default value `~` -- `makeRingOutRequest` is of type [MakeRingOutRequest](./src/main/java/com/ringcentral/definitions/MakeRingOutRequest.java) -- `result` is of type [GetRingOutStatusResponse](./src/main/java/com/ringcentral/definitions/GetRingOutStatusResponse.java) - -[Try it out](https://developer.ringcentral.com/api-reference#RingOut-createRingOutCall) in API Explorer. - - -## readRingOutCallStatus -Get RingOut Call Status - -Name|Value --|- -HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/extension/{extensionId}/ring-out/{ringoutId}` -Rate Limit Group|`Light` -App Permission|`RingOut` -User Permission|`N/A` - -```java -RestClient rc = new RestClient(clientID, clientSecret, serverURL); -rc.authorize(username, extension, password); -GetRingOutStatusResponse result = rc.restapi(apiVersion).account(accountId).extension(extensionId).ringOut(ringoutId).get(); -rc.revoke(); -``` - -- Parameter `apiVersion` is optional with default value `v1.0` -- Parameter `accountId` is optional with default value `~` -- Parameter `extensionId` is optional with default value `~` -- `result` is of type [GetRingOutStatusResponse](./src/main/java/com/ringcentral/definitions/GetRingOutStatusResponse.java) - -[Try it out](https://developer.ringcentral.com/api-reference#RingOut-readRingOutCallStatus) in API Explorer. - - -## deleteRingOutCall -Cancel RingOut Call - -Name|Value --|- -HTTP Method|`DELETE` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/extension/{extensionId}/ring-out/{ringoutId}` -Rate Limit Group|`Heavy` -App Permission|`RingOut` -User Permission|`N/A` - -```java -RestClient rc = new RestClient(clientID, clientSecret, serverURL); -rc.authorize(username, extension, password); -String result = rc.restapi(apiVersion).account(accountId).extension(extensionId).ringOut(ringoutId).delete(); -rc.revoke(); -``` - -- Parameter `apiVersion` is optional with default value `v1.0` -- Parameter `accountId` is optional with default value `~` -- Parameter `extensionId` is optional with default value `~` -- `result` is an empty string - -[Try it out](https://developer.ringcentral.com/api-reference#RingOut-deleteRingOutCall) in API Explorer. - - ## readUnifiedPresence Get Unified Presence @@ -6463,6 +6463,31 @@ rc.revoke(); [Try it out](https://developer.ringcentral.com/api-reference#Call-Control-superviseCallSession) in API Explorer. +## listDomesticCountries +Get Domestic Country List + +Name|Value +-|- +HTTP Method|`GET` +Endpoint|`/restapi/{apiVersion}/dictionary/brand/{brandId}/contracted-country/{contractedCountryId}` +Rate Limit Group|`Light` +App Permission|`N/A` +User Permission|`N/A` + +```java +RestClient rc = new RestClient(clientID, clientSecret, serverURL); +rc.authorize(username, extension, password); +GetCountryListResponse result = rc.restapi(apiVersion).dictionary().brand(brandId).contractedCountry(contractedCountryId).get(listDomesticCountriesParameters); +rc.revoke(); +``` + +- Parameter `apiVersion` is optional with default value `v1.0` +- `listDomesticCountriesParameters` is of type [ListDomesticCountriesParameters](./src/main/java/com/ringcentral/definitions/ListDomesticCountriesParameters.java) +- `result` is of type [GetCountryListResponse](./src/main/java/com/ringcentral/definitions/GetCountryListResponse.java) + +[Try it out](https://developer.ringcentral.com/api-reference#Company-listDomesticCountries) in API Explorer. + + ## getAddressBookBulkUploadTask Get Contacts Update Task @@ -6642,115 +6667,13 @@ rc.revoke(); [Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-listDevicesAutomaticLocationUpdates) in API Explorer. -## listNetworks -Get Network Map - -Name|Value --|- -HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/emergency-address-auto-update/networks` -Rate Limit Group|`Heavy` -App Permission|`EditAccounts` -User Permission|`ConfigureEmergencyMaps` - -```java -RestClient rc = new RestClient(clientID, clientSecret, serverURL); -rc.authorize(username, extension, password); -NetworksList result = rc.restapi(apiVersion).account(accountId).emergencyAddressAutoUpdate().networks().list(); -rc.revoke(); -``` - -- Parameter `apiVersion` is optional with default value `v1.0` -- Parameter `accountId` is optional with default value `~` -- `result` is of type [NetworksList](./src/main/java/com/ringcentral/definitions/NetworksList.java) - -[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-listNetworks) in API Explorer. - - -## createNetwork -Create Network - -Name|Value --|- -HTTP Method|`POST` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/emergency-address-auto-update/networks` -Rate Limit Group|`Heavy` -App Permission|`EditAccounts` -User Permission|`ConfigureEmergencyMaps` - -```java -RestClient rc = new RestClient(clientID, clientSecret, serverURL); -rc.authorize(username, extension, password); -NetworkInfo result = rc.restapi(apiVersion).account(accountId).emergencyAddressAutoUpdate().networks().post(createNetworkRequest); -rc.revoke(); -``` - -- Parameter `apiVersion` is optional with default value `v1.0` -- Parameter `accountId` is optional with default value `~` -- `createNetworkRequest` is of type [CreateNetworkRequest](./src/main/java/com/ringcentral/definitions/CreateNetworkRequest.java) -- `result` is of type [NetworkInfo](./src/main/java/com/ringcentral/definitions/NetworkInfo.java) - -[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-createNetwork) in API Explorer. - - -## readNetwork -Get Network - -Name|Value --|- -HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/emergency-address-auto-update/networks/{networkId}` -Rate Limit Group|`Medium` -App Permission|`EditAccounts` -User Permission|`ConfigureEmergencyMaps` - -```java -RestClient rc = new RestClient(clientID, clientSecret, serverURL); -rc.authorize(username, extension, password); -NetworkInfo result = rc.restapi(apiVersion).account(accountId).emergencyAddressAutoUpdate().networks(networkId).get(); -rc.revoke(); -``` - -- Parameter `apiVersion` is optional with default value `v1.0` -- Parameter `accountId` is optional with default value `~` -- `result` is of type [NetworkInfo](./src/main/java/com/ringcentral/definitions/NetworkInfo.java) - -[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-readNetwork) in API Explorer. - - -## updateNetwork -Update Network - -Name|Value --|- -HTTP Method|`PUT` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/emergency-address-auto-update/networks/{networkId}` -Rate Limit Group|`Heavy` -App Permission|`EditAccounts` -User Permission|`ConfigureEmergencyMaps` - -```java -RestClient rc = new RestClient(clientID, clientSecret, serverURL); -rc.authorize(username, extension, password); -String result = rc.restapi(apiVersion).account(accountId).emergencyAddressAutoUpdate().networks(networkId).put(updateNetworkRequest); -rc.revoke(); -``` - -- Parameter `apiVersion` is optional with default value `v1.0` -- Parameter `accountId` is optional with default value `~` -- `updateNetworkRequest` is of type [UpdateNetworkRequest](./src/main/java/com/ringcentral/definitions/UpdateNetworkRequest.java) -- `result` is an empty string - -[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-updateNetwork) in API Explorer. - - -## deleteNetwork -Delete Network +## assignMultipleDevicesAutomaticLocationUpdates +Enable Automatic Location Updates for Devices Name|Value -|- -HTTP Method|`DELETE` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/emergency-address-auto-update/networks/{networkId}` +HTTP Method|`POST` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/emergency-address-auto-update/devices/bulk-assign` Rate Limit Group|`Heavy` App Permission|`EditAccounts` User Permission|`ConfigureEmergencyMaps` @@ -6758,24 +6681,25 @@ User Permission|`ConfigureEmergencyMaps` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -String result = rc.restapi(apiVersion).account(accountId).emergencyAddressAutoUpdate().networks(networkId).delete(); +String result = rc.restapi(apiVersion).account(accountId).emergencyAddressAutoUpdate().devices().bulkAssign().post(assignMultipleDevicesAutomaticLocationUpdates); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` +- `assignMultipleDevicesAutomaticLocationUpdates` is of type [AssignMultipleDevicesAutomaticLocationUpdates](./src/main/java/com/ringcentral/definitions/AssignMultipleDevicesAutomaticLocationUpdates.java) - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-deleteNetwork) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-assignMultipleDevicesAutomaticLocationUpdates) in API Explorer. -## listAccountSwitches -Get Account Switch List +## listNetworks +Get Network Map Name|Value -|- HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/emergency-address-auto-update/switches` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/emergency-address-auto-update/networks` Rate Limit Group|`Heavy` App Permission|`EditAccounts` User Permission|`ConfigureEmergencyMaps` @@ -6783,25 +6707,24 @@ User Permission|`ConfigureEmergencyMaps` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -SwitchesList result = rc.restapi(apiVersion).account(accountId).emergencyAddressAutoUpdate().switches().list(listAccountSwitchesParameters); +NetworksList result = rc.restapi(apiVersion).account(accountId).emergencyAddressAutoUpdate().networks().list(); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `listAccountSwitchesParameters` is of type [ListAccountSwitchesParameters](./src/main/java/com/ringcentral/definitions/ListAccountSwitchesParameters.java) -- `result` is of type [SwitchesList](./src/main/java/com/ringcentral/definitions/SwitchesList.java) +- `result` is of type [NetworksList](./src/main/java/com/ringcentral/definitions/NetworksList.java) -[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-listAccountSwitches) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-listNetworks) in API Explorer. -## createSwitch -Create Switch +## createNetwork +Create Network Name|Value -|- HTTP Method|`POST` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/emergency-address-auto-update/switches` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/emergency-address-auto-update/networks` Rate Limit Group|`Heavy` App Permission|`EditAccounts` User Permission|`ConfigureEmergencyMaps` @@ -6809,25 +6732,25 @@ User Permission|`ConfigureEmergencyMaps` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -SwitchInfo result = rc.restapi(apiVersion).account(accountId).emergencyAddressAutoUpdate().switches().post(createSwitchInfo); +NetworkInfo result = rc.restapi(apiVersion).account(accountId).emergencyAddressAutoUpdate().networks().post(createNetworkRequest); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `createSwitchInfo` is of type [CreateSwitchInfo](./src/main/java/com/ringcentral/definitions/CreateSwitchInfo.java) -- `result` is of type [SwitchInfo](./src/main/java/com/ringcentral/definitions/SwitchInfo.java) +- `createNetworkRequest` is of type [CreateNetworkRequest](./src/main/java/com/ringcentral/definitions/CreateNetworkRequest.java) +- `result` is of type [NetworkInfo](./src/main/java/com/ringcentral/definitions/NetworkInfo.java) -[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-createSwitch) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-createNetwork) in API Explorer. -## readSwitch -Get Switch +## readNetwork +Get Network Name|Value -|- HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/emergency-address-auto-update/switches/{switchId}` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/emergency-address-auto-update/networks/{networkId}` Rate Limit Group|`Medium` App Permission|`EditAccounts` User Permission|`ConfigureEmergencyMaps` @@ -6835,24 +6758,24 @@ User Permission|`ConfigureEmergencyMaps` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -SwitchInfo result = rc.restapi(apiVersion).account(accountId).emergencyAddressAutoUpdate().switches(switchId).get(); +NetworkInfo result = rc.restapi(apiVersion).account(accountId).emergencyAddressAutoUpdate().networks(networkId).get(); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `result` is of type [SwitchInfo](./src/main/java/com/ringcentral/definitions/SwitchInfo.java) +- `result` is of type [NetworkInfo](./src/main/java/com/ringcentral/definitions/NetworkInfo.java) -[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-readSwitch) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-readNetwork) in API Explorer. -## updateSwitch -Update Switch +## updateNetwork +Update Network Name|Value -|- HTTP Method|`PUT` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/emergency-address-auto-update/switches/{switchId}` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/emergency-address-auto-update/networks/{networkId}` Rate Limit Group|`Heavy` App Permission|`EditAccounts` User Permission|`ConfigureEmergencyMaps` @@ -6860,25 +6783,25 @@ User Permission|`ConfigureEmergencyMaps` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -SwitchInfo result = rc.restapi(apiVersion).account(accountId).emergencyAddressAutoUpdate().switches(switchId).put(updateSwitchInfo); +String result = rc.restapi(apiVersion).account(accountId).emergencyAddressAutoUpdate().networks(networkId).put(updateNetworkRequest); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `updateSwitchInfo` is of type [UpdateSwitchInfo](./src/main/java/com/ringcentral/definitions/UpdateSwitchInfo.java) -- `result` is of type [SwitchInfo](./src/main/java/com/ringcentral/definitions/SwitchInfo.java) +- `updateNetworkRequest` is of type [UpdateNetworkRequest](./src/main/java/com/ringcentral/definitions/UpdateNetworkRequest.java) +- `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-updateSwitch) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-updateNetwork) in API Explorer. -## deleteSwitch -Delete Switch +## deleteNetwork +Delete Network Name|Value -|- HTTP Method|`DELETE` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/emergency-address-auto-update/switches/{switchId}` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/emergency-address-auto-update/networks/{networkId}` Rate Limit Group|`Heavy` App Permission|`EditAccounts` User Permission|`ConfigureEmergencyMaps` @@ -6886,7 +6809,7 @@ User Permission|`ConfigureEmergencyMaps` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -String result = rc.restapi(apiVersion).account(accountId).emergencyAddressAutoUpdate().switches(switchId).delete(); +String result = rc.restapi(apiVersion).account(accountId).emergencyAddressAutoUpdate().networks(networkId).delete(); rc.revoke(); ``` @@ -6894,7 +6817,7 @@ rc.revoke(); - Parameter `accountId` is optional with default value `~` - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-deleteSwitch) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-deleteNetwork) in API Explorer. ## readAutomaticLocationUpdatesTask @@ -7344,84 +7267,83 @@ rc.revoke(); [Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-getExtensionEmergencyLocations) in API Explorer. -## createUserMeetingProfileImage -Upload User Meeting Profile Image +## readMeetingServiceInfo +Get Meeting Service Info Name|Value -|- -HTTP Method|`POST` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/extension/{extensionId}/meeting-configuration/profile-image` +HTTP Method|`GET` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/extension/{extensionId}/meeting/service-info` Rate Limit Group|`Light` -App Permission|`N/A` -User Permission|`N/A` +App Permission|`Meetings` +User Permission|`Meetings` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -String result = rc.restapi(apiVersion).account(accountId).extension(extensionId).meetingConfiguration().profileImage().post(createUserMeetingProfileImageRequest); +MeetingServiceInfoResource result = rc.restapi(apiVersion).account(accountId).extension(extensionId).meeting().serviceInfo().get(); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `createUserMeetingProfileImageRequest` is of type [CreateUserMeetingProfileImageRequest](./src/main/java/com/ringcentral/definitions/CreateUserMeetingProfileImageRequest.java) -- `result` is an empty string +- `result` is of type [MeetingServiceInfoResource](./src/main/java/com/ringcentral/definitions/MeetingServiceInfoResource.java) -[Try it out](https://developer.ringcentral.com/api-reference#Meeting-Configuration-createUserMeetingProfileImage) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Meeting-Configuration-readMeetingServiceInfo) in API Explorer. -## readMeetingServiceInfo -Get Meeting Service Info +## updateMeetingServiceInfo +Update Meeting Service Info Name|Value -|- -HTTP Method|`GET` +HTTP Method|`PATCH` Endpoint|`/restapi/{apiVersion}/account/{accountId}/extension/{extensionId}/meeting/service-info` -Rate Limit Group|`Light` +Rate Limit Group|`Medium` App Permission|`Meetings` User Permission|`Meetings` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -MeetingServiceInfoResource result = rc.restapi(apiVersion).account(accountId).extension(extensionId).meeting().serviceInfo().get(); +MeetingServiceInfoResource result = rc.restapi(apiVersion).account(accountId).extension(extensionId).meeting().serviceInfo().patch(meetingServiceInfoRequest); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` +- `meetingServiceInfoRequest` is of type [MeetingServiceInfoRequest](./src/main/java/com/ringcentral/definitions/MeetingServiceInfoRequest.java) - `result` is of type [MeetingServiceInfoResource](./src/main/java/com/ringcentral/definitions/MeetingServiceInfoResource.java) -[Try it out](https://developer.ringcentral.com/api-reference#Meeting-Configuration-readMeetingServiceInfo) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Meeting-Configuration-updateMeetingServiceInfo) in API Explorer. -## updateMeetingServiceInfo -Update Meeting Service Info +## GetUserSetting +Get Meeting User Settings Name|Value -|- -HTTP Method|`PATCH` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/extension/{extensionId}/meeting/service-info` -Rate Limit Group|`Medium` +HTTP Method|`GET` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/extension/{extensionId}/meeting/user-settings` +Rate Limit Group|`Light` App Permission|`Meetings` User Permission|`Meetings` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -MeetingServiceInfoResource result = rc.restapi(apiVersion).account(accountId).extension(extensionId).meeting().serviceInfo().patch(meetingServiceInfoRequest); +MeetingUserSettingsResponse result = rc.restapi(apiVersion).account(accountId).extension(extensionId).meeting().userSettings().get(); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `meetingServiceInfoRequest` is of type [MeetingServiceInfoRequest](./src/main/java/com/ringcentral/definitions/MeetingServiceInfoRequest.java) -- `result` is of type [MeetingServiceInfoResource](./src/main/java/com/ringcentral/definitions/MeetingServiceInfoResource.java) +- `result` is of type [MeetingUserSettingsResponse](./src/main/java/com/ringcentral/definitions/MeetingUserSettingsResponse.java) -[Try it out](https://developer.ringcentral.com/api-reference#Meeting-Configuration-updateMeetingServiceInfo) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Meeting-Configuration-GetUserSetting) in API Explorer. ## readMessageContent @@ -7534,13 +7456,39 @@ rc.revoke(); [Try it out](https://developer.ringcentral.com/api-reference#Paging-Only-Groups-assignMultiplePagingGroupUsersDevices) in API Explorer. -## assignMultipleDevicesAutomaticLocationUpdates -Enable Automatic Location Updates for Devices +## listAccountSwitches +Get Account Switch List + +Name|Value +-|- +HTTP Method|`GET` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/emergency-address-auto-update/switches` +Rate Limit Group|`Heavy` +App Permission|`EditAccounts` +User Permission|`ConfigureEmergencyMaps` + +```java +RestClient rc = new RestClient(clientID, clientSecret, serverURL); +rc.authorize(username, extension, password); +SwitchesList result = rc.restapi(apiVersion).account(accountId).emergencyAddressAutoUpdate().switches().list(listAccountSwitchesParameters); +rc.revoke(); +``` + +- Parameter `apiVersion` is optional with default value `v1.0` +- Parameter `accountId` is optional with default value `~` +- `listAccountSwitchesParameters` is of type [ListAccountSwitchesParameters](./src/main/java/com/ringcentral/definitions/ListAccountSwitchesParameters.java) +- `result` is of type [SwitchesList](./src/main/java/com/ringcentral/definitions/SwitchesList.java) + +[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-listAccountSwitches) in API Explorer. + + +## createSwitch +Create Switch Name|Value -|- HTTP Method|`POST` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/emergency-address-auto-update/devices/bulk-assign` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/emergency-address-auto-update/switches` Rate Limit Group|`Heavy` App Permission|`EditAccounts` User Permission|`ConfigureEmergencyMaps` @@ -7548,16 +7496,92 @@ User Permission|`ConfigureEmergencyMaps` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -String result = rc.restapi(apiVersion).account(accountId).emergencyAddressAutoUpdate().devices().bulkAssign().post(assignMultipleDevicesAutomaticLocationUpdates); +SwitchInfo result = rc.restapi(apiVersion).account(accountId).emergencyAddressAutoUpdate().switches().post(createSwitchInfo); +rc.revoke(); +``` + +- Parameter `apiVersion` is optional with default value `v1.0` +- Parameter `accountId` is optional with default value `~` +- `createSwitchInfo` is of type [CreateSwitchInfo](./src/main/java/com/ringcentral/definitions/CreateSwitchInfo.java) +- `result` is of type [SwitchInfo](./src/main/java/com/ringcentral/definitions/SwitchInfo.java) + +[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-createSwitch) in API Explorer. + + +## readSwitch +Get Switch + +Name|Value +-|- +HTTP Method|`GET` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/emergency-address-auto-update/switches/{switchId}` +Rate Limit Group|`Medium` +App Permission|`EditAccounts` +User Permission|`ConfigureEmergencyMaps` + +```java +RestClient rc = new RestClient(clientID, clientSecret, serverURL); +rc.authorize(username, extension, password); +SwitchInfo result = rc.restapi(apiVersion).account(accountId).emergencyAddressAutoUpdate().switches(switchId).get(); +rc.revoke(); +``` + +- Parameter `apiVersion` is optional with default value `v1.0` +- Parameter `accountId` is optional with default value `~` +- `result` is of type [SwitchInfo](./src/main/java/com/ringcentral/definitions/SwitchInfo.java) + +[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-readSwitch) in API Explorer. + + +## updateSwitch +Update Switch + +Name|Value +-|- +HTTP Method|`PUT` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/emergency-address-auto-update/switches/{switchId}` +Rate Limit Group|`Heavy` +App Permission|`EditAccounts` +User Permission|`ConfigureEmergencyMaps` + +```java +RestClient rc = new RestClient(clientID, clientSecret, serverURL); +rc.authorize(username, extension, password); +SwitchInfo result = rc.restapi(apiVersion).account(accountId).emergencyAddressAutoUpdate().switches(switchId).put(updateSwitchInfo); +rc.revoke(); +``` + +- Parameter `apiVersion` is optional with default value `v1.0` +- Parameter `accountId` is optional with default value `~` +- `updateSwitchInfo` is of type [UpdateSwitchInfo](./src/main/java/com/ringcentral/definitions/UpdateSwitchInfo.java) +- `result` is of type [SwitchInfo](./src/main/java/com/ringcentral/definitions/SwitchInfo.java) + +[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-updateSwitch) in API Explorer. + + +## deleteSwitch +Delete Switch + +Name|Value +-|- +HTTP Method|`DELETE` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/emergency-address-auto-update/switches/{switchId}` +Rate Limit Group|`Heavy` +App Permission|`EditAccounts` +User Permission|`ConfigureEmergencyMaps` + +```java +RestClient rc = new RestClient(clientID, clientSecret, serverURL); +rc.authorize(username, extension, password); +String result = rc.restapi(apiVersion).account(accountId).emergencyAddressAutoUpdate().switches(switchId).delete(); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `assignMultipleDevicesAutomaticLocationUpdates` is of type [AssignMultipleDevicesAutomaticLocationUpdates](./src/main/java/com/ringcentral/definitions/AssignMultipleDevicesAutomaticLocationUpdates.java) - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-assignMultipleDevicesAutomaticLocationUpdates) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-deleteSwitch) in API Explorer. ## createMultipleSwitches @@ -7849,30 +7873,31 @@ rc.revoke(); [Try it out](https://developer.ringcentral.com/api-reference#Call-Blocking-deleteBlockedAllowedNumber) in API Explorer. -## GetUserSetting -Get Meeting User Settings +## createUserMeetingProfileImage +Upload User Meeting Profile Image Name|Value -|- -HTTP Method|`GET` -Endpoint|`/restapi/{apiVersion}/account/{accountId}/extension/{extensionId}/meeting/user-settings` +HTTP Method|`POST` +Endpoint|`/restapi/{apiVersion}/account/{accountId}/extension/{extensionId}/meeting-configuration/profile-image` Rate Limit Group|`Light` -App Permission|`Meetings` -User Permission|`Meetings` +App Permission|`N/A` +User Permission|`N/A` ```java RestClient rc = new RestClient(clientID, clientSecret, serverURL); rc.authorize(username, extension, password); -MeetingUserSettingsResponse result = rc.restapi(apiVersion).account(accountId).extension(extensionId).meeting().userSettings().get(); +String result = rc.restapi(apiVersion).account(accountId).extension(extensionId).meetingConfiguration().profileImage().post(createUserMeetingProfileImageRequest); rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `result` is of type [MeetingUserSettingsResponse](./src/main/java/com/ringcentral/definitions/MeetingUserSettingsResponse.java) +- `createUserMeetingProfileImageRequest` is of type [CreateUserMeetingProfileImageRequest](./src/main/java/com/ringcentral/definitions/CreateUserMeetingProfileImageRequest.java) +- `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Meeting-Configuration-GetUserSetting) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Meeting-Configuration-createUserMeetingProfileImage) in API Explorer. ## readAssistants diff --git a/src/main/java/com/ringcentral/definitions/AccountOperatorInfo.java b/src/main/java/com/ringcentral/definitions/AccountOperatorInfo.java index ad9e47ef..1b01fe68 100644 --- a/src/main/java/com/ringcentral/definitions/AccountOperatorInfo.java +++ b/src/main/java/com/ringcentral/definitions/AccountOperatorInfo.java @@ -9,6 +9,7 @@ public class AccountOperatorInfo { public String uri; /** * Internal identifier of an operator extension + * Format: int64 */ public Long id; /** diff --git a/src/main/java/com/ringcentral/definitions/AnsweringRuleInfo.java b/src/main/java/com/ringcentral/definitions/AnsweringRuleInfo.java index 60baae29..446e41ef 100644 --- a/src/main/java/com/ringcentral/definitions/AnsweringRuleInfo.java +++ b/src/main/java/com/ringcentral/definitions/AnsweringRuleInfo.java @@ -73,6 +73,10 @@ public class AnsweringRuleInfo { * */ public SharedLinesInfo sharedLines; + /** + * + */ + public MissedCallInfo missedCall; public AnsweringRuleInfo uri(String uri) { this.uri = uri; @@ -158,4 +162,9 @@ public AnsweringRuleInfo sharedLines(SharedLinesInfo sharedLines) { this.sharedLines = sharedLines; return this; } + + public AnsweringRuleInfo missedCall(MissedCallInfo missedCall) { + this.missedCall = missedCall; + return this; + } } diff --git a/src/main/java/com/ringcentral/definitions/AutomaticLocationUpdatesPhoneNumberInfo.java b/src/main/java/com/ringcentral/definitions/AutomaticLocationUpdatesPhoneNumberInfo.java index b26d3b39..7cb0e6d2 100644 --- a/src/main/java/com/ringcentral/definitions/AutomaticLocationUpdatesPhoneNumberInfo.java +++ b/src/main/java/com/ringcentral/definitions/AutomaticLocationUpdatesPhoneNumberInfo.java @@ -4,6 +4,7 @@ public class AutomaticLocationUpdatesPhoneNumberInfo { /** * Internal identifier of a phone number + * Format: int64 */ public Long id; /** diff --git a/src/main/java/com/ringcentral/definitions/AutomaticLocationUpdatesSiteInfoRequest.java b/src/main/java/com/ringcentral/definitions/AutomaticLocationUpdatesSiteInfoRequest.java new file mode 100644 index 00000000..1f552736 --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/AutomaticLocationUpdatesSiteInfoRequest.java @@ -0,0 +1,14 @@ +package com.ringcentral.definitions; + + +public class AutomaticLocationUpdatesSiteInfoRequest { + /** + * Internal identifier of a site + */ + public String id; + + public AutomaticLocationUpdatesSiteInfoRequest id(String id) { + this.id = id; + return this; + } +} diff --git a/src/main/java/com/ringcentral/definitions/CallQueueMemberInfo.java b/src/main/java/com/ringcentral/definitions/CallQueueMemberInfo.java index 5159b9b8..3325be2f 100644 --- a/src/main/java/com/ringcentral/definitions/CallQueueMemberInfo.java +++ b/src/main/java/com/ringcentral/definitions/CallQueueMemberInfo.java @@ -8,6 +8,7 @@ public class CallQueueMemberInfo { public String uri; /** * Internal identifier of a call queue member + * Format: int64 */ public Long id; /** diff --git a/src/main/java/com/ringcentral/definitions/CompanyPhoneNumberInfo.java b/src/main/java/com/ringcentral/definitions/CompanyPhoneNumberInfo.java index 6ee8b50f..02248e47 100644 --- a/src/main/java/com/ringcentral/definitions/CompanyPhoneNumberInfo.java +++ b/src/main/java/com/ringcentral/definitions/CompanyPhoneNumberInfo.java @@ -8,6 +8,7 @@ public class CompanyPhoneNumberInfo { public String uri; /** * Internal identifier of a phone number + * Format: int64 */ public Long id; /** diff --git a/src/main/java/com/ringcentral/definitions/ContactInfo.java b/src/main/java/com/ringcentral/definitions/ContactInfo.java index 32d79715..b3b7b8d8 100644 --- a/src/main/java/com/ringcentral/definitions/ContactInfo.java +++ b/src/main/java/com/ringcentral/definitions/ContactInfo.java @@ -11,6 +11,10 @@ public class ContactInfo { * For User extension type only. Extension user last name */ public String lastName; + /** + * Extension user name (first name and last name) + */ + public String name; /** * Extension user company name */ @@ -58,6 +62,11 @@ public ContactInfo lastName(String lastName) { return this; } + public ContactInfo name(String name) { + this.name = name; + return this; + } + public ContactInfo company(String company) { this.company = company; return this; diff --git a/src/main/java/com/ringcentral/definitions/CreateMessageStoreReportRequest.java b/src/main/java/com/ringcentral/definitions/CreateMessageStoreReportRequest.java index 8b8054fe..8d1530cc 100644 --- a/src/main/java/com/ringcentral/definitions/CreateMessageStoreReportRequest.java +++ b/src/main/java/com/ringcentral/definitions/CreateMessageStoreReportRequest.java @@ -3,21 +3,30 @@ public class CreateMessageStoreReportRequest { /** - * Starting time for collecting messages. The default value equals to the current time minus 24 hours + * Only messages created before the date will be collected. The default value is current time + */ + public String dateTo; + /** + * Only messages created after (or including) the date will be collected. The default value is current time minus 24 hours */ public String dateFrom; /** - * Ending time for collecting messages. The default value is the current time + * Enum: EMail, Fax, SMS, VoiceMail, Pager, Text */ - public String dateTo; + public String[] messageTypes; + + public CreateMessageStoreReportRequest dateTo(String dateTo) { + this.dateTo = dateTo; + return this; + } public CreateMessageStoreReportRequest dateFrom(String dateFrom) { this.dateFrom = dateFrom; return this; } - public CreateMessageStoreReportRequest dateTo(String dateTo) { - this.dateTo = dateTo; + public CreateMessageStoreReportRequest messageTypes(String[] messageTypes) { + this.messageTypes = messageTypes; return this; } } diff --git a/src/main/java/com/ringcentral/definitions/CurrencyInfo.java b/src/main/java/com/ringcentral/definitions/CurrencyInfo.java index b490783c..b27d3307 100644 --- a/src/main/java/com/ringcentral/definitions/CurrencyInfo.java +++ b/src/main/java/com/ringcentral/definitions/CurrencyInfo.java @@ -5,8 +5,9 @@ public class CurrencyInfo { /** * Internal identifier of a currency + * Format: int64 */ - public String id; + public Long id; /** * Official code of a currency */ @@ -24,7 +25,7 @@ public class CurrencyInfo { */ public String minorSymbol; - public CurrencyInfo id(String id) { + public CurrencyInfo id(Long id) { this.id = id; return this; } diff --git a/src/main/java/com/ringcentral/definitions/DeleteMessageParameters.java b/src/main/java/com/ringcentral/definitions/DeleteMessageParameters.java index beeef9a5..312a64d0 100644 --- a/src/main/java/com/ringcentral/definitions/DeleteMessageParameters.java +++ b/src/main/java/com/ringcentral/definitions/DeleteMessageParameters.java @@ -9,6 +9,7 @@ public class DeleteMessageParameters { public Boolean purge; /** * Internal identifier of a message thread + * Format: int64 */ public Long conversationId; diff --git a/src/main/java/com/ringcentral/definitions/DeviceCountryResource.java b/src/main/java/com/ringcentral/definitions/DeviceCountryResource.java index 58b8c9f9..d3a37040 100644 --- a/src/main/java/com/ringcentral/definitions/DeviceCountryResource.java +++ b/src/main/java/com/ringcentral/definitions/DeviceCountryResource.java @@ -8,7 +8,7 @@ public class DeviceCountryResource { */ public String uri; /** - * + * Format: int64 */ public String id; /** diff --git a/src/main/java/com/ringcentral/definitions/DeviceExtensionInfo.java b/src/main/java/com/ringcentral/definitions/DeviceExtensionInfo.java index 84cd3ca6..934a5a6a 100644 --- a/src/main/java/com/ringcentral/definitions/DeviceExtensionInfo.java +++ b/src/main/java/com/ringcentral/definitions/DeviceExtensionInfo.java @@ -5,6 +5,7 @@ public class DeviceExtensionInfo { /** * Internal identifier of an extension + * Format: int64 */ public Long id; /** diff --git a/src/main/java/com/ringcentral/definitions/DevicePhoneLinesEmergencyAddressInfo.java b/src/main/java/com/ringcentral/definitions/DevicePhoneLinesEmergencyAddressInfo.java index a444103d..1b12d26c 100644 --- a/src/main/java/com/ringcentral/definitions/DevicePhoneLinesEmergencyAddressInfo.java +++ b/src/main/java/com/ringcentral/definitions/DevicePhoneLinesEmergencyAddressInfo.java @@ -3,11 +3,11 @@ public class DevicePhoneLinesEmergencyAddressInfo { /** - * 'True' if specifying of emergency address is required + * 'True' if specifying of emergency address is required */ public Boolean required; /** - * 'True' if only local emergency address can be specified + * 'True' if only local emergency address can be specified */ public Boolean localOnly; diff --git a/src/main/java/com/ringcentral/definitions/DevicePhoneNumberInfo.java b/src/main/java/com/ringcentral/definitions/DevicePhoneNumberInfo.java index 948a97b1..b539b429 100644 --- a/src/main/java/com/ringcentral/definitions/DevicePhoneNumberInfo.java +++ b/src/main/java/com/ringcentral/definitions/DevicePhoneNumberInfo.java @@ -5,6 +5,7 @@ public class DevicePhoneNumberInfo { /** * Internal identifier of a phone number + * Format: int64 */ public Long id; /** diff --git a/src/main/java/com/ringcentral/definitions/ExtensionDeviceResponse.java b/src/main/java/com/ringcentral/definitions/ExtensionDeviceResponse.java index 090bb1a1..946d4696 100644 --- a/src/main/java/com/ringcentral/definitions/ExtensionDeviceResponse.java +++ b/src/main/java/com/ringcentral/definitions/ExtensionDeviceResponse.java @@ -62,7 +62,8 @@ public class ExtensionDeviceResponse { */ public ShippingInfo shipping; /** - * Box billing identifier of a device. Applicable only for HardPhones. It is an alternative way to identify the device to be ordered. EitherT? model structure, or boxBillingId must be specified forT?HardPhone + * Box billing identifier of a device. Applicable only for HardPhones. It is an alternative way to identify the device to be ordered. Either model structure, or boxBillingId must be specified for HardPhone + * Format: int64 */ public Long boxBillingId; /** diff --git a/src/main/java/com/ringcentral/definitions/ExtensionInfoCallLog.java b/src/main/java/com/ringcentral/definitions/ExtensionInfoCallLog.java index 1025cf75..3c7f0c0c 100644 --- a/src/main/java/com/ringcentral/definitions/ExtensionInfoCallLog.java +++ b/src/main/java/com/ringcentral/definitions/ExtensionInfoCallLog.java @@ -5,6 +5,7 @@ public class ExtensionInfoCallLog { /** * Internal identifier of an extension + * Format: int64 */ public Long id; /** diff --git a/src/main/java/com/ringcentral/definitions/ExtensionUpdateRequest.java b/src/main/java/com/ringcentral/definitions/ExtensionUpdateRequest.java index 34491994..5b57b5b5 100644 --- a/src/main/java/com/ringcentral/definitions/ExtensionUpdateRequest.java +++ b/src/main/java/com/ringcentral/definitions/ExtensionUpdateRequest.java @@ -65,7 +65,7 @@ public class ExtensionUpdateRequest { /** * */ - public AutomaticLocationUpdatesSiteInfo site; + public AutomaticLocationUpdatesSiteInfoRequest site; /** * Extension type. Please note that legacy 'Department' extension type corresponds to 'Call Queue' extensions in modern RingCentral product terminology * Enum: User, Fax User, VirtualUser, DigitalUser, Department, Announcement, Voicemail, SharedLinesGroup, PagingOnly, IvrMenu, ApplicationExtension, ParkLocation, DelegatedLinesGroup, GroupCallPickup @@ -151,7 +151,7 @@ public ExtensionUpdateRequest hidden(Boolean hidden) { return this; } - public ExtensionUpdateRequest site(AutomaticLocationUpdatesSiteInfo site) { + public ExtensionUpdateRequest site(AutomaticLocationUpdatesSiteInfoRequest site) { this.site = site; return this; } diff --git a/src/main/java/com/ringcentral/definitions/FavoriteContactResource.java b/src/main/java/com/ringcentral/definitions/FavoriteContactResource.java index aa103822..4e9bb96d 100644 --- a/src/main/java/com/ringcentral/definitions/FavoriteContactResource.java +++ b/src/main/java/com/ringcentral/definitions/FavoriteContactResource.java @@ -3,7 +3,7 @@ public class FavoriteContactResource { /** - * + * Format: int64 */ public Long id; /** diff --git a/src/main/java/com/ringcentral/definitions/GetAccountInfoResponse.java b/src/main/java/com/ringcentral/definitions/GetAccountInfoResponse.java index 460581a2..da96634a 100644 --- a/src/main/java/com/ringcentral/definitions/GetAccountInfoResponse.java +++ b/src/main/java/com/ringcentral/definitions/GetAccountInfoResponse.java @@ -4,6 +4,7 @@ public class GetAccountInfoResponse { /** * Internal identifier of an account + * Format: int64 */ public Long id; /** diff --git a/src/main/java/com/ringcentral/definitions/GetDeviceInfoResponse.java b/src/main/java/com/ringcentral/definitions/GetDeviceInfoResponse.java index e9e793b3..5eb45f95 100644 --- a/src/main/java/com/ringcentral/definitions/GetDeviceInfoResponse.java +++ b/src/main/java/com/ringcentral/definitions/GetDeviceInfoResponse.java @@ -62,7 +62,8 @@ public class GetDeviceInfoResponse { */ public ShippingInfo shipping; /** - * Box billing identifier of a device. Applicable only for HardPhones. It is an alternative way to identify the device to be ordered. EitherT? model structure, or boxBillingId must be specified forT?HardPhone + * Box billing identifier of a device. Applicable only for HardPhones. It is an alternative way to identify the device to be ordered. Either model structure, or boxBillingId must be specified for HardPhone + * Format: int64 */ public Long boxBillingId; /** diff --git a/src/main/java/com/ringcentral/definitions/GetInternalTextMessageInfoResponse.java b/src/main/java/com/ringcentral/definitions/GetInternalTextMessageInfoResponse.java index 4df88c89..a4125673 100644 --- a/src/main/java/com/ringcentral/definitions/GetInternalTextMessageInfoResponse.java +++ b/src/main/java/com/ringcentral/definitions/GetInternalTextMessageInfoResponse.java @@ -4,6 +4,7 @@ public class GetInternalTextMessageInfoResponse { /** * Internal identifier of a message + * Format: int64 */ public Long id; /** @@ -21,6 +22,7 @@ public class GetInternalTextMessageInfoResponse { public String availability; /** * SMS and Pager only. Identifier of a conversation that the message belongs to + * Format: int64 */ public Long conversationId; /** diff --git a/src/main/java/com/ringcentral/definitions/GetMessageInfoResponse.java b/src/main/java/com/ringcentral/definitions/GetMessageInfoResponse.java index b12dc412..500c68ba 100644 --- a/src/main/java/com/ringcentral/definitions/GetMessageInfoResponse.java +++ b/src/main/java/com/ringcentral/definitions/GetMessageInfoResponse.java @@ -4,6 +4,7 @@ public class GetMessageInfoResponse { /** * Internal identifier of a message + * Format: int64 */ public Long id; /** @@ -25,6 +26,7 @@ public class GetMessageInfoResponse { public String availability; /** * SMS and Pager only. Identifier of a conversation the message belongs to + * Format: int64 */ public Long conversationId; /** diff --git a/src/main/java/com/ringcentral/definitions/GetPresenceExtensionInfo.java b/src/main/java/com/ringcentral/definitions/GetPresenceExtensionInfo.java index 7684935f..993c7be7 100644 --- a/src/main/java/com/ringcentral/definitions/GetPresenceExtensionInfo.java +++ b/src/main/java/com/ringcentral/definitions/GetPresenceExtensionInfo.java @@ -5,6 +5,7 @@ public class GetPresenceExtensionInfo { /** * Internal identifier of an extension + * Format: int64 */ public Long id; /** diff --git a/src/main/java/com/ringcentral/definitions/GetSMSMessageInfoResponse.java b/src/main/java/com/ringcentral/definitions/GetSMSMessageInfoResponse.java index a2834923..fc9f5f14 100644 --- a/src/main/java/com/ringcentral/definitions/GetSMSMessageInfoResponse.java +++ b/src/main/java/com/ringcentral/definitions/GetSMSMessageInfoResponse.java @@ -4,6 +4,7 @@ public class GetSMSMessageInfoResponse { /** * Internal identifier of a message + * Format: int64 */ public Long id; /** @@ -21,6 +22,7 @@ public class GetSMSMessageInfoResponse { public String availability; /** * SMS and Pager only. Identifier of a conversation that the message belongs to + * Format: int64 */ public Long conversationId; /** diff --git a/src/main/java/com/ringcentral/definitions/GetTokenRequest.java b/src/main/java/com/ringcentral/definitions/GetTokenRequest.java index fae0e0a8..1991e691 100644 --- a/src/main/java/com/ringcentral/definitions/GetTokenRequest.java +++ b/src/main/java/com/ringcentral/definitions/GetTokenRequest.java @@ -19,7 +19,7 @@ public class GetTokenRequest { /** * Grant type * Default: password - * Enum: authorization_code, password, refresh_token, client_credentials, urn:ietf:params:oauth:grant-type:jwt-bearer + * Enum: authorization_code, password, refresh_token, client_credentials, urn:ietf:params:oauth:grant-type:jwt-bearer, partner_jwt */ public String grant_type; /** diff --git a/src/main/java/com/ringcentral/definitions/ListAutomaticLocationUpdatesUsersParameters.java b/src/main/java/com/ringcentral/definitions/ListAutomaticLocationUpdatesUsersParameters.java index a6d13d86..f22a12e1 100644 --- a/src/main/java/com/ringcentral/definitions/ListAutomaticLocationUpdatesUsersParameters.java +++ b/src/main/java/com/ringcentral/definitions/ListAutomaticLocationUpdatesUsersParameters.java @@ -25,7 +25,7 @@ public class ListAutomaticLocationUpdatesUsersParameters { */ public Boolean featureEnabled; /** - * Comma-separated list of fields to order results prefixed by plus sign '+' (ascending order) or minus sign '-' (descending order). Supported values: 'name', 'modelName', 'siteName', 'featureEnabled' + * Comma-separated list of fields to order results prefixed by plus sign '+' (ascending order) or minus sign '-' (descending order). Supported values: 'name', 'modelName', 'siteName', 'featureEnabled' * Default: name */ public String orderBy; diff --git a/src/main/java/com/ringcentral/definitions/ListDevicesAutomaticLocationUpdatesParameters.java b/src/main/java/com/ringcentral/definitions/ListDevicesAutomaticLocationUpdatesParameters.java index d3ec3cc7..fee2ede9 100644 --- a/src/main/java/com/ringcentral/definitions/ListDevicesAutomaticLocationUpdatesParameters.java +++ b/src/main/java/com/ringcentral/definitions/ListDevicesAutomaticLocationUpdatesParameters.java @@ -24,7 +24,7 @@ public class ListDevicesAutomaticLocationUpdatesParameters { */ public String searchString; /** - * Comma-separated list of fields to order results prefixed by plus sign '+' (ascending order) or minus sign '-' (descending order). Supported values: 'name', 'modelName', 'siteName', 'featureEnabled' + * Comma-separated list of fields to order results prefixed by plus sign '+' (ascending order) or minus sign '-' (descending order). Supported values: 'name', 'modelName', 'siteName', 'featureEnabled' * Default: name */ public String orderBy; diff --git a/src/main/java/com/ringcentral/definitions/ListDomesticCountriesParameters.java b/src/main/java/com/ringcentral/definitions/ListDomesticCountriesParameters.java new file mode 100644 index 00000000..ab07c451 --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/ListDomesticCountriesParameters.java @@ -0,0 +1,26 @@ +package com.ringcentral.definitions; + + +// Query parameters for operation listDomesticCountries +public class ListDomesticCountriesParameters { + /** + * Indicates the page number to retrieve. Only positive number values are accepted + * Default: 1 + */ + public Long page; + /** + * Indicates the page size (number of items) + * Default: 100 + */ + public Long perPage; + + public ListDomesticCountriesParameters page(Long page) { + this.page = page; + return this; + } + + public ListDomesticCountriesParameters perPage(Long perPage) { + this.perPage = perPage; + return this; + } +} diff --git a/src/main/java/com/ringcentral/definitions/ListStatesParameters.java b/src/main/java/com/ringcentral/definitions/ListStatesParameters.java index b68993f2..1922f6b2 100644 --- a/src/main/java/com/ringcentral/definitions/ListStatesParameters.java +++ b/src/main/java/com/ringcentral/definitions/ListStatesParameters.java @@ -9,6 +9,7 @@ public class ListStatesParameters { public Boolean allCountries; /** * Internal identifier of a country + * Format: int64 */ public Long countryId; /** diff --git a/src/main/java/com/ringcentral/definitions/MessageAttachmentInfo.java b/src/main/java/com/ringcentral/definitions/MessageAttachmentInfo.java index 426f8420..c54d9c83 100644 --- a/src/main/java/com/ringcentral/definitions/MessageAttachmentInfo.java +++ b/src/main/java/com/ringcentral/definitions/MessageAttachmentInfo.java @@ -4,6 +4,7 @@ public class MessageAttachmentInfo { /** * Internal identifier of a message attachment + * Format: int64 */ public Long id; /** diff --git a/src/main/java/com/ringcentral/definitions/MessageBody.java b/src/main/java/com/ringcentral/definitions/MessageBody.java index 290e7892..ecc7162d 100644 --- a/src/main/java/com/ringcentral/definitions/MessageBody.java +++ b/src/main/java/com/ringcentral/definitions/MessageBody.java @@ -21,6 +21,7 @@ public class MessageBody { public String availability; /** * SMS and Pager only. Identifier of a conversation the message belongs to + * Format: int64 */ public Long conversationId; /** diff --git a/src/main/java/com/ringcentral/definitions/MessageStoreReport.java b/src/main/java/com/ringcentral/definitions/MessageStoreReport.java index 5ddb064c..204d29e5 100644 --- a/src/main/java/com/ringcentral/definitions/MessageStoreReport.java +++ b/src/main/java/com/ringcentral/definitions/MessageStoreReport.java @@ -32,13 +32,17 @@ public class MessageStoreReport { */ public String lastModifiedTime; /** - * Ending time for collecting messages + * Only messages created before the date will be collected. The default value is current time */ public String dateTo; /** - * Starting time for collecting messages + * Only messages created after (or including) the date will be collected. The default value is current time minus 24 hours */ public String dateFrom; + /** + * Enum: EMail, Fax, SMS, VoiceMail, Pager, Text + */ + public String[] messageTypes; public MessageStoreReport id(String id) { this.id = id; @@ -84,4 +88,9 @@ public MessageStoreReport dateFrom(String dateFrom) { this.dateFrom = dateFrom; return this; } + + public MessageStoreReport messageTypes(String[] messageTypes) { + this.messageTypes = messageTypes; + return this; + } } diff --git a/src/main/java/com/ringcentral/definitions/MissedCallExtensionInfo.java b/src/main/java/com/ringcentral/definitions/MissedCallExtensionInfo.java new file mode 100644 index 00000000..79a6e2ea --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/MissedCallExtensionInfo.java @@ -0,0 +1,15 @@ +package com.ringcentral.definitions; + + +// Specifies an extension (a calling group) which should be used for missed call transfer. Returned only if the `actionType` is set to 'ConnectToExtension' +public class MissedCallExtensionInfo { + /** + * Internal identifier of an extension which should be used for missed call transfer + */ + public String id; + + public MissedCallExtensionInfo id(String id) { + this.id = id; + return this; + } +} diff --git a/src/main/java/com/ringcentral/definitions/MissedCallInfo.java b/src/main/java/com/ringcentral/definitions/MissedCallInfo.java new file mode 100644 index 00000000..2646833e --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/MissedCallInfo.java @@ -0,0 +1,25 @@ +package com.ringcentral.definitions; + + +// Specifies behaviour for the missed call scenario. Returned only if `enabled` parameter of a voicemail is set to 'false' +public class MissedCallInfo { + /** + * Specifies the action that should be executed on a missed call. It can either be playing greeting message and disconnection, or sending call to a calling group. If 'ConnectToExtension' is set, then calling group extension should be specified + * Enum: PlayGreetingAndDisconnect, ConnectToExtension + */ + public String actionType; + /** + * + */ + public MissedCallExtensionInfo extension; + + public MissedCallInfo actionType(String actionType) { + this.actionType = actionType; + return this; + } + + public MissedCallInfo extension(MissedCallExtensionInfo extension) { + this.extension = extension; + return this; + } +} diff --git a/src/main/java/com/ringcentral/definitions/NotificationSettings.java b/src/main/java/com/ringcentral/definitions/NotificationSettings.java index a18a1af5..1d222c04 100644 --- a/src/main/java/com/ringcentral/definitions/NotificationSettings.java +++ b/src/main/java/com/ringcentral/definitions/NotificationSettings.java @@ -14,6 +14,10 @@ public class NotificationSettings { * List of notification recipient email addresses */ public String[] emailAddresses; + /** + * Specifies if managers' emails are included in the list of emails to which notifications are sent + */ + public Boolean includeManagers; /** * List of notification recipient email addresses */ @@ -58,6 +62,11 @@ public NotificationSettings emailAddresses(String[] emailAddresses) { return this; } + public NotificationSettings includeManagers(Boolean includeManagers) { + this.includeManagers = includeManagers; + return this; + } + public NotificationSettings smsEmailAddresses(String[] smsEmailAddresses) { this.smsEmailAddresses = smsEmailAddresses; return this; diff --git a/src/main/java/com/ringcentral/definitions/NotificationSettingsUpdateRequest.java b/src/main/java/com/ringcentral/definitions/NotificationSettingsUpdateRequest.java index 524d689b..f3695aaf 100644 --- a/src/main/java/com/ringcentral/definitions/NotificationSettingsUpdateRequest.java +++ b/src/main/java/com/ringcentral/definitions/NotificationSettingsUpdateRequest.java @@ -34,6 +34,10 @@ public class NotificationSettingsUpdateRequest { * */ public MissedCallsInfo missedCalls; + /** + * Specifies if managers' emails are included in the list of emails to which notifications are sent + */ + public Boolean includeManagers; public NotificationSettingsUpdateRequest emailAddresses(String[] emailAddresses) { this.emailAddresses = emailAddresses; @@ -74,4 +78,9 @@ public NotificationSettingsUpdateRequest missedCalls(MissedCallsInfo missedCalls this.missedCalls = missedCalls; return this; } + + public NotificationSettingsUpdateRequest includeManagers(Boolean includeManagers) { + this.includeManagers = includeManagers; + return this; + } } diff --git a/src/main/java/com/ringcentral/definitions/PersonalContactResource.java b/src/main/java/com/ringcentral/definitions/PersonalContactResource.java index 097b4d8b..0e971e22 100644 --- a/src/main/java/com/ringcentral/definitions/PersonalContactResource.java +++ b/src/main/java/com/ringcentral/definitions/PersonalContactResource.java @@ -19,6 +19,7 @@ public class PersonalContactResource { public String email; /** * Internal identifier of the contact + * Format: int64 * Example: 623045004 */ public Long id; diff --git a/src/main/java/com/ringcentral/definitions/RecipientInfo.java b/src/main/java/com/ringcentral/definitions/RecipientInfo.java index 466d3e3e..d2e7de0f 100644 --- a/src/main/java/com/ringcentral/definitions/RecipientInfo.java +++ b/src/main/java/com/ringcentral/definitions/RecipientInfo.java @@ -9,6 +9,7 @@ public class RecipientInfo { public String uri; /** * Internal identifier of a recipient extension + * Format: int64 */ public Long id; diff --git a/src/main/java/com/ringcentral/definitions/SipRegistrationDeviceInfo.java b/src/main/java/com/ringcentral/definitions/SipRegistrationDeviceInfo.java index 53b3b343..0b629e26 100644 --- a/src/main/java/com/ringcentral/definitions/SipRegistrationDeviceInfo.java +++ b/src/main/java/com/ringcentral/definitions/SipRegistrationDeviceInfo.java @@ -61,6 +61,7 @@ public class SipRegistrationDeviceInfo { public DevicePhoneLinesInfo[] phoneLines; /** * Box billing identifier of a device. Applicable only for HardPhones. It is an alternative way to identify the device to be ordered. EitherT? model structure, or boxBillingId must be specified forT?HardPhone + * Format: int64 */ public Long boxBillingId; /** diff --git a/src/main/java/com/ringcentral/definitions/SyncAddressBookParameters.java b/src/main/java/com/ringcentral/definitions/SyncAddressBookParameters.java index 16fd9bf4..8d13c4bc 100644 --- a/src/main/java/com/ringcentral/definitions/SyncAddressBookParameters.java +++ b/src/main/java/com/ringcentral/definitions/SyncAddressBookParameters.java @@ -18,6 +18,7 @@ public class SyncAddressBookParameters { public Long perPage; /** * Internal identifier of a page. It can be obtained from the 'nextPageId' parameter passed in response body + * Format: int64 */ public Long pageId; diff --git a/src/main/java/com/ringcentral/definitions/SyncMessagesParameters.java b/src/main/java/com/ringcentral/definitions/SyncMessagesParameters.java index db6dd731..99407910 100644 --- a/src/main/java/com/ringcentral/definitions/SyncMessagesParameters.java +++ b/src/main/java/com/ringcentral/definitions/SyncMessagesParameters.java @@ -5,6 +5,7 @@ public class SyncMessagesParameters { /** * Conversation identifier for the resulting messages. Meaningful for SMS and Pager messages only. + * Format: int64 */ public Long conversationId; /** diff --git a/src/main/java/com/ringcentral/definitions/UnconditionalForwardingInfo.java b/src/main/java/com/ringcentral/definitions/UnconditionalForwardingInfo.java index 14d17488..3c8af374 100644 --- a/src/main/java/com/ringcentral/definitions/UnconditionalForwardingInfo.java +++ b/src/main/java/com/ringcentral/definitions/UnconditionalForwardingInfo.java @@ -4,7 +4,7 @@ // Unconditional forwarding parameters. Returned if 'UnconditionalForwarding' is specified in 'callHandlingAction' public class UnconditionalForwardingInfo { /** - * Phone number to which the call is forwarded. In addition to common e.164 format, the following number patterns are supported: 11xxxxxxxxxxx, 444xxxxxxxxxxx, 616xxxxxxxxxxx; where xxxxxxxxxxx is a phone number in e.164 format (without '+' sign) + * Phone number to which the call is forwarded. In addition to common e.164 format, the following number patterns are supported: 11xxxxxxxxxxx, 444xxxxxxxxxxx, 616xxxxxxxxxxx, 1700yyyy; where xxxxxxxxxxx is a phone number in e.164 format (without '+' sign) and yyyy is an external short extension number. Max number of digits is 15 */ public String phoneNumber; /** diff --git a/src/main/java/com/ringcentral/definitions/UserPhoneNumberExtensionInfo.java b/src/main/java/com/ringcentral/definitions/UserPhoneNumberExtensionInfo.java index a4bf4272..90f07937 100644 --- a/src/main/java/com/ringcentral/definitions/UserPhoneNumberExtensionInfo.java +++ b/src/main/java/com/ringcentral/definitions/UserPhoneNumberExtensionInfo.java @@ -5,6 +5,7 @@ public class UserPhoneNumberExtensionInfo { /** * Internal identifier of an extension + * Format: int64 */ public Long id; /** diff --git a/src/main/java/com/ringcentral/definitions/UserPhoneNumberInfo.java b/src/main/java/com/ringcentral/definitions/UserPhoneNumberInfo.java index 6c96c8a5..478a1f70 100644 --- a/src/main/java/com/ringcentral/definitions/UserPhoneNumberInfo.java +++ b/src/main/java/com/ringcentral/definitions/UserPhoneNumberInfo.java @@ -8,6 +8,7 @@ public class UserPhoneNumberInfo { public String uri; /** * Internal identifier of a phone number + * Format: int64 */ public Long id; /** diff --git a/src/main/java/com/ringcentral/paths/restapi/dictionary/Index.java b/src/main/java/com/ringcentral/paths/restapi/dictionary/Index.java index dd4fc800..10e0eddb 100644 --- a/src/main/java/com/ringcentral/paths/restapi/dictionary/Index.java +++ b/src/main/java/com/ringcentral/paths/restapi/dictionary/Index.java @@ -16,6 +16,11 @@ public String path() { } + public com.ringcentral.paths.restapi.dictionary.brand.Index brand() { + return new com.ringcentral.paths.restapi.dictionary.brand.Index(this); + } + + public com.ringcentral.paths.restapi.dictionary.state.Index state() { return this.state(null); } diff --git a/src/main/java/com/ringcentral/paths/restapi/dictionary/brand/Index.java b/src/main/java/com/ringcentral/paths/restapi/dictionary/brand/Index.java new file mode 100644 index 00000000..d86b4eeb --- /dev/null +++ b/src/main/java/com/ringcentral/paths/restapi/dictionary/brand/Index.java @@ -0,0 +1,27 @@ +package com.ringcentral.paths.restapi.dictionary.brand; + +import com.ringcentral.RestClient; + +public class Index { + public RestClient rc; + public com.ringcentral.paths.restapi.dictionary.Index parent; + + public Index(com.ringcentral.paths.restapi.dictionary.Index parent) { + this.parent = parent; + this.rc = parent.rc; + } + + public String path() { + return parent.path() + "/brand"; + } + + + public com.ringcentral.paths.restapi.dictionary.brand.contractedcountry.Index contractedCountry() { + return this.contractedCountry(null); + } + + public com.ringcentral.paths.restapi.dictionary.brand.contractedcountry.Index contractedCountry(String contractedCountryId) { + return new com.ringcentral.paths.restapi.dictionary.brand.contractedcountry.Index(this, contractedCountryId); + } + +} diff --git a/src/main/java/com/ringcentral/paths/restapi/dictionary/brand/contractedcountry/Index.java b/src/main/java/com/ringcentral/paths/restapi/dictionary/brand/contractedcountry/Index.java new file mode 100644 index 00000000..92a37143 --- /dev/null +++ b/src/main/java/com/ringcentral/paths/restapi/dictionary/brand/contractedcountry/Index.java @@ -0,0 +1,46 @@ +package com.ringcentral.paths.restapi.dictionary.brand.contractedcountry; + +import com.ringcentral.RestClient; +import com.ringcentral.definitions.GetCountryListResponse; +import com.ringcentral.definitions.ListDomesticCountriesParameters; + +public class Index { + public RestClient rc; + public com.ringcentral.paths.restapi.dictionary.brand.Index parent; + public String contractedCountryId; + + public Index(com.ringcentral.paths.restapi.dictionary.brand.Index parent, String contractedCountryId) { + this.parent = parent; + this.rc = parent.rc; + this.contractedCountryId = contractedCountryId; + } + + public String path(Boolean withParameter) { + if (withParameter && contractedCountryId != null) { + return parent.path() + "/contracted-country/" + contractedCountryId; + } + return parent.path() + "/contracted-country"; + } + + public String path() { + return path(true); + } + + /** + * Returns the list of domestic countries by contracted country and brand of the account. + * HTTP Method: get + * Endpoint: /restapi/{apiVersion}/dictionary/brand/{brandId}/contracted-country/{contractedCountryId} + * Rate Limit Group: Light + */ + public GetCountryListResponse get(ListDomesticCountriesParameters queryParams) throws com.ringcentral.RestException, java.io.IOException { + if (contractedCountryId == null) { + throw new IllegalArgumentException("Parameter contractedCountryId cannot be null"); + } + okhttp3.ResponseBody rb = this.rc.get(this.path(), queryParams); + return com.ringcentral.Utils.gson.fromJson(rb.string(), GetCountryListResponse.class); + } + + public GetCountryListResponse get() throws com.ringcentral.RestException, java.io.IOException { + return this.get(null); + } +}