github.com/grokify/go-ringcentral-client@v0.3.31/office/v1/client/docs/CompanyContactsApi.md (about) 1 # \CompanyContactsApi 2 3 All URIs are relative to *https://platform.devtest.ringcentral.com* 4 5 Method | HTTP request | Description 6 ------------- | ------------- | ------------- 7 [**CreateBotExtension**](CompanyContactsApi.md#CreateBotExtension) | **Post** /restapi/v1.0/account/{accountId}/bot | Create Bot Extension 8 [**CreateExtension**](CompanyContactsApi.md#CreateExtension) | **Post** /restapi/v1.0/account/{accountId}/extension | Create Extension 9 [**ListCompanyDirectoryContacts**](CompanyContactsApi.md#ListCompanyDirectoryContacts) | **Get** /restapi/v1.0/account/{accountId}/directory/contacts | Get Company Directory 10 [**ListExtensions**](CompanyContactsApi.md#ListExtensions) | **Get** /restapi/v1.0/account/{accountId}/extension | Get Extensions 11 [**LoadCompanyDirectoryContact**](CompanyContactsApi.md#LoadCompanyDirectoryContact) | **Get** /restapi/v1.0/account/{accountId}/directory/contacts/{contactId} | Get Company Directory Contact 12 [**LoadCompanyDirectoryExtensionNumbers**](CompanyContactsApi.md#LoadCompanyDirectoryExtensionNumbers) | **Get** /restapi/v1.0/account/{accountId}/directory/extension-numbers | Get Existing Extension Numbers 13 [**LoadCompanyDirectoryFederation**](CompanyContactsApi.md#LoadCompanyDirectoryFederation) | **Get** /restapi/v1.0/account/{accountId}/directory/federation | Get Account Federation 14 [**LoadCompanyDirectoryFederationConflicts**](CompanyContactsApi.md#LoadCompanyDirectoryFederationConflicts) | **Get** /restapi/v1.0/account/{accountId}/directory/federation-conflicts | Get Account Federation Conflicts 15 16 17 # **CreateBotExtension** 18 > BotExtensionCreation CreateBotExtension(ctx, accountId, botExtensionCreationRequest) 19 Create Bot Extension 20 21 <p style='font-style:italic;'>Since 1.0.32 (Release 9.3)</p><p>Creates a bot extension. Please note: Bot extension is always created in Enabled status, no welcome email is sent.</p><h4>Required Permissions</h4><table class='fullwidth'><thead><tr><th>Permission</th><th>Description</th></tr></thead><tbody><tr><td class='code'>EditAccounts</td><td>Viewing and updating user account info (including name, business name, address and phone number/account number)</td></tr></tbody></table><h4>API Group</h4><p>Medium</p> 22 23 ### Required Parameters 24 25 Name | Type | Description | Notes 26 ------------- | ------------- | ------------- | ------------- 27 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 28 **accountId** | **string**| Internal identifier of a RingCentral account or tilde (~) to indicate the account logged-in within the current session | [default to ~] 29 **botExtensionCreationRequest** | [**BotExtensionCreationRequest**](BotExtensionCreationRequest.md)| JSON body | 30 31 ### Return type 32 33 [**BotExtensionCreation**](BotExtensionCreation.md) 34 35 ### Authorization 36 37 [OAuth2](../README.md#OAuth2) 38 39 ### HTTP request headers 40 41 - **Content-Type**: application/json 42 - **Accept**: application/json 43 44 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) 45 46 # **CreateExtension** 47 > ExtensionInfo CreateExtension(ctx, accountId, extensionCreationRequest) 48 Create Extension 49 50 <p style='font-style:italic;'>Since 1.0.10 (Release 6.2)</p><p>Creates an extension.</p><h4>Required Permissions</h4><table class='fullwidth'><thead><tr><th>Permission</th><th>Description</th></tr></thead><tbody><tr><td class='code'>EditAccounts</td><td>Viewing and updating user account info (including name, business name, address and phone number/account number)</td></tr></tbody></table><h4>API Group</h4><p>Medium</p> 51 52 ### Required Parameters 53 54 Name | Type | Description | Notes 55 ------------- | ------------- | ------------- | ------------- 56 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 57 **accountId** | **string**| Internal identifier of a RingCentral account or tilde (~) to indicate the account logged-in within the current session | [default to ~] 58 **extensionCreationRequest** | [**ExtensionCreationRequest**](ExtensionCreationRequest.md)| JSON body | 59 60 ### Return type 61 62 [**ExtensionInfo**](ExtensionInfo.md) 63 64 ### Authorization 65 66 [OAuth2](../README.md#OAuth2) 67 68 ### HTTP request headers 69 70 - **Content-Type**: application/json 71 - **Accept**: application/json 72 73 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) 74 75 # **ListCompanyDirectoryContacts** 76 > CompanyDirectoryContacts ListCompanyDirectoryContacts(ctx, accountId, optional) 77 Get Company Directory 78 79 <p style='font-style:italic;'></p><p>Returns contact information on corporate users of federated accounts. Please note: 1. User, DigitalUser, VirtualUser and FaxUser types are returned as User type. 2.ApplicationExtension type is not returned. 3. Only extensions in Enabled, Disabled and NotActivated state are returned.</p><h4>Required Permissions</h4><table class='fullwidth'><thead><tr><th>Permission</th><th>Description</th></tr></thead><tbody><tr><td class='code'>ReadAccounts</td><td>Viewing user account info (including name, business name, address and phone number/account number)</td></tr></tbody></table><h4>API Group</h4><p>Medium</p> 80 81 ### Required Parameters 82 83 Name | Type | Description | Notes 84 ------------- | ------------- | ------------- | ------------- 85 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 86 **accountId** | **string**| Internal identifier of a RingCentral account or tilde (~) to indicate the account logged-in within the current session | [default to ~] 87 **optional** | ***ListCompanyDirectoryContactsOpts** | optional parameters | nil if no parameters 88 89 ### Optional Parameters 90 Optional parameters are passed through a pointer to a ListCompanyDirectoryContactsOpts struct 91 92 Name | Type | Description | Notes 93 ------------- | ------------- | ------------- | ------------- 94 95 **page** | **optional.Int64**| Indicates the page number to retrieve. Only positive number values are allowed. Default value is '1' | 96 **perPage** | **optional.Int64**| Indicates the page size (number of items). The possible values are: Max, all or a numeric value. If not specified, all records are returned on one page | 97 **excludeFederatedContacts** | **optional.Bool**| If 'True' then only contacts of current account are returned, if 'False' then all contacts of all federation accounts are returned | 98 99 ### Return type 100 101 [**CompanyDirectoryContacts**](CompanyDirectoryContacts.md) 102 103 ### Authorization 104 105 [OAuth2](../README.md#OAuth2) 106 107 ### HTTP request headers 108 109 - **Content-Type**: Not defined 110 - **Accept**: application/json 111 112 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) 113 114 # **ListExtensions** 115 > GetExtensionListResponse ListExtensions(ctx, accountId, optional) 116 Get Extensions 117 118 <p style='font-style:italic;'>Since 1.0.0</p><p>Returns the list of extensions created for a particular account. All types of extensions are included in this list.</p><h4>Required Permissions</h4><table class='fullwidth'><thead><tr><th>Permission</th><th>Description</th></tr></thead><tbody><tr><td class='code'>ReadAccounts</td><td>Viewing user account info (including name, business name, address and phone number/account number)</td></tr></tbody></table><h4>API Group</h4><p>Medium</p> 119 120 ### Required Parameters 121 122 Name | Type | Description | Notes 123 ------------- | ------------- | ------------- | ------------- 124 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 125 **accountId** | **string**| Internal identifier of a RingCentral account or tilde (~) to indicate the account logged-in within the current session | [default to ~] 126 **optional** | ***ListExtensionsOpts** | optional parameters | nil if no parameters 127 128 ### Optional Parameters 129 Optional parameters are passed through a pointer to a ListExtensionsOpts struct 130 131 Name | Type | Description | Notes 132 ------------- | ------------- | ------------- | ------------- 133 134 **page** | **optional.Int64**| Indicates the page number to retrieve. Only positive number values are allowed. Default value is '1' | 135 **perPage** | **optional.Int64**| Indicates the page size (number of items). If not specified, the value is '100' by default. | 136 **status** | [**optional.Interface of []string**](string.md)| Extension current state. Multiple values are supported. If 'Unassigned' is specified, then extensions without extensionNumber are returned. If not specified, then all extensions are returned | 137 **type_** | [**optional.Interface of []string**](string.md)| Extension type. Multiple values are supported | 138 139 ### Return type 140 141 [**GetExtensionListResponse**](GetExtensionListResponse.md) 142 143 ### Authorization 144 145 [OAuth2](../README.md#OAuth2) 146 147 ### HTTP request headers 148 149 - **Content-Type**: Not defined 150 - **Accept**: application/json 151 152 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) 153 154 # **LoadCompanyDirectoryContact** 155 > ContactInfo LoadCompanyDirectoryContact(ctx, accountId, contactId) 156 Get Company Directory Contact 157 158 <p style='font-style:italic;'></p><p>Returns contact information on a particular corporate user of a federated account.</p><h4>Required Permissions</h4><table class='fullwidth'><thead><tr><th>Permission</th><th>Description</th></tr></thead><tbody><tr><td class='code'>ReadAccounts</td><td>Viewing user account info (including name, business name, address and phone number/account number)</td></tr></tbody></table><h4>API Group</h4><p>Medium</p> 159 160 ### Required Parameters 161 162 Name | Type | Description | Notes 163 ------------- | ------------- | ------------- | ------------- 164 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 165 **accountId** | **string**| Internal identifier of a RingCentral account or tilde (~) to indicate the account logged-in within the current session | [default to ~] 166 **contactId** | **string**| Internal identifier of an extension | 167 168 ### Return type 169 170 [**ContactInfo**](ContactInfo.md) 171 172 ### Authorization 173 174 [OAuth2](../README.md#OAuth2) 175 176 ### HTTP request headers 177 178 - **Content-Type**: Not defined 179 - **Accept**: application/json 180 181 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) 182 183 # **LoadCompanyDirectoryExtensionNumbers** 184 > FederationExtensionNumbers LoadCompanyDirectoryExtensionNumbers(ctx, accountId) 185 Get Existing Extension Numbers 186 187 <p style='font-style:italic;'></p><p>Returns the list of account federation extensions.</p><h4>Required Permissions</h4><table class='fullwidth'><thead><tr><th>Permission</th><th>Description</th></tr></thead><tbody><tr><td class='code'>ReadAccounts</td><td>Viewing user account info (including name, business name, address and phone number/account number)</td></tr></tbody></table><h4>API Group</h4><p>Heavy</p> 188 189 ### Required Parameters 190 191 Name | Type | Description | Notes 192 ------------- | ------------- | ------------- | ------------- 193 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 194 **accountId** | **string**| Internal identifier of a RingCentral account or tilde (~) to indicate the account logged-in within the current session | [default to ~] 195 196 ### Return type 197 198 [**FederationExtensionNumbers**](FederationExtensionNumbers.md) 199 200 ### Authorization 201 202 [OAuth2](../README.md#OAuth2) 203 204 ### HTTP request headers 205 206 - **Content-Type**: Not defined 207 - **Accept**: application/json 208 209 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) 210 211 # **LoadCompanyDirectoryFederation** 212 > FederationInfo LoadCompanyDirectoryFederation(ctx, accountId) 213 Get Account Federation 214 215 <p style='font-style:italic;'></p><p>Returns information on a federation and associated accounts.</p><h4>Required Permissions</h4><table class='fullwidth'><thead><tr><th>Permission</th><th>Description</th></tr></thead><tbody><tr><td class='code'>ReadAccounts</td><td>Viewing user account info (including name, business name, address and phone number/account number)</td></tr></tbody></table><h4>API Group</h4><p>Medium</p> 216 217 ### Required Parameters 218 219 Name | Type | Description | Notes 220 ------------- | ------------- | ------------- | ------------- 221 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 222 **accountId** | **string**| Internal identifier of a RingCentral account or tilde (~) to indicate the account logged-in within the current session | [default to ~] 223 224 ### Return type 225 226 [**FederationInfo**](FederationInfo.md) 227 228 ### Authorization 229 230 [OAuth2](../README.md#OAuth2) 231 232 ### HTTP request headers 233 234 - **Content-Type**: Not defined 235 - **Accept**: application/json 236 237 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) 238 239 # **LoadCompanyDirectoryFederationConflicts** 240 > FederationConflicts LoadCompanyDirectoryFederationConflicts(ctx, accountId) 241 Get Account Federation Conflicts 242 243 <p style='font-style:italic;'></p><p>Returns the list of federation extensions which numbers are conflicting with extension numbers of the requested account.</p><h4>Required Permissions</h4><table class='fullwidth'><thead><tr><th>Permission</th><th>Description</th></tr></thead><tbody><tr><td class='code'>ReadAccounts</td><td>Viewing user account info (including name, business name, address and phone number/account number)</td></tr></tbody></table><h4>API Group</h4><p>Heavy</p> 244 245 ### Required Parameters 246 247 Name | Type | Description | Notes 248 ------------- | ------------- | ------------- | ------------- 249 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 250 **accountId** | **string**| Internal identifier of a RingCentral account or tilde (~) to indicate the account logged-in within the current session | [default to ~] 251 252 ### Return type 253 254 [**FederationConflicts**](FederationConflicts.md) 255 256 ### Authorization 257 258 [OAuth2](../README.md#OAuth2) 259 260 ### HTTP request headers 261 262 - **Content-Type**: Not defined 263 - **Accept**: application/json 264 265 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) 266