Destroy blacklist entry
POST
/destroy
Destroy blacklist entry
Path parameters
-
access_token
string
required
token to be passed as a header
Request body
application/json
-
id
integer
required
The blacklist entry id.
Sample Request
curl -v -X POST http://127.0.0.1:8990/api/number_blacklist/destroy \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
-d '{}'
Responses
404
User not found
200
Successful operation
400
Invalid entry ID supplied
Sample Response
Create blacklist
POST
/create
Path parameters
-
access_token
string
required
token to be passed as a header
Request body
application/json
-
description
string
required
Remarks for the blacklisted number. -
black_number
string
required
Extension number in blacklist.
Sample Request
curl -v -X POST http://127.0.0.1:8990/api/number_blacklist/create \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
-d '{}'
Responses
200
Created blacklist
application/json
-
id
integer
The blacklist entry id.
Sample Response
{}
List blacklist
GET
/list
List blacklist
Path parameters
-
access_token
string
required
token to be passed as a header -
pagination
integer
optional
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/number_blacklist/list \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
Responses
200
Successful operation
application/json
-
pagesize
integer
-
count
integer
-
pagination
integer
-
black_numbers
array
-
sort_by
string
Sample Response
{
"pagesize": 10,
"count": 100,
"pagination": 8,
"sort_by": "DEFAULT"
}