Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Description

Allows us to make changes to an existing DID.

Parameters

did_number
did_range_start
did_range_ending
tenant
client_account_code
provider_account_code
status
country
number_type
cust_max_channels
primary_route
primary_destination
backup_route
backup_destination
did_rate_plan
limit_call_length
max_call_length
description
bill_on_allocation
setup_fee
monthly_fee
enable_ech

Request

 curl -X POST \-H "Authorization: Token d37fa8c4e008fec158070b1b4aea5f0db3d6a06e" \
-H "Content-Type: application/json" \
-d '{	
"did_number":"12125550099",
"tenant":"your.domain.com",
"client_account_code":"1828213528",
"provider_account_code":"23144564213",
"status":"allocated",
"cust_max_channels":16,
"number_type":"geographic",
"description":"Testing API",
"setup_fee":1,
"monthly_fee":5,
"did_rate_plan": "DID_INBOUND",
"limit_call_length":"true",
"max_call_length":7200
}


Response

{
 "status": "success",
 "results": {
 "cust_max_channels": 8,
 "blocksize": null,
 "primary_route": "busy",
 "primary_destination": null,
 "monthly_fee": 6.95,
 "line_type": null,
 "id": 70,
 "backup_destination": null,
 "limit_call_length": "true",
 "client_account_code": "1828213528",
 "number_type": "geographic",
 "enable_ech": true,
 "bill_on_allocation": false,
 "port_status": null,
 "did_rate_plan": "DID_INBOUND",
 "backup_route": "busy",
 "status": "allocated",
 "date_last_updated": null,
 "description": "Testing API",
 "max_call_length": 3600,
 "date_port_submitted": null,
 "range_holder": null,
 "setup_fee": 5,
 "tenant": "your.domain.com",
 "country": "US",
 "ported_from": null,
 "provider_account_code": "23144564213",
 "did_number": "12125550099",
 "did_address": null
 }
}
  • No labels