All URIs are relative to /api/v2
Method | HTTP request | Description |
---|---|---|
deleteEnvironment | DELETE /projects/{projectKey}/environments/{environmentKey} | Delete an environment in a specific project. |
getEnvironment | GET /projects/{projectKey}/environments/{environmentKey} | Get an environment given a project and key. |
patchEnvironment | PATCH /projects/{projectKey}/environments/{environmentKey} | Modify an environment by ID. If you try to patch the environment by setting both required and requiredApprovalTags, it will result in an error. Users can specify either required approvals for all flags in an environment or those with specific tags, but not both. Only customers on an Enterprise plan can require approval for flag updates with either mechanism. |
postEnvironment | POST /projects/{projectKey}/environments | Create a new environment in a specified project with a given name, key, and swatch color. |
resetEnvironmentMobileKey | POST /projects/{projectKey}/environments/{environmentKey}/mobileKey | Reset an environment's mobile key. The optional expiry for the old key is deprecated for this endpoint, so the old key will always expire immediately. |
resetEnvironmentSDKKey | POST /projects/{projectKey}/environments/{environmentKey}/apiKey | Reset an environment's SDK key with an optional expiry time for the old key. |
Delete an environment in a specific project.
deleteEnvironment projectKey=value environmentKey=value
Name | Type | Description | Notes |
---|---|---|---|
projectKey | string | The project key, used to tie the flags together under one project so they can be managed together. | |
environmentKey | string | The environment key, used to tie together flag configuration and users under one environment so they can be managed together. |
(empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Get an environment given a project and key.
getEnvironment projectKey=value environmentKey=value
Name | Type | Description | Notes |
---|---|---|---|
projectKey | string | The project key, used to tie the flags together under one project so they can be managed together. | |
environmentKey | string | The environment key, used to tie together flag configuration and users under one environment so they can be managed together. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Modify an environment by ID. If you try to patch the environment by setting both required and requiredApprovalTags, it will result in an error. Users can specify either required approvals for all flags in an environment or those with specific tags, but not both. Only customers on an Enterprise plan can require approval for flag updates with either mechanism.
patchEnvironment projectKey=value environmentKey=value
Name | Type | Description | Notes |
---|---|---|---|
projectKey | string | The project key, used to tie the flags together under one project so they can be managed together. | |
environmentKey | string | The environment key, used to tie together flag configuration and users under one environment so they can be managed together. | |
patchDelta | array[PatchOperation] | Requires a JSON Patch representation of the desired changes to the project. 'http://jsonpatch.com/' |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Create a new environment in a specified project with a given name, key, and swatch color.
postEnvironment projectKey=value
Name | Type | Description | Notes |
---|---|---|---|
projectKey | string | The project key, used to tie the flags together under one project so they can be managed together. | |
environmentBody | EnvironmentPost | New environment. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Reset an environment's mobile key. The optional expiry for the old key is deprecated for this endpoint, so the old key will always expire immediately.
resetEnvironmentMobileKey projectKey=value environmentKey=value expiry=value
Name | Type | Description | Notes |
---|---|---|---|
projectKey | string | The project key, used to tie the flags together under one project so they can be managed together. | |
environmentKey | string | The environment key, used to tie together flag configuration and users under one environment so they can be managed together. | |
expiry | integer | The expiry parameter is deprecated for this endpoint, so the old mobile key will always expire immediately. This parameter will be removed in an upcoming major API client version. | [optional] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Reset an environment's SDK key with an optional expiry time for the old key.
resetEnvironmentSDKKey projectKey=value environmentKey=value expiry=value
Name | Type | Description | Notes |
---|---|---|---|
projectKey | string | The project key, used to tie the flags together under one project so they can be managed together. | |
environmentKey | string | The environment key, used to tie together flag configuration and users under one environment so they can be managed together. | |
expiry | integer | An expiration time for the old environment SDK key, expressed as a Unix epoch time in milliseconds. By default, the key will expire immediately. | [optional] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]