|
| 1 | +interactions: |
| 2 | +- request: |
| 3 | + body: '{"data":{"attributes":{"handle":"test-handle-22e42ce95626a92a","name":"test-name-22e42ce95626a92a"},"type":"team"}}' |
| 4 | + headers: |
| 5 | + accept: |
| 6 | + - application/json |
| 7 | + content-type: |
| 8 | + - application/json |
| 9 | + method: POST |
| 10 | + uri: https://api.datadoghq.com/api/v2/team |
| 11 | + response: |
| 12 | + body: |
| 13 | + string: '{"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"}}}}}' |
| 14 | + headers: |
| 15 | + content-type: |
| 16 | + - application/vnd.api+json |
| 17 | + status: |
| 18 | + code: 201 |
| 19 | + message: Created |
| 20 | +- request: |
| 21 | + body: '{"data":{"attributes":{"email":"Test-Add_a_user_to_a_team_returns_API_error_response_response-1774969085@datadoghq.com","title":"user |
| 22 | + title"},"type":"users"}}' |
| 23 | + headers: |
| 24 | + accept: |
| 25 | + - application/json |
| 26 | + content-type: |
| 27 | + - application/json |
| 28 | + method: POST |
| 29 | + uri: https://api.datadoghq.com/api/v2/users |
| 30 | + response: |
| 31 | + body: |
| 32 | + string: '{"data": {"type": "users", "id": "825c5f4c-585c-494a-aade-60f1e1aa189b", |
| 33 | + "attributes": {"name": null, "handle": "test-add_a_user_to_a_team_returns_api_error_response_response-1774969085@datadoghq.com", |
| 34 | + "created_at": "2026-03-31T14:58:06.030754+00:00", "modified_at": "2026-03-31T14:58:06.030754+00:00", |
| 35 | + "email": "test-add_a_user_to_a_team_returns_api_error_response_response-1774969085@datadoghq.com", |
| 36 | + "icon": "https://secure.gravatar.com/avatar/53ba6f826ef9a49acaeec55d1bcc1c47?s=48&d=retro", |
| 37 | + "title": "user title", "verified": false, "service_account": false, "disabled": |
| 38 | + false, "allowed_login_methods": [], "status": "Pending", "last_login_time": |
| 39 | + null}, "relationships": {"roles": {"data": []}, "org": {"data": {"type": "orgs", |
| 40 | + "id": "4dee724d-00cc-11ea-a77b-570c9d03c6c5"}}}}}' |
| 41 | + headers: |
| 42 | + content-type: |
| 43 | + - application/json |
| 44 | + status: |
| 45 | + code: 201 |
| 46 | + message: Created |
| 47 | +- request: |
| 48 | + body: '{"data":{"attributes":{"role":"admin"},"relationships":{"user":{"data":{"id":"825c5f4c-585c-494a-aade-60f1e1aa189b","type":"users"}}},"type":"team_memberships"}}' |
| 49 | + headers: |
| 50 | + accept: |
| 51 | + - application/json |
| 52 | + content-type: |
| 53 | + - application/json |
| 54 | + method: POST |
| 55 | + uri: https://api.datadoghq.com/api/v2/team/abc7c612-d3a1-4147-bcfa-f28b4af43d33/memberships |
| 56 | + response: |
| 57 | + body: |
| 58 | + string: '{"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"}}]}' |
| 59 | + headers: |
| 60 | + content-type: |
| 61 | + - application/vnd.api+json |
| 62 | + status: |
| 63 | + code: 200 |
| 64 | + message: OK |
| 65 | +- request: |
| 66 | + body: '{"data":{"attributes":{"role":"admin"},"relationships":{"user":{"data":{"id":"825c5f4c-585c-494a-aade-60f1e1aa189b","type":"users"}}},"type":"team_memberships"}}' |
| 67 | + headers: |
| 68 | + accept: |
| 69 | + - application/json |
| 70 | + content-type: |
| 71 | + - application/json |
| 72 | + method: POST |
| 73 | + uri: https://api.datadoghq.com/api/v2/team/abc7c612-d3a1-4147-bcfa-f28b4af43d33/memberships |
| 74 | + response: |
| 75 | + body: |
| 76 | + string: '{"errors":[{"status":"409","title":"Conflict","detail":"users already |
| 77 | + present on the team [825c5f4c-585c-494a-aade-60f1e1aa189b]"}]}' |
| 78 | + headers: |
| 79 | + content-type: |
| 80 | + - application/vnd.api+json |
| 81 | + status: |
| 82 | + code: 409 |
| 83 | + message: Conflict |
| 84 | +- request: |
| 85 | + body: null |
| 86 | + headers: |
| 87 | + accept: |
| 88 | + - '*/*' |
| 89 | + method: DELETE |
| 90 | + uri: https://api.datadoghq.com/api/v2/team/abc7c612-d3a1-4147-bcfa-f28b4af43d33/memberships/825c5f4c-585c-494a-aade-60f1e1aa189b |
| 91 | + response: |
| 92 | + body: |
| 93 | + string: '' |
| 94 | + headers: {} |
| 95 | + status: |
| 96 | + code: 204 |
| 97 | + message: No Content |
| 98 | +- request: |
| 99 | + body: null |
| 100 | + headers: |
| 101 | + accept: |
| 102 | + - '*/*' |
| 103 | + method: DELETE |
| 104 | + uri: https://api.datadoghq.com/api/v2/users/825c5f4c-585c-494a-aade-60f1e1aa189b |
| 105 | + response: |
| 106 | + body: |
| 107 | + string: '' |
| 108 | + headers: {} |
| 109 | + status: |
| 110 | + code: 204 |
| 111 | + message: No Content |
| 112 | +- request: |
| 113 | + body: null |
| 114 | + headers: |
| 115 | + accept: |
| 116 | + - '*/*' |
| 117 | + method: DELETE |
| 118 | + uri: https://api.datadoghq.com/api/v2/team/abc7c612-d3a1-4147-bcfa-f28b4af43d33 |
| 119 | + response: |
| 120 | + body: |
| 121 | + string: '' |
| 122 | + headers: {} |
| 123 | + status: |
| 124 | + code: 204 |
| 125 | + message: No Content |
| 126 | +version: 1 |
0 commit comments