Skip to content

Commit 45e20d6

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

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

services/teams/src/v2/TeamsApi.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3925,6 +3925,8 @@ export class TeamsApi {
39253925

39263926
/**
39273927
* Add a user to a team.
3928+
*
3929+
* **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).
39283930
* @param param The request object
39293931
*/
39303932
public createTeamMembership(
@@ -4011,6 +4013,8 @@ export class TeamsApi {
40114013

40124014
/**
40134015
* Remove a user from a team.
4016+
*
4017+
* **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).
40144018
* @param param The request object
40154019
*/
40164020
public deleteTeamMembership(
@@ -4648,6 +4652,8 @@ export class TeamsApi {
46484652

46494653
/**
46504654
* Update a user's membership attributes on a team.
4655+
*
4656+
* **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).
46514657
* @param param The request object
46524658
*/
46534659
public updateTeamMembership(

0 commit comments

Comments
 (0)