Skip to content
This repository was archived by the owner on Nov 29, 2023. It is now read-only.

Commit eb1db45

Browse files
committed
Add Code Snippets to Spec Files
1 parent 62e30c0 commit eb1db45

File tree

1 file changed

+44
-44
lines changed

1 file changed

+44
-44
lines changed

site/specs/numbers.yml

Lines changed: 44 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -40118,24 +40118,26 @@ paths:
4011840118
summary: Submit a toll-free verification request
4011940119
tags:
4012040120
- Toll-Free Verification
40121-
/accounts/{accountId}/tollFreeVerification/subscriptions/{id}:
40122-
delete:
40123-
description: Delete a webhook subscription by ID.
40124-
operationId: deleteWebhookSubscription
40121+
/accounts/{accountId}/tollFreeVerification/webhooks/subscriptions:
40122+
get:
40123+
description: >-
40124+
Provides a list of webhook subscriptions that are registered to receive
40125+
status updates for the toll-free verification requests submitted under
40126+
this account (password will not be returned through this API; if
40127+
`basicAuthentication` is defined, the `password` property of that object
40128+
will be null).
40129+
operationId: listWebhookSubscriptions
4012540130
parameters:
4012640131
- $ref: '#/components/parameters/AccountIdPathParam'
40127-
- $ref: '#/components/parameters/WebhookSubscriptionIdPathParam'
4012840132
responses:
40129-
'204':
40130-
$ref: '#/components/responses/webhookSubscriptionDeleted'
40133+
'200':
40134+
$ref: '#/components/responses/webhookSubscriptionsList'
4013140135
'400':
40132-
$ref: '#/components/responses/tfvBadRequestResponse'
40136+
$ref: '#/components/responses/tfvPostBadRequestResponse'
4013340137
'401':
4013440138
$ref: '#/components/responses/tfvUnauthorizedResponse'
4013540139
'403':
4013640140
$ref: '#/components/responses/tfvForbiddenResponse'
40137-
'404':
40138-
$ref: '#/components/responses/tfvNotFoundResponse'
4013940141
'405':
4014040142
$ref: '#/components/responses/tfvNotAllowedResponse'
4014140143
'429':
@@ -40144,22 +40146,26 @@ paths:
4014440146
$ref: '#/components/responses/tfvServerErrorResponse'
4014540147
'503':
4014640148
$ref: '#/components/responses/tfvServiceUnavailableResponse'
40147-
summary: Delete a webhook subscription
40149+
summary: List all webhook subscriptions registered for this account
4014840150
tags:
4014940151
- Toll-Free Verification
40150-
put:
40152+
post:
4015140153
description: >-
40152-
Update an existing webhook subscription (`callbackUrl` and
40153-
`basicAuthentication` can be updated).
40154-
operationId: updateWebhookSubscription
40154+
Create a new webhook subscription (this webhook will be called for every
40155+
update on every submission; is is also possible to register a one-time
40156+
callback URL as part of a submission itself). In addition to a
40157+
`callbackUrl`, this subscription can provide HTTP Basic authentication
40158+
credentials (a username and a password). The returned subscription
40159+
object will contain an ID that can be used to modify or delete the
40160+
subscription at a later time.
40161+
operationId: createWebhookSubscription
4015540162
parameters:
4015640163
- $ref: '#/components/parameters/AccountIdPathParam'
40157-
- $ref: '#/components/parameters/WebhookSubscriptionIdPathParam'
4015840164
requestBody:
4015940165
$ref: '#/components/requestBodies/webhookSubscriptionRequest'
4016040166
responses:
40161-
'200':
40162-
$ref: '#/components/responses/webhookSubscriptionUpdated'
40167+
'201':
40168+
$ref: '#/components/responses/webhookSubscriptionCreated'
4016340169
'400':
4016440170
$ref: '#/components/responses/tfvBadRequestResponse'
4016540171
'401':
@@ -40176,29 +40182,27 @@ paths:
4017640182
$ref: '#/components/responses/tfvServerErrorResponse'
4017740183
'503':
4017840184
$ref: '#/components/responses/tfvServiceUnavailableResponse'
40179-
summary: Update an existing webhook subscription
40185+
summary: Create a new webhook subscription
4018040186
tags:
4018140187
- Toll-Free Verification
40182-
/accounts/{accountId}/tollFreeVerification/webhooks/subscriptions:
40183-
get:
40184-
description: >-
40185-
Provides a list of webhook subscriptions that are registered to receive
40186-
status updates for the toll-free verification requests submitted under
40187-
this account (password will not be returned through this API; if
40188-
`basicAuthentication` is defined, the `password` property of that object
40189-
will be null).
40190-
operationId: listWebhookSubscriptions
40188+
/accounts/{accountId}/tollFreeVerification/webhooks/subscriptions/{id}:
40189+
delete:
40190+
description: Delete a webhook subscription by ID.
40191+
operationId: deleteWebhookSubscription
4019140192
parameters:
4019240193
- $ref: '#/components/parameters/AccountIdPathParam'
40194+
- $ref: '#/components/parameters/WebhookSubscriptionIdPathParam'
4019340195
responses:
40194-
'200':
40195-
$ref: '#/components/responses/webhookSubscriptionsList'
40196+
'204':
40197+
$ref: '#/components/responses/webhookSubscriptionDeleted'
4019640198
'400':
40197-
$ref: '#/components/responses/tfvPostBadRequestResponse'
40199+
$ref: '#/components/responses/tfvBadRequestResponse'
4019840200
'401':
4019940201
$ref: '#/components/responses/tfvUnauthorizedResponse'
4020040202
'403':
4020140203
$ref: '#/components/responses/tfvForbiddenResponse'
40204+
'404':
40205+
$ref: '#/components/responses/tfvNotFoundResponse'
4020240206
'405':
4020340207
$ref: '#/components/responses/tfvNotAllowedResponse'
4020440208
'429':
@@ -40207,26 +40211,22 @@ paths:
4020740211
$ref: '#/components/responses/tfvServerErrorResponse'
4020840212
'503':
4020940213
$ref: '#/components/responses/tfvServiceUnavailableResponse'
40210-
summary: List all webhook subscriptions registered for this account
40214+
summary: Delete a webhook subscription
4021140215
tags:
4021240216
- Toll-Free Verification
40213-
post:
40217+
put:
4021440218
description: >-
40215-
Create a new webhook subscription (this webhook will be called for every
40216-
update on every submission; is is also possible to register a one-time
40217-
callback URL as part of a submission itself). In addition to a
40218-
`callbackUrl`, this subscription can provide HTTP Basic authentication
40219-
credentials (a username and a password). The returned subscription
40220-
object will contain an ID that can be used to modify or delete the
40221-
subscription at a later time.
40222-
operationId: createWebhookSubscription
40219+
Update an existing webhook subscription (`callbackUrl` and
40220+
`basicAuthentication` can be updated).
40221+
operationId: updateWebhookSubscription
4022340222
parameters:
4022440223
- $ref: '#/components/parameters/AccountIdPathParam'
40224+
- $ref: '#/components/parameters/WebhookSubscriptionIdPathParam'
4022540225
requestBody:
4022640226
$ref: '#/components/requestBodies/webhookSubscriptionRequest'
4022740227
responses:
40228-
'201':
40229-
$ref: '#/components/responses/webhookSubscriptionCreated'
40228+
'200':
40229+
$ref: '#/components/responses/webhookSubscriptionUpdated'
4023040230
'400':
4023140231
$ref: '#/components/responses/tfvBadRequestResponse'
4023240232
'401':
@@ -40243,7 +40243,7 @@ paths:
4024340243
$ref: '#/components/responses/tfvServerErrorResponse'
4024440244
'503':
4024540245
$ref: '#/components/responses/tfvServiceUnavailableResponse'
40246-
summary: Create a new webhook subscription
40246+
summary: Update an existing webhook subscription
4024740247
tags:
4024840248
- Toll-Free Verification
4024940249
/accounts/{accountId}/totalSeats:

0 commit comments

Comments
 (0)