Add a new emergency number.

POST /emergency_numbers/create
Add a new emergency number.
Path parameters
  • access_token

    string

    required

    token to be passed as a header

    minLength: 64

    maxLength: 64

Request body
application/json
  • --

    required

Sample Request

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

Responses

200
Created emergency number
application/json
  • id

    integer

    The emergency number entry ID.

    format : int64

Sample Response

                      
{
    "id": 1234
}
                      
                    

List emergency numbers

GET /emergency_numbers/list
List emergency numbers
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.

    enum : ['DEFAULT', 'OPTIONAL']

Sample Request

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

Responses

200
Successful operation
application/json
  • sort_by

    string

  • pagesize

    integer

  • pagination

    integer

  • emergency_numbers

    array

    Show child attributes
  • count

    integer

Sample Response

                      
{
    "sort_by": "DEFAULT",
    "pagesize": 10,
    "pagination": 8,
    "emergency_numbers": {
        "id": 100,
        "description": "description",
        "number_prefix": "001"
    },
    "count": 100
}
                      
                    

Update numbers processing

POST /numbers_processing/update
Update numbers processing
Path parameters
  • access_token

    string

    required

    token to be passed as a header

    minLength: 64

    maxLength: 64

Request body
application/json
  • enable_remove_particular_character

    string

    required

    The emergency number prefix.

    minLength: 64

    maxLength: 64

  • enable_remove_if_same_country

    string

    required

    The emergency number prefix.

    minLength: 64

    maxLength: 64

  • area_code

    string

    required

    The emergency number prefix.

    minLength: 64

    maxLength: 64

  • national_code

    string

    required

    The emergency number prefix.

    minLength: 64

    maxLength: 64

  • prefix

    string

    required

    The emergency number prefix.

    minLength: 64

    maxLength: 64

  • country

    string

    required

    The emergency number prefix.

    minLength: 64

    maxLength: 64

  • enable_process_e164

    string

    required

    The emergency number prefix.

    minLength: 64

    maxLength: 64

  • international_code

    string

    required

    The emergency number prefix.

    minLength: 64

    maxLength: 64

  • enable_remove_if_same_area_code

    boolean

    required

    The emergency number prefix.

Sample Request

                      curl -v -X POST http://127.0.0.1:8990/api/e164/numbers_processing/update \
                        -H "Content-Type: application/json" \
                        -H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
                          -d '{
    "enable_remove_particular_character": "abcd1234",
    "enable_remove_if_same_country": "abcd1234",
    "area_code": "abcd1234",
    "prefix": "abcd1234",
    "country": "abcd1234",
    "enable_process_e164": "abcd1234",
    "international_code": "abcd1234",
    "national_code": "abcd1234"
}'
                      
                    

Responses

200
Successful operation

Sample Response

                      
                      
                    

Show numbers processing.

GET /numbers_processing/show
Show numbers processing.
Path parameters
  • access_token

    string

    required

    token to be passed as a header

    minLength: 64

    maxLength: 64

Sample Request

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

Responses

200
Successful operation
application/json
  • --

    object

    Show child attributes

Sample Response

                      
{
    "enable_remove_particular_character": "abcd1234",
    "enable_remove_if_same_country": "abcd1234",
    "area_code": "abcd1234",
    "prefix": "abcd1234",
    "country": "abcd1234",
    "enable_process_e164": "abcd1234",
    "international_code": "abcd1234",
    "national_code": "abcd1234"
}
                      
                    

Delete emergency number

POST /emergency_numbers/destroy
Delete emergency numbers
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 emergency number entry ID.

    format : int64

Sample Request

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

Responses

200
Successful operation
404
User not found
400
Invalid username supplied

Sample Response