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: api/openapi.yaml
+44-15Lines changed: 44 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -1846,6 +1846,10 @@ paths:
1846
1846
requestBody:
1847
1847
content:
1848
1848
application/json:
1849
+
example:
1850
+
- op: replace
1851
+
path: /defaultBranch
1852
+
value: main
1849
1853
schema:
1850
1854
$ref: '#/components/schemas/JSONPatch'
1851
1855
required: true
@@ -4960,6 +4964,10 @@ paths:
4960
4964
requestBody:
4961
4965
content:
4962
4966
application/json:
4967
+
example:
4968
+
- op: replace
4969
+
path: /on
4970
+
value: false
4963
4971
schema:
4964
4972
$ref: '#/components/schemas/JSONPatch'
4965
4973
required: true
@@ -5323,6 +5331,10 @@ paths:
5323
5331
requestBody:
5324
5332
content:
5325
5333
application/json:
5334
+
example:
5335
+
- op: add
5336
+
path: /role
5337
+
value: writer
5326
5338
schema:
5327
5339
$ref: '#/components/schemas/JSONPatch'
5328
5340
required: true
@@ -5393,7 +5405,7 @@ paths:
5393
5405
content:
5394
5406
application/json:
5395
5407
schema:
5396
-
$ref: '#/components/schemas/MemberTeamsFormPost'
5408
+
$ref: '#/components/schemas/MemberTeamsPostInput'
5397
5409
required: true
5398
5410
responses:
5399
5411
"201":
@@ -5666,7 +5678,7 @@ paths:
5666
5678
- Metrics
5667
5679
x-accepts: application/json
5668
5680
patch:
5669
-
description: Patch a environment by key.
5681
+
description: Patch a metric by key.
5670
5682
operationId: patchMetric
5671
5683
parameters:
5672
5684
- description: The project key
@@ -5692,6 +5704,10 @@ paths:
5692
5704
requestBody:
5693
5705
content:
5694
5706
application/json:
5707
+
example:
5708
+
- op: replace
5709
+
path: /name
5710
+
value: my-updated-metric
5695
5711
schema:
5696
5712
$ref: '#/components/schemas/JSONPatch'
5697
5713
required: true
@@ -5958,6 +5974,10 @@ paths:
5958
5974
requestBody:
5959
5975
content:
5960
5976
application/json:
5977
+
example:
5978
+
- op: add
5979
+
path: /tags/0
5980
+
value: another-tag
5961
5981
schema:
5962
5982
$ref: '#/components/schemas/JSONPatch'
5963
5983
required: true
@@ -6357,14 +6377,19 @@ paths:
6357
6377
- Environments
6358
6378
x-accepts: application/json
6359
6379
patch:
6360
-
description: |
6361
-
> ### Approval settings
6362
-
>
6363
-
> The `approvalSettings` key is only returned when the Flag Approvals feature is enabled.
6364
-
>
6365
-
> Only the `canReviewOwnRequest`, `canApplyDeclinedChanges`, `minNumApprovals`, `required` and `requiredApprovalTagsfields` are editable.
6366
-
>
6367
-
> 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.
6380
+
description: |2
6381
+
6382
+
Update an environment. Requires a [JSON Patch](https://datatracker.ietf.org/doc/html/rfc6902) representation of the desired changes to the environment.
6383
+
6384
+
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.
6385
+
6386
+
### Approval settings
6387
+
6388
+
This request only returns the `approvalSettings` key if the [Flag Approvals](https://docs.launchdarkly.com/home/feature-workflows/approvals) feature is enabled.
6389
+
6390
+
Only the `canReviewOwnRequest`, `canApplyDeclinedChanges`, `minNumApprovals`, `required` and `requiredApprovalTagsfields` are editable.
6391
+
6392
+
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.
Copy file name to clipboardExpand all lines: docs/EnvironmentsApi.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -167,7 +167,7 @@ Name | Type | Description | Notes
167
167
168
168
Update environment
169
169
170
-
> ### 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.
170
+
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.
**notResources** | **List<String>** | Targeted resources are the resources NOT in this list. The \"resources\" field must be empty to use this field. | [optional]
12
-
**actions** | **List<String>** | Actions to perform on a resource |
12
+
**actions** | **List<String>** | Actions to perform on a resource | [optional]
13
13
**notActions** | **List<String>** | Targeted actions are the actions NOT in this list. The \"actions\" field must be empty to use this field. | [optional]
0 commit comments