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
  • key0

    object

    required

    Show child attributes
  • call_transfer_metadata_id

    integer

    required

    format : int64

  • play_count

    integer

    required

    format : uint32

  • id

    integer

    required

    format : int64

  • key9

    object

    required

    Show child attributes
  • key5

    object

    required

    Show child attributes
  • key2

    object

    required

    Show child attributes
  • gap_time

    integer

    required

    Gap time between DTMF digits.
  • key1

    object

    required

    Show child attributes
  • timeout

    object

    required

    Show child attributes
  • urlactions

    object

    required

    Show child attributes
  • key8

    object

    required

    Show child attributes
  • key7

    object

    required

    Show child attributes
  • prompt_metadata_id

    integer

    required

    format : int64

  • key6

    object

    required

    Show child attributes
  • name

    string

    required

    The name of virtual receptionist.
  • language

    string

    required

    Default Audio prompt file's language.
  • key4

    object

    required

    Show child attributes
  • key3

    object

    required

    Show child attributes
  • failure

    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

                      
                      
                    

Retrieve moh server

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

    string

    required

    token to be passed as a header

    minLength: 64

    maxLength: 64

  • id

    integer

    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
  • play_count

    integer

    format : uint32

  • key9

    object

    Show child attributes
  • call_transfer_fileid

    string

  • key2

    object

    Show child attributes
  • gap_time

    integer

    Gap time between DTMF digits.
  • extension_number

    string

  • prompt_filename

    string

  • call_transfer_filename

    string

  • prompt_metadata_id

    integer

    format : int64

  • language

    string

    Default Audio prompt file's language.
  • key4

    object

    Show child attributes
  • key3

    object

    Show child attributes
  • failure

    object

    Show child attributes
  • key0

    object

    Show child attributes
  • id

    integer

    format : int64

  • key1

    object

    Show child attributes
  • timeout

    object

    Show child attributes
  • urlactions

    object

    Show child attributes
  • key7

    object

    Show child attributes
  • key6

    object

    Show child attributes
  • name

    string

    The name of virtual receptionist.
  • prompt_fileid

    string

  • key8

    object

    Show child attributes
  • call_transfer_metadata_id

    integer

    format : int64

  • key5

    object

    Show child attributes

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
  • sort_by

    string

  • pagesize

    integer

  • pagination

    integer

  • virtual_receptionists

    array

    Show child attributes
  • count

    integer

Sample Response

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

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

    integer

    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

                      
                      
                    

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
  • key0

    object

    required

    Show child attributes
  • play_count

    integer

    required

    format : uint32

  • call_transfer_metadata_id

    integer

    required

    format : int64

  • key9

    object

    required

    Show child attributes
  • key5

    object

    required

    Show child attributes
  • key2

    object

    required

    Show child attributes
  • gap_time

    integer

    required

    Gap time between DTMF digits.
  • extension_number

    string

    required

  • key1

    object

    required

    Show child attributes
  • timeout

    object

    required

    Show child attributes
  • urlactions

    object

    required

    Show child attributes
  • key8

    object

    required

    Show child attributes
  • key7

    object

    required

    Show child attributes
  • prompt_metadata_id

    integer

    required

    format : int64

  • key6

    object

    required

    Show child attributes
  • name

    string

    required

    The name of virtual receptionist.
  • language

    string

    required

    Default Audio prompt file's language.
  • key4

    object

    required

    Show child attributes
  • key3

    object

    required

    Show child attributes
  • failure

    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

    integer

    format : int64

Sample Response

                      
{}