Skip to content

Commit 7096e39

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

File tree

2 files changed

+27
-3
lines changed

2 files changed

+27
-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/datadog_api_client/v2/api/teams_api.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -987,6 +987,8 @@ def create_team_membership(
987987
988988
Add a user to a team.
989989
990+
**Note** : Each team has a setting that determines who is allowed to modify membership of the team. The ``user_access_manage`` permission generally grants access to modify membership of any team. To get the full picture, see `Team Membership documentation <https://docs.datadoghq.com/account_management/teams/manage/#team-membership>`_.
991+
990992
:param team_id: None
991993
:type team_id: str
992994
:type body: UserTeamRequest
@@ -1063,6 +1065,8 @@ def delete_team_membership(
10631065
10641066
Remove a user from a team.
10651067
1068+
**Note** : Each team has a setting that determines who is allowed to modify membership of the team. The ``user_access_manage`` permission generally grants access to modify membership of any team. To get the full picture, see `Team Membership documentation <https://docs.datadoghq.com/account_management/teams/manage/#team-membership>`_.
1069+
10661070
:param team_id: None
10671071
:type team_id: str
10681072
:param user_id: None
@@ -1830,6 +1834,8 @@ def update_team_membership(
18301834
18311835
Update a user's membership attributes on a team.
18321836
1837+
**Note** : Each team has a setting that determines who is allowed to modify membership of the team. The ``user_access_manage`` permission generally grants access to modify membership of any team. To get the full picture, see `Team Membership documentation <https://docs.datadoghq.com/account_management/teams/manage/#team-membership>`_.
1838+
18331839
:param team_id: None
18341840
:type team_id: str
18351841
:param user_id: None

0 commit comments

Comments
 (0)