Skip to content

Commit c27b10a

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add additional UpdateTeamMembership scenarios (DataDog#3003)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent ef9c8db commit c27b10a

11 files changed

Lines changed: 393 additions & 16 deletions

.generator/schemas/v2/openapi.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101462,7 +101462,13 @@ paths:
101462101462
application/json:
101463101463
schema:
101464101464
$ref: '#/components/schemas/UserTeamResponse'
101465-
description: Represents a user's association to a team
101465+
description: OK
101466+
'400':
101467+
content:
101468+
application/json:
101469+
schema:
101470+
$ref: '#/components/schemas/APIErrorResponse'
101471+
description: API error response.
101466101472
'403':
101467101473
$ref: '#/components/responses/ForbiddenResponse'
101468101474
'404':
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2026-02-12T14:57:57.281Z

cassettes/features/v2/teams/Update-a-user-s-membership-attributes-on-a-team-returns-API-error-response-response.yml

Lines changed: 62 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2026-02-12T14:59:46.756Z

cassettes/features/v2/teams/Update-a-user-s-membership-attributes-on-a-team-returns-OK-response.yml

Lines changed: 144 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2026-02-12T15:00:05.356Z

cassettes/features/v2/teams/Update-a-user-s-membership-attributes-on-a-team-with-invalid-role-returns-API-error-response-response.yml

Lines changed: 143 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
1-
# Update a user's membership attributes on a team returns "Represents a user's association to a team" response
1+
# Update a user's membership attributes on a team returns "OK" response
22

33
require "datadog_api_client"
44
api_instance = DatadogAPIClient::V2::TeamsAPI.new
55

6+
# there is a valid "dd_team" in the system
7+
DD_TEAM_DATA_ID = ENV["DD_TEAM_DATA_ID"]
8+
9+
# there is a valid "user" in the system
10+
USER_DATA_ID = ENV["USER_DATA_ID"]
11+
612
body = DatadogAPIClient::V2::UserTeamUpdateRequest.new({
713
data: DatadogAPIClient::V2::UserTeamUpdate.new({
814
attributes: DatadogAPIClient::V2::UserTeamAttributes.new({
@@ -11,4 +17,4 @@
1117
type: DatadogAPIClient::V2::UserTeamType::TEAM_MEMBERSHIPS,
1218
}),
1319
})
14-
p api_instance.update_team_membership("team_id", "user_id", body)
20+
p api_instance.update_team_membership(DD_TEAM_DATA_ID, USER_DATA_ID, body)

0 commit comments

Comments
 (0)