Update Voice IN Trunk Group#
Updates a Trunk Group.
Request#
HTTP Method: PATCH
URI Path: /v3/voice_in_trunk_groups/
URI Query Parameters#
Name |
Type |
Is Required? |
Description |
|---|---|---|---|
id |
|
Yes |
Unique ID identifier of Trunk Group. |
include |
|
No |
Request Body Object Attributes#
Name |
Type |
Nullable |
Is Required? |
Description |
|---|---|---|---|---|
name |
|
No |
Yes |
Unique name of the Trunk Group. |
capacity_limit |
|
No |
No |
Maximum number of simultaneous calls for the Trunk Group. |
Request Body Object Relationships#
Name |
Type |
Description |
|---|---|---|
voice_in_trunks |
Linkage for included trunks. |
Examples#
http
1PATCH /v3/voice_in_trunk_groups/43deb3aa-674a-465e-ac16-fb3084325ec7 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 "id": "43deb3aa-674a-465e-ac16-fb3084325ec7",
10 "type": "voice_in_trunk_groups",
11 "attributes": {
12 "name": "Renamed group",
13 "capacity_limit": 1
14 }
15 }
16}
curl
1curl -i -X PATCH https://api.didww.com/v3/voice_in_trunk_groups/43deb3aa-674a-465e-ac16-fb3084325ec7 -H "Accept: application/vnd.api+json" -H "Api-Key: [API token]" -H "Content-Type: application/vnd.api+json" --data-raw '{"data": {"attributes": {"capacity_limit": 1, "name": "Renamed group"}, "id": "43deb3aa-674a-465e-ac16-fb3084325ec7", "type": "voice_in_trunk_groups"}}'
response
1HTTP/1.1 200 OK
2Content-Type: application/vnd.api+json
3
4{
5 "data": {
6 "id": "43deb3aa-674a-465e-ac16-fb3084325ec7",
7 "type": "voice_in_trunk_groups",
8 "links": {
9 "self": "https://api.didww.com/v3/voice_in_trunk_groups/43deb3aa-674a-465e-ac16-fb3084325ec7"
10 },
11 "attributes": {
12 "created_at": "2017-06-25T14:56:31.513Z",
13 "name": "Renamed group",
14 "capacity_limit": 1
15 },
16 "relationships": {
17 "voice_in_trunks": {
18 "links": {
19 "self": "https://api.didww.com/v3/voice_in_trunk_groups/43deb3aa-674a-465e-ac16-fb3084325ec7/relationships/voice_in_trunks",
20 "related": "https://api.didww.com/v3/voice_in_trunk_groups/43deb3aa-674a-465e-ac16-fb3084325ec7/voice_in_trunks"
21 }
22 }
23 },
24 "meta": {
25 "trunks_count": 1
26 }
27 }
28}
http
1PATCH /v3/voice_in_trunk_groups/e74fcf6a-bb8d-4ee0-9980-bdc24a728b9a 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 "id": "e74fcf6a-bb8d-4ee0-9980-bdc24a728b9a",
10 "type": "voice_in_trunk_groups",
11 "relationships": {
12 "voice_in_trunks": {
13 "data": [
14
15 ]
16 }
17 }
18 }
19}
curl
1curl -i -X PATCH https://api.didww.com/v3/voice_in_trunk_groups/e74fcf6a-bb8d-4ee0-9980-bdc24a728b9a -H "Accept: application/vnd.api+json" -H "Api-Key: [API token]" -H "Content-Type: application/vnd.api+json" --data-raw '{"data": {"id": "e74fcf6a-bb8d-4ee0-9980-bdc24a728b9a", "relationships": {"voice_in_trunks": {"data": []}}, "type": "voice_in_trunk_groups"}}'
response
1HTTP/1.1 200 OK
2Content-Type: application/vnd.api+json
3
4{
5 "data": {
6 "id": "e74fcf6a-bb8d-4ee0-9980-bdc24a728b9a",
7 "type": "voice_in_trunk_groups",
8 "links": {
9 "self": "https://api.didww.com/v3/voice_in_trunk_groups/e74fcf6a-bb8d-4ee0-9980-bdc24a728b9a"
10 },
11 "attributes": {
12 "created_at": "2017-06-25T14:56:31.513Z",
13 "name": "Common Group",
14 "capacity_limit": 69
15 },
16 "relationships": {
17 "voice_in_trunks": {
18 "links": {
19 "self": "https://api.didww.com/v3/voice_in_trunk_groups/e74fcf6a-bb8d-4ee0-9980-bdc24a728b9a/relationships/voice_in_trunks",
20 "related": "https://api.didww.com/v3/voice_in_trunk_groups/e74fcf6a-bb8d-4ee0-9980-bdc24a728b9a/voice_in_trunks"
21 }
22 }
23 },
24 "meta": {
25 "trunks_count": 0
26 }
27 }
28}
Other Responses#
Code |
Success |
Description |
|---|---|---|
422 |
No |
|
401 |
No |