|
| 1 | +{ |
| 2 | + "log": { |
| 3 | + "_recordingName": "Teams/Add a user to 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": "0f6d224808e0ef27368708f6b4d31e4c", |
| 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": 574, |
| 30 | + "httpVersion": "HTTP/1.1", |
| 31 | + "method": "POST", |
| 32 | + "postData": { |
| 33 | + "mimeType": "application/json", |
| 34 | + "params": [], |
| 35 | + "text": "{\"data\":{\"attributes\":{\"handle\":\"test-handle-22e42ce95626a92a\",\"name\":\"test-name-22e42ce95626a92a\"},\"type\":\"team\"}}" |
| 36 | + }, |
| 37 | + "queryString": [], |
| 38 | + "url": "https://api.datadoghq.com/api/v2/team" |
| 39 | + }, |
| 40 | + "response": { |
| 41 | + "bodySize": 661, |
| 42 | + "content": { |
| 43 | + "mimeType": "application/vnd.api+json", |
| 44 | + "size": 661, |
| 45 | + "text": "{\"data\":{\"id\":\"abc7c612-d3a1-4147-bcfa-f28b4af43d33\",\"type\":\"team\",\"attributes\":{\"avatar\":null,\"banner\":10,\"created_at\":\"2026-03-31T14:58:05.503733+00:00\",\"description\":null,\"handle\":\"test-handle-22e42ce95626a92a\",\"hidden_modules\":null,\"is_managed\":false,\"link_count\":0,\"modified_at\":\"2026-03-31T14:58:05.503733+00:00\",\"name\":\"test-name-22e42ce95626a92a\",\"summary\":null,\"user_count\":0,\"visible_modules\":null},\"relationships\":{\"team_links\":{\"data\":[],\"links\":{\"related\":\"/api/v2/team/abc7c612-d3a1-4147-bcfa-f28b4af43d33/links\"}},\"user_team_permissions\":{\"data\":null,\"links\":{\"related\":\"/api/v2/team/abc7c612-d3a1-4147-bcfa-f28b4af43d33/permission-settings\"}}}}}" |
| 46 | + }, |
| 47 | + "cookies": [], |
| 48 | + "headers": [ |
| 49 | + { |
| 50 | + "name": "content-type", |
| 51 | + "value": "application/vnd.api+json" |
| 52 | + } |
| 53 | + ], |
| 54 | + "headersSize": 662, |
| 55 | + "httpVersion": "HTTP/1.1", |
| 56 | + "redirectURL": "", |
| 57 | + "status": 201, |
| 58 | + "statusText": "Created" |
| 59 | + }, |
| 60 | + "startedDateTime": "2026-03-31T14:58:05.047Z", |
| 61 | + "time": 532 |
| 62 | + }, |
| 63 | + { |
| 64 | + "_id": "3785ade525e6768cc12ea07fcfa448c0", |
| 65 | + "_order": 0, |
| 66 | + "cache": {}, |
| 67 | + "request": { |
| 68 | + "bodySize": 158, |
| 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": 575, |
| 83 | + "httpVersion": "HTTP/1.1", |
| 84 | + "method": "POST", |
| 85 | + "postData": { |
| 86 | + "mimeType": "application/json", |
| 87 | + "params": [], |
| 88 | + "text": "{\"data\":{\"attributes\":{\"email\":\"Test-Add_a_user_to_a_team_returns_API_error_response_response-1774969085@datadoghq.com\",\"title\":\"user title\"},\"type\":\"users\"}}" |
| 89 | + }, |
| 90 | + "queryString": [], |
| 91 | + "url": "https://api.datadoghq.com/api/v2/users" |
| 92 | + }, |
| 93 | + "response": { |
| 94 | + "bodySize": 780, |
| 95 | + "content": { |
| 96 | + "mimeType": "application/json", |
| 97 | + "size": 780, |
| 98 | + "text": "{\"data\": {\"type\": \"users\", \"id\": \"825c5f4c-585c-494a-aade-60f1e1aa189b\", \"attributes\": {\"name\": null, \"handle\": \"test-add_a_user_to_a_team_returns_api_error_response_response-1774969085@datadoghq.com\", \"created_at\": \"2026-03-31T14:58:06.030754+00:00\", \"modified_at\": \"2026-03-31T14:58:06.030754+00:00\", \"email\": \"test-add_a_user_to_a_team_returns_api_error_response_response-1774969085@datadoghq.com\", \"icon\": \"https://secure.gravatar.com/avatar/53ba6f826ef9a49acaeec55d1bcc1c47?s=48&d=retro\", \"title\": \"user title\", \"verified\": false, \"service_account\": false, \"disabled\": false, \"allowed_login_methods\": [], \"status\": \"Pending\", \"last_login_time\": null}, \"relationships\": {\"roles\": {\"data\": []}, \"org\": {\"data\": {\"type\": \"orgs\", \"id\": \"4dee724d-00cc-11ea-a77b-570c9d03c6c5\"}}}}}" |
| 99 | + }, |
| 100 | + "cookies": [], |
| 101 | + "headers": [ |
| 102 | + { |
| 103 | + "name": "content-type", |
| 104 | + "value": "application/json" |
| 105 | + } |
| 106 | + ], |
| 107 | + "headersSize": 681, |
| 108 | + "httpVersion": "HTTP/1.1", |
| 109 | + "redirectURL": "", |
| 110 | + "status": 201, |
| 111 | + "statusText": "Created" |
| 112 | + }, |
| 113 | + "startedDateTime": "2026-03-31T14:58:05.585Z", |
| 114 | + "time": 521 |
| 115 | + }, |
| 116 | + { |
| 117 | + "_id": "a61ba428f7d696c4ae6a680ac4abf3bf", |
| 118 | + "_order": 0, |
| 119 | + "cache": {}, |
| 120 | + "request": { |
| 121 | + "bodySize": 161, |
| 122 | + "cookies": [], |
| 123 | + "headers": [ |
| 124 | + { |
| 125 | + "_fromType": "array", |
| 126 | + "name": "accept", |
| 127 | + "value": "application/json" |
| 128 | + }, |
| 129 | + { |
| 130 | + "_fromType": "array", |
| 131 | + "name": "content-type", |
| 132 | + "value": "application/json" |
| 133 | + } |
| 134 | + ], |
| 135 | + "headersSize": 633, |
| 136 | + "httpVersion": "HTTP/1.1", |
| 137 | + "method": "POST", |
| 138 | + "postData": { |
| 139 | + "mimeType": "application/json", |
| 140 | + "params": [], |
| 141 | + "text": "{\"data\":{\"attributes\":{\"role\":\"admin\"},\"relationships\":{\"user\":{\"data\":{\"id\":\"825c5f4c-585c-494a-aade-60f1e1aa189b\",\"type\":\"users\"}}},\"type\":\"team_memberships\"}}" |
| 142 | + }, |
| 143 | + "queryString": [], |
| 144 | + "url": "https://api.datadoghq.com/api/v2/team/abc7c612-d3a1-4147-bcfa-f28b4af43d33/memberships" |
| 145 | + }, |
| 146 | + "response": { |
| 147 | + "bodySize": 761, |
| 148 | + "content": { |
| 149 | + "mimeType": "application/vnd.api+json", |
| 150 | + "size": 761, |
| 151 | + "text": "{\"data\":{\"id\":\"TeamMembership-abc7c612-d3a1-4147-bcfa-f28b4af43d33-66215044\",\"type\":\"team_memberships\",\"attributes\":{\"provisioned_by\":null,\"provisioned_by_id\":\"a1d5ff5a-c6dd-11f0-9cb6-06640ca27ad4\",\"role\":\"admin\"},\"relationships\":{\"user\":{\"data\":{\"id\":\"825c5f4c-585c-494a-aade-60f1e1aa189b\",\"type\":\"users\"}}}},\"included\":[{\"id\":\"825c5f4c-585c-494a-aade-60f1e1aa189b\",\"type\":\"users\",\"attributes\":{\"disabled\":false,\"email\":\"test-add_a_user_to_a_team_returns_api_error_response_response-1774969085@datadoghq.com\",\"handle\":\"test-add_a_user_to_a_team_returns_api_error_response_response-1774969085@datadoghq.com\",\"icon\":\"https://secure.gravatar.com/avatar/53ba6f826ef9a49acaeec55d1bcc1c47?d=retro\\u0026s=48\",\"name\":null,\"service_account\":false,\"status\":\"Pending\"}}]}" |
| 152 | + }, |
| 153 | + "cookies": [], |
| 154 | + "headers": [ |
| 155 | + { |
| 156 | + "name": "content-type", |
| 157 | + "value": "application/vnd.api+json" |
| 158 | + } |
| 159 | + ], |
| 160 | + "headersSize": 662, |
| 161 | + "httpVersion": "HTTP/1.1", |
| 162 | + "redirectURL": "", |
| 163 | + "status": 200, |
| 164 | + "statusText": "OK" |
| 165 | + }, |
| 166 | + "startedDateTime": "2026-03-31T14:58:06.110Z", |
| 167 | + "time": 224 |
| 168 | + }, |
| 169 | + { |
| 170 | + "_id": "a61ba428f7d696c4ae6a680ac4abf3bf", |
| 171 | + "_order": 1, |
| 172 | + "cache": {}, |
| 173 | + "request": { |
| 174 | + "bodySize": 161, |
| 175 | + "cookies": [], |
| 176 | + "headers": [ |
| 177 | + { |
| 178 | + "_fromType": "array", |
| 179 | + "name": "accept", |
| 180 | + "value": "application/json" |
| 181 | + }, |
| 182 | + { |
| 183 | + "_fromType": "array", |
| 184 | + "name": "content-type", |
| 185 | + "value": "application/json" |
| 186 | + } |
| 187 | + ], |
| 188 | + "headersSize": 633, |
| 189 | + "httpVersion": "HTTP/1.1", |
| 190 | + "method": "POST", |
| 191 | + "postData": { |
| 192 | + "mimeType": "application/json", |
| 193 | + "params": [], |
| 194 | + "text": "{\"data\":{\"attributes\":{\"role\":\"admin\"},\"relationships\":{\"user\":{\"data\":{\"id\":\"825c5f4c-585c-494a-aade-60f1e1aa189b\",\"type\":\"users\"}}},\"type\":\"team_memberships\"}}" |
| 195 | + }, |
| 196 | + "queryString": [], |
| 197 | + "url": "https://api.datadoghq.com/api/v2/team/abc7c612-d3a1-4147-bcfa-f28b4af43d33/memberships" |
| 198 | + }, |
| 199 | + "response": { |
| 200 | + "bodySize": 132, |
| 201 | + "content": { |
| 202 | + "mimeType": "application/vnd.api+json", |
| 203 | + "size": 132, |
| 204 | + "text": "{\"errors\":[{\"status\":\"409\",\"title\":\"Conflict\",\"detail\":\"users already present on the team [825c5f4c-585c-494a-aade-60f1e1aa189b]\"}]}" |
| 205 | + }, |
| 206 | + "cookies": [], |
| 207 | + "headers": [ |
| 208 | + { |
| 209 | + "name": "content-type", |
| 210 | + "value": "application/vnd.api+json" |
| 211 | + } |
| 212 | + ], |
| 213 | + "headersSize": 662, |
| 214 | + "httpVersion": "HTTP/1.1", |
| 215 | + "redirectURL": "", |
| 216 | + "status": 409, |
| 217 | + "statusText": "Conflict" |
| 218 | + }, |
| 219 | + "startedDateTime": "2026-03-31T14:58:06.338Z", |
| 220 | + "time": 489 |
| 221 | + }, |
| 222 | + { |
| 223 | + "_id": "92142243fca9c24fcecb3f2102c692e4", |
| 224 | + "_order": 0, |
| 225 | + "cache": {}, |
| 226 | + "request": { |
| 227 | + "bodySize": 0, |
| 228 | + "cookies": [], |
| 229 | + "headers": [ |
| 230 | + { |
| 231 | + "_fromType": "array", |
| 232 | + "name": "accept", |
| 233 | + "value": "*/*" |
| 234 | + } |
| 235 | + ], |
| 236 | + "headersSize": 606, |
| 237 | + "httpVersion": "HTTP/1.1", |
| 238 | + "method": "DELETE", |
| 239 | + "queryString": [], |
| 240 | + "url": "https://api.datadoghq.com/api/v2/team/abc7c612-d3a1-4147-bcfa-f28b4af43d33/memberships/825c5f4c-585c-494a-aade-60f1e1aa189b" |
| 241 | + }, |
| 242 | + "response": { |
| 243 | + "bodySize": 0, |
| 244 | + "content": { |
| 245 | + "mimeType": "text/plain", |
| 246 | + "size": 0 |
| 247 | + }, |
| 248 | + "cookies": [], |
| 249 | + "headers": [], |
| 250 | + "headersSize": 632, |
| 251 | + "httpVersion": "HTTP/1.1", |
| 252 | + "redirectURL": "", |
| 253 | + "status": 204, |
| 254 | + "statusText": "No Content" |
| 255 | + }, |
| 256 | + "startedDateTime": "2026-03-31T14:58:06.832Z", |
| 257 | + "time": 550 |
| 258 | + }, |
| 259 | + { |
| 260 | + "_id": "f4641238009430cf34fdcbb0584c39bb", |
| 261 | + "_order": 0, |
| 262 | + "cache": {}, |
| 263 | + "request": { |
| 264 | + "bodySize": 0, |
| 265 | + "cookies": [], |
| 266 | + "headers": [ |
| 267 | + { |
| 268 | + "_fromType": "array", |
| 269 | + "name": "accept", |
| 270 | + "value": "*/*" |
| 271 | + } |
| 272 | + ], |
| 273 | + "headersSize": 549, |
| 274 | + "httpVersion": "HTTP/1.1", |
| 275 | + "method": "DELETE", |
| 276 | + "queryString": [], |
| 277 | + "url": "https://api.datadoghq.com/api/v2/users/825c5f4c-585c-494a-aade-60f1e1aa189b" |
| 278 | + }, |
| 279 | + "response": { |
| 280 | + "bodySize": 0, |
| 281 | + "content": { |
| 282 | + "mimeType": "text/plain", |
| 283 | + "size": 0 |
| 284 | + }, |
| 285 | + "cookies": [], |
| 286 | + "headers": [], |
| 287 | + "headersSize": 495, |
| 288 | + "httpVersion": "HTTP/1.1", |
| 289 | + "redirectURL": "", |
| 290 | + "status": 204, |
| 291 | + "statusText": "No Content" |
| 292 | + }, |
| 293 | + "startedDateTime": "2026-03-31T14:58:07.384Z", |
| 294 | + "time": 678 |
| 295 | + }, |
| 296 | + { |
| 297 | + "_id": "3c4a5d8e38980fa5ef475e299f966144", |
| 298 | + "_order": 0, |
| 299 | + "cache": {}, |
| 300 | + "request": { |
| 301 | + "bodySize": 0, |
| 302 | + "cookies": [], |
| 303 | + "headers": [ |
| 304 | + { |
| 305 | + "_fromType": "array", |
| 306 | + "name": "accept", |
| 307 | + "value": "*/*" |
| 308 | + } |
| 309 | + ], |
| 310 | + "headersSize": 547, |
| 311 | + "httpVersion": "HTTP/1.1", |
| 312 | + "method": "DELETE", |
| 313 | + "queryString": [], |
| 314 | + "url": "https://api.datadoghq.com/api/v2/team/abc7c612-d3a1-4147-bcfa-f28b4af43d33" |
| 315 | + }, |
| 316 | + "response": { |
| 317 | + "bodySize": 0, |
| 318 | + "content": { |
| 319 | + "mimeType": "text/plain", |
| 320 | + "size": 0 |
| 321 | + }, |
| 322 | + "cookies": [], |
| 323 | + "headers": [], |
| 324 | + "headersSize": 632, |
| 325 | + "httpVersion": "HTTP/1.1", |
| 326 | + "redirectURL": "", |
| 327 | + "status": 204, |
| 328 | + "statusText": "No Content" |
| 329 | + }, |
| 330 | + "startedDateTime": "2026-03-31T14:58:08.063Z", |
| 331 | + "time": 600 |
| 332 | + } |
| 333 | + ], |
| 334 | + "pages": [], |
| 335 | + "version": "1.2" |
| 336 | + } |
| 337 | +} |
0 commit comments