Voice OUT Trunk Regenerate Credentials
Description
Regenerates the username and password of voice_out trunk with new random string 10 symbols each.
HTTP Method: POST
URI Path: /v3/voice_out_trunk_regenerate_credentials
Example
POST /v3/voice_out_trunk_regenerate_credentials HTTP/1.1
Host: api.didww.com
Content-Type: application/vnd.api+json
Accept: application/vnd.api+json
Api-Key: [API token]
{
"data": {
"type": "voice_out_trunk_regenerate_credentials",
"relationships": {
"voice_out_trunk": {
"data": {
"id": "457bf47d-446d-41cd-91c3-dfbda7bf0753",
"type": "voice_out_trunks"
}
}
}
}
}
curl -i -X POST https://api.didww.com/v3/voice_out_trunk_regenerate_credentials -H "Accept: application/vnd.api+json" -H "Api-Key: [API token]" -H "Content-Type: application/vnd.api+json" --data-raw '{"data": {"relationships": {"voice_out_trunk": {"data": {"id": "457bf47d-446d-41cd-91c3-dfbda7bf0753", "type": "voice_out_trunks"}}}, "type": "voice_out_trunk_regenerate_credentials"}}'
HTTP/1.1 200 OK
Content-Type: application/vnd.api+json
{
"data": {
"id": "457bf47d-446d-41cd-91c3-dfbda7bf0753",
"type": "voice_out_trunk_regenerate_credentials"
},
"meta": {
"api_version": "2021-12-15"
}
}