Get Shared Capacity Groups#
Returns a collection of Shared Capacity Groups.
Request#
HTTP Method: GET
URI Path: /v3/shared_capacity_groups
Note
For all returned data attributes, see Shared Capacity Group Object.
URI Query Parameters#
Name |
Type |
Is Required? |
Description |
|---|---|---|---|
include |
|
No |
|
filter[<filter_name>] |
|
No |
|
fields[shared_capacity_groups] |
|
No |
|
sort |
|
No |
Includes#
Value |
Description |
|---|---|
dids |
|
capacity_pool |
Filters#
Filter Name |
Type |
Allow Blank |
Allow Array |
Filters by: |
|---|---|---|---|---|
name |
|
Yes |
Yes |
Shared Capacity Group |
external_reference_id |
|
No |
No |
The |
capacity_pool.id |
|
Yes |
Yes |
The |
Examples#
http
1GET /v3/shared_capacity_groups HTTP/1.1
2Host: api.didww.com
3Content-Type: application/vnd.api+json
4Accept: application/vnd.api+json
5Api-Key: [API token]
curl
1curl -i -X GET https://api.didww.com/v3/shared_capacity_groups -H "Accept: application/vnd.api+json" -H "Api-Key: [API token]" -H "Content-Type: application/vnd.api+json"
response
1HTTP/1.1 200 OK
2Content-Type: application/vnd.api+json
3
4{
5 "data": [
6 {
7 "id": "8a581244-de83-4c46-ac0a-32659279169e",
8 "type": "shared_capacity_groups",
9 "attributes": {
10 "name": "Mixed group",
11 "shared_channels_count": 3,
12 "created_at": "2018-06-20T08:48:47.811Z",
13 "external_reference_id": null,
14 "metered_channels_count": 5
15 },
16 "relationships": {
17 "capacity_pool": {
18 "links": {
19 "self": "https://api.didww.com/v3/shared_capacity_groups/8a581244-de83-4c46-ac0a-32659279169e/relationships/capacity_pool",
20 "related": "https://api.didww.com/v3/shared_capacity_groups/8a581244-de83-4c46-ac0a-32659279169e/capacity_pool"
21 }
22 },
23 "dids": {
24 "links": {
25 "self": "https://api.didww.com/v3/shared_capacity_groups/8a581244-de83-4c46-ac0a-32659279169e/relationships/dids",
26 "related": "https://api.didww.com/v3/shared_capacity_groups/8a581244-de83-4c46-ac0a-32659279169e/dids"
27 }
28 }
29 }
30 },
31 {
32 "id": "dd2e8844-6a79-4673-ba1c-c8a4913884cc",
33 "type": "shared_capacity_groups",
34 "attributes": {
35 "name": "Metered group",
36 "shared_channels_count": 0,
37 "created_at": "2018-06-19T11:41:21.644Z",
38 "external_reference_id": null,
39 "metered_channels_count": 30
40 },
41 "relationships": {
42 "capacity_pool": {
43 "links": {
44 "self": "https://api.didww.com/v3/shared_capacity_groups/dd2e8844-6a79-4673-ba1c-c8a4913884cc/relationships/capacity_pool",
45 "related": "https://api.didww.com/v3/shared_capacity_groups/dd2e8844-6a79-4673-ba1c-c8a4913884cc/capacity_pool"
46 }
47 },
48 "dids": {
49 "links": {
50 "self": "https://api.didww.com/v3/shared_capacity_groups/dd2e8844-6a79-4673-ba1c-c8a4913884cc/relationships/dids",
51 "related": "https://api.didww.com/v3/shared_capacity_groups/dd2e8844-6a79-4673-ba1c-c8a4913884cc/dids"
52 }
53 }
54 }
55 }
56 ],
57 "meta": {
58 "total_records": 2
59 },
60 "links": {
61 "first": "https://api.didww.com/v3/shared_capacity_groups?page%5Bnumber%5D=1&page%5Bsize%5D=50",
62 "last": "https://api.didww.com/v3/shared_capacity_groups?page%5Bnumber%5D=1&page%5Bsize%5D=50"
63 }
64}
http
1GET /v3/shared_capacity_groups?include=dids HTTP/1.1
2Host: api.didww.com
3Content-Type: application/vnd.api+json
4Accept: application/vnd.api+json
5Api-Key: [API token]
curl
1curl -i -X GET 'https://api.didww.com/v3/shared_capacity_groups?include=dids' -H "Accept: application/vnd.api+json" -H "Api-Key: [API token]" -H "Content-Type: application/vnd.api+json"
response
1HTTP/1.1 200 OK
2Content-Type: application/vnd.api+json
3
4{
5 "data": [
6 {
7 "id": "8a581244-de83-4c46-ac0a-32659279169e",
8 "type": "shared_capacity_groups",
9 "attributes": {
10 "name": "Mixed group",
11 "shared_channels_count": 3,
12 "created_at": "2018-06-20T08:48:47.811Z",
13 "external_reference_id": null,
14 "metered_channels_count": 5
15 },
16 "relationships": {
17 "capacity_pool": {
18 "links": {
19 "self": "https://api.didww.com/v3/shared_capacity_groups/8a581244-de83-4c46-ac0a-32659279169e/relationships/capacity_pool",
20 "related": "https://api.didww.com/v3/shared_capacity_groups/8a581244-de83-4c46-ac0a-32659279169e/capacity_pool"
21 }
22 },
23 "dids": {
24 "links": {
25 "self": "https://api.didww.com/v3/shared_capacity_groups/8a581244-de83-4c46-ac0a-32659279169e/relationships/dids",
26 "related": "https://api.didww.com/v3/shared_capacity_groups/8a581244-de83-4c46-ac0a-32659279169e/dids"
27 },
28 "data": [
29 {
30 "type": "dids",
31 "id": "44957076-778a-4802-b60c-d22db0cda284"
32 }
33 ]
34 }
35 }
36 },
37 {
38 "id": "dd2e8844-6a79-4673-ba1c-c8a4913884cc",
39 "type": "shared_capacity_groups",
40 "attributes": {
41 "name": "Metered group",
42 "shared_channels_count": 0,
43 "created_at": "2018-06-19T11:41:21.644Z",
44 "external_reference_id": null,
45 "metered_channels_count": 30
46 },
47 "relationships": {
48 "capacity_pool": {
49 "links": {
50 "self": "https://api.didww.com/v3/shared_capacity_groups/dd2e8844-6a79-4673-ba1c-c8a4913884cc/relationships/capacity_pool",
51 "related": "https://api.didww.com/v3/shared_capacity_groups/dd2e8844-6a79-4673-ba1c-c8a4913884cc/capacity_pool"
52 }
53 },
54 "dids": {
55 "links": {
56 "self": "https://api.didww.com/v3/shared_capacity_groups/dd2e8844-6a79-4673-ba1c-c8a4913884cc/relationships/dids",
57 "related": "https://api.didww.com/v3/shared_capacity_groups/dd2e8844-6a79-4673-ba1c-c8a4913884cc/dids"
58 }
59 }
60 }
61 }
62 ],
63 "included": [
64 {
65 "id": "44957076-778a-4802-b60c-d22db0cda284",
66 "type": "dids",
67 "attributes": {
68 "blocked": false,
69 "capacity_limit": 1,
70 "description": "string",
71 "terminated": false,
72 "awaiting_registration": false,
73 "number": "437xxxxxxxxx",
74 "expires_at": "2017-06-25T08:21:41.795Z",
75 "channels_included_count": 2,
76 "created_at": "2017-06-25T08:21:41.795Z",
77 "dedicated_channels_count": 0
78 },
79 "relationships": {
80 "did_group": {
81 "links": {
82 "self": "https://api.didww.com/v3/dids/44957076-778a-4802-b60c-d22db0cda284/relationships/did_group",
83 "related": "https://api.didww.com/v3/dids/44957076-778a-4802-b60c-d22db0cda284/did_group"
84 }
85 },
86 "order": {
87 "links": {
88 "self": "https://api.didww.com/v3/dids/44957076-778a-4802-b60c-d22db0cda284/relationships/order",
89 "related": "https://api.didww.com/v3/dids/44957076-778a-4802-b60c-d22db0cda284/order"
90 }
91 },
92 "voice_in_trunk": {
93 "links": {
94 "self": "https://api.didww.com/v3/dids/44957076-778a-4802-b60c-d22db0cda284/relationships/voice_in_trunk",
95 "related": "https://api.didww.com/v3/dids/44957076-778a-4802-b60c-d22db0cda284/voice_in_trunk"
96 }
97 },
98 "voice_in_trunk_group": {
99 "links": {
100 "self": "https://api.didww.com/v3/dids/44957076-778a-4802-b60c-d22db0cda284/relationships/voice_in_trunk_group",
101 "related": "https://api.didww.com/v3/dids/44957076-778a-4802-b60c-d22db0cda284/voice_in_trunk_group"
102 }
103 },
104 "capacity_pool": {
105 "links": {
106 "self": "https://api.didww.com/v3/dids/44957076-778a-4802-b60c-d22db0cda284/relationships/capacity_pool",
107 "related": "https://api.didww.com/v3/dids/44957076-778a-4802-b60c-d22db0cda284/capacity_pool"
108 }
109 },
110 "shared_capacity_group": {
111 "links": {
112 "self": "https://api.didww.com/v3/dids/44957076-778a-4802-b60c-d22db0cda284/relationships/shared_capacity_group",
113 "related": "https://api.didww.com/v3/dids/44957076-778a-4802-b60c-d22db0cda284/shared_capacity_group"
114 }
115 }
116 }
117 }
118 ],
119 "meta": {
120 "total_records": 2
121 },
122 "links": {
123 "first": "https://api.didww.com/v3/shared_capacity_groups?page%5Bnumber%5D=1&page%5Bsize%5D=50",
124 "last": "https://api.didww.com/v3/shared_capacity_groups?page%5Bnumber%5D=1&page%5Bsize%5D=50"
125 }
126}
http
1GET /v3/shared_capacity_groups?include=capacity_pool HTTP/1.1
2Host: api.didww.com
3Content-Type: application/vnd.api+json
4Accept: application/vnd.api+json
5Api-Key: [API token]
curl
1curl -i -X GET 'https://api.didww.com/v3/shared_capacity_groups?include=capacity_pool' -H "Accept: application/vnd.api+json" -H "Api-Key: [API token]" -H "Content-Type: application/vnd.api+json"
response
1HTTP/1.1 200 OK
2Content-Type: application/vnd.api+json
3
4{
5 "data": [
6 {
7 "id": "8a581244-de83-4c46-ac0a-32659279169e",
8 "type": "shared_capacity_groups",
9 "attributes": {
10 "name": "Mixed group",
11 "shared_channels_count": 3,
12 "created_at": "2018-06-20T08:48:47.811Z",
13 "external_reference_id": null,
14 "metered_channels_count": 5
15 },
16 "relationships": {
17 "capacity_pool": {
18 "links": {
19 "self": "https://api.didww.com/v3/shared_capacity_groups/8a581244-de83-4c46-ac0a-32659279169e/relationships/capacity_pool",
20 "related": "https://api.didww.com/v3/shared_capacity_groups/8a581244-de83-4c46-ac0a-32659279169e/capacity_pool"
21 },
22 "data": {
23 "type": "capacity_pools",
24 "id": "b8db1d7c-f415-4530-a340-c774bcc1c55f"
25 }
26 },
27 "dids": {
28 "links": {
29 "self": "https://api.didww.com/v3/shared_capacity_groups/8a581244-de83-4c46-ac0a-32659279169e/relationships/dids",
30 "related": "https://api.didww.com/v3/shared_capacity_groups/8a581244-de83-4c46-ac0a-32659279169e/dids"
31 }
32 }
33 }
34 },
35 {
36 "id": "dd2e8844-6a79-4673-ba1c-c8a4913884cc",
37 "type": "shared_capacity_groups",
38 "attributes": {
39 "name": "Metered group",
40 "shared_channels_count": 0,
41 "created_at": "2018-06-19T11:41:21.644Z",
42 "external_reference_id": null,
43 "metered_channels_count": 30
44 },
45 "relationships": {
46 "capacity_pool": {
47 "links": {
48 "self": "https://api.didww.com/v3/shared_capacity_groups/dd2e8844-6a79-4673-ba1c-c8a4913884cc/relationships/capacity_pool",
49 "related": "https://api.didww.com/v3/shared_capacity_groups/dd2e8844-6a79-4673-ba1c-c8a4913884cc/capacity_pool"
50 }
51 },
52 "dids": {
53 "links": {
54 "self": "https://api.didww.com/v3/shared_capacity_groups/dd2e8844-6a79-4673-ba1c-c8a4913884cc/relationships/dids",
55 "related": "https://api.didww.com/v3/shared_capacity_groups/dd2e8844-6a79-4673-ba1c-c8a4913884cc/dids"
56 }
57 }
58 }
59 }
60 ],
61 "included": [
62 {
63 "id": "b8db1d7c-f415-4530-a340-c774bcc1c55f",
64 "type": "capacity_pools",
65 "attributes": {
66 "name": "Extended",
67 "renew_date": "2018-07-21",
68 "total_channels_count": 10,
69 "unassigned_channels_count": 4,
70 "assigned_channels_count": 6,
71 "minimum_limit": 5,
72 "minimum_qty_per_order": 1,
73 "nrc": "0.0",
74 "mrc": "25.0",
75 "metered_rate": "0.02"
76 },
77 "relationships": {
78 "countries": {
79 "links": {
80 "self": "https://api.didww.com/v3/capacity_pools/b8db1d7c-f415-4530-a340-c774bcc1c55f/relationships/countries",
81 "related": "https://api.didww.com/v3/capacity_pools/b8db1d7c-f415-4530-a340-c774bcc1c55f/countries"
82 }
83 },
84 "shared_capacity_groups": {
85 "links": {
86 "self": "https://api.didww.com/v3/capacity_pools/b8db1d7c-f415-4530-a340-c774bcc1c55f/relationships/shared_capacity_groups",
87 "related": "https://api.didww.com/v3/capacity_pools/b8db1d7c-f415-4530-a340-c774bcc1c55f/shared_capacity_groups"
88 }
89 },
90 "qty_based_pricings": {
91 "links": {
92 "self": "https://api.didww.com/v3/capacity_pools/b8db1d7c-f415-4530-a340-c774bcc1c55f/relationships/qty_based_pricings",
93 "related": "https://api.didww.com/v3/capacity_pools/b8db1d7c-f415-4530-a340-c774bcc1c55f/qty_based_pricings"
94 }
95 }
96 }
97 }
98 ],
99 "meta": {
100 "total_records": 2
101 },
102 "links": {
103 "first": "https://api.didww.com/v3/shared_capacity_groups?page%5Bnumber%5D=1&page%5Bsize%5D=50",
104 "last": "https://api.didww.com/v3/shared_capacity_groups?page%5Bnumber%5D=1&page%5Bsize%5D=50"
105 }
106}
Other Responses#
Code |
Success |
Description |
|---|---|---|
401 |
No |