Client API: Deployments: Env groups
The 5 Client API operations for env groups.
Part of Deployments.
Operations
Section titled Operations| Method | Path | Summary |
|---|---|---|
| GET | /api/v1/client/env-groups |
List groups |
| POST | /api/v1/client/env-groups |
Create an env group |
| GET | /api/v1/client/env-groups/{group_uuid} |
One env group, its variables without values, and the deployments it is linked to |
| PATCH | /api/v1/client/env-groups/{group_uuid} |
Rename an env group |
| DELETE | /api/v1/client/env-groups/{group_uuid} |
Delete an env group and its variables |
List groups
Section titled List groupsGET /api/v1/client/env-groups
The owner's env groups by name, each with how many variables it has and how many deployments it is linked to.
Authentication: an access token, sent as Authorization: Bearer <token>.
Responses
Section titled Responses| Status | Meaning |
|---|---|
200 |
Success. |
Create an env group
Section titled Create an env groupPOST /api/v1/client/env-groups
Create an env group. Names are unique per owner, ignoring case.
Authentication: an access token, sent as Authorization: Bearer <token>.
Request body
Section titled Request bodyapplication/json (required)
| Field | Type | Required |
|---|---|---|
name |
string | yes |
Responses
Section titled Responses| Status | Meaning |
|---|---|
201 |
Success. |
422 |
The request is not valid. detail lists each problem. |
One env group, its variables without values, and the deployments it is linked to
Section titled One env group, its variables without values, and the deployments it is linked toGET /api/v1/client/env-groups/{group_uuid}
One env group, its variables without values, and the deployments it is linked to.
Authentication: an access token, sent as Authorization: Bearer <token>.
Parameters
Section titled Parameters| Name | In | Type | Required |
|---|---|---|---|
group_uuid |
path | string (uuid) | yes |
Responses
Section titled Responses| Status | Meaning |
|---|---|
200 |
Success. |
422 |
The request is not valid. detail lists each problem. |
Rename an env group
Section titled Rename an env groupPATCH /api/v1/client/env-groups/{group_uuid}
Rename an env group.
Authentication: an access token, sent as Authorization: Bearer <token>.
Parameters
Section titled Parameters| Name | In | Type | Required |
|---|---|---|---|
group_uuid |
path | string (uuid) | yes |
Request body
Section titled Request bodyapplication/json (required)
| Field | Type | Required |
|---|---|---|
name |
string | yes |
Responses
Section titled Responses| Status | Meaning |
|---|---|
200 |
Success. |
422 |
The request is not valid. detail lists each problem. |
Delete an env group and its variables
Section titled Delete an env group and its variablesDELETE /api/v1/client/env-groups/{group_uuid}
Delete an env group and its variables. The deployments it was
linked to (listed in unlinked) lose its values with their next release.
Authentication: an access token, sent as Authorization: Bearer <token>.
Parameters
Section titled Parameters| Name | In | Type | Required |
|---|---|---|---|
group_uuid |
path | string (uuid) | yes |
Responses
Section titled Responses| Status | Meaning |
|---|---|
200 |
Success. |
422 |
The request is not valid. detail lists each problem. |