Update Shared Capacity Groups#
Updates a Shared Capacity Group.
Request#
HTTP Method: PATCH
URI Path: /v3/shared_capacity_groups/
URI Query Parameters#
Name |
Type |
Is Required? |
Description |
|---|---|---|---|
include |
|
No |
Request Body Object Attributes#
Name |
Type |
Nullable |
Is Required? |
Description |
|---|---|---|---|---|
name |
|
False |
Yes |
Unique name of Shared Capacity Group. |
shared_channels_count |
|
False |
No |
Unassigned channels quantity to assign to the Shared Capacity Group from the Capacity Pool. |
metered_channels_count |
|
False |
No |
Metered channels quantity to assign to the Shared Capacity Group. |
Request Body Object Relationships#
Examples#
http
1PATCH /v3/shared_capacity_groups/71afa2e2-8d46-4ea3-988d-aa112ed98b5e 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": "71afa2e2-8d46-4ea3-988d-aa112ed98b5e",
10 "type": "shared_capacity_groups",
11 "attributes": {
12 "name": "Renamed group"
13 }
14 }
15}
curl
1curl -i -X PATCH https://api.didww.com/v3/shared_capacity_groups/71afa2e2-8d46-4ea3-988d-aa112ed98b5e -H "Accept: application/vnd.api+json" -H "Api-Key: [API token]" -H "Content-Type: application/vnd.api+json" --data-raw '{"data": {"attributes": {"name": "Renamed group"}, "id": "71afa2e2-8d46-4ea3-988d-aa112ed98b5e", "type": "shared_capacity_groups"}}'
response
1HTTP/1.1 200 OK
2Content-Type: application/vnd.api+json
3
4{
5 "data": {
6 "id": "71afa2e2-8d46-4ea3-988d-aa112ed98b5e",
7 "type": "shared_capacity_groups",
8 "attributes": {
9 "name": "Renamed group",
10 "shared_channels_count": 3,
11 "created_at": "2018-07-06T16:11:32.981Z",
12 "metered_channels_count": 5
13 },
14 "relationships": {
15 "capacity_pool": {
16 "links": {
17 "self": "https://api.didww.com/v3/shared_capacity_groups/71afa2e2-8d46-4ea3-988d-aa112ed98b5e/relationships/capacity_pool",
18 "related": "https://api.didww.com/v3/shared_capacity_groups/71afa2e2-8d46-4ea3-988d-aa112ed98b5e/capacity_pool"
19 }
20 },
21 "dids": {
22 "links": {
23 "self": "https://api.didww.com/v3/shared_capacity_groups/71afa2e2-8d46-4ea3-988d-aa112ed98b5e/relationships/dids",
24 "related": "https://api.didww.com/v3/shared_capacity_groups/71afa2e2-8d46-4ea3-988d-aa112ed98b5e/dids"
25 }
26 }
27 }
28 }
29}
http
1PATCH /v3/shared_capacity_groups/71afa2e2-8d46-4ea3-988d-aa112ed98b5e 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": "71afa2e2-8d46-4ea3-988d-aa112ed98b5e",
10 "type": "shared_capacity_groups",
11 "relationships": {
12 "dids": {
13 "data": [
14 {
15 "type": "dids",
16 "id": "a2dcccdb-4c81-4d93-a174-26001ccfc13a"
17 },
18 {
19 "type": "dids",
20 "id": "fd345680-4a4e-40db-b2f2-f81651e3e2df"
21 }
22 ]
23 }
24 }
25 }
26}
curl
1curl -i -X PATCH https://api.didww.com/v3/shared_capacity_groups/71afa2e2-8d46-4ea3-988d-aa112ed98b5e -H "Accept: application/vnd.api+json" -H "Api-Key: [API token]" -H "Content-Type: application/vnd.api+json" --data-raw '{"data": {"id": "71afa2e2-8d46-4ea3-988d-aa112ed98b5e", "relationships": {"dids": {"data": [{"type": "dids", "id": "a2dcccdb-4c81-4d93-a174-26001ccfc13a"}, {"type": "dids", "id": "fd345680-4a4e-40db-b2f2-f81651e3e2df"}]}}, "type": "shared_capacity_groups"}}'
response
1HTTP/1.1 200 OK
2Content-Type: application/vnd.api+json
3
4{
5 "data": {
6 "id": "71afa2e2-8d46-4ea3-988d-aa112ed98b5e",
7 "type": "shared_capacity_groups",
8 "attributes": {
9 "name": "Renamed group",
10 "shared_channels_count": 3,
11 "created_at": "2023-03-28T18:25:38.415Z",
12 "metered_channels_count": 5
13 },
14 "relationships": {
15 "capacity_pool": {
16 "links": {
17 "self": "https://api.didww.com/v3/shared_capacity_groups/62fa8ad9-21cc-48e1-933e-f2fe33740891/relationships/capacity_pool",
18 "related": "https://api.didww.com/v3/shared_capacity_groups/62fa8ad9-21cc-48e1-933e-f2fe33740891/capacity_pool"
19 }
20 },
21 "dids": {
22 "links": {
23 "self": "https://api.didww.com/v3/shared_capacity_groups/62fa8ad9-21cc-48e1-933e-f2fe33740891/relationships/dids",
24 "related": "https://api.didww.com/v3/shared_capacity_groups/62fa8ad9-21cc-48e1-933e-f2fe33740891/dids"
25 }
26 }
27 }
28 }
29}
http
1PATCH /v3/shared_capacity_groups/71afa2e2-8d46-4ea3-988d-aa112ed98b5e 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": "71afa2e2-8d46-4ea3-988d-aa112ed98b5e",
10 "type": "shared_capacity_groups",
11 "relationships": {
12 "dids": {
13 "data": [
14
15 ]
16 }
17 }
18 }
19}
curl
1curl -i -X PATCH https://api.didww.com/v3/shared_capacity_groups/71afa2e2-8d46-4ea3-988d-aa112ed98b5e -H "Accept: application/vnd.api+json" -H "Api-Key: [API token]" -H "Content-Type: application/vnd.api+json" --data-raw '{"data": {"id": "71afa2e2-8d46-4ea3-988d-aa112ed98b5e", "relationships": {"dids": {"data": []}}, "type": "shared_capacity_groups"}}'
response
1HTTP/1.1 200 OK
2Content-Type: application/vnd.api+json
3
4{
5 "data": {
6 "id": "71afa2e2-8d46-4ea3-988d-aa112ed98b5e",
7 "type": "shared_capacity_groups",
8 "attributes": {
9 "name": "Renamed group",
10 "shared_channels_count": 3,
11 "created_at": "2018-07-06T16:11:32.981Z",
12 "metered_channels_count": 5
13 },
14 "relationships": {
15 "capacity_pool": {
16 "links": {
17 "self": "https://api.didww.com/v3/shared_capacity_groups/71afa2e2-8d46-4ea3-988d-aa112ed98b5e/relationships/capacity_pool",
18 "related": "https://api.didww.com/v3/shared_capacity_groups/71afa2e2-8d46-4ea3-988d-aa112ed98b5e/capacity_pool"
19 }
20 },
21 "dids": {
22 "links": {
23 "self": "https://api.didww.com/v3/shared_capacity_groups/71afa2e2-8d46-4ea3-988d-aa112ed98b5e/relationships/dids",
24 "related": "https://api.didww.com/v3/shared_capacity_groups/71afa2e2-8d46-4ea3-988d-aa112ed98b5e/dids"
25 }
26 }
27 }
28 }
29}
Other Responses#
Code |
Success |
Description |
|---|---|---|
422 |
No |
|
401 |
No |