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#

http

 1POST /v3/voice_out_trunk_regenerate_credentials HTTP/1.1
 2Host: api.didww.com
 3Content-Type: application/vnd.api+json
 4Accept: application/vnd.api+json
 5Api-Key: [API token]
 6
 7{
 8  "data": {
 9    "type": "voice_out_trunk_regenerate_credentials",
10    "relationships": {
11      "voice_out_trunk": {
12        "data": {
13          "id": "457bf47d-446d-41cd-91c3-dfbda7bf0753",
14          "type": "voice_out_trunks"
15        }
16      }
17    }
18  }
19}

curl

1curl -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"}}'

response

 1HTTP/1.1 200 OK
 2Content-Type: application/vnd.api+json
 3
 4{
 5  "data": {
 6    "id": "457bf47d-446d-41cd-91c3-dfbda7bf0753",
 7    "type": "voice_out_trunk_regenerate_credentials"
 8  },
 9  "meta": {
10    "api_version": "2021-12-15"
11  }
12}