yellowgrid-api-ts 3.0.79

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (201) hide show
  1. package/.openapi-generator/FILES +189 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +385 -0
  5. package/api.ts +20310 -0
  6. package/base.ts +86 -0
  7. package/common.ts +150 -0
  8. package/config.json +3 -0
  9. package/configuration.ts +115 -0
  10. package/dist/api.d.ts +14136 -0
  11. package/dist/api.js +14123 -0
  12. package/dist/base.d.ts +66 -0
  13. package/dist/base.js +86 -0
  14. package/dist/common.d.ts +65 -0
  15. package/dist/common.js +253 -0
  16. package/dist/configuration.d.ts +91 -0
  17. package/dist/configuration.js +57 -0
  18. package/dist/index.d.ts +13 -0
  19. package/dist/index.js +31 -0
  20. package/docs/AccountContactEntity.md +45 -0
  21. package/docs/AccountContactModel.md +45 -0
  22. package/docs/AccountContactRequestModel.md +37 -0
  23. package/docs/AccountRequestModel.md +53 -0
  24. package/docs/AccountSummaryDTO.md +25 -0
  25. package/docs/AccountsApi.md +948 -0
  26. package/docs/AccountsResponseModel.md +27 -0
  27. package/docs/AddressModel.md +45 -0
  28. package/docs/AddressRequestModel.md +27 -0
  29. package/docs/AgentHoursGraphModel.md +27 -0
  30. package/docs/AgentHoursGraphMonthModel.md +23 -0
  31. package/docs/ApiLogEntity.md +43 -0
  32. package/docs/AreaCodeModel.md +23 -0
  33. package/docs/AttachmentModel.md +29 -0
  34. package/docs/AttributeSetEnum.md +23 -0
  35. package/docs/AuthCodeResponseModel.md +25 -0
  36. package/docs/BatchEntity.md +53 -0
  37. package/docs/CallBarringModel.md +29 -0
  38. package/docs/Class3CXApi.md +172 -0
  39. package/docs/Class3CXInstallationWizardApi.md +1355 -0
  40. package/docs/Class3CXInstallationsApi.md +651 -0
  41. package/docs/Class3CXIntegrationsApi.md +344 -0
  42. package/docs/Class3CXMultiTenantApi.md +404 -0
  43. package/docs/ClientDetailsModel.md +35 -0
  44. package/docs/ClientModel.md +27 -0
  45. package/docs/CompanyContractModel.md +29 -0
  46. package/docs/ContactInfoModel.md +29 -0
  47. package/docs/ConversationModel.md +35 -0
  48. package/docs/CreditAccountEntity.md +61 -0
  49. package/docs/CustomerInformationModel.md +33 -0
  50. package/docs/CustomerPriceListEnum.md +23 -0
  51. package/docs/CustomerSummaryReportDTO.md +31 -0
  52. package/docs/DdiRangeRequestModel.md +25 -0
  53. package/docs/DdiRangesRequestModel.md +21 -0
  54. package/docs/DivertRequestModel.md +23 -0
  55. package/docs/DivertResponseModel.md +25 -0
  56. package/docs/EdTechProClientEntity.md +29 -0
  57. package/docs/EdTechProSchoolModel.md +47 -0
  58. package/docs/EdTechProSchoolsModel.md +27 -0
  59. package/docs/EdTechProSetupModel.md +29 -0
  60. package/docs/FraudManagementModel.md +23 -0
  61. package/docs/FreshdeskCompanyTicketsModel.md +27 -0
  62. package/docs/FreshdeskTicketEntity.md +33 -0
  63. package/docs/FtpAccountsEntity.md +29 -0
  64. package/docs/GenericFileModel.md +25 -0
  65. package/docs/GetGetPasswordHash200Response.md +20 -0
  66. package/docs/GetGetPrice200Response.md +20 -0
  67. package/docs/GetGetRecording200Response.md +20 -0
  68. package/docs/HostingChangeResponseModel.md +29 -0
  69. package/docs/InstanceAutoFailoverEntity.md +29 -0
  70. package/docs/InstanceDeletionScheduleEntity.md +27 -0
  71. package/docs/InstanceEntity.md +59 -0
  72. package/docs/InstanceFailoverEntity.md +41 -0
  73. package/docs/InstanceMonitoringEntity.md +25 -0
  74. package/docs/InstanceMonitoringLogEntity.md +31 -0
  75. package/docs/InstanceScheduledTasksEntity.md +31 -0
  76. package/docs/InstanceTcxDetailsEntity.md +39 -0
  77. package/docs/InstanceUserCredentialsEntity.md +29 -0
  78. package/docs/ItemDTO.md +41 -0
  79. package/docs/ItemEntity.md +61 -0
  80. package/docs/MFARequiredModel.md +23 -0
  81. package/docs/MonthlyUsageModel.md +23 -0
  82. package/docs/MultiTenantChangeResponseModel.md +27 -0
  83. package/docs/MyPBXToolsApi.md +65 -0
  84. package/docs/NavigationModel.md +27 -0
  85. package/docs/OAuth20Api.md +368 -0
  86. package/docs/OfflineInstancesEntity.md +29 -0
  87. package/docs/OrderEntity.md +135 -0
  88. package/docs/OrderRequestModel.md +45 -0
  89. package/docs/OrderSummariesModel.md +27 -0
  90. package/docs/OrderSummaryDTO.md +43 -0
  91. package/docs/OrderTotalModel.md +33 -0
  92. package/docs/OrderedItemEntity.md +47 -0
  93. package/docs/OrdersApi.md +135 -0
  94. package/docs/PatchSetTcxWizardCnameRequest.md +20 -0
  95. package/docs/PatchUpdateAccountContactPasswordRequest.md +20 -0
  96. package/docs/PortalAccountModel.md +67 -0
  97. package/docs/PortalLoginModel.md +33 -0
  98. package/docs/PostAddWebhook200Response.md +20 -0
  99. package/docs/PostGetClientCredentialsRequest.md +20 -0
  100. package/docs/PriceListItemModel.md +29 -0
  101. package/docs/PricingApi.md +138 -0
  102. package/docs/PrizesEntity.md +31 -0
  103. package/docs/ProductSearchResultsModel.md +21 -0
  104. package/docs/ProductSerialInfoModel.md +27 -0
  105. package/docs/ProductSummaryModel.md +31 -0
  106. package/docs/ProductsApi.md +315 -0
  107. package/docs/PromoCodesEntity.md +43 -0
  108. package/docs/PromoItemsEntity.md +35 -0
  109. package/docs/ProvisioningApi.md +402 -0
  110. package/docs/ProvisioningEntity.md +29 -0
  111. package/docs/ProvisioningRequestEntity.md +25 -0
  112. package/docs/ResourceNotReadyException.md +25 -0
  113. package/docs/RootAccessModel.md +25 -0
  114. package/docs/SIPTrunksApi.md +1258 -0
  115. package/docs/SMSApi.md +66 -0
  116. package/docs/ScannedItemModel.md +29 -0
  117. package/docs/ScopeModel.md +23 -0
  118. package/docs/ShipmentAddressEntity.md +41 -0
  119. package/docs/ShipmentEntity.md +43 -0
  120. package/docs/ShipmentItemEntity.md +29 -0
  121. package/docs/SipTrunkChangeResponseModel.md +29 -0
  122. package/docs/SipTrunkCreationRequestModel.md +31 -0
  123. package/docs/SipTrunkEntity.md +43 -0
  124. package/docs/SipTrunksResponseModel.md +27 -0
  125. package/docs/SmsAccountEntity.md +33 -0
  126. package/docs/SmsDataModel.md +21 -0
  127. package/docs/SmsMessageModel.md +25 -0
  128. package/docs/SmsNumbersEntity.md +23 -0
  129. package/docs/SmsPayloadModel.md +25 -0
  130. package/docs/SmsPhoneNumberModel.md +23 -0
  131. package/docs/SmsResponseModel.md +29 -0
  132. package/docs/SmsWhitelistEntity.md +23 -0
  133. package/docs/StockManagementApi.md +1380 -0
  134. package/docs/StockOrderCourierEntity.md +27 -0
  135. package/docs/StockOrderDeductionModel.md +27 -0
  136. package/docs/StockOrderDeductionRequestModel.md +23 -0
  137. package/docs/StockOrderDeductionsEntity.md +27 -0
  138. package/docs/StockOrderEntity.md +63 -0
  139. package/docs/StockOrderItemEntity.md +33 -0
  140. package/docs/StockOrderItemModel.md +37 -0
  141. package/docs/StockOrderItemRequestModel.md +27 -0
  142. package/docs/StockOrderModel.md +49 -0
  143. package/docs/StockOrderProductEntity.md +31 -0
  144. package/docs/StockOrderRequestModel.md +25 -0
  145. package/docs/StockOrderSupplierEntity.md +37 -0
  146. package/docs/StockOrderSupplierModel.md +37 -0
  147. package/docs/StockOrdersModel.md +27 -0
  148. package/docs/StockProductModel.md +49 -0
  149. package/docs/StockProductPriceModel.md +23 -0
  150. package/docs/StockProductSummariesModel.md +27 -0
  151. package/docs/StockProductSummaryModel.md +33 -0
  152. package/docs/StockTransactionsEntity.md +35 -0
  153. package/docs/SupplierEntity.md +37 -0
  154. package/docs/SupplierItemEntity.md +35 -0
  155. package/docs/SystemApi.md +80 -0
  156. package/docs/TcxBackupEntity.md +37 -0
  157. package/docs/TcxBackupModel.md +55 -0
  158. package/docs/TcxBillingEntity.md +39 -0
  159. package/docs/TcxBulkLicenceDetailsModel.md +23 -0
  160. package/docs/TcxDeadLicenceEntity.md +25 -0
  161. package/docs/TcxExtsEntity.md +35 -0
  162. package/docs/TcxHostingPricingEntity.md +35 -0
  163. package/docs/TcxInstallationDetailsModel.md +45 -0
  164. package/docs/TcxInstallationModel.md +75 -0
  165. package/docs/TcxInstallationsModel.md +27 -0
  166. package/docs/TcxKeySummaryDTO.md +29 -0
  167. package/docs/TcxKeysEntity.md +31 -0
  168. package/docs/TcxLicenceDetailsErrorModel.md +27 -0
  169. package/docs/TcxLicenceDetailsModel.md +41 -0
  170. package/docs/TcxMacsEntity.md +25 -0
  171. package/docs/TcxMultiTenantModel.md +47 -0
  172. package/docs/TcxMultiTenantUserModel.md +25 -0
  173. package/docs/TcxMultiTenantsModel.md +27 -0
  174. package/docs/TcxNumbersEntity.md +25 -0
  175. package/docs/TcxOfficeHoursEntity.md +49 -0
  176. package/docs/TcxPhoneModel.md +32 -0
  177. package/docs/TcxPhonesEntity.md +31 -0
  178. package/docs/TcxSbcEntity.md +51 -0
  179. package/docs/TcxSetupEntity.md +71 -0
  180. package/docs/TcxSetupsModel.md +27 -0
  181. package/docs/TcxSipTrunksEntity.md +45 -0
  182. package/docs/TcxTemplateXmlEnum.md +23 -0
  183. package/docs/TcxUsersEntity.md +31 -0
  184. package/docs/TcxWizardConfigModel.md +23 -0
  185. package/docs/TcxWizardModel.md +47 -0
  186. package/docs/TechSupportCompanySummaryDTO.md +29 -0
  187. package/docs/TelephonySupportTicketModel.md +41 -0
  188. package/docs/TicketSummaryModel.md +35 -0
  189. package/docs/TicketTimeDTO.md +36 -0
  190. package/docs/TicketsApi.md +300 -0
  191. package/docs/TokenResponseModel.md +25 -0
  192. package/docs/UpgradeOrderResponseModel.md +23 -0
  193. package/docs/UpgradeRequestModel.md +27 -0
  194. package/docs/UserEntity.md +39 -0
  195. package/docs/WebhooksApi.md +117 -0
  196. package/docs/XeroLogEntity.md +39 -0
  197. package/git_push.sh +57 -0
  198. package/index.ts +18 -0
  199. package/openapitools.json +7 -0
  200. package/package.json +31 -0
  201. package/tsconfig.json +21 -0
@@ -0,0 +1,1258 @@
1
+ # SIPTrunksApi
2
+
3
+ All URIs are relative to *http://api.yellowgrid.local*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**deleteGetSipTrunk**](#deletegetsiptrunk) | **DELETE** /sip/trunks/{id} | Delete SIP Trunk|
8
+ |[**getCanDivert**](#getcandivert) | **GET** /sip/trunks/{id}/diverts/allowed | SIP Trunk Diverts Allowed|
9
+ |[**getGetAddress**](#getgetaddress) | **GET** /sip/trunks/{id}/address | Get SIP Trunk Address|
10
+ |[**getGetAreaCodes**](#getgetareacodes) | **GET** /sip/trunks/area/codes | Get UK National Area Codes|
11
+ |[**getGetCliFlexibility**](#getgetcliflexibility) | **GET** /sip/trunks/{id}/cli/flexibility | Get SIP Trunk CLI Flexibility Status|
12
+ |[**getGetDdis**](#getgetddis) | **GET** /sip/trunks/{id}/ddis | Get SIP Trunk DDIs|
13
+ |[**getGetDiverts**](#getgetdiverts) | **GET** /sip/trunks/{id}/diverts | Get SIP Trunk Diverts|
14
+ |[**getGetSipTrunk**](#getgetsiptrunk) | **GET** /sip/trunks/{id} | Get SIP Trunk|
15
+ |[**getGetSipTrunks**](#getgetsiptrunks) | **GET** /sip/trunks | Get SIP Trunks|
16
+ |[**patchGetCliFlexibility**](#patchgetcliflexibility) | **PATCH** /sip/trunks/{id}/cli/flexibility | Update Get SIP Trunk CLI Flexibility Status|
17
+ |[**patchSetAsAvailable**](#patchsetasavailable) | **PATCH** /sip/trunks/{id}/available | Set a SIP trunk as \'AVAILABLE\' for repurposing|
18
+ |[**patchSetOwnership**](#patchsetownership) | **PATCH** /sip/trunks/{id}/owner | Change SIP Trunk Owner|
19
+ |[**patchUpdateChannelCount**](#patchupdatechannelcount) | **PATCH** /sip/trunks/{id}/channels | Increase SIP Trunk Channels|
20
+ |[**patchUpdateCompanyName**](#patchupdatecompanyname) | **PATCH** /sip/trunks/{id}/company | Update SIP Trunk Company Name|
21
+ |[**patchUpdateMainTrunkNumber**](#patchupdatemaintrunknumber) | **PATCH** /sip/trunks/{id}/number | Update SIP Trunk Main Trunk Number|
22
+ |[**patchUpdatePbxIPAddress**](#patchupdatepbxipaddress) | **PATCH** /sip/trunks/{id}/pbx/ip | Update SIP Trunk PBX IP Address|
23
+ |[**postGetDdis**](#postgetddis) | **POST** /sip/trunks/{id}/ddis | Add SIP Trunk DDIs|
24
+ |[**postGetRequestedDdis**](#postgetrequestedddis) | **POST** /sip/trunks/changes/ddis | Get Requested DDIs|
25
+ |[**postGetSipTrunks**](#postgetsiptrunks) | **POST** /sip/trunks | Create New SIP Trunk|
26
+ |[**postTrackChange**](#posttrackchange) | **POST** /sip/trunks/changes/track | Track SIP Trunk Change Request|
27
+ |[**putGetAddress**](#putgetaddress) | **PUT** /sip/trunks/{id}/address | Update SIP Trunk Address|
28
+ |[**putGetDiverts**](#putgetdiverts) | **PUT** /sip/trunks/{id}/diverts | Update SIP Trunk Diverts|
29
+
30
+ # **deleteGetSipTrunk**
31
+ > SipTrunkChangeResponseModel deleteGetSipTrunk()
32
+
33
+ Delete SIP Trunk
34
+
35
+ ### Example
36
+
37
+ ```typescript
38
+ import {
39
+ SIPTrunksApi,
40
+ Configuration
41
+ } from 'yellowgrid-api-ts';
42
+
43
+ const configuration = new Configuration();
44
+ const apiInstance = new SIPTrunksApi(configuration);
45
+
46
+ let id: number; //SIP Trunk ID (default to undefined)
47
+
48
+ const { status, data } = await apiInstance.deleteGetSipTrunk(
49
+ id
50
+ );
51
+ ```
52
+
53
+ ### Parameters
54
+
55
+ |Name | Type | Description | Notes|
56
+ |------------- | ------------- | ------------- | -------------|
57
+ | **id** | [**number**] | SIP Trunk ID | defaults to undefined|
58
+
59
+
60
+ ### Return type
61
+
62
+ **SipTrunkChangeResponseModel**
63
+
64
+ ### Authorization
65
+
66
+ No authorization required
67
+
68
+ ### HTTP request headers
69
+
70
+ - **Content-Type**: Not defined
71
+ - **Accept**: application/json
72
+
73
+
74
+ ### HTTP response details
75
+ | Status code | Description | Response headers |
76
+ |-------------|-------------|------------------|
77
+ |**200** | Change Response | - |
78
+ |**400** | Bad Request | - |
79
+ |**401** | Unauthorised | - |
80
+ |**403** | Access Denied | - |
81
+
82
+ [[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)
83
+
84
+ # **getCanDivert**
85
+ > boolean getCanDivert()
86
+
87
+ SIP Trunk Diverts Allowed
88
+
89
+ ### Example
90
+
91
+ ```typescript
92
+ import {
93
+ SIPTrunksApi,
94
+ Configuration
95
+ } from 'yellowgrid-api-ts';
96
+
97
+ const configuration = new Configuration();
98
+ const apiInstance = new SIPTrunksApi(configuration);
99
+
100
+ let id: number; //SIP Trunk ID (default to undefined)
101
+
102
+ const { status, data } = await apiInstance.getCanDivert(
103
+ id
104
+ );
105
+ ```
106
+
107
+ ### Parameters
108
+
109
+ |Name | Type | Description | Notes|
110
+ |------------- | ------------- | ------------- | -------------|
111
+ | **id** | [**number**] | SIP Trunk ID | defaults to undefined|
112
+
113
+
114
+ ### Return type
115
+
116
+ **boolean**
117
+
118
+ ### Authorization
119
+
120
+ No authorization required
121
+
122
+ ### HTTP request headers
123
+
124
+ - **Content-Type**: Not defined
125
+ - **Accept**: application/json
126
+
127
+
128
+ ### HTTP response details
129
+ | Status code | Description | Response headers |
130
+ |-------------|-------------|------------------|
131
+ |**200** | boolean | - |
132
+ |**400** | Bad Request | - |
133
+ |**401** | Unauthorised | - |
134
+ |**403** | Access Denied | - |
135
+
136
+ [[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)
137
+
138
+ # **getGetAddress**
139
+ > AddressRequestModel getGetAddress()
140
+
141
+ Get SIP Trunk Address
142
+
143
+ ### Example
144
+
145
+ ```typescript
146
+ import {
147
+ SIPTrunksApi,
148
+ Configuration
149
+ } from 'yellowgrid-api-ts';
150
+
151
+ const configuration = new Configuration();
152
+ const apiInstance = new SIPTrunksApi(configuration);
153
+
154
+ let id: number; //SIP Trunk ID (default to undefined)
155
+
156
+ const { status, data } = await apiInstance.getGetAddress(
157
+ id
158
+ );
159
+ ```
160
+
161
+ ### Parameters
162
+
163
+ |Name | Type | Description | Notes|
164
+ |------------- | ------------- | ------------- | -------------|
165
+ | **id** | [**number**] | SIP Trunk ID | defaults to undefined|
166
+
167
+
168
+ ### Return type
169
+
170
+ **AddressRequestModel**
171
+
172
+ ### Authorization
173
+
174
+ No authorization required
175
+
176
+ ### HTTP request headers
177
+
178
+ - **Content-Type**: Not defined
179
+ - **Accept**: application/json
180
+
181
+
182
+ ### HTTP response details
183
+ | Status code | Description | Response headers |
184
+ |-------------|-------------|------------------|
185
+ |**200** | Address | - |
186
+ |**400** | Bad Request | - |
187
+ |**401** | Unauthorised | - |
188
+ |**403** | Access Denied | - |
189
+
190
+ [[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)
191
+
192
+ # **getGetAreaCodes**
193
+ > Array<AreaCodeModel> getGetAreaCodes()
194
+
195
+ Get UK National Area Codes
196
+
197
+ ### Example
198
+
199
+ ```typescript
200
+ import {
201
+ SIPTrunksApi,
202
+ Configuration
203
+ } from 'yellowgrid-api-ts';
204
+
205
+ const configuration = new Configuration();
206
+ const apiInstance = new SIPTrunksApi(configuration);
207
+
208
+ const { status, data } = await apiInstance.getGetAreaCodes();
209
+ ```
210
+
211
+ ### Parameters
212
+ This endpoint does not have any parameters.
213
+
214
+
215
+ ### Return type
216
+
217
+ **Array<AreaCodeModel>**
218
+
219
+ ### Authorization
220
+
221
+ No authorization required
222
+
223
+ ### HTTP request headers
224
+
225
+ - **Content-Type**: Not defined
226
+ - **Accept**: application/json
227
+
228
+
229
+ ### HTTP response details
230
+ | Status code | Description | Response headers |
231
+ |-------------|-------------|------------------|
232
+ |**200** | Area Codes | - |
233
+ |**400** | Bad Request | - |
234
+ |**401** | Unauthorised | - |
235
+ |**403** | Access Denied | - |
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
+ # **getGetCliFlexibility**
240
+ > boolean getGetCliFlexibility()
241
+
242
+ Get SIP Trunk CLI Flexibility Status
243
+
244
+ ### Example
245
+
246
+ ```typescript
247
+ import {
248
+ SIPTrunksApi,
249
+ Configuration
250
+ } from 'yellowgrid-api-ts';
251
+
252
+ const configuration = new Configuration();
253
+ const apiInstance = new SIPTrunksApi(configuration);
254
+
255
+ let id: number; //SIP Trunk ID (default to undefined)
256
+
257
+ const { status, data } = await apiInstance.getGetCliFlexibility(
258
+ id
259
+ );
260
+ ```
261
+
262
+ ### Parameters
263
+
264
+ |Name | Type | Description | Notes|
265
+ |------------- | ------------- | ------------- | -------------|
266
+ | **id** | [**number**] | SIP Trunk ID | defaults to undefined|
267
+
268
+
269
+ ### Return type
270
+
271
+ **boolean**
272
+
273
+ ### Authorization
274
+
275
+ No authorization required
276
+
277
+ ### HTTP request headers
278
+
279
+ - **Content-Type**: Not defined
280
+ - **Accept**: application/json
281
+
282
+
283
+ ### HTTP response details
284
+ | Status code | Description | Response headers |
285
+ |-------------|-------------|------------------|
286
+ |**200** | boolean | - |
287
+ |**400** | Bad Request | - |
288
+ |**401** | Unauthorised | - |
289
+ |**403** | Access Denied | - |
290
+
291
+ [[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)
292
+
293
+ # **getGetDdis**
294
+ > Array<string> getGetDdis()
295
+
296
+ Get SIP Trunk DDIs
297
+
298
+ ### Example
299
+
300
+ ```typescript
301
+ import {
302
+ SIPTrunksApi,
303
+ Configuration
304
+ } from 'yellowgrid-api-ts';
305
+
306
+ const configuration = new Configuration();
307
+ const apiInstance = new SIPTrunksApi(configuration);
308
+
309
+ let id: number; //SIP Trunk ID (default to undefined)
310
+
311
+ const { status, data } = await apiInstance.getGetDdis(
312
+ id
313
+ );
314
+ ```
315
+
316
+ ### Parameters
317
+
318
+ |Name | Type | Description | Notes|
319
+ |------------- | ------------- | ------------- | -------------|
320
+ | **id** | [**number**] | SIP Trunk ID | defaults to undefined|
321
+
322
+
323
+ ### Return type
324
+
325
+ **Array<string>**
326
+
327
+ ### Authorization
328
+
329
+ No authorization required
330
+
331
+ ### HTTP request headers
332
+
333
+ - **Content-Type**: Not defined
334
+ - **Accept**: application/json
335
+
336
+
337
+ ### HTTP response details
338
+ | Status code | Description | Response headers |
339
+ |-------------|-------------|------------------|
340
+ |**200** | [string] | - |
341
+ |**400** | Bad Request | - |
342
+ |**401** | Unauthorised | - |
343
+ |**403** | Access Denied | - |
344
+
345
+ [[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)
346
+
347
+ # **getGetDiverts**
348
+ > Array<DivertResponseModel> getGetDiverts()
349
+
350
+ Get SIP Trunk Diverts
351
+
352
+ ### Example
353
+
354
+ ```typescript
355
+ import {
356
+ SIPTrunksApi,
357
+ Configuration
358
+ } from 'yellowgrid-api-ts';
359
+
360
+ const configuration = new Configuration();
361
+ const apiInstance = new SIPTrunksApi(configuration);
362
+
363
+ let id: number; //SIP Trunk ID (default to undefined)
364
+ let enabled: boolean; //Enabled Diverts (optional) (default to undefined)
365
+
366
+ const { status, data } = await apiInstance.getGetDiverts(
367
+ id,
368
+ enabled
369
+ );
370
+ ```
371
+
372
+ ### Parameters
373
+
374
+ |Name | Type | Description | Notes|
375
+ |------------- | ------------- | ------------- | -------------|
376
+ | **id** | [**number**] | SIP Trunk ID | defaults to undefined|
377
+ | **enabled** | [**boolean**] | Enabled Diverts | (optional) defaults to undefined|
378
+
379
+
380
+ ### Return type
381
+
382
+ **Array<DivertResponseModel>**
383
+
384
+ ### Authorization
385
+
386
+ No authorization required
387
+
388
+ ### HTTP request headers
389
+
390
+ - **Content-Type**: Not defined
391
+ - **Accept**: application/json
392
+
393
+
394
+ ### HTTP response details
395
+ | Status code | Description | Response headers |
396
+ |-------------|-------------|------------------|
397
+ |**200** | Diverts | - |
398
+ |**400** | Bad Request | - |
399
+ |**401** | Unauthorised | - |
400
+ |**403** | Access Denied | - |
401
+
402
+ [[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)
403
+
404
+ # **getGetSipTrunk**
405
+ > SipTrunkEntity getGetSipTrunk()
406
+
407
+ Get SIP Trunk
408
+
409
+ ### Example
410
+
411
+ ```typescript
412
+ import {
413
+ SIPTrunksApi,
414
+ Configuration
415
+ } from 'yellowgrid-api-ts';
416
+
417
+ const configuration = new Configuration();
418
+ const apiInstance = new SIPTrunksApi(configuration);
419
+
420
+ let id: number; //SIP Trunk ID (default to undefined)
421
+
422
+ const { status, data } = await apiInstance.getGetSipTrunk(
423
+ id
424
+ );
425
+ ```
426
+
427
+ ### Parameters
428
+
429
+ |Name | Type | Description | Notes|
430
+ |------------- | ------------- | ------------- | -------------|
431
+ | **id** | [**number**] | SIP Trunk ID | defaults to undefined|
432
+
433
+
434
+ ### Return type
435
+
436
+ **SipTrunkEntity**
437
+
438
+ ### Authorization
439
+
440
+ No authorization required
441
+
442
+ ### HTTP request headers
443
+
444
+ - **Content-Type**: Not defined
445
+ - **Accept**: application/json
446
+
447
+
448
+ ### HTTP response details
449
+ | Status code | Description | Response headers |
450
+ |-------------|-------------|------------------|
451
+ |**200** | SIP Trunk | - |
452
+ |**400** | Bad Request | - |
453
+ |**401** | Unauthorised | - |
454
+ |**403** | Access Denied | - |
455
+
456
+ [[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)
457
+
458
+ # **getGetSipTrunks**
459
+ > SipTrunksResponseModel getGetSipTrunks()
460
+
461
+ Get SIP Trunks
462
+
463
+ ### Example
464
+
465
+ ```typescript
466
+ import {
467
+ SIPTrunksApi,
468
+ Configuration
469
+ } from 'yellowgrid-api-ts';
470
+
471
+ const configuration = new Configuration();
472
+ const apiInstance = new SIPTrunksApi(configuration);
473
+
474
+ let pageSize: number; //Number Of Results (optional) (default to 20)
475
+ let page: number; //Page Number (optional) (default to 1)
476
+ let search: string; //Search (optional) (default to undefined)
477
+
478
+ const { status, data } = await apiInstance.getGetSipTrunks(
479
+ pageSize,
480
+ page,
481
+ search
482
+ );
483
+ ```
484
+
485
+ ### Parameters
486
+
487
+ |Name | Type | Description | Notes|
488
+ |------------- | ------------- | ------------- | -------------|
489
+ | **pageSize** | [**number**] | Number Of Results | (optional) defaults to 20|
490
+ | **page** | [**number**] | Page Number | (optional) defaults to 1|
491
+ | **search** | [**string**] | Search | (optional) defaults to undefined|
492
+
493
+
494
+ ### Return type
495
+
496
+ **SipTrunksResponseModel**
497
+
498
+ ### Authorization
499
+
500
+ No authorization required
501
+
502
+ ### HTTP request headers
503
+
504
+ - **Content-Type**: Not defined
505
+ - **Accept**: application/json
506
+
507
+
508
+ ### HTTP response details
509
+ | Status code | Description | Response headers |
510
+ |-------------|-------------|------------------|
511
+ |**200** | SIP Trunks | - |
512
+ |**400** | Bad Request | - |
513
+ |**401** | Unauthorised | - |
514
+ |**403** | Access Denied | - |
515
+
516
+ [[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)
517
+
518
+ # **patchGetCliFlexibility**
519
+ > SipTrunkChangeResponseModel patchGetCliFlexibility()
520
+
521
+ Update Get SIP Trunk CLI Flexibility Status
522
+
523
+ ### Example
524
+
525
+ ```typescript
526
+ import {
527
+ SIPTrunksApi,
528
+ Configuration
529
+ } from 'yellowgrid-api-ts';
530
+
531
+ const configuration = new Configuration();
532
+ const apiInstance = new SIPTrunksApi(configuration);
533
+
534
+ let id: number; //SIP Trunk ID (default to undefined)
535
+ let enabled: boolean; //Enabled (default to undefined)
536
+
537
+ const { status, data } = await apiInstance.patchGetCliFlexibility(
538
+ id,
539
+ enabled
540
+ );
541
+ ```
542
+
543
+ ### Parameters
544
+
545
+ |Name | Type | Description | Notes|
546
+ |------------- | ------------- | ------------- | -------------|
547
+ | **id** | [**number**] | SIP Trunk ID | defaults to undefined|
548
+ | **enabled** | [**boolean**] | Enabled | defaults to undefined|
549
+
550
+
551
+ ### Return type
552
+
553
+ **SipTrunkChangeResponseModel**
554
+
555
+ ### Authorization
556
+
557
+ No authorization required
558
+
559
+ ### HTTP request headers
560
+
561
+ - **Content-Type**: Not defined
562
+ - **Accept**: application/json
563
+
564
+
565
+ ### HTTP response details
566
+ | Status code | Description | Response headers |
567
+ |-------------|-------------|------------------|
568
+ |**200** | Change Response | - |
569
+ |**400** | Bad Request | - |
570
+ |**401** | Unauthorised | - |
571
+ |**403** | Access Denied | - |
572
+
573
+ [[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)
574
+
575
+ # **patchSetAsAvailable**
576
+ > patchSetAsAvailable()
577
+
578
+ Set a SIP trunk as \'AVAILABLE\' for repurposing
579
+
580
+ ### Example
581
+
582
+ ```typescript
583
+ import {
584
+ SIPTrunksApi,
585
+ Configuration
586
+ } from 'yellowgrid-api-ts';
587
+
588
+ const configuration = new Configuration();
589
+ const apiInstance = new SIPTrunksApi(configuration);
590
+
591
+ let id: number; //SIP Trunk ID (default to undefined)
592
+
593
+ const { status, data } = await apiInstance.patchSetAsAvailable(
594
+ id
595
+ );
596
+ ```
597
+
598
+ ### Parameters
599
+
600
+ |Name | Type | Description | Notes|
601
+ |------------- | ------------- | ------------- | -------------|
602
+ | **id** | [**number**] | SIP Trunk ID | defaults to undefined|
603
+
604
+
605
+ ### Return type
606
+
607
+ void (empty response body)
608
+
609
+ ### Authorization
610
+
611
+ No authorization required
612
+
613
+ ### HTTP request headers
614
+
615
+ - **Content-Type**: Not defined
616
+ - **Accept**: Not defined
617
+
618
+
619
+ ### HTTP response details
620
+ | Status code | Description | Response headers |
621
+ |-------------|-------------|------------------|
622
+ |**200** | No Response | - |
623
+ |**400** | Bad Request | - |
624
+ |**401** | Unauthorised | - |
625
+ |**403** | Access Denied | - |
626
+
627
+ [[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)
628
+
629
+ # **patchSetOwnership**
630
+ > patchSetOwnership()
631
+
632
+ Change SIP Trunk Owner
633
+
634
+ ### Example
635
+
636
+ ```typescript
637
+ import {
638
+ SIPTrunksApi,
639
+ Configuration
640
+ } from 'yellowgrid-api-ts';
641
+
642
+ const configuration = new Configuration();
643
+ const apiInstance = new SIPTrunksApi(configuration);
644
+
645
+ let id: number; //SIP Trunk ID (default to undefined)
646
+ let ownerId: number; //Owner Customer ID (default to undefined)
647
+ let billingCustomerId: number; //Billing Customer ID (optional) (default to undefined)
648
+
649
+ const { status, data } = await apiInstance.patchSetOwnership(
650
+ id,
651
+ ownerId,
652
+ billingCustomerId
653
+ );
654
+ ```
655
+
656
+ ### Parameters
657
+
658
+ |Name | Type | Description | Notes|
659
+ |------------- | ------------- | ------------- | -------------|
660
+ | **id** | [**number**] | SIP Trunk ID | defaults to undefined|
661
+ | **ownerId** | [**number**] | Owner Customer ID | defaults to undefined|
662
+ | **billingCustomerId** | [**number**] | Billing Customer ID | (optional) defaults to undefined|
663
+
664
+
665
+ ### Return type
666
+
667
+ void (empty response body)
668
+
669
+ ### Authorization
670
+
671
+ No authorization required
672
+
673
+ ### HTTP request headers
674
+
675
+ - **Content-Type**: Not defined
676
+ - **Accept**: Not defined
677
+
678
+
679
+ ### HTTP response details
680
+ | Status code | Description | Response headers |
681
+ |-------------|-------------|------------------|
682
+ |**200** | No Response | - |
683
+ |**400** | Bad Request | - |
684
+ |**401** | Unauthorised | - |
685
+ |**403** | Access Denied | - |
686
+
687
+ [[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)
688
+
689
+ # **patchUpdateChannelCount**
690
+ > SipTrunkChangeResponseModel patchUpdateChannelCount()
691
+
692
+ Increase SIP Trunk Channels
693
+
694
+ ### Example
695
+
696
+ ```typescript
697
+ import {
698
+ SIPTrunksApi,
699
+ Configuration
700
+ } from 'yellowgrid-api-ts';
701
+
702
+ const configuration = new Configuration();
703
+ const apiInstance = new SIPTrunksApi(configuration);
704
+
705
+ let id: number; //SIP Trunk ID (default to undefined)
706
+ let channels: number; //SIP Channels (default to undefined)
707
+
708
+ const { status, data } = await apiInstance.patchUpdateChannelCount(
709
+ id,
710
+ channels
711
+ );
712
+ ```
713
+
714
+ ### Parameters
715
+
716
+ |Name | Type | Description | Notes|
717
+ |------------- | ------------- | ------------- | -------------|
718
+ | **id** | [**number**] | SIP Trunk ID | defaults to undefined|
719
+ | **channels** | [**number**] | SIP Channels | defaults to undefined|
720
+
721
+
722
+ ### Return type
723
+
724
+ **SipTrunkChangeResponseModel**
725
+
726
+ ### Authorization
727
+
728
+ No authorization required
729
+
730
+ ### HTTP request headers
731
+
732
+ - **Content-Type**: Not defined
733
+ - **Accept**: application/json
734
+
735
+
736
+ ### HTTP response details
737
+ | Status code | Description | Response headers |
738
+ |-------------|-------------|------------------|
739
+ |**200** | Change Response | - |
740
+ |**400** | Bad Request | - |
741
+ |**401** | Unauthorised | - |
742
+ |**403** | Access Denied | - |
743
+
744
+ [[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)
745
+
746
+ # **patchUpdateCompanyName**
747
+ > SipTrunkChangeResponseModel patchUpdateCompanyName()
748
+
749
+ Update SIP Trunk Company Name
750
+
751
+ ### Example
752
+
753
+ ```typescript
754
+ import {
755
+ SIPTrunksApi,
756
+ Configuration
757
+ } from 'yellowgrid-api-ts';
758
+
759
+ const configuration = new Configuration();
760
+ const apiInstance = new SIPTrunksApi(configuration);
761
+
762
+ let id: number; //SIP Trunk ID (default to undefined)
763
+ let company: string; //Company Name (default to undefined)
764
+
765
+ const { status, data } = await apiInstance.patchUpdateCompanyName(
766
+ id,
767
+ company
768
+ );
769
+ ```
770
+
771
+ ### Parameters
772
+
773
+ |Name | Type | Description | Notes|
774
+ |------------- | ------------- | ------------- | -------------|
775
+ | **id** | [**number**] | SIP Trunk ID | defaults to undefined|
776
+ | **company** | [**string**] | Company Name | defaults to undefined|
777
+
778
+
779
+ ### Return type
780
+
781
+ **SipTrunkChangeResponseModel**
782
+
783
+ ### Authorization
784
+
785
+ No authorization required
786
+
787
+ ### HTTP request headers
788
+
789
+ - **Content-Type**: Not defined
790
+ - **Accept**: application/json
791
+
792
+
793
+ ### HTTP response details
794
+ | Status code | Description | Response headers |
795
+ |-------------|-------------|------------------|
796
+ |**200** | Change Response | - |
797
+ |**400** | Bad Request | - |
798
+ |**401** | Unauthorised | - |
799
+ |**403** | Access Denied | - |
800
+
801
+ [[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)
802
+
803
+ # **patchUpdateMainTrunkNumber**
804
+ > SipTrunkChangeResponseModel patchUpdateMainTrunkNumber()
805
+
806
+ Update SIP Trunk Main Trunk Number
807
+
808
+ ### Example
809
+
810
+ ```typescript
811
+ import {
812
+ SIPTrunksApi,
813
+ Configuration
814
+ } from 'yellowgrid-api-ts';
815
+
816
+ const configuration = new Configuration();
817
+ const apiInstance = new SIPTrunksApi(configuration);
818
+
819
+ let id: number; //SIP Trunk ID (default to undefined)
820
+ let number: string; //Main Trunk Number (default to undefined)
821
+
822
+ const { status, data } = await apiInstance.patchUpdateMainTrunkNumber(
823
+ id,
824
+ number
825
+ );
826
+ ```
827
+
828
+ ### Parameters
829
+
830
+ |Name | Type | Description | Notes|
831
+ |------------- | ------------- | ------------- | -------------|
832
+ | **id** | [**number**] | SIP Trunk ID | defaults to undefined|
833
+ | **number** | [**string**] | Main Trunk Number | defaults to undefined|
834
+
835
+
836
+ ### Return type
837
+
838
+ **SipTrunkChangeResponseModel**
839
+
840
+ ### Authorization
841
+
842
+ No authorization required
843
+
844
+ ### HTTP request headers
845
+
846
+ - **Content-Type**: Not defined
847
+ - **Accept**: application/json
848
+
849
+
850
+ ### HTTP response details
851
+ | Status code | Description | Response headers |
852
+ |-------------|-------------|------------------|
853
+ |**200** | Change Response | - |
854
+ |**400** | Bad Request | - |
855
+ |**401** | Unauthorised | - |
856
+ |**403** | Access Denied | - |
857
+
858
+ [[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)
859
+
860
+ # **patchUpdatePbxIPAddress**
861
+ > SipTrunkChangeResponseModel patchUpdatePbxIPAddress()
862
+
863
+ Update SIP Trunk PBX IP Address
864
+
865
+ ### Example
866
+
867
+ ```typescript
868
+ import {
869
+ SIPTrunksApi,
870
+ Configuration
871
+ } from 'yellowgrid-api-ts';
872
+
873
+ const configuration = new Configuration();
874
+ const apiInstance = new SIPTrunksApi(configuration);
875
+
876
+ let id: number; //SIP Trunk ID (default to undefined)
877
+ let ipAddress: string; //PBX IP Address (default to undefined)
878
+
879
+ const { status, data } = await apiInstance.patchUpdatePbxIPAddress(
880
+ id,
881
+ ipAddress
882
+ );
883
+ ```
884
+
885
+ ### Parameters
886
+
887
+ |Name | Type | Description | Notes|
888
+ |------------- | ------------- | ------------- | -------------|
889
+ | **id** | [**number**] | SIP Trunk ID | defaults to undefined|
890
+ | **ipAddress** | [**string**] | PBX IP Address | defaults to undefined|
891
+
892
+
893
+ ### Return type
894
+
895
+ **SipTrunkChangeResponseModel**
896
+
897
+ ### Authorization
898
+
899
+ No authorization required
900
+
901
+ ### HTTP request headers
902
+
903
+ - **Content-Type**: Not defined
904
+ - **Accept**: application/json
905
+
906
+
907
+ ### HTTP response details
908
+ | Status code | Description | Response headers |
909
+ |-------------|-------------|------------------|
910
+ |**200** | Change Response | - |
911
+ |**400** | Bad Request | - |
912
+ |**401** | Unauthorised | - |
913
+ |**403** | Access Denied | - |
914
+
915
+ [[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)
916
+
917
+ # **postGetDdis**
918
+ > SipTrunkChangeResponseModel postGetDdis()
919
+
920
+ Add SIP Trunk DDIs
921
+
922
+ ### Example
923
+
924
+ ```typescript
925
+ import {
926
+ SIPTrunksApi,
927
+ Configuration,
928
+ DdiRangesRequestModel
929
+ } from 'yellowgrid-api-ts';
930
+
931
+ const configuration = new Configuration();
932
+ const apiInstance = new SIPTrunksApi(configuration);
933
+
934
+ let id: number; //SIP Trunk ID (default to undefined)
935
+ let ddiRangesRequestModel: DdiRangesRequestModel; //DDI Request (optional)
936
+
937
+ const { status, data } = await apiInstance.postGetDdis(
938
+ id,
939
+ ddiRangesRequestModel
940
+ );
941
+ ```
942
+
943
+ ### Parameters
944
+
945
+ |Name | Type | Description | Notes|
946
+ |------------- | ------------- | ------------- | -------------|
947
+ | **ddiRangesRequestModel** | **DdiRangesRequestModel**| DDI Request | |
948
+ | **id** | [**number**] | SIP Trunk ID | defaults to undefined|
949
+
950
+
951
+ ### Return type
952
+
953
+ **SipTrunkChangeResponseModel**
954
+
955
+ ### Authorization
956
+
957
+ No authorization required
958
+
959
+ ### HTTP request headers
960
+
961
+ - **Content-Type**: application/json
962
+ - **Accept**: application/json
963
+
964
+
965
+ ### HTTP response details
966
+ | Status code | Description | Response headers |
967
+ |-------------|-------------|------------------|
968
+ |**200** | Change Response | - |
969
+ |**400** | Bad Request | - |
970
+ |**401** | Unauthorised | - |
971
+ |**403** | Access Denied | - |
972
+
973
+ [[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)
974
+
975
+ # **postGetRequestedDdis**
976
+ > Array<Array<string>> postGetRequestedDdis()
977
+
978
+ Get Requested DDIs
979
+
980
+ ### Example
981
+
982
+ ```typescript
983
+ import {
984
+ SIPTrunksApi,
985
+ Configuration,
986
+ SipTrunkChangeResponseModel
987
+ } from 'yellowgrid-api-ts';
988
+
989
+ const configuration = new Configuration();
990
+ const apiInstance = new SIPTrunksApi(configuration);
991
+
992
+ let sipTrunkChangeResponseModel: SipTrunkChangeResponseModel; //Change Request (optional)
993
+
994
+ const { status, data } = await apiInstance.postGetRequestedDdis(
995
+ sipTrunkChangeResponseModel
996
+ );
997
+ ```
998
+
999
+ ### Parameters
1000
+
1001
+ |Name | Type | Description | Notes|
1002
+ |------------- | ------------- | ------------- | -------------|
1003
+ | **sipTrunkChangeResponseModel** | **SipTrunkChangeResponseModel**| Change Request | |
1004
+
1005
+
1006
+ ### Return type
1007
+
1008
+ **Array<Array<string>>**
1009
+
1010
+ ### Authorization
1011
+
1012
+ No authorization required
1013
+
1014
+ ### HTTP request headers
1015
+
1016
+ - **Content-Type**: application/json
1017
+ - **Accept**: application/json
1018
+
1019
+
1020
+ ### HTTP response details
1021
+ | Status code | Description | Response headers |
1022
+ |-------------|-------------|------------------|
1023
+ |**200** | New DDIs | - |
1024
+ |**400** | Bad Request | - |
1025
+ |**401** | Unauthorised | - |
1026
+ |**403** | Access Denied | - |
1027
+
1028
+ [[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)
1029
+
1030
+ # **postGetSipTrunks**
1031
+ > SipTrunkChangeResponseModel postGetSipTrunks()
1032
+
1033
+ Create New SIP Trunk
1034
+
1035
+ ### Example
1036
+
1037
+ ```typescript
1038
+ import {
1039
+ SIPTrunksApi,
1040
+ Configuration,
1041
+ SipTrunkCreationRequestModel
1042
+ } from 'yellowgrid-api-ts';
1043
+
1044
+ const configuration = new Configuration();
1045
+ const apiInstance = new SIPTrunksApi(configuration);
1046
+
1047
+ let sipTrunkCreationRequestModel: SipTrunkCreationRequestModel; //New SIP Trunk Request (optional)
1048
+
1049
+ const { status, data } = await apiInstance.postGetSipTrunks(
1050
+ sipTrunkCreationRequestModel
1051
+ );
1052
+ ```
1053
+
1054
+ ### Parameters
1055
+
1056
+ |Name | Type | Description | Notes|
1057
+ |------------- | ------------- | ------------- | -------------|
1058
+ | **sipTrunkCreationRequestModel** | **SipTrunkCreationRequestModel**| New SIP Trunk Request | |
1059
+
1060
+
1061
+ ### Return type
1062
+
1063
+ **SipTrunkChangeResponseModel**
1064
+
1065
+ ### Authorization
1066
+
1067
+ No authorization required
1068
+
1069
+ ### HTTP request headers
1070
+
1071
+ - **Content-Type**: application/json
1072
+ - **Accept**: application/json
1073
+
1074
+
1075
+ ### HTTP response details
1076
+ | Status code | Description | Response headers |
1077
+ |-------------|-------------|------------------|
1078
+ |**200** | Change Response | - |
1079
+ |**400** | Bad Request | - |
1080
+ |**401** | Unauthorised | - |
1081
+ |**403** | Access Denied | - |
1082
+
1083
+ [[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)
1084
+
1085
+ # **postTrackChange**
1086
+ > SipTrunkChangeResponseModel postTrackChange()
1087
+
1088
+ Track SIP Trunk Change Request
1089
+
1090
+ ### Example
1091
+
1092
+ ```typescript
1093
+ import {
1094
+ SIPTrunksApi,
1095
+ Configuration,
1096
+ SipTrunkChangeResponseModel
1097
+ } from 'yellowgrid-api-ts';
1098
+
1099
+ const configuration = new Configuration();
1100
+ const apiInstance = new SIPTrunksApi(configuration);
1101
+
1102
+ let sipTrunkChangeResponseModel: SipTrunkChangeResponseModel; //Change Request (optional)
1103
+
1104
+ const { status, data } = await apiInstance.postTrackChange(
1105
+ sipTrunkChangeResponseModel
1106
+ );
1107
+ ```
1108
+
1109
+ ### Parameters
1110
+
1111
+ |Name | Type | Description | Notes|
1112
+ |------------- | ------------- | ------------- | -------------|
1113
+ | **sipTrunkChangeResponseModel** | **SipTrunkChangeResponseModel**| Change Request | |
1114
+
1115
+
1116
+ ### Return type
1117
+
1118
+ **SipTrunkChangeResponseModel**
1119
+
1120
+ ### Authorization
1121
+
1122
+ No authorization required
1123
+
1124
+ ### HTTP request headers
1125
+
1126
+ - **Content-Type**: application/json
1127
+ - **Accept**: application/json
1128
+
1129
+
1130
+ ### HTTP response details
1131
+ | Status code | Description | Response headers |
1132
+ |-------------|-------------|------------------|
1133
+ |**200** | Change Response | - |
1134
+ |**400** | Bad Request | - |
1135
+ |**401** | Unauthorised | - |
1136
+ |**403** | Access Denied | - |
1137
+
1138
+ [[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)
1139
+
1140
+ # **putGetAddress**
1141
+ > SipTrunkChangeResponseModel putGetAddress()
1142
+
1143
+ Update SIP Trunk Address
1144
+
1145
+ ### Example
1146
+
1147
+ ```typescript
1148
+ import {
1149
+ SIPTrunksApi,
1150
+ Configuration,
1151
+ AddressRequestModel
1152
+ } from 'yellowgrid-api-ts';
1153
+
1154
+ const configuration = new Configuration();
1155
+ const apiInstance = new SIPTrunksApi(configuration);
1156
+
1157
+ let id: number; //SIP Trunk ID (default to undefined)
1158
+ let addressRequestModel: AddressRequestModel; //Address Request (optional)
1159
+
1160
+ const { status, data } = await apiInstance.putGetAddress(
1161
+ id,
1162
+ addressRequestModel
1163
+ );
1164
+ ```
1165
+
1166
+ ### Parameters
1167
+
1168
+ |Name | Type | Description | Notes|
1169
+ |------------- | ------------- | ------------- | -------------|
1170
+ | **addressRequestModel** | **AddressRequestModel**| Address Request | |
1171
+ | **id** | [**number**] | SIP Trunk ID | defaults to undefined|
1172
+
1173
+
1174
+ ### Return type
1175
+
1176
+ **SipTrunkChangeResponseModel**
1177
+
1178
+ ### Authorization
1179
+
1180
+ No authorization required
1181
+
1182
+ ### HTTP request headers
1183
+
1184
+ - **Content-Type**: application/json
1185
+ - **Accept**: application/json
1186
+
1187
+
1188
+ ### HTTP response details
1189
+ | Status code | Description | Response headers |
1190
+ |-------------|-------------|------------------|
1191
+ |**200** | Change Response | - |
1192
+ |**400** | Bad Request | - |
1193
+ |**401** | Unauthorised | - |
1194
+ |**403** | Access Denied | - |
1195
+
1196
+ [[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)
1197
+
1198
+ # **putGetDiverts**
1199
+ > SipTrunkChangeResponseModel putGetDiverts()
1200
+
1201
+ SIP Trunk Diverts
1202
+
1203
+ ### Example
1204
+
1205
+ ```typescript
1206
+ import {
1207
+ SIPTrunksApi,
1208
+ Configuration,
1209
+ DivertRequestModel
1210
+ } from 'yellowgrid-api-ts';
1211
+
1212
+ const configuration = new Configuration();
1213
+ const apiInstance = new SIPTrunksApi(configuration);
1214
+
1215
+ let id: number; //SIP Trunk ID (default to undefined)
1216
+ let enabled: boolean; //Enable Divert (default to undefined)
1217
+ let divertRequestModel: DivertRequestModel; //Divert Request (optional)
1218
+
1219
+ const { status, data } = await apiInstance.putGetDiverts(
1220
+ id,
1221
+ enabled,
1222
+ divertRequestModel
1223
+ );
1224
+ ```
1225
+
1226
+ ### Parameters
1227
+
1228
+ |Name | Type | Description | Notes|
1229
+ |------------- | ------------- | ------------- | -------------|
1230
+ | **divertRequestModel** | **DivertRequestModel**| Divert Request | |
1231
+ | **id** | [**number**] | SIP Trunk ID | defaults to undefined|
1232
+ | **enabled** | [**boolean**] | Enable Divert | defaults to undefined|
1233
+
1234
+
1235
+ ### Return type
1236
+
1237
+ **SipTrunkChangeResponseModel**
1238
+
1239
+ ### Authorization
1240
+
1241
+ No authorization required
1242
+
1243
+ ### HTTP request headers
1244
+
1245
+ - **Content-Type**: application/json
1246
+ - **Accept**: application/json
1247
+
1248
+
1249
+ ### HTTP response details
1250
+ | Status code | Description | Response headers |
1251
+ |-------------|-------------|------------------|
1252
+ |**200** | Change Response | - |
1253
+ |**400** | Bad Request | - |
1254
+ |**401** | Unauthorised | - |
1255
+ |**403** | Access Denied | - |
1256
+
1257
+ [[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)
1258
+