Destroy virtual receptionists

POST /destroy
Destroy an virtual receptionists entry.
Path parameters
  • access_token

    string

    required

    token to be passed as a header

    minLength: 64

    maxLength: 64

Request body
application/json
  • id

    string

    required

    format : int64

Sample Request

                      curl -v -X POST http://127.0.0.1:8990/api/virtual_receptionists/destroy \
                        -H "Content-Type: application/json" \
                        -H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
                          -d '{}'
                      
                    

Responses

200
Successful operation
400
Invalid virtual receptionists ID supplied.

Sample Response

                      
                      
                    

Retrieve virtual receptionists

GET /show
Retrieve virtual receptionists server by it's unique ID.
Path parameters
  • access_token

    string

    required

    token to be passed as a header

    minLength: 64

    maxLength: 64

  • id

    string

    required

    The unique ID of virtual receptionists.

    format : int64

Sample Request

                      curl -v -X GET http://127.0.0.1:8990/api/virtual_receptionists/show \
                        -H "Content-Type: application/json" \
                        -H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
                      
                    

Responses

200
Successful operation
application/json
  • urlactions

    object

    Show child attributes
  • key2

    object

    Show child attributes
  • key7

    object

    Show child attributes
  • failure

    object

    Show child attributes
  • key0

    object

    Show child attributes
  • call_transfer_fileid

    string

  • key6

    object

    Show child attributes
  • key3

    object

    Show child attributes
  • timeout

    object

    Show child attributes
  • prompt_filename

    string

  • key9

    object

    Show child attributes
  • call_transfer_metadata_id

    string

    format : int64

  • key1

    object

    Show child attributes
  • key8

    object

    Show child attributes
  • call_transfer_filename

    string

  • id

    string

    format : int64

  • prompt_metadata_id

    string

    format : int64

  • key4

    object

    Show child attributes
  • play_count

    integer

    format : uint32

  • gap_time

    integer

    Gap time between DTMF digits.
  • prompt_fileid

    string

  • name

    string

    The name of virtual receptionist.
  • extension_number

    string

  • key5

    object

    Show child attributes
  • language

    string

    Default Audio prompt file's language.

    enum : ['zh_CN', 'en_US', 'da_DK', 'de_DE', 'el_GR', 'en_GB', 'es_ES', 'fr_FR', 'it_IT', 'nl_NL', 'pt_PT', 'pt_BR', 'tr_TR']

Sample Response

                      
{}
                      
                    

Retrieve a collection of virtual receptionists

GET /list
Retrieve a collection of virtual receptionists
Path parameters
  • access_token

    string

    required

    token to be passed as a header

    minLength: 64

    maxLength: 64

  • pagination

    integer

    required

    The pagination of paging.

    format : int32

  • pagesize

    integer

    required

    The size of paging.
  • sort_by

    string

    optional

    Values include "DEFAULT" and "Optional". Default value will be used when user does not specify value for this field.

    enum : ['DEFAULT', 'OPTIONAL']

Sample Request

                      curl -v -X GET http://127.0.0.1:8990/api/virtual_receptionists/list \
                        -H "Content-Type: application/json" \
                        -H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
                      
                    

Responses

200
Successful operation
application/json
  • pagesize

    integer

  • sort_by

    string

  • pagination

    integer

  • virtual_receptionists

    array

    Show child attributes
  • count

    integer

Sample Response

                      
{
    "pagesize": 10,
    "sort_by": "DEFAULT",
    "pagination": 8,
    "count": 100
}
                      
                    

Create an virtual receptionists entry.

POST /create
Add a new virtual receptionists entry into system.
Path parameters
  • access_token

    string

    required

    token to be passed as a header

    minLength: 64

    maxLength: 64

Request body
application/json
  • call_transfer_metadata_id

    string

    required

    format : int64

  • urlactions

    object

    required

    Show child attributes
  • key1

    object

    required

    Show child attributes
  • key2

    object

    required

    Show child attributes
  • key7

    object

    required

    Show child attributes
  • language

    string

    required

    Default Audio prompt file's language.

    enum : ['zh_CN', 'en_US', 'da_DK', 'de_DE', 'el_GR', 'en_GB', 'es_ES', 'fr_FR', 'it_IT', 'nl_NL', 'pt_PT', 'pt_BR', 'tr_TR']

  • failure

    object

    required

    Show child attributes
  • key0

    object

    required

    Show child attributes
  • prompt_metadata_id

    string

    required

    format : int64

  • key4

    object

    required

    Show child attributes
  • key6

    object

    required

    Show child attributes
  • key3

    object

    required

    Show child attributes
  • gap_time

    integer

    required

    Gap time between DTMF digits.
  • name

    string

    required

    The name of virtual receptionist.
  • timeout

    object

    required

    Show child attributes
  • play_count

    integer

    required

    format : uint32

  • extension_number

    string

    required

  • key5

    object

    required

    Show child attributes
  • key9

    object

    required

    Show child attributes
  • key8

    object

    required

    Show child attributes

Sample Request

                      curl -v -X POST http://127.0.0.1:8990/api/virtual_receptionists/create \
                        -H "Content-Type: application/json" \
                        -H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
                          -d '{}'
                      
                    

Responses

200
Created virtual receptionists
application/json
  • id

    string

    format : int64

Sample Response

                      
{}
                      
                    

Update virtual receptionists

POST /update
Update virtual receptionists
Path parameters
  • access_token

    string

    required

    token to be passed as a header

    minLength: 64

    maxLength: 64

Request body
application/json
  • call_transfer_metadata_id

    string

    required

    format : int64

  • urlactions

    object

    required

    Show child attributes
  • key1

    object

    required

    Show child attributes
  • key2

    object

    required

    Show child attributes
  • key7

    object

    required

    Show child attributes
  • id

    string

    required

    format : int64

  • failure

    object

    required

    Show child attributes
  • key0

    object

    required

    Show child attributes
  • prompt_metadata_id

    string

    required

    format : int64

  • key4

    object

    required

    Show child attributes
  • key6

    object

    required

    Show child attributes
  • key3

    object

    required

    Show child attributes
  • gap_time

    integer

    required

    Gap time between DTMF digits.
  • name

    string

    required

    The name of virtual receptionist.
  • timeout

    object

    required

    Show child attributes
  • play_count

    integer

    required

    format : uint32

  • key9

    object

    required

    Show child attributes
  • key5

    object

    required

    Show child attributes
  • language

    string

    required

    Default Audio prompt file's language.

    enum : ['zh_CN', 'en_US', 'da_DK', 'de_DE', 'el_GR', 'en_GB', 'es_ES', 'fr_FR', 'it_IT', 'nl_NL', 'pt_PT', 'pt_BR', 'tr_TR']

  • key8

    object

    required

    Show child attributes

Sample Request

                      curl -v -X POST http://127.0.0.1:8990/api/virtual_receptionists/update \
                        -H "Content-Type: application/json" \
                        -H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
                          -d '{}'
                      
                    

Responses

200
Successful operation

Sample Response