Destroy blacklist entry
POST
/destroy
Destroy blacklist entry
Path parameters
-
access_tokenstring
required
token to be passed as a header
Request body
application/json
-
idinteger
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_tokenstring
required
token to be passed as a header
Request body
application/json
-
descriptionstring
required
Remarks for the blacklisted number. -
black_numberstring
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
-
idinteger
The blacklist entry id.
Sample Response
{}
List blacklist
GET
/list
List blacklist
Path parameters
-
access_tokenstring
required
token to be passed as a header -
paginationinteger
optional
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/number_blacklist/list \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
Responses
200
Successful operation
application/json
-
pagesizeinteger
-
countinteger
-
paginationinteger
-
black_numbersarray
Show child attributes -
sort_bystring
Sample Response
{
"pagesize": 10,
"count": 100,
"pagination": 8,
"sort_by": "DEFAULT"
}