|
| 1 | +interactions: |
| 2 | +- request: |
| 3 | + body: | |
| 4 | + {"data":{"attributes":{"handle":"test-handle-789e569afaa52bde","name":"test-name-789e569afaa52bde"},"type":"team"}} |
| 5 | + form: {} |
| 6 | + headers: |
| 7 | + Accept: |
| 8 | + - application/json |
| 9 | + Content-Type: |
| 10 | + - application/json |
| 11 | + id: 0 |
| 12 | + method: POST |
| 13 | + url: https://api.datadoghq.com/api/v2/team |
| 14 | + response: |
| 15 | + body: '{"data":{"id":"1d059472-0eff-4857-a6c8-5e5041448b54","type":"team","attributes":{"avatar":null,"banner":5,"created_at":"2026-03-25T10:51:13.938804+00:00","description":null,"handle":"test-handle-789e569afaa52bde","hidden_modules":null,"is_managed":false,"link_count":0,"modified_at":"2026-03-25T10:51:13.938804+00:00","name":"test-name-789e569afaa52bde","summary":null,"user_count":0,"visible_modules":null},"relationships":{"team_links":{"data":[],"links":{"related":"/api/v2/team/1d059472-0eff-4857-a6c8-5e5041448b54/links"}},"user_team_permissions":{"data":null,"links":{"related":"/api/v2/team/1d059472-0eff-4857-a6c8-5e5041448b54/permission-settings"}}}}}' |
| 16 | + code: 201 |
| 17 | + duration: 0ms |
| 18 | + headers: |
| 19 | + Content-Type: |
| 20 | + - application/vnd.api+json |
| 21 | + status: 201 Created |
| 22 | +- request: |
| 23 | + body: | |
| 24 | + {"data":{"attributes":{"email":"Test-Remove_a_user_from_a_team_returns_No_Content_response-1774435873@datadoghq.com","title":"user title"},"type":"users"}} |
| 25 | + form: {} |
| 26 | + headers: |
| 27 | + Accept: |
| 28 | + - application/json |
| 29 | + Content-Type: |
| 30 | + - application/json |
| 31 | + id: 1 |
| 32 | + method: POST |
| 33 | + url: https://api.datadoghq.com/api/v2/users |
| 34 | + response: |
| 35 | + body: '{"data": {"type": "users", "id": "66e25b0b-3f3b-427e-b162-e779f4535abb", |
| 36 | + "attributes": {"name": null, "handle": "test-remove_a_user_from_a_team_returns_no_content_response-1774435873@datadoghq.com", |
| 37 | + "created_at": "2026-03-25T10:51:14.481612+00:00", "modified_at": "2026-03-25T10:51:14.481612+00:00", |
| 38 | + "email": "test-remove_a_user_from_a_team_returns_no_content_response-1774435873@datadoghq.com", |
| 39 | + "icon": "https://secure.gravatar.com/avatar/be9f1c5abecde28b4c01cc8aa0680377?s=48&d=retro", |
| 40 | + "title": "user title", "verified": false, "service_account": false, "disabled": |
| 41 | + false, "allowed_login_methods": [], "status": "Pending", "last_login_time": |
| 42 | + null}, "relationships": {"roles": {"data": []}, "org": {"data": {"type": "orgs", |
| 43 | + "id": "4dee724d-00cc-11ea-a77b-570c9d03c6c5"}}}}}' |
| 44 | + code: 201 |
| 45 | + duration: 0ms |
| 46 | + headers: |
| 47 | + Content-Type: |
| 48 | + - application/json |
| 49 | + status: 201 Created |
| 50 | +- request: |
| 51 | + body: | |
| 52 | + {"data":{"attributes":{"role":"admin"},"relationships":{"user":{"data":{"id":"66e25b0b-3f3b-427e-b162-e779f4535abb","type":"users"}}},"type":"team_memberships"}} |
| 53 | + form: {} |
| 54 | + headers: |
| 55 | + Accept: |
| 56 | + - application/json |
| 57 | + Content-Type: |
| 58 | + - application/json |
| 59 | + id: 2 |
| 60 | + method: POST |
| 61 | + url: https://api.datadoghq.com/api/v2/team/1d059472-0eff-4857-a6c8-5e5041448b54/memberships |
| 62 | + response: |
| 63 | + body: '{"data":{"id":"TeamMembership-1d059472-0eff-4857-a6c8-5e5041448b54-66092046","type":"team_memberships","attributes":{"provisioned_by":null,"provisioned_by_id":"a1d5ff5a-c6dd-11f0-9cb6-06640ca27ad4","role":"admin"},"relationships":{"user":{"data":{"id":"66e25b0b-3f3b-427e-b162-e779f4535abb","type":"users"}}}},"included":[{"id":"66e25b0b-3f3b-427e-b162-e779f4535abb","type":"users","attributes":{"disabled":false,"email":"test-remove_a_user_from_a_team_returns_no_content_response-1774435873@datadoghq.com","handle":"test-remove_a_user_from_a_team_returns_no_content_response-1774435873@datadoghq.com","icon":"https://secure.gravatar.com/avatar/be9f1c5abecde28b4c01cc8aa0680377?d=retro\u0026s=48","name":null,"service_account":false,"status":"Pending"}}]}' |
| 64 | + code: 200 |
| 65 | + duration: 0ms |
| 66 | + headers: |
| 67 | + Content-Type: |
| 68 | + - application/vnd.api+json |
| 69 | + status: 200 OK |
| 70 | +- request: |
| 71 | + body: '' |
| 72 | + form: {} |
| 73 | + headers: |
| 74 | + Accept: |
| 75 | + - '*/*' |
| 76 | + id: 3 |
| 77 | + method: DELETE |
| 78 | + url: https://api.datadoghq.com/api/v2/team/1d059472-0eff-4857-a6c8-5e5041448b54/memberships/66e25b0b-3f3b-427e-b162-e779f4535abb |
| 79 | + response: |
| 80 | + body: '' |
| 81 | + code: 204 |
| 82 | + duration: 0ms |
| 83 | + headers: {} |
| 84 | + status: 204 No Content |
| 85 | +- request: |
| 86 | + body: '' |
| 87 | + form: {} |
| 88 | + headers: |
| 89 | + Accept: |
| 90 | + - '*/*' |
| 91 | + id: 4 |
| 92 | + method: DELETE |
| 93 | + url: https://api.datadoghq.com/api/v2/team/1d059472-0eff-4857-a6c8-5e5041448b54/memberships/66e25b0b-3f3b-427e-b162-e779f4535abb |
| 94 | + response: |
| 95 | + body: '{"errors":["User 66e25b0b-3f3b-427e-b162-e779f4535abb is not a member of |
| 96 | + Team 1d059472-0eff-4857-a6c8-5e5041448b54 not found"]}' |
| 97 | + code: 404 |
| 98 | + duration: 0ms |
| 99 | + headers: |
| 100 | + Content-Type: |
| 101 | + - application/json |
| 102 | + status: 404 Not Found |
| 103 | +- request: |
| 104 | + body: '' |
| 105 | + form: {} |
| 106 | + headers: |
| 107 | + Accept: |
| 108 | + - '*/*' |
| 109 | + id: 5 |
| 110 | + method: DELETE |
| 111 | + url: https://api.datadoghq.com/api/v2/users/66e25b0b-3f3b-427e-b162-e779f4535abb |
| 112 | + response: |
| 113 | + body: '' |
| 114 | + code: 204 |
| 115 | + duration: 0ms |
| 116 | + headers: {} |
| 117 | + status: 204 No Content |
| 118 | +- request: |
| 119 | + body: '' |
| 120 | + form: {} |
| 121 | + headers: |
| 122 | + Accept: |
| 123 | + - '*/*' |
| 124 | + id: 6 |
| 125 | + method: DELETE |
| 126 | + url: https://api.datadoghq.com/api/v2/team/1d059472-0eff-4857-a6c8-5e5041448b54 |
| 127 | + response: |
| 128 | + body: '' |
| 129 | + code: 204 |
| 130 | + duration: 0ms |
| 131 | + headers: {} |
| 132 | + status: 204 No Content |
| 133 | +version: 2 |
0 commit comments