WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 21 additions & 3 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85501,7 +85501,13 @@ paths:
permissions:
- teams_read
post:
description: Add a user to a team.
description: 'Add a user to a team.


**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).'
operationId: CreateTeamMembership
parameters:
- description: None
Expand Down Expand Up @@ -85554,7 +85560,13 @@ paths:
- teams_read
/api/v2/team/{team_id}/memberships/{user_id}:
delete:
description: Remove a user from a team.
description: 'Remove a user from a team.


**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).'
operationId: DeleteTeamMembership
parameters:
- description: None
Expand Down Expand Up @@ -85595,7 +85607,13 @@ paths:
permissions:
- teams_read
patch:
description: Update a user's membership attributes on a team.
description: 'Update a user''s membership attributes on a team.


**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).'
operationId: UpdateTeamMembership
parameters:
- description: None
Expand Down
6 changes: 6 additions & 0 deletions api/datadogV2/api_teams.go
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,8 @@ func (a *TeamsApi) CreateTeamLink(ctx _context.Context, teamId string, body Team

// CreateTeamMembership Add a user to a team.
// Add a user to a team.
//
// **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).
func (a *TeamsApi) CreateTeamMembership(ctx _context.Context, teamId string, body UserTeamRequest) (UserTeamResponse, *_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodPost
Expand Down Expand Up @@ -733,6 +735,8 @@ func (a *TeamsApi) DeleteTeamLink(ctx _context.Context, teamId string, linkId st

// DeleteTeamMembership Remove a user from a team.
// Remove a user from a team.
//
// **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).
func (a *TeamsApi) DeleteTeamMembership(ctx _context.Context, teamId string, userId string) (*_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodDelete
Expand Down Expand Up @@ -2751,6 +2755,8 @@ func (a *TeamsApi) UpdateTeamLink(ctx _context.Context, teamId string, linkId st

// UpdateTeamMembership Update a user's membership attributes on a team.
// Update a user's membership attributes on a team.
//
// **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).
func (a *TeamsApi) UpdateTeamMembership(ctx _context.Context, teamId string, userId string, body UserTeamUpdateRequest) (UserTeamResponse, *_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodPatch
Expand Down