Update Trunk Group#

Description

Updates a Trunk Group.

Request#

HTTP Method: PATCH

URI Path: /v3/trunk_groups/

URI Query Parameters:

Name

Type

Is Required?

Description

id

string

Yes

Unique ID identifier of Trunk Group.

include

string

Optional

Inclusion

Request Body Object Attributes:

Name

Type

Nullable

Is Required?

Description

name

string

False

Yes

Unique name of the Trunk Group.

capacity_limit

integer

False

Optional

Maximum number of simultaneous calls for the Trunk Group.

Request Body Object Relationships:

Title

Type

Description

trunks

To many | Linkage for included trunks.

Examples#

http

 1PATCH /v3/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": "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/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": "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": "trunk_groups",
 8    "attributes": {
 9      "created_at": "2017-06-25T14:56:31.513Z",
10      "name": "Renamed group",
11      "capacity_limit": 1
12    },
13    "relationships": {
14      "trunks": {
15        "links": {
16          "self": "https://api.didww.com/v3/trunk_groups/43deb3aa-674a-465e-ac16-fb3084325ec7/relationships/trunks",
17          "related": "https://api.didww.com/v3/trunk_groups/43deb3aa-674a-465e-ac16-fb3084325ec7/trunks"
18        }
19      }
20    },
21    "meta": {
22      "trunks_count": 1
23    }
24  },
25  "meta": {
26    "api_version": "2017-09-18"
27  }
28}

Other Responses#

Code

Success

Description

422

No

Unprocessable Entity

401

No

Unauthorized