Skip to content

Commit d137c17

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

File tree

12 files changed

+877
-17
lines changed

12 files changed

+877
-17
lines changed

.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"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,157 @@
1+
{
2+
"log": {
3+
"_recordingName": "Teams/Update a user's membership attributes on a team returns \"API error response.\" response",
4+
"creator": {
5+
"comment": "persister:fs",
6+
"name": "Polly.JS",
7+
"version": "6.0.5"
8+
},
9+
"entries": [
10+
{
11+
"_id": "624bd97f34c011c89677ce29642f5d12",
12+
"_order": 0,
13+
"cache": {},
14+
"request": {
15+
"bodySize": 115,
16+
"cookies": [],
17+
"headers": [
18+
{
19+
"_fromType": "array",
20+
"name": "accept",
21+
"value": "application/json"
22+
},
23+
{
24+
"_fromType": "array",
25+
"name": "content-type",
26+
"value": "application/json"
27+
}
28+
],
29+
"headersSize": 549,
30+
"httpVersion": "HTTP/1.1",
31+
"method": "POST",
32+
"postData": {
33+
"mimeType": "application/json",
34+
"params": [],
35+
"text": "{\"data\":{\"attributes\":{\"handle\":\"test-handle-d1ea4282abe3f68d\",\"name\":\"test-name-d1ea4282abe3f68d\"},\"type\":\"team\"}}"
36+
},
37+
"queryString": [],
38+
"url": "https://api.datadoghq.com/api/v2/team"
39+
},
40+
"response": {
41+
"bodySize": 660,
42+
"content": {
43+
"mimeType": "application/vnd.api+json",
44+
"size": 660,
45+
"text": "{\"data\":{\"id\":\"587b5f1a-b8ef-42b7-a99a-746cb80422a4\",\"type\":\"team\",\"attributes\":{\"avatar\":null,\"banner\":6,\"created_at\":\"2026-02-12T14:57:57.783497+00:00\",\"description\":null,\"handle\":\"test-handle-d1ea4282abe3f68d\",\"hidden_modules\":null,\"is_managed\":false,\"link_count\":0,\"modified_at\":\"2026-02-12T14:57:57.783497+00:00\",\"name\":\"test-name-d1ea4282abe3f68d\",\"summary\":null,\"user_count\":0,\"visible_modules\":null},\"relationships\":{\"team_links\":{\"data\":[],\"links\":{\"related\":\"/api/v2/team/587b5f1a-b8ef-42b7-a99a-746cb80422a4/links\"}},\"user_team_permissions\":{\"data\":null,\"links\":{\"related\":\"/api/v2/team/587b5f1a-b8ef-42b7-a99a-746cb80422a4/permission-settings\"}}}}}"
46+
},
47+
"cookies": [],
48+
"headers": [
49+
{
50+
"name": "content-type",
51+
"value": "application/vnd.api+json"
52+
}
53+
],
54+
"headersSize": 661,
55+
"httpVersion": "HTTP/1.1",
56+
"redirectURL": "",
57+
"status": 201,
58+
"statusText": "Created"
59+
},
60+
"startedDateTime": "2026-02-12T14:57:57.287Z",
61+
"time": 546
62+
},
63+
{
64+
"_id": "98bc384f2b997a69d335cf3ab09cb6bd",
65+
"_order": 0,
66+
"cache": {},
67+
"request": {
68+
"bodySize": 66,
69+
"cookies": [],
70+
"headers": [
71+
{
72+
"_fromType": "array",
73+
"name": "accept",
74+
"value": "application/json"
75+
},
76+
{
77+
"_fromType": "array",
78+
"name": "content-type",
79+
"value": "application/json"
80+
}
81+
],
82+
"headersSize": 645,
83+
"httpVersion": "HTTP/1.1",
84+
"method": "PATCH",
85+
"postData": {
86+
"mimeType": "application/json",
87+
"params": [],
88+
"text": "{\"data\":{\"attributes\":{\"role\":\"admin\"},\"type\":\"team_memberships\"}}"
89+
},
90+
"queryString": [],
91+
"url": "https://api.datadoghq.com/api/v2/team/587b5f1a-b8ef-42b7-a99a-746cb80422a4/memberships/00000000-0000-dead-beef-000000000000"
92+
},
93+
"response": {
94+
"bodySize": 73,
95+
"content": {
96+
"mimeType": "application/json",
97+
"size": 73,
98+
"text": "{\"errors\":[\"User for ID 00000000-0000-dead-beef-000000000000 not found\"]}"
99+
},
100+
"cookies": [],
101+
"headers": [
102+
{
103+
"name": "content-type",
104+
"value": "application/json"
105+
}
106+
],
107+
"headersSize": 683,
108+
"httpVersion": "HTTP/1.1",
109+
"redirectURL": "",
110+
"status": 404,
111+
"statusText": "Not Found"
112+
},
113+
"startedDateTime": "2026-02-12T14:57:57.838Z",
114+
"time": 545
115+
},
116+
{
117+
"_id": "3d52127d8b5f59f06ebfaf2b9d69a20f",
118+
"_order": 0,
119+
"cache": {},
120+
"request": {
121+
"bodySize": 0,
122+
"cookies": [],
123+
"headers": [
124+
{
125+
"_fromType": "array",
126+
"name": "accept",
127+
"value": "*/*"
128+
}
129+
],
130+
"headersSize": 522,
131+
"httpVersion": "HTTP/1.1",
132+
"method": "DELETE",
133+
"queryString": [],
134+
"url": "https://api.datadoghq.com/api/v2/team/587b5f1a-b8ef-42b7-a99a-746cb80422a4"
135+
},
136+
"response": {
137+
"bodySize": 0,
138+
"content": {
139+
"mimeType": "text/plain",
140+
"size": 0
141+
},
142+
"cookies": [],
143+
"headers": [],
144+
"headersSize": 631,
145+
"httpVersion": "HTTP/1.1",
146+
"redirectURL": "",
147+
"status": 204,
148+
"statusText": "No Content"
149+
},
150+
"startedDateTime": "2026-02-12T14:57:58.389Z",
151+
"time": 285
152+
}
153+
],
154+
"pages": [],
155+
"version": "1.2"
156+
}
157+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"2026-02-12T14:59:46.756Z"

0 commit comments

Comments
 (0)