Retrieve a collection of ring groups.

GET /list
Retrieve a collection of ring groups.
Path parameters
  • access_token

    string

    required

    token to be passed as a header

    minLength: 64

    maxLength: 64

  • pagination

    integer

    required

    The pagination of paging.
  • 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.

Sample Request

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

Responses

200
Successful operation
application/json
  • pagination

    integer

  • count

    integer

  • groups

    array

    Show child attributes
  • sort_by

    string

  • pagesize

    integer

Sample Response

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

Update ring group

POST /update
Update ring group
Path parameters
  • access_token

    string

    required

    token to be passed as a header

    minLength: 64

    maxLength: 64

Request body
application/json
  • id

    integer

    required

    The unique ID of ring group.
  • ring_strategy

    string

    required

  • skip_busy_member

    boolean

    required

    Indicates if members on call would be skipped.
  • forward

    object

    required

    Show child attributes
  • members

    array

    required

    Members in current Ring Group.
  • ring_time

    integer

    required

    Duration that each extension will ring, in seconds.
  • name

    string

    required

    The name of ring group.
  • outbound_caller_id

    string

    required

    outbound caller id of ringgroup.

Sample Request

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

Responses

200
Successful operation

Sample Response

                      
                      
                    

Destroy ring group

POST /destroy
Destroy ring group
Path parameters
  • access_token

    string

    required

    token to be passed as a header

    minLength: 64

    maxLength: 64

Request body
application/json
  • id

    integer

    required

    The unique ID of ring group.

Sample Request

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

Responses

400
Invalid ring group ID supplied.
200
Successful operation

Sample Response

                      
                      
                    

Retrieve ring group

GET /show
Retrieve ring group by 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 the ring group.

    minLength: 64

    maxLength: 64

Sample Request

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

Responses

200
Successful operation
application/json
  • forwards

    object

    Show child attributes
  • id

    integer

    The unique ID of ring group.
  • members

    array

    Members in current Ring Group.
    Show child attributes
  • ring_strategy

    string

  • skip_busy_member

    boolean

    Indicates if members on call would be skipped.
  • extension_number

    string

    The extension number for ring group. This must be unique to the tenant, i.e. it cannot be an already used extension number.
  • ring_time

    integer

    Duration that each extension will ring, in seconds.
  • name

    string

    The name of ring group.

Sample Response

                      
{
    "id": 1234
}
                      
                    

Create ring group

POST /create
Add a new ring group. Please make sure you have at least one ring group created before creating a new ring group.
Path parameters
  • access_token

    string

    required

    token to be passed as a header

    minLength: 64

    maxLength: 64

Request body
application/json
  • extension_number

    string

    required

    The extension number for ring group. This must be unique to the tenant, i.e. it cannot be an already used extension number.
  • ring_strategy

    string

    required

  • skip_busy_member

    boolean

    required

    Indicates if members on call would be skipped.
  • forward

    object

    required

    Show child attributes
  • members

    array

    required

    Members in current Ring Group.
  • ring_time

    integer

    required

    Duration that each extension will ring, in seconds.
  • name

    string

    required

    The name of ring group.
  • outbound_caller_id

    string

    required

    outbound caller id of ringgroup.

Sample Request

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

Responses

200
Created ring group
application/json
  • id

    integer

    The unique ID of ring group.

Sample Response

                      
{
    "id": 1234
}