You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[**getEnvironment**](EnvironmentsApi.md#getEnvironment) | **GET** /projects/{projectKey}/environments/{environmentKey} | Get an environment given a project and key.
9
9
[**patchEnvironment**](EnvironmentsApi.md#patchEnvironment) | **PATCH** /projects/{projectKey}/environments/{environmentKey} | Modify an environment by ID.
10
10
[**postEnvironment**](EnvironmentsApi.md#postEnvironment) | **POST** /projects/{projectKey}/environments | Create a new environment in a specified project with a given name, key, and swatch color.
11
+
[**resetEnvironmentMobileKey**](EnvironmentsApi.md#resetEnvironmentMobileKey) | **POST** /projects/{projectKey}/environments/{environmentKey}/mobileKey | Reset an environment's mobile key with an optional expiry time for the old key.
12
+
[**resetEnvironmentSDKKey**](EnvironmentsApi.md#resetEnvironmentSDKKey) | **POST** /projects/{projectKey}/environments/{environmentKey}/apiKey | Reset an environment's SDK key with an optional expiry time for the old key.
11
13
12
14
13
15
<aname="deleteEnvironment"></a>
@@ -229,3 +231,119 @@ Name | Type | Description | Notes
Reset an environment's mobile key with an optional expiry time for the old key.
239
+
240
+
### Example
241
+
```javascript
242
+
var LaunchDarklyApi =require('launchdarkly-api');
243
+
var defaultClient =LaunchDarklyApi.ApiClient.instance;
244
+
245
+
// Configure API key authorization: Token
246
+
var Token =defaultClient.authentications['Token'];
247
+
Token.apiKey='YOUR API KEY';
248
+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
249
+
//Token.apiKeyPrefix = 'Token';
250
+
251
+
var apiInstance =newLaunchDarklyApi.EnvironmentsApi();
252
+
253
+
var projectKey ="projectKey_example"; // String | The project key, used to tie the flags together under one project so they can be managed together.
254
+
255
+
var environmentKey ="environmentKey_example"; // String | The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
256
+
257
+
var opts = {
258
+
'expiry':789// Number | An expiration time for the old environment SDK or mobile key, expressed as a Unix epoch time in milliseconds. By default, the key will expire immediately
259
+
};
260
+
261
+
varcallback=function(error, data, response) {
262
+
if (error) {
263
+
console.error(error);
264
+
} else {
265
+
console.log('API called successfully. Returned data: '+ data);
**projectKey** | **String**| The project key, used to tie the flags together under one project so they can be managed together. |
276
+
**environmentKey** | **String**| The environment key, used to tie together flag configuration and users under one environment so they can be managed together. |
277
+
**expiry** | **Number**| An expiration time for the old environment SDK or mobile key, expressed as a Unix epoch time in milliseconds. By default, the key will expire immediately | [optional]
Reset an environment's SDK key with an optional expiry time for the old key.
297
+
298
+
### Example
299
+
```javascript
300
+
var LaunchDarklyApi =require('launchdarkly-api');
301
+
var defaultClient =LaunchDarklyApi.ApiClient.instance;
302
+
303
+
// Configure API key authorization: Token
304
+
var Token =defaultClient.authentications['Token'];
305
+
Token.apiKey='YOUR API KEY';
306
+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
307
+
//Token.apiKeyPrefix = 'Token';
308
+
309
+
var apiInstance =newLaunchDarklyApi.EnvironmentsApi();
310
+
311
+
var projectKey ="projectKey_example"; // String | The project key, used to tie the flags together under one project so they can be managed together.
312
+
313
+
var environmentKey ="environmentKey_example"; // String | The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
314
+
315
+
var opts = {
316
+
'expiry':789// Number | An expiration time for the old environment SDK or mobile key, expressed as a Unix epoch time in milliseconds. By default, the key will expire immediately
317
+
};
318
+
319
+
varcallback=function(error, data, response) {
320
+
if (error) {
321
+
console.error(error);
322
+
} else {
323
+
console.log('API called successfully. Returned data: '+ data);
**projectKey** | **String**| The project key, used to tie the flags together under one project so they can be managed together. |
334
+
**environmentKey** | **String**| The environment key, used to tie together flag configuration and users under one environment so they can be managed together. |
335
+
**expiry** | **Number**| An expiration time for the old environment SDK or mobile key, expressed as a Unix epoch time in milliseconds. By default, the key will expire immediately | [optional]
0 commit comments