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

    string

    required

  • prefix

    string

    required

  • enable_remove_particular_character

    boolean

    required

  • enable_remove_if_same_country

    boolean

    required

  • enable_remove_if_same_area_code

    boolean

    required

  • international_code

    string

    required

    The International code.
  • national_code

    string

    required

  • enable_process_e164

    boolean

    required

  • country

    string

    required

    country code.

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 '{
    "international_code": "abcd1234",
    "national_code": "abcd1234",
    "area_code": "abcd1234",
    "prefix": "abcd1234",
    "country": "Angola(244)"
}'
                      
                    

Responses

200
Successful operation

Sample Response

                      
                      
                    

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

    integer

  • count

    integer

  • emergency_numbers

    array

    Show child attributes
  • pagination

    integer

  • sort_by

    string

Sample Response

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

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
}
                      
                    

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

404
User not found
200
Successful operation
400
Invalid username supplied

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

                      
{
    "international_code": "abcd1234",
    "national_code": "abcd1234",
    "area_code": "abcd1234",
    "prefix": "abcd1234",
    "country": "Angola(244)"
}