Service Number Restriction List
Service Number Restriction List
This api endpoint deals with updating the restriction list in the service number profile.
PUT /api/customer/:customerId/number/:serviceNumberId/number_restriction
Parameter | Example | Description |
---|---|---|
customer_id
|
3213
|
[URL parameter], [Required] The ID of the customer who owns the service number. |
service_number_id
|
0800522322
|
[URL parameter], [Required] The number of the service number the profile belongs to. |
The body JSON must consist of a single JSON hash with the following keys:
Key | Type | Description |
---|---|---|
customerID |
String | The ID of the customer who owns the service number. |
serviceNumberId |
Integer | The ID of the service number the profile belongs to. |
restrictionList |
Object | A key value pair where the restricted number is the key, and 0 is the value. |
Examples
Content of flow.json
:
{
"customerId":"3213",
"serviceNumberId":"0800522322",
"restrictionList": {
"066584564":0,
"0223561784":0,
"0213649485":0,
"0226584636":0,
"021364845":0,
"076541236":0
}
}
Request:
curl 'http://localhost/n2fe/jarvis-agent/n2fe/api/customer/3213/number/0800522322/number_restriction' -H 'Content-Type: application/json;charset=utf-8' -T flow.json -H 'Cookie: N2FE_CGISESSID=48ac880f98504e81373207d62dd2f807'
Success Response
On a success, the server will respond with 1
.