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
Copy file name to clipboardExpand all lines: docs/EnvironmentsApi.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -125,7 +125,7 @@ Name | Type | Description | Notes
125
125
126
126
Update environment
127
127
128
-
> ### Approval settings >> The `approvalSettings` key is only returned when the Flag Approvals feature is enabled. >> Only the `canReviewOwnRequest`, `canApplyDeclinedChanges`, `minNumApprovals`, `required` and `requiredApprovalTagsfields` are editable. >> If you try to patch the environment by setting both `required` and `requiredApprovalTags`, it fails and an error appears. 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 by either mechanism.
128
+
Update an environment. Requires a [JSON Patch](https://datatracker.ietf.org/doc/html/rfc6902) representation of the desired changes to the environment. To update fields in the environment object that are arrays, set the `path` to the name of the field and then append `/<array index>`. Using `/0` appends to the beginning of the array. ### Approval settings This request only returns the `approvalSettings` key if the [Flag Approvals](https://docs.launchdarkly.com/home/feature-workflows/approvals) feature is enabled. Only the `canReviewOwnRequest`, `canApplyDeclinedChanges`, `minNumApprovals`, `required` and `requiredApprovalTagsfields` are editable. If you try to patch the environment by setting both `required` and `requiredApprovalTags`, the request fails and an error appears. You can specify either required approvals for all flags in an environment or those with specific tags, but not both. Only customers on a Pro or Enterprise plan can require approval for flag updates by either mechanism.
129
129
130
130
### Example
131
131
@@ -141,7 +141,7 @@ ApiKey.apiKey = 'YOUR API KEY';
141
141
let apiInstance =newLaunchDarklyApi.EnvironmentsApi();
142
142
let projectKey ="projectKey_example"; // String | The project key
143
143
let environmentKey ="environmentKey_example"; // String | The environment key
144
-
let patchOperation = [newLaunchDarklyApi.PatchOperation()]; // [PatchOperation] |
144
+
let patchOperation = [{"op":"replace","path":"/requireComments","value":true}]; // [PatchOperation] |
**notResources** | **[String]** | Targeted resources are the resources NOT in this list. The \"resources\" field must be empty to use this field. | [optional]
9
-
**actions** | **[String]** | Actions to perform on a resource |
9
+
**actions** | **[String]** | Actions to perform on a resource | [optional]
10
10
**notActions** | **[String]** | Targeted actions are the actions NOT in this list. The \"actions\" field must be empty to use this field. | [optional]
0 commit comments