Skip to content

Commit 1f858fd

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
[OMG-478] Added permissions note for the memberships APIs (#3284)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 6e0a30f commit 1f858fd

File tree

2 files changed

+39
-3
lines changed

2 files changed

+39
-3
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85658,7 +85658,13 @@ paths:
8565885658
permissions:
8565985659
- teams_read
8566085660
post:
85661-
description: Add a user to a team.
85661+
description: 'Add a user to a team.
85662+
85663+
85664+
**Note**: Each team has a setting that determines who is allowed to modify
85665+
membership of the team. The `user_access_manage` permission generally grants
85666+
access to modify membership of any team. To get the full picture, see [Team
85667+
Membership documentation](https://docs.datadoghq.com/account_management/teams/manage/#team-membership).'
8566285668
operationId: CreateTeamMembership
8566385669
parameters:
8566485670
- description: None
@@ -85711,7 +85717,13 @@ paths:
8571185717
- teams_read
8571285718
/api/v2/team/{team_id}/memberships/{user_id}:
8571385719
delete:
85714-
description: Remove a user from a team.
85720+
description: 'Remove a user from a team.
85721+
85722+
85723+
**Note**: Each team has a setting that determines who is allowed to modify
85724+
membership of the team. The `user_access_manage` permission generally grants
85725+
access to modify membership of any team. To get the full picture, see [Team
85726+
Membership documentation](https://docs.datadoghq.com/account_management/teams/manage/#team-membership).'
8571585727
operationId: DeleteTeamMembership
8571685728
parameters:
8571785729
- description: None
@@ -85752,7 +85764,13 @@ paths:
8575285764
permissions:
8575385765
- teams_read
8575485766
patch:
85755-
description: Update a user's membership attributes on a team.
85767+
description: 'Update a user''s membership attributes on a team.
85768+
85769+
85770+
**Note**: Each team has a setting that determines who is allowed to modify
85771+
membership of the team. The `user_access_manage` permission generally grants
85772+
access to modify membership of any team. To get the full picture, see [Team
85773+
Membership documentation](https://docs.datadoghq.com/account_management/teams/manage/#team-membership).'
8575685774
operationId: UpdateTeamMembership
8575785775
parameters:
8575885776
- description: None

src/main/java/com/datadog/api/client/v2/api/TeamsApi.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -869,6 +869,12 @@ public CompletableFuture<UserTeamResponse> createTeamMembershipAsync(
869869
/**
870870
* Add a user to a team.
871871
*
872+
* <p><strong>Note</strong>: Each team has a setting that determines who is allowed to modify
873+
* membership of the team. The <code>user_access_manage</code> permission generally grants access
874+
* to modify membership of any team. To get the full picture, see <a
875+
* href="https://docs.datadoghq.com/account_management/teams/manage/#team-membership">Team
876+
* Membership documentation</a>.
877+
*
872878
* @param teamId None (required)
873879
* @param body (required)
874880
* @return ApiResponse&lt;UserTeamResponse&gt;
@@ -1457,6 +1463,12 @@ public CompletableFuture<Void> deleteTeamMembershipAsync(String teamId, String u
14571463
/**
14581464
* Remove a user from a team.
14591465
*
1466+
* <p><strong>Note</strong>: Each team has a setting that determines who is allowed to modify
1467+
* membership of the team. The <code>user_access_manage</code> permission generally grants access
1468+
* to modify membership of any team. To get the full picture, see <a
1469+
* href="https://docs.datadoghq.com/account_management/teams/manage/#team-membership">Team
1470+
* Membership documentation</a>.
1471+
*
14601472
* @param teamId None (required)
14611473
* @param userId None (required)
14621474
* @return ApiResponse&lt;Void&gt;
@@ -4957,6 +4969,12 @@ public CompletableFuture<UserTeamResponse> updateTeamMembershipAsync(
49574969
/**
49584970
* Update a user's membership attributes on a team.
49594971
*
4972+
* <p><strong>Note</strong>: Each team has a setting that determines who is allowed to modify
4973+
* membership of the team. The <code>user_access_manage</code> permission generally grants access
4974+
* to modify membership of any team. To get the full picture, see <a
4975+
* href="https://docs.datadoghq.com/account_management/teams/manage/#team-membership">Team
4976+
* Membership documentation</a>.
4977+
*
49604978
* @param teamId None (required)
49614979
* @param userId None (required)
49624980
* @param body (required)

0 commit comments

Comments
 (0)