×

A de-allocation request removes the mapping from the VN

DELETE

https://leadassist.exotel.in/v1/tenants/<your_sid>/greenvn/<greenvn_id>

Replace <your_sid> with your tenant ID and <greenvn_id> with the same received in the allocation request

curl -X DELETE https://leadassist.exotel.in/v1/tenants/<your_sid>/greenvn/<greenvn_id>

 

var request = require('request');
var options = {
url: 'https://leadassist.exotel.in/v1/tenants/<your_sid>/greenvn/<greenvn_id>'
};
function callback(error, response, body) {
if (!error && response.statusCode == 200) {
console.log(body);
}
}
request(options, callback);
 include('vendor/rmccue/requests/library/Requests.php');
Requests::register_autoloader();
$headers = array();
$response = Requests::get('https://leadassist.exotel.in/v1/tenants/<your_sid>/greenvn/<greenvn_id>', $headers);
import requests
requests.delete('https://leadassist.exotel.in/v1/tenants/<your_sid>/greenvn/<greenvn_id>')
require 'net/http'
require 'uri'
uri = URI.parse("https://leadassist.exotel.in/v1/tenants/<your_sid>/greenvn/<greenvn_id>")
response = Net::HTTP.get_response(uri)
# response.code
# response.body

HTTP Response:

  • On success, the HTTP response status code will be 200.
  • The HTTP response body will contain a JSON similar to the one below:
{
           "success": true,
           "status": 200,
           "data":{
                             "connection_id":"abcd12345",
                            "aparty_numbers":[
                                            "+000000000000”
                             ],
                            "bparty_numbers":[
                                            "+919876543210",
                             ],
            "usage":"oneway|twoway",            “state”: “vault”,
            "green_vn":"+918012345678",
            "greenvn_id":"123456"
           }
}

The parameters in the above request are same as described in the response of the allocation request.