changes to account and application

This commit is contained in:
Dave Horton
2019-12-20 15:37:44 -05:00
parent 7c2e12a4be
commit b2760a2d75
5 changed files with 109 additions and 39 deletions
+8
View File
@@ -71,6 +71,14 @@ Account.fields = [
{
name: 'registration_hook',
type: 'string',
},
{
name: 'hook_basic_auth_user',
type: 'string',
},
{
name: 'hook_basic_auth_password',
type: 'string',
}
];
+12
View File
@@ -90,6 +90,18 @@ Application.fields = [
name: 'call_status_hook',
type: 'string',
required: true
},
{
name: 'hook_basic_auth_user',
type: 'string',
},
{
name: 'hook_basic_auth_password',
type: 'string',
},
{
name: 'hook_http_method',
type: 'string',
}
];
+24
View File
@@ -929,6 +929,18 @@ paths:
type: string
format: url
description: webhook to pass call status updates to
hook_basic_auth_user:
type: string
description: username to use for http basic auth when calling hook
hook_basic_auth_password:
type: string
description: password to use for http basic auth when calling hook
hook_http_method:
type: string
description: whether to use GET or POST
enum:
- get
- post
required:
- name
- account_sid
@@ -1263,6 +1275,18 @@ components:
call_status_hook:
type: string
format: url
hook_http_method:
type: string
enum:
- get
- post
default: get
hook_basic_auth_user:
type: string
format: url
hook_basic_auth_password:
type: string
format: url
required:
- application_sid
- name