Add a new emergency number.
POST
/emergency_numbers/create
Add a new emergency number.
Path parameters
-
access_tokenstring
required
token to be passed as a header
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
-
idstring
The emergency number entry ID.
Sample Response
{
"id": 1234
}
List emergency numbers
GET
/emergency_numbers/list
List emergency numbers
Path parameters
-
access_tokenstring
required
token to be passed as a header -
paginationinteger
required
The pagination of paging. -
pagesizeinteger
required
The size of paging. -
sort_bystring
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/e164/emergency_numbers/list \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
Responses
200
Successful operation
application/json
-
pagesizeinteger
-
sort_bystring
-
paginationinteger
-
emergency_numbersarray
Show child attributes -
countinteger
Sample Response
{
"pagesize": 10,
"sort_by": "DEFAULT",
"pagination": 8,
"emergency_numbers": {
"description": "description",
"id": 100,
"number_prefix": "001"
},
"count": 100
}
Delete emergency number
POST
/emergency_numbers/destroy
Delete emergency numbers
Path parameters
-
access_tokenstring
required
token to be passed as a header
Request body
application/json
-
idstring
required
The emergency number entry ID.
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
Show numbers processing.
GET
/numbers_processing/show
Show numbers processing.
Path parameters
-
access_tokenstring
required
token to be passed as a header
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" \
Sample Response
{
"national_code": "abcd1234",
"area_code": "abcd1234",
"country": "Angola(244)",
"international_code": "abcd1234",
"prefix": "abcd1234"
}
Update numbers processing
POST
/numbers_processing/update
Update numbers processing
Path parameters
-
access_tokenstring
required
token to be passed as a header
Request body
application/json
-
enable_remove_particular_characterboolean
required
-
area_codestring
required
-
countrystring
required
country code. -
enable_remove_if_same_area_codeboolean
required
-
national_codestring
required
-
international_codestring
required
The International code. -
enable_remove_if_same_countryboolean
required
-
enable_process_e164boolean
required
-
prefixstring
required
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 '{
"national_code": "abcd1234",
"area_code": "abcd1234",
"country": "Angola(244)",
"international_code": "abcd1234",
"prefix": "abcd1234"
}'
Responses
200
Successful operation
Sample Response