@@ -1167,6 +1167,11 @@ components:
1167
1167
schema:
1168
1168
type: string
1169
1169
requestBodies:
1170
+ shortCodeJsonPatchShortCodeRequest:
1171
+ content:
1172
+ application/json-patch+json:
1173
+ schema:
1174
+ $ref: '#/components/schemas/jsonPatch'
1170
1175
verificationRequest:
1171
1176
content:
1172
1177
application/json:
@@ -1468,6 +1473,12 @@ components:
1468
1473
description: >-
1469
1474
The short code number history details have been successfully retrieved
1470
1475
and displayed.
1476
+ shortCodeUpdateShortCodeResponse:
1477
+ content:
1478
+ application/json:
1479
+ schema:
1480
+ $ref: '#/components/schemas/shortCode'
1481
+ description: Updated short code data.
1471
1482
tfvBadRequestResponse:
1472
1483
content:
1473
1484
application/json:
@@ -13781,6 +13792,36 @@ components:
13781
13792
type: string
13782
13793
type: object
13783
13794
type: object
13795
+ jsonPatch:
13796
+ items:
13797
+ $ref: '#/components/schemas/jsonPatchItem'
13798
+ type: array
13799
+ jsonPatchItem:
13800
+ properties:
13801
+ from:
13802
+ description: Used when the operation is copy or move.
13803
+ type: string
13804
+ op:
13805
+ enum:
13806
+ - add
13807
+ - remove
13808
+ - replace
13809
+ - copy
13810
+ - move
13811
+ - test
13812
+ example: replace
13813
+ type: string
13814
+ path:
13815
+ example: /state
13816
+ type: string
13817
+ value:
13818
+ description: Used when the operation is add, replace, or test.
13819
+ example: MAINTENANCE
13820
+ type: object
13821
+ required:
13822
+ - op
13823
+ - path
13824
+ type: object
13784
13825
lnpPortInfoForGivenStatus:
13785
13826
properties:
13786
13827
ActualFOCDate:
@@ -13966,31 +14007,14 @@ components:
13966
14007
lease.
13967
14008
example: true
13968
14009
type: boolean
13969
- leaseEndsDate:
13970
- description: >-
13971
- Date the short code lease ends. Customer managed leases may not have
13972
- lease start and end dates. Date is inclusive as it relates to
13973
- expiration.
13974
- example: '2024-01-29'
13975
- format: date
13976
- type: string
13977
- leaseStartsDate:
13978
- description: >-
13979
- Date the short code lease starts. Customer managed leases may not
13980
- have lease start and end dates. Date is inclusive as it relates to
13981
- expiration.
13982
- example: '2023-01-28'
13983
- format: date
13984
- type: string
14010
+ lease:
14011
+ $ref: '#/components/schemas/shortCodeLeaseInfo'
13985
14012
modifiedDateTime:
13986
14013
example: '2022-11-15T18:39:04.505Z'
13987
14014
format: date-time
13988
14015
type: string
13989
- orderedDate:
13990
- description: Date the short code was registered.
13991
- example: '2023-01-30'
13992
- format: date
13993
- type: string
14016
+ notes:
14017
+ $ref: '#/components/schemas/shortCodeNotes'
13994
14018
shortCode:
13995
14019
description: The short code.
13996
14020
example: '12345'
@@ -14094,33 +14118,24 @@ components:
14094
14118
- CAN
14095
14119
example: USA
14096
14120
type: string
14121
+ createdDateTime:
14122
+ example: '2022-11-14T18:39:04.505Z'
14123
+ format: date-time
14124
+ type: string
14097
14125
customerManagedLease:
14098
14126
description: >-
14099
14127
Flag indicating whether the customer is managing the short code
14100
14128
lease.
14101
14129
example: true
14102
14130
type: boolean
14103
- leaseEndsDate:
14104
- description: >-
14105
- Date the short code lease ends. Customer managed leases may not have
14106
- lease start and end dates. Date is inclusive as it relates to
14107
- expiration.
14108
- example: '2024-01-29'
14109
- format: date
14110
- type: string
14111
- leaseStartsDate:
14112
- description: >-
14113
- Date the short code lease starts. Customer managed leases may not
14114
- have lease start and end dates. Date is inclusive as it relates to
14115
- expiration.
14116
- example: '2023-01-28'
14117
- format: date
14118
- type: string
14119
- orderedDate:
14120
- description: Date the short code was registered.
14121
- example: '2023-01-30'
14122
- format: date
14131
+ lease:
14132
+ $ref: '#/components/schemas/shortCodeLeaseData'
14133
+ modifiedDateTime:
14134
+ example: '2022-11-15T18:39:04.505Z'
14135
+ format: date-time
14123
14136
type: string
14137
+ notes:
14138
+ $ref: '#/components/schemas/shortCodeNotes'
14124
14139
shortCode:
14125
14140
description: The short code.
14126
14141
example: '12345'
@@ -14234,26 +14249,14 @@ components:
14234
14249
lease.
14235
14250
example: true
14236
14251
type: boolean
14237
- leaseEndsDate:
14238
- description: >-
14239
- Date the short code lease ends. Customer managed leases may not have
14240
- lease start and end dates. Date is inclusive as it relates to
14241
- expiration.
14242
- example: '2024-01-29'
14243
- format: date
14244
- type: string
14245
- leaseStartsDate:
14246
- description: >-
14247
- Date the short code lease starts. Customer managed leases may not
14248
- have lease start and end dates. Date is inclusive as it relates to
14249
- expiration.
14250
- example: '2023-01-28'
14251
- format: date
14252
- type: string
14252
+ lease:
14253
+ $ref: '#/components/schemas/shortCodeLeaseInfo'
14253
14254
modifiedDateTime:
14254
14255
example: '2022-11-15T18:39:04.505Z'
14255
14256
format: date-time
14256
14257
type: string
14258
+ notes:
14259
+ $ref: '#/components/schemas/shortCodeNotes'
14257
14260
operation:
14258
14261
description: Operation executed over the short code.
14259
14262
enum:
@@ -14262,11 +14265,6 @@ components:
14262
14265
- DELETED
14263
14266
example: UPDATED
14264
14267
type: string
14265
- orderedDate:
14266
- description: Date the short code was registered.
14267
- example: '2023-01-30'
14268
- format: date
14269
- type: string
14270
14268
shortCode:
14271
14269
description: The short code.
14272
14270
example: '12345'
@@ -14325,6 +14323,90 @@ components:
14325
14323
page:
14326
14324
$ref: '#/components/schemas/shortCodePage'
14327
14325
type: object
14326
+ shortCodeLeaseData:
14327
+ description: >-
14328
+ The lease information for the short code number. This information only
14329
+ applies to Bandwidth managed short code leases (customerManagedLease set
14330
+ to false).
14331
+ properties:
14332
+ autoRenew:
14333
+ description: Flag indicating whether the lease should auto-renew.
14334
+ example: true
14335
+ type: boolean
14336
+ autoRenewMonths:
14337
+ description: >-
14338
+ The number of months for which to renew the release when it auto
14339
+ renews. Valid values are 3, 6, and 12. The default value, if not
14340
+ supplied on creation, will be 3.
14341
+ enum:
14342
+ - 3
14343
+ - 6
14344
+ - 12
14345
+ example: 6
14346
+ type: integer
14347
+ contactEmail:
14348
+ description: Email address used for all lease renewal notifications.
14349
+
14350
+ type: string
14351
+ endDate:
14352
+ description: >-
14353
+ Lease end date. This date is inclusive, e.g. 2022-02-15 means that
14354
+ the short code is valid through 2/15.
14355
+ example: '2023-01-28'
14356
+ format: date
14357
+ type: string
14358
+ startDate:
14359
+ description: >-
14360
+ Lease start date. This date is inclusive, e.g. 2022-02-07 means that
14361
+ the short code is valid on 2/7.
14362
+ example: '2023-01-28'
14363
+ format: date
14364
+ type: string
14365
+ type: object
14366
+ shortCodeLeaseInfo:
14367
+ description: >-
14368
+ The lease information for the short code number. This information only
14369
+ applies to Bandwidth managed short code leases (customerManagedLease set
14370
+ to false).
14371
+ properties:
14372
+ autoRenew:
14373
+ description: Flag indicating whether the lease should auto-renew.
14374
+ example: true
14375
+ type: boolean
14376
+ autoRenewMonths:
14377
+ description: >-
14378
+ The number of months for which to renew the release when it auto
14379
+ renews. Valid values are 3, 6, and 12. The default value, if not
14380
+ supplied on creation, will be 3.
14381
+ enum:
14382
+ - 3
14383
+ - 6
14384
+ - 12
14385
+ example: 6
14386
+ type: integer
14387
+ contactEmail:
14388
+ description: Email address used for all lease renewal notifications.
14389
+
14390
+ type: string
14391
+ endDate:
14392
+ description: >-
14393
+ Lease end date. This date is inclusive, e.g. 2022-02-15 means that
14394
+ the short code is valid through 2/15.
14395
+ example: '2023-01-28'
14396
+ format: date
14397
+ type: string
14398
+ startDate:
14399
+ description: >-
14400
+ Lease start date. This date is inclusive, e.g. 2022-02-07 means that
14401
+ the short code is valid on 2/7.
14402
+ example: '2023-01-28'
14403
+ format: date
14404
+ type: string
14405
+ type: object
14406
+ shortCodeNotes:
14407
+ description: Internal notes.
14408
+ example: Notes example
14409
+ type: string
14328
14410
shortCodePage:
14329
14411
description: Pagination object that represents the current page.
14330
14412
properties:
@@ -14363,33 +14445,24 @@ components:
14363
14445
items:
14364
14446
$ref: '#/components/schemas/shortCodeCarrierInfo'
14365
14447
type: array
14448
+ createdDateTime:
14449
+ example: '2022-11-14T18:39:04.505Z'
14450
+ format: date-time
14451
+ type: string
14366
14452
customerManagedLease:
14367
14453
description: >-
14368
14454
Flag indicating whether the customer is managing the short code
14369
14455
lease.
14370
14456
example: true
14371
14457
type: boolean
14372
- leaseEndsDate:
14373
- description: >-
14374
- Date the short code lease ends. Customer managed leases may not have
14375
- lease start and end dates. Date is inclusive as it relates to
14376
- expiration.
14377
- example: '2024-01-29'
14378
- format: date
14379
- type: string
14380
- leaseStartsDate:
14381
- description: >-
14382
- Date the short code lease starts. Customer managed leases may not
14383
- have lease start and end dates. Date is inclusive as it relates to
14384
- expiration.
14385
- example: '2023-01-28'
14386
- format: date
14387
- type: string
14388
- orderedDate:
14389
- description: Date the short code was registered.
14390
- example: '2023-01-30'
14391
- format: date
14458
+ lease:
14459
+ $ref: '#/components/schemas/shortCodeLeaseData'
14460
+ modifiedDateTime:
14461
+ example: '2022-11-15T18:39:04.505Z'
14462
+ format: date-time
14392
14463
type: string
14464
+ notes:
14465
+ $ref: '#/components/schemas/shortCodeNotes'
14393
14466
sipPeerId:
14394
14467
description: SIP Peer ID from Iris.
14395
14468
example: '123321'
@@ -33843,6 +33916,41 @@ paths:
33843
33916
summary: Retrieve short code details.
33844
33917
tags:
33845
33918
- Short Codes
33919
+ patch:
33920
+ description: >-
33921
+ Update (field by field) an account's short code registration for a
33922
+ country. This utilizes [Json Patch](https://jsonpatch.com/).
33923
+ operationId: patchShortCodeLease
33924
+ parameters:
33925
+ - $ref: '#/components/parameters/AccountIdPathParam'
33926
+ - $ref: '#/components/parameters/shortCodePathParam'
33927
+ - $ref: '#/components/parameters/shortCodeCountryPathParam'
33928
+ requestBody:
33929
+ $ref: '#/components/requestBodies/shortCodeJsonPatchShortCodeRequest'
33930
+ responses:
33931
+ '200':
33932
+ $ref: '#/components/responses/shortCodeUpdateShortCodeResponse'
33933
+ '400':
33934
+ $ref: '#/components/responses/shortCode400'
33935
+ '401':
33936
+ $ref: '#/components/responses/shortCode401'
33937
+ '403':
33938
+ $ref: '#/components/responses/shortCode403'
33939
+ '404':
33940
+ $ref: '#/components/responses/shortCode404'
33941
+ '405':
33942
+ $ref: '#/components/responses/shortCode405'
33943
+ '409':
33944
+ $ref: '#/components/responses/shortCode409'
33945
+ '429':
33946
+ $ref: '#/components/responses/shortCode429'
33947
+ '500':
33948
+ $ref: '#/components/responses/shortCode500'
33949
+ summary: >-
33950
+ Update the lease information of an account's short code registration for
33951
+ a country.
33952
+ tags:
33953
+ - Short Codes
33846
33954
/accounts/{accountId}/shortcodes/{shortCode}/{country}/history:
33847
33955
get:
33848
33956
description: >-
0 commit comments