Create Inbound Trunk Group#

Creates a Trunk Group.

Request#

HTTP Method: POST

URI Path: /v3/voice_in_trunk_groups

URI Query Parameters#

Name

Type

Is Required?

Description

include

string

No

Inclusion

Request Body Object Attributes#

Name

Type

Nullable

Is Required?

Description

name

string

No

Yes

Unique name of the Trunk Group.

external_reference_id

string

Yes

No

Optional identifier for the trunk group in the customer’s external system. Maximum length is 100 characters.

capacity_limit

integer

No

No

Maximum number of simultaneous calls for the Trunk Group.

Request Body Object Relationships#

Name

Type

Description

voice_in_trunks

To many

Linkage for included trunks.

Examples#

http

 1POST /v3/voice_in_trunk_groups 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_in_trunk_groups",
10    "attributes": {
11      "name": "Main group",
12      "capacity_limit": 100
13    }
14  }
15}

curl

1curl -i -X POST https://api.didww.com/v3/voice_in_trunk_groups -H "Accept: application/vnd.api+json" -H "Api-Key: [API token]" -H "Content-Type: application/vnd.api+json" --data-raw '{"data": {"attributes": {"capacity_limit": 100, "name": "Main group"}, "type": "voice_in_trunk_groups"}}'

response

 1HTTP/1.1 201 Created
 2Content-Type: application/vnd.api+json
 3
 4{
 5  "data": {
 6    "id": "a6370df6-86db-4a1a-9a54-3742f1d8615c",
 7    "type": "voice_in_trunk_groups",
 8    "links": {
 9      "self": "https://api.didww.com/v3/voice_in_trunk_groups/a6370df6-86db-4a1a-9a54-3742f1d8615c"
10    },
11    "attributes": {
12      "created_at": "2017-06-25T14:56:31.513Z",
13      "external_reference_id": null,
14      "name": "Main group",
15      "capacity_limit": 100
16    },
17    "relationships": {
18      "voice_in_trunks": {
19        "links": {
20          "self": "https://api.didww.com/v3/voice_in_trunk_groups/a6370df6-86db-4a1a-9a54-3742f1d8615c/relationships/voice_in_trunks",
21          "related": "https://api.didww.com/v3/voice_in_trunk_groups/a6370df6-86db-4a1a-9a54-3742f1d8615c/voice_in_trunks"
22        }
23      }
24    },
25    "meta": {
26      "trunks_count": 0
27    }
28  }
29}

Other Responses#

Code

Success

Description

422

No

Unprocessable Entity

401

No

Unauthorized