Skip to content

Commit f5e2946

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

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

lib/datadog_api_client/v2/api/teams_api.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,8 @@ def create_team_membership(team_id, body, opts = {})
399399
#
400400
# Add a user to a team.
401401
#
402+
# **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).
403+
#
402404
# @param team_id [String] None
403405
# @param body [UserTeamRequest]
404406
# @param opts [Hash] the optional parameters
@@ -679,6 +681,8 @@ def delete_team_membership(team_id, user_id, opts = {})
679681
#
680682
# Remove a user from a team.
681683
#
684+
# **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).
685+
#
682686
# @param team_id [String] None
683687
# @param user_id [String] None
684688
# @param opts [Hash] the optional parameters
@@ -2097,6 +2101,8 @@ def update_team_membership(team_id, user_id, body, opts = {})
20972101
#
20982102
# Update a user's membership attributes on a team.
20992103
#
2104+
# **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).
2105+
#
21002106
# @param team_id [String] None
21012107
# @param user_id [String] None
21022108
# @param body [UserTeamUpdateRequest]

0 commit comments

Comments
 (0)