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
{{ message }}
This repository was archived by the owner on Feb 3, 2026. It is now read-only.
[**getRepositories()**](CodeReferencesApi.md#getRepositories) | **GET** /api/v2/code-refs/repositories | List repositories
13
13
[**getRepository()**](CodeReferencesApi.md#getRepository) | **GET** /api/v2/code-refs/repositories/{repo} | Get repository
14
14
[**getRootStatistic()**](CodeReferencesApi.md#getRootStatistic) | **GET** /api/v2/code-refs/statistics | Get links to code reference repositories for each project
15
-
[**getStatistics()**](CodeReferencesApi.md#getStatistics) | **GET** /api/v2/code-refs/statistics/{projKey} | Get number of code references for flags
15
+
[**getStatistics()**](CodeReferencesApi.md#getStatistics) | **GET** /api/v2/code-refs/statistics/{projectKey} | Get number of code references for flags
Update a single custom role. The request must be a valid JSON Patch document describing the changes to be made to the custom role.
204
+
Update a single custom role. The request must be a valid JSON Patch document describing the changes to be made to the custom role. To add an element to the `policy` array, set the `path` to `/policy` and then append `/<array index>`. Using `/0` adds to the beginning of the array.
205
205
206
206
### Example
207
207
@@ -222,11 +222,11 @@ $apiInstance = new LaunchDarklyApi\Api\CustomRolesApi(
222
222
new GuzzleHttp\Client(),
223
223
$config
224
224
);
225
-
$key = 'key_example'; // string | The key of the custom role to update
226
-
$patch_with_comment = new \LaunchDarklyApi\Model\PatchWithComment(); // \LaunchDarklyApi\Model\PatchWithComment
225
+
$custom_role_key = 'custom_role_key_example'; // string | The custom role key
@@ -286,7 +286,7 @@ $apiInstance = new LaunchDarklyApi\Api\CustomRolesApi(
286
286
new GuzzleHttp\Client(),
287
287
$config
288
288
);
289
-
$custom_role_post = new \LaunchDarklyApi\Model\CustomRolePost(); // \LaunchDarklyApi\Model\CustomRolePost
289
+
$custom_role_post = {"basePermissions":"reader","description":"A role for members of the ops team","key":"ops-team","name":"Ops team","policy":[{"actions":["updateOn"],"effect":"allow","resources":["proj/*:env/production:flag/*"]}]}; // \LaunchDarklyApi\Model\CustomRolePost
0 commit comments