put https://api.servetel.in/v1/blocked_number/
This API allows you to update the blocked number against the DID/Account.
Sample Request
curl --request PUT \
--url https://api.servetel.in/v1/blocked_number/id \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{"block_key":"did"}'
š Important!
Before we begin, note that the * sign denotes the mandatory variables in each table.
Request Variables (Path Params)
The following parameter is required to update a blocked number:
Variable Name | Description | Data Type |
---|---|---|
id | Id of the number. | String |
Request Variables (Body Params)
The following parameter is required to update a blocked number:
Variable Name | Description | Data Type |
---|---|---|
src_number* | Source Number that needs to be blocked, between 5-50. | string |
block_key* | Type against which the number should be blocked. | string |
did_numbers* | my_numbers against which the number should be blocked, only requried for block_key=did. | array of strings |
Response Variables
The response returned is as following:
Variable Name | Description | Data Type |
---|---|---|
Success | The request success status, the possible values are: True (default) for success. False for failure. | Boolean |
Message | The message corresponding to the success status. For example, in 400 Response where the "success" variable pops as True, the message displayed is shown here. | String |