diff --git a/cassettes/v2/On-Call_446749911/Get-team-on-call-users-returns-OK-response_2823884950/frozen.json b/cassettes/v2/On-Call_446749911/Get-team-on-call-users-returns-OK-response_2823884950/frozen.json index 262353dff084..408349f58fca 100644 --- a/cassettes/v2/On-Call_446749911/Get-team-on-call-users-returns-OK-response_2823884950/frozen.json +++ b/cassettes/v2/On-Call_446749911/Get-team-on-call-users-returns-OK-response_2823884950/frozen.json @@ -1 +1 @@ -"2025-05-29T07:30:17.381Z" +"2025-11-18T12:44:29.751Z" diff --git a/cassettes/v2/On-Call_446749911/Get-team-on-call-users-returns-OK-response_2823884950/recording.har b/cassettes/v2/On-Call_446749911/Get-team-on-call-users-returns-OK-response_2823884950/recording.har index fa72efa9a7a1..ea74c52bdfea 100644 --- a/cassettes/v2/On-Call_446749911/Get-team-on-call-users-returns-OK-response_2823884950/recording.har +++ b/cassettes/v2/On-Call_446749911/Get-team-on-call-users-returns-OK-response_2823884950/recording.har @@ -8,7 +8,7 @@ }, "entries": [ { - "_id": "57e9461950b11ac3b718d291ad6a0868", + "_id": "63d8850297233aa70205e81d41d737fe", "_order": 0, "cache": {}, "request": { @@ -32,17 +32,17 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"data\":{\"attributes\":{\"email\":\"Test-Get_team_on_call_users_returns_OK_response-1748503817@datadoghq.com\",\"title\":\"user title\"},\"type\":\"users\"}}" + "text": "{\"data\":{\"attributes\":{\"email\":\"Test-Get_team_on_call_users_returns_OK_response-1763469869@datadoghq.com\",\"title\":\"user title\"},\"type\":\"users\"}}" }, "queryString": [], "url": "https://api.datadoghq.com/api/v2/users" }, "response": { - "bodySize": 689, + "bodySize": 712, "content": { "mimeType": "application/json", - "size": 689, - "text": "{\"data\":{\"type\":\"users\",\"id\":\"c534e9e3-3c5e-11f0-b6eb-6e406f40657f\",\"attributes\":{\"name\":null,\"handle\":\"test-get_team_on_call_users_returns_ok_response-1748503817@datadoghq.com\",\"created_at\":\"2025-05-29T07:30:18.165739+00:00\",\"modified_at\":\"2025-05-29T07:30:18.165739+00:00\",\"email\":\"test-get_team_on_call_users_returns_ok_response-1748503817@datadoghq.com\",\"icon\":\"https://secure.gravatar.com/avatar/a9b817a05a2ad95be147030f20ff95fb?s=48&d=retro\",\"title\":\"user title\",\"verified\":false,\"service_account\":false,\"disabled\":false,\"allowed_login_methods\":[],\"status\":\"Pending\"},\"relationships\":{\"roles\":{\"data\":[]},\"org\":{\"data\":{\"type\":\"orgs\",\"id\":\"4dee724d-00cc-11ea-a77b-570c9d03c6c5\"}}}}}\n" + "size": 712, + "text": "{\"data\":{\"type\":\"users\",\"id\":\"537c2919-c47c-11f0-9b08-ce88c9776d95\",\"attributes\":{\"name\":null,\"handle\":\"test-get_team_on_call_users_returns_ok_response-1763469869@datadoghq.com\",\"created_at\":\"2025-11-18T12:44:30.412060+00:00\",\"modified_at\":\"2025-11-18T12:44:30.412060+00:00\",\"email\":\"test-get_team_on_call_users_returns_ok_response-1763469869@datadoghq.com\",\"icon\":\"https://secure.gravatar.com/avatar/e1a08271c5b3a54aaa074185b1550add?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\"}}}}}\n" }, "cookies": [], "headers": [ @@ -57,11 +57,11 @@ "status": 201, "statusText": "Created" }, - "startedDateTime": "2025-05-29T07:30:17.386Z", - "time": 934 + "startedDateTime": "2025-11-18T12:44:29.757Z", + "time": 804 }, { - "_id": "442e8aa311a25be7b79a86cca2bdeece", + "_id": "b22aa90a3e3f97e976abde2eb3255ae2", "_order": 0, "cache": {}, "request": { @@ -85,36 +85,36 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"data\":{\"attributes\":{\"handle\":\"test-handle-aa0dbd3d9b27ea9e\",\"name\":\"test-name-aa0dbd3d9b27ea9e\"},\"type\":\"team\"}}" + "text": "{\"data\":{\"attributes\":{\"handle\":\"test-handle-b0479fe6a2cd9873\",\"name\":\"test-name-b0479fe6a2cd9873\"},\"type\":\"team\"}}" }, "queryString": [], "url": "https://api.datadoghq.com/api/v2/team" }, "response": { - "bodySize": 635, + "bodySize": 661, "content": { - "mimeType": "application/json", - "size": 635, - "text": "{\"data\":{\"type\":\"team\",\"id\":\"6a8339f9-9d86-4948-a469-1b0cbef769bb\",\"attributes\":{\"name\":\"test-name-aa0dbd3d9b27ea9e\",\"handle\":\"test-handle-aa0dbd3d9b27ea9e\",\"summary\":null,\"description\":null,\"avatar\":null,\"banner\":1,\"visible_modules\":[],\"hidden_modules\":[],\"created_at\":\"2025-05-29T07:30:18.898463+00:00\",\"modified_at\":\"2025-05-29T07:30:18.898474+00:00\",\"user_count\":0,\"link_count\":0},\"relationships\":{\"team_links\":{\"links\":{\"related\":\"/api/v2/team/6a8339f9-9d86-4948-a469-1b0cbef769bb/links\"}},\"user_team_permissions\":{\"links\":{\"related\":\"/api/v2/team/6a8339f9-9d86-4948-a469-1b0cbef769bb/permission-settings\"}}}}}\n" + "mimeType": "application/vnd.api+json", + "size": 661, + "text": "{\"data\":{\"id\":\"11ba6480-761b-4dbd-b4a0-c77a9df6740c\",\"type\":\"team\",\"attributes\":{\"avatar\":null,\"banner\":15,\"created_at\":\"2025-11-18T12:44:31.250613+00:00\",\"description\":null,\"handle\":\"test-handle-b0479fe6a2cd9873\",\"hidden_modules\":[],\"link_count\":0,\"modified_at\":\"2025-11-18T12:44:31.250613+00:00\",\"name\":\"test-name-b0479fe6a2cd9873\",\"summary\":null,\"user_count\":0,\"visible_modules\":[]},\"relationships\":{\"team_links\":{\"data\":[],\"links\":{\"related\":\"/api/v2/team/11ba6480-761b-4dbd-b4a0-c77a9df6740c/links\"}},\"user_team_permissions\":{\"links\":{\"related\":\"/api/v2/team/11ba6480-761b-4dbd-b4a0-c77a9df6740c/permission-settings\"}}}}}" }, "cookies": [], "headers": [ { "name": "content-type", - "value": "application/json" + "value": "application/vnd.api+json" } ], - "headersSize": 685, + "headersSize": 700, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 201, "statusText": "Created" }, - "startedDateTime": "2025-05-29T07:30:18.332Z", - "time": 794 + "startedDateTime": "2025-11-18T12:44:30.584Z", + "time": 847 }, { - "_id": "75f6ef08a8ca4e0504219b909786cba3", + "_id": "e1fe73f1b557b9ed473da3a5df93a49a", "_order": 0, "cache": {}, "request": { @@ -138,7 +138,7 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"data\":{\"attributes\":{\"layers\":[{\"effective_date\":\"2025-05-19T07:30:17.381Z\",\"end_date\":\"2025-06-08T07:30:17.381Z\",\"interval\":{\"days\":1},\"members\":[{\"user\":{\"id\":\"c534e9e3-3c5e-11f0-b6eb-6e406f40657f\"}}],\"name\":\"Layer 1\",\"restrictions\":[{\"end_day\":\"friday\",\"end_time\":\"17:00:00\",\"start_day\":\"monday\",\"start_time\":\"09:00:00\"}],\"rotation_start\":\"2025-05-24T07:30:17.381Z\"}],\"name\":\"Test-Get_team_on_call_users_returns_OK_response-1748503817\",\"time_zone\":\"America/New_York\"},\"relationships\":{\"teams\":{\"data\":[{\"id\":\"65aea9d0-941c-4607-bf8a-14fc0dac2820\",\"type\":\"teams\"}]}},\"type\":\"schedules\"}}" + "text": "{\"data\":{\"attributes\":{\"layers\":[{\"effective_date\":\"2025-11-08T12:44:29.751Z\",\"end_date\":\"2025-11-28T12:44:29.751Z\",\"interval\":{\"days\":1},\"members\":[{\"user\":{\"id\":\"537c2919-c47c-11f0-9b08-ce88c9776d95\"}}],\"name\":\"Layer 1\",\"restrictions\":[{\"end_day\":\"friday\",\"end_time\":\"17:00:00\",\"start_day\":\"monday\",\"start_time\":\"09:00:00\"}],\"rotation_start\":\"2025-11-13T12:44:29.751Z\"}],\"name\":\"Test-Get_team_on_call_users_returns_OK_response-1763469869\",\"time_zone\":\"America/New_York\"},\"relationships\":{\"teams\":{\"data\":[{\"id\":\"65aea9d0-941c-4607-bf8a-14fc0dac2820\",\"type\":\"teams\"}]}},\"type\":\"schedules\"}}" }, "queryString": [], "url": "https://api.datadoghq.com/api/v2/on-call/schedules" @@ -148,7 +148,7 @@ "content": { "mimeType": "application/vnd.api+json", "size": 367, - "text": "{\"data\":{\"id\":\"ba6c57a1-bb93-4f5a-a22b-174f84b0c5d6\",\"type\":\"schedules\",\"attributes\":{\"name\":\"Test-Get_team_on_call_users_returns_OK_response-1748503817\",\"time_zone\":\"America/New_York\"},\"relationships\":{\"layers\":{\"data\":[{\"id\":\"d12469b6-85d8-461a-89c6-61fc956c1446\",\"type\":\"layers\"}]},\"teams\":{\"data\":[{\"id\":\"65aea9d0-941c-4607-bf8a-14fc0dac2820\",\"type\":\"teams\"}]}}}}" + "text": "{\"data\":{\"id\":\"3be141a8-848d-4af1-86de-e5d76cd6e4fc\",\"type\":\"schedules\",\"attributes\":{\"name\":\"Test-Get_team_on_call_users_returns_OK_response-1763469869\",\"time_zone\":\"America/New_York\"},\"relationships\":{\"layers\":{\"data\":[{\"id\":\"0c2a552f-a2e0-47ca-ad8b-4407608b3f67\",\"type\":\"layers\"}]},\"teams\":{\"data\":[{\"id\":\"65aea9d0-941c-4607-bf8a-14fc0dac2820\",\"type\":\"teams\"}]}}}}" }, "cookies": [], "headers": [ @@ -163,11 +163,11 @@ "status": 201, "statusText": "Created" }, - "startedDateTime": "2025-05-29T07:30:19.132Z", - "time": 250 + "startedDateTime": "2025-11-18T12:44:31.442Z", + "time": 345 }, { - "_id": "c9d496b9e3c679e202cbd3305aec6f0a", + "_id": "2df297d35324bfa3fc057e59cdba417f", "_order": 0, "cache": {}, "request": { @@ -191,7 +191,7 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"data\":{\"attributes\":{\"name\":\"Test-Get_team_on_call_users_returns_OK_response-1748503817\",\"resolve_page_on_policy_end\":true,\"retries\":2,\"steps\":[{\"assignment\":\"default\",\"escalate_after_seconds\":3600,\"targets\":[{\"id\":\"6a8339f9-9d86-4948-a469-1b0cbef769bb\",\"type\":\"teams\"},{\"id\":\"ba6c57a1-bb93-4f5a-a22b-174f84b0c5d6\",\"type\":\"schedules\"},{\"id\":\"c534e9e3-3c5e-11f0-b6eb-6e406f40657f\",\"type\":\"users\"}]},{\"assignment\":\"round-robin\",\"escalate_after_seconds\":3600,\"targets\":[{\"id\":\"6a8339f9-9d86-4948-a469-1b0cbef769bb\",\"type\":\"teams\"}]}]},\"relationships\":{\"teams\":{\"data\":[{\"id\":\"6a8339f9-9d86-4948-a469-1b0cbef769bb\",\"type\":\"teams\"}]}},\"type\":\"policies\"}}" + "text": "{\"data\":{\"attributes\":{\"name\":\"Test-Get_team_on_call_users_returns_OK_response-1763469869\",\"resolve_page_on_policy_end\":true,\"retries\":2,\"steps\":[{\"assignment\":\"default\",\"escalate_after_seconds\":3600,\"targets\":[{\"id\":\"11ba6480-761b-4dbd-b4a0-c77a9df6740c\",\"type\":\"teams\"},{\"id\":\"3be141a8-848d-4af1-86de-e5d76cd6e4fc\",\"type\":\"schedules\"},{\"id\":\"537c2919-c47c-11f0-9b08-ce88c9776d95\",\"type\":\"users\"}]},{\"assignment\":\"round-robin\",\"escalate_after_seconds\":3600,\"targets\":[{\"id\":\"11ba6480-761b-4dbd-b4a0-c77a9df6740c\",\"type\":\"teams\"}]}]},\"relationships\":{\"teams\":{\"data\":[{\"id\":\"11ba6480-761b-4dbd-b4a0-c77a9df6740c\",\"type\":\"teams\"}]}},\"type\":\"policies\"}}" }, "queryString": [], "url": "https://api.datadoghq.com/api/v2/on-call/escalation-policies" @@ -201,7 +201,7 @@ "content": { "mimeType": "application/vnd.api+json", "size": 440, - "text": "{\"data\":{\"id\":\"5cfa8139-510a-4965-8f10-dc79488fcd89\",\"type\":\"policies\",\"attributes\":{\"name\":\"Test-Get_team_on_call_users_returns_OK_response-1748503817\",\"resolve_page_on_policy_end\":true,\"retries\":2},\"relationships\":{\"steps\":{\"data\":[{\"id\":\"03c363ed-929e-4fa1-8397-e80a5b422648\",\"type\":\"steps\"},{\"id\":\"0c678f92-8639-4d72-ad5a-f40307c1d935\",\"type\":\"steps\"}]},\"teams\":{\"data\":[{\"id\":\"6a8339f9-9d86-4948-a469-1b0cbef769bb\",\"type\":\"teams\"}]}}}}" + "text": "{\"data\":{\"id\":\"5fe7a7c8-a2c1-4f07-9510-a5d483df5ae7\",\"type\":\"policies\",\"attributes\":{\"name\":\"Test-Get_team_on_call_users_returns_OK_response-1763469869\",\"resolve_page_on_policy_end\":true,\"retries\":2},\"relationships\":{\"steps\":{\"data\":[{\"id\":\"11f436b4-85bf-47c8-ab21-e851974ccf60\",\"type\":\"steps\"},{\"id\":\"6f0da5a9-4b7d-4d12-a859-4799599f074d\",\"type\":\"steps\"}]},\"teams\":{\"data\":[{\"id\":\"11ba6480-761b-4dbd-b4a0-c77a9df6740c\",\"type\":\"teams\"}]}}}}" }, "cookies": [], "headers": [ @@ -216,11 +216,11 @@ "status": 201, "statusText": "Created" }, - "startedDateTime": "2025-05-29T07:30:19.394Z", - "time": 852 + "startedDateTime": "2025-11-18T12:44:31.794Z", + "time": 694 }, { - "_id": "6c9cc603947c8293c800eaeb14f5dd8a", + "_id": "9ce3e78ab3f5ecbbba29c62840172d27", "_order": 0, "cache": {}, "request": { @@ -244,17 +244,17 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"data\":{\"attributes\":{\"rules\":[{\"actions\":[],\"policy_id\":\"5cfa8139-510a-4965-8f10-dc79488fcd89\",\"query\":\"\",\"urgency\":\"low\"}]},\"id\":\"6a8339f9-9d86-4948-a469-1b0cbef769bb\",\"type\":\"team_routing_rules\"}}" + "text": "{\"data\":{\"attributes\":{\"rules\":[{\"actions\":[],\"policy_id\":\"5fe7a7c8-a2c1-4f07-9510-a5d483df5ae7\",\"query\":\"\",\"urgency\":\"low\"}]},\"id\":\"11ba6480-761b-4dbd-b4a0-c77a9df6740c\",\"type\":\"team_routing_rules\"}}" }, "queryString": [], - "url": "https://api.datadoghq.com/api/v2/on-call/teams/6a8339f9-9d86-4948-a469-1b0cbef769bb/routing-rules" + "url": "https://api.datadoghq.com/api/v2/on-call/teams/11ba6480-761b-4dbd-b4a0-c77a9df6740c/routing-rules" }, "response": { "bodySize": 208, "content": { "mimeType": "application/vnd.api+json", "size": 208, - "text": "{\"data\":{\"id\":\"6a8339f9-9d86-4948-a469-1b0cbef769bb\",\"type\":\"team_routing_rules\",\"relationships\":{\"rules\":{\"data\":[{\"id\":\"virtual-6a8339f9-9d86-4948-a469-1b0cbef769bb-rule-0\",\"type\":\"team_routing_rules\"}]}}}}" + "text": "{\"data\":{\"id\":\"11ba6480-761b-4dbd-b4a0-c77a9df6740c\",\"type\":\"team_routing_rules\",\"relationships\":{\"rules\":{\"data\":[{\"id\":\"virtual-11ba6480-761b-4dbd-b4a0-c77a9df6740c-rule-0\",\"type\":\"team_routing_rules\"}]}}}}" }, "cookies": [], "headers": [ @@ -269,11 +269,11 @@ "status": 200, "statusText": "OK" }, - "startedDateTime": "2025-05-29T07:30:20.254Z", - "time": 630 + "startedDateTime": "2025-11-18T12:44:32.503Z", + "time": 505 }, { - "_id": "a5cc36d384be8b3ec178570a8206f79b", + "_id": "89d378d2694ce27a4ad43f3b5047f024", "_order": 0, "cache": {}, "request": { @@ -295,14 +295,14 @@ "value": "responders,escalations.responders" } ], - "url": "https://api.datadoghq.com/api/v2/on-call/teams/6a8339f9-9d86-4948-a469-1b0cbef769bb/on-call?include=responders%2Cescalations.responders" + "url": "https://api.datadoghq.com/api/v2/on-call/teams/11ba6480-761b-4dbd-b4a0-c77a9df6740c/on-call?include=responders%2Cescalations.responders" }, "response": { "bodySize": 427, "content": { "mimeType": "application/vnd.api+json", "size": 427, - "text": "{\"data\":{\"id\":\"6a8339f9-9d86-4948-a469-1b0cbef769bb-1748503821\",\"type\":\"team_oncall_responders\",\"relationships\":{\"escalations\":{\"data\":[]},\"responders\":{\"data\":[{\"id\":\"c534e9e3-3c5e-11f0-b6eb-6e406f40657f\",\"type\":\"users\"}]}}},\"included\":[{\"id\":\"c534e9e3-3c5e-11f0-b6eb-6e406f40657f\",\"type\":\"users\",\"attributes\":{\"email\":\"test-get_team_on_call_users_returns_ok_response-1748503817@datadoghq.com\",\"name\":\"\",\"status\":\"pending\"}}]}" + "text": "{\"data\":{\"id\":\"11ba6480-761b-4dbd-b4a0-c77a9df6740c-1763469873\",\"type\":\"team_oncall_responders\",\"relationships\":{\"escalations\":{\"data\":[]},\"responders\":{\"data\":[{\"id\":\"537c2919-c47c-11f0-9b08-ce88c9776d95\",\"type\":\"users\"}]}}},\"included\":[{\"id\":\"537c2919-c47c-11f0-9b08-ce88c9776d95\",\"type\":\"users\",\"attributes\":{\"email\":\"test-get_team_on_call_users_returns_ok_response-1763469869@datadoghq.com\",\"name\":\"\",\"status\":\"pending\"}}]}" }, "cookies": [], "headers": [ @@ -317,35 +317,45 @@ "status": 200, "statusText": "OK" }, - "startedDateTime": "2025-05-29T07:30:20.888Z", - "time": 856 + "startedDateTime": "2025-11-18T12:44:33.032Z", + "time": 445 }, { - "_id": "03c06d2aaf9476a0624cbd0454d700a0", + "_id": "102aca23767ede23003229968dd4ec4b", "_order": 0, "cache": {}, "request": { - "bodySize": 0, + "bodySize": 108, "cookies": [], "headers": [ { "_fromType": "array", "name": "accept", - "value": "*/*" + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" } ], - "headersSize": 563, + "headersSize": 623, "httpVersion": "HTTP/1.1", - "method": "DELETE", + "method": "PUT", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"data\":{\"attributes\":{\"rules\":[]},\"id\":\"11ba6480-761b-4dbd-b4a0-c77a9df6740c\",\"type\":\"team_routing_rules\"}}" + }, "queryString": [], - "url": "https://api.datadoghq.com/api/v2/on-call/escalation-policies/5cfa8139-510a-4965-8f10-dc79488fcd89" + "url": "https://api.datadoghq.com/api/v2/on-call/teams/11ba6480-761b-4dbd-b4a0-c77a9df6740c/routing-rules" }, "response": { - "bodySize": 104, + "bodySize": 120, "content": { "mimeType": "application/vnd.api+json", - "size": 104, - "text": "{\"errors\":[{\"title\":\"Generic Error\",\"detail\":\"policy[5cfa8139-510a-4965-8f10-dc79488fcd89] is in use\"}]}" + "size": 120, + "text": "{\"data\":{\"id\":\"11ba6480-761b-4dbd-b4a0-c77a9df6740c\",\"type\":\"team_routing_rules\",\"relationships\":{\"rules\":{\"data\":[]}}}}" }, "cookies": [], "headers": [ @@ -357,14 +367,14 @@ "headersSize": 525, "httpVersion": "HTTP/1.1", "redirectURL": "", - "status": 409, - "statusText": "Conflict" + "status": 200, + "statusText": "OK" }, - "startedDateTime": "2025-05-29T07:30:21.762Z", - "time": 642 + "startedDateTime": "2025-11-18T12:44:33.495Z", + "time": 478 }, { - "_id": "2ade78d075dcd33d398b2d1ff037d986", + "_id": "6e425c1be8a5189559fc500f16267124", "_order": 0, "cache": {}, "request": { @@ -377,37 +387,68 @@ "value": "*/*" } ], - "headersSize": 545, + "headersSize": 563, "httpVersion": "HTTP/1.1", "method": "DELETE", "queryString": [], - "url": "https://api.datadoghq.com/api/v2/on-call/schedules/ba6c57a1-bb93-4f5a-a22b-174f84b0c5d6" + "url": "https://api.datadoghq.com/api/v2/on-call/escalation-policies/5fe7a7c8-a2c1-4f07-9510-a5d483df5ae7" }, "response": { - "bodySize": 106, + "bodySize": 0, "content": { - "mimeType": "application/vnd.api+json", - "size": 106, - "text": "{\"errors\":[{\"title\":\"Generic Error\",\"detail\":\"schedule[ba6c57a1-bb93-4f5a-a22b-174f84b0c5d6] is in use\"}]}" + "mimeType": "text/plain", + "size": 0 }, "cookies": [], + "headers": [], + "headersSize": 464, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 204, + "statusText": "No Content" + }, + "startedDateTime": "2025-11-18T12:44:33.982Z", + "time": 427 + }, + { + "_id": "a7c55cdb9ddf307a483a43156deab580", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], "headers": [ { - "name": "content-type", - "value": "application/vnd.api+json" + "_fromType": "array", + "name": "accept", + "value": "*/*" } ], - "headersSize": 525, + "headersSize": 545, + "httpVersion": "HTTP/1.1", + "method": "DELETE", + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/on-call/schedules/3be141a8-848d-4af1-86de-e5d76cd6e4fc" + }, + "response": { + "bodySize": 0, + "content": { + "mimeType": "text/plain", + "size": 0 + }, + "cookies": [], + "headers": [], + "headersSize": 464, "httpVersion": "HTTP/1.1", "redirectURL": "", - "status": 409, - "statusText": "Conflict" + "status": 204, + "statusText": "No Content" }, - "startedDateTime": "2025-05-29T07:30:22.414Z", - "time": 803 + "startedDateTime": "2025-11-18T12:44:34.417Z", + "time": 456 }, { - "_id": "baaaeb217791876904d24014ea195458", + "_id": "39e7b285cea62fd7d1e6e0b80bed70b9", "_order": 0, "cache": {}, "request": { @@ -424,7 +465,7 @@ "httpVersion": "HTTP/1.1", "method": "DELETE", "queryString": [], - "url": "https://api.datadoghq.com/api/v2/team/6a8339f9-9d86-4948-a469-1b0cbef769bb" + "url": "https://api.datadoghq.com/api/v2/team/11ba6480-761b-4dbd-b4a0-c77a9df6740c" }, "response": { "bodySize": 0, @@ -440,11 +481,11 @@ "status": 204, "statusText": "No Content" }, - "startedDateTime": "2025-05-29T07:30:23.225Z", - "time": 768 + "startedDateTime": "2025-11-18T12:44:34.883Z", + "time": 559 }, { - "_id": "fd63ffc7c962b119bab1e4b8311a7002", + "_id": "2253d3eb439194df26b9ec13bc9149e9", "_order": 0, "cache": {}, "request": { @@ -461,7 +502,7 @@ "httpVersion": "HTTP/1.1", "method": "DELETE", "queryString": [], - "url": "https://api.datadoghq.com/api/v2/users/c534e9e3-3c5e-11f0-b6eb-6e406f40657f" + "url": "https://api.datadoghq.com/api/v2/users/537c2919-c47c-11f0-9b08-ce88c9776d95" }, "response": { "bodySize": 0, @@ -477,8 +518,8 @@ "status": 204, "statusText": "No Content" }, - "startedDateTime": "2025-05-29T07:30:24.004Z", - "time": 976 + "startedDateTime": "2025-11-18T12:44:35.453Z", + "time": 566 } ], "pages": [], diff --git a/cassettes/v2/On-Call_446749911/Set-On-Call-team-routing-rules-returns-OK-response_1745526811/frozen.json b/cassettes/v2/On-Call_446749911/Set-On-Call-team-routing-rules-returns-OK-response_1745526811/frozen.json index 8203f1c35001..e61cecad55eb 100644 --- a/cassettes/v2/On-Call_446749911/Set-On-Call-team-routing-rules-returns-OK-response_1745526811/frozen.json +++ b/cassettes/v2/On-Call_446749911/Set-On-Call-team-routing-rules-returns-OK-response_1745526811/frozen.json @@ -1 +1 @@ -"2025-05-29T04:54:12.242Z" +"2025-11-18T13:04:14.085Z" diff --git a/cassettes/v2/On-Call_446749911/Set-On-Call-team-routing-rules-returns-OK-response_1745526811/recording.har b/cassettes/v2/On-Call_446749911/Set-On-Call-team-routing-rules-returns-OK-response_1745526811/recording.har index f32c79b99bb4..1d74e8e92073 100644 --- a/cassettes/v2/On-Call_446749911/Set-On-Call-team-routing-rules-returns-OK-response_1745526811/recording.har +++ b/cassettes/v2/On-Call_446749911/Set-On-Call-team-routing-rules-returns-OK-response_1745526811/recording.har @@ -8,7 +8,7 @@ }, "entries": [ { - "_id": "e9b5b61ced67b2a87d42d1e0159aac78", + "_id": "bc0c68449b503db1e0baa59e550db2f1", "_order": 0, "cache": {}, "request": { @@ -26,23 +26,23 @@ "value": "application/json" } ], - "headersSize": 550, + "headersSize": 549, "httpVersion": "HTTP/1.1", "method": "POST", "postData": { "mimeType": "application/json", "params": [], - "text": "{\"data\":{\"attributes\":{\"email\":\"Test-Set_On_Call_team_routing_rules_returns_OK_response-1748494452@datadoghq.com\",\"title\":\"user title\"},\"type\":\"users\"}}" + "text": "{\"data\":{\"attributes\":{\"email\":\"Test-Set_On_Call_team_routing_rules_returns_OK_response-1763471054@datadoghq.com\",\"title\":\"user title\"},\"type\":\"users\"}}" }, "queryString": [], "url": "https://api.datadoghq.com/api/v2/users" }, "response": { - "bodySize": 705, + "bodySize": 728, "content": { "mimeType": "application/json", - "size": 705, - "text": "{\"data\":{\"type\":\"users\",\"id\":\"f70b5bc2-3c48-11f0-90c9-4ad2f0f8c382\",\"attributes\":{\"name\":null,\"handle\":\"test-set_on_call_team_routing_rules_returns_ok_response-1748494452@datadoghq.com\",\"created_at\":\"2025-05-29T04:54:12.851430+00:00\",\"modified_at\":\"2025-05-29T04:54:12.851430+00:00\",\"email\":\"test-set_on_call_team_routing_rules_returns_ok_response-1748494452@datadoghq.com\",\"icon\":\"https://secure.gravatar.com/avatar/3ae763850f6602b2ade88b17b79b0c2f?s=48&d=retro\",\"title\":\"user title\",\"verified\":false,\"service_account\":false,\"disabled\":false,\"allowed_login_methods\":[],\"status\":\"Pending\"},\"relationships\":{\"roles\":{\"data\":[]},\"org\":{\"data\":{\"type\":\"orgs\",\"id\":\"4dee724d-00cc-11ea-a77b-570c9d03c6c5\"}}}}}\n" + "size": 728, + "text": "{\"data\":{\"type\":\"users\",\"id\":\"15c47aed-c47f-11f0-9f0b-be6d33dcd787\",\"attributes\":{\"name\":null,\"handle\":\"test-set_on_call_team_routing_rules_returns_ok_response-1763471054@datadoghq.com\",\"created_at\":\"2025-11-18T13:04:15.357470+00:00\",\"modified_at\":\"2025-11-18T13:04:15.357470+00:00\",\"email\":\"test-set_on_call_team_routing_rules_returns_ok_response-1763471054@datadoghq.com\",\"icon\":\"https://secure.gravatar.com/avatar/958eeb5c5b80b7b5b4ec2f1794031763?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\"}}}}}\n" }, "cookies": [], "headers": [ @@ -57,11 +57,11 @@ "status": 201, "statusText": "Created" }, - "startedDateTime": "2025-05-29T04:54:12.248Z", - "time": 684 + "startedDateTime": "2025-11-18T13:04:15.058Z", + "time": 373 }, { - "_id": "11833563a9392dbe0c10b5f3aaf634ce", + "_id": "4b48a9b52d1dbe112ec4ecd259d28e78", "_order": 0, "cache": {}, "request": { @@ -79,42 +79,42 @@ "value": "application/json" } ], - "headersSize": 549, + "headersSize": 548, "httpVersion": "HTTP/1.1", "method": "POST", "postData": { "mimeType": "application/json", "params": [], - "text": "{\"data\":{\"attributes\":{\"handle\":\"test-handle-617820e9690362e8\",\"name\":\"test-name-617820e9690362e8\"},\"type\":\"team\"}}" + "text": "{\"data\":{\"attributes\":{\"handle\":\"test-handle-f77a37b001e848f1\",\"name\":\"test-name-f77a37b001e848f1\"},\"type\":\"team\"}}" }, "queryString": [], "url": "https://api.datadoghq.com/api/v2/team" }, "response": { - "bodySize": 635, + "bodySize": 660, "content": { - "mimeType": "application/json", - "size": 635, - "text": "{\"data\":{\"type\":\"team\",\"id\":\"08b1cecb-154b-45ca-bafa-a7f0b3196b8d\",\"attributes\":{\"name\":\"test-name-617820e9690362e8\",\"handle\":\"test-handle-617820e9690362e8\",\"summary\":null,\"description\":null,\"avatar\":null,\"banner\":6,\"visible_modules\":[],\"hidden_modules\":[],\"created_at\":\"2025-05-29T04:54:13.517054+00:00\",\"modified_at\":\"2025-05-29T04:54:13.517063+00:00\",\"user_count\":0,\"link_count\":0},\"relationships\":{\"team_links\":{\"links\":{\"related\":\"/api/v2/team/08b1cecb-154b-45ca-bafa-a7f0b3196b8d/links\"}},\"user_team_permissions\":{\"links\":{\"related\":\"/api/v2/team/08b1cecb-154b-45ca-bafa-a7f0b3196b8d/permission-settings\"}}}}}\n" + "mimeType": "application/vnd.api+json", + "size": 660, + "text": "{\"data\":{\"id\":\"8ab3f777-435e-42b6-8511-0c9020365b8d\",\"type\":\"team\",\"attributes\":{\"avatar\":null,\"banner\":6,\"created_at\":\"2025-11-18T13:04:15.712638+00:00\",\"description\":null,\"handle\":\"test-handle-f77a37b001e848f1\",\"hidden_modules\":[],\"link_count\":0,\"modified_at\":\"2025-11-18T13:04:15.712638+00:00\",\"name\":\"test-name-f77a37b001e848f1\",\"summary\":null,\"user_count\":0,\"visible_modules\":[]},\"relationships\":{\"team_links\":{\"data\":[],\"links\":{\"related\":\"/api/v2/team/8ab3f777-435e-42b6-8511-0c9020365b8d/links\"}},\"user_team_permissions\":{\"links\":{\"related\":\"/api/v2/team/8ab3f777-435e-42b6-8511-0c9020365b8d/permission-settings\"}}}}}" }, "cookies": [], "headers": [ { "name": "content-type", - "value": "application/json" + "value": "application/vnd.api+json" } ], - "headersSize": 685, + "headersSize": 700, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 201, "statusText": "Created" }, - "startedDateTime": "2025-05-29T04:54:12.945Z", - "time": 741 + "startedDateTime": "2025-11-18T13:04:15.445Z", + "time": 348 }, { - "_id": "826565aeed74b6ba0a751b5f458f665d", + "_id": "3e61253779aeae111999ede5265f096b", "_order": 0, "cache": {}, "request": { @@ -132,13 +132,13 @@ "value": "application/json" } ], - "headersSize": 572, + "headersSize": 570, "httpVersion": "HTTP/1.1", "method": "POST", "postData": { "mimeType": "application/json", "params": [], - "text": "{\"data\":{\"attributes\":{\"layers\":[{\"effective_date\":\"2025-05-19T04:54:12.242Z\",\"end_date\":\"2025-06-08T04:54:12.242Z\",\"interval\":{\"days\":1},\"members\":[{\"user\":{\"id\":\"f70b5bc2-3c48-11f0-90c9-4ad2f0f8c382\"}}],\"name\":\"Layer 1\",\"restrictions\":[{\"end_day\":\"friday\",\"end_time\":\"17:00:00\",\"start_day\":\"monday\",\"start_time\":\"09:00:00\"}],\"rotation_start\":\"2025-05-24T04:54:12.242Z\"}],\"name\":\"Test-Set_On_Call_team_routing_rules_returns_OK_response-1748494452\",\"time_zone\":\"America/New_York\"},\"relationships\":{\"teams\":{\"data\":[{\"id\":\"65aea9d0-941c-4607-bf8a-14fc0dac2820\",\"type\":\"teams\"}]}},\"type\":\"schedules\"}}" + "text": "{\"data\":{\"attributes\":{\"layers\":[{\"effective_date\":\"2025-11-08T13:04:14.085Z\",\"end_date\":\"2025-11-28T13:04:14.085Z\",\"interval\":{\"days\":1},\"members\":[{\"user\":{\"id\":\"15c47aed-c47f-11f0-9f0b-be6d33dcd787\"}}],\"name\":\"Layer 1\",\"restrictions\":[{\"end_day\":\"friday\",\"end_time\":\"17:00:00\",\"start_day\":\"monday\",\"start_time\":\"09:00:00\"}],\"rotation_start\":\"2025-11-13T13:04:14.085Z\"}],\"name\":\"Test-Set_On_Call_team_routing_rules_returns_OK_response-1763471054\",\"time_zone\":\"America/New_York\"},\"relationships\":{\"teams\":{\"data\":[{\"id\":\"65aea9d0-941c-4607-bf8a-14fc0dac2820\",\"type\":\"teams\"}]}},\"type\":\"schedules\"}}" }, "queryString": [], "url": "https://api.datadoghq.com/api/v2/on-call/schedules" @@ -148,7 +148,7 @@ "content": { "mimeType": "application/vnd.api+json", "size": 375, - "text": "{\"data\":{\"id\":\"60ddefa7-5b46-44e1-aabc-2c5b5b2e6fc1\",\"type\":\"schedules\",\"attributes\":{\"name\":\"Test-Set_On_Call_team_routing_rules_returns_OK_response-1748494452\",\"time_zone\":\"America/New_York\"},\"relationships\":{\"layers\":{\"data\":[{\"id\":\"4617f090-9118-4ce6-9b58-4432d311d4b4\",\"type\":\"layers\"}]},\"teams\":{\"data\":[{\"id\":\"65aea9d0-941c-4607-bf8a-14fc0dac2820\",\"type\":\"teams\"}]}}}}" + "text": "{\"data\":{\"id\":\"10ab1649-e333-41ac-9271-3484b87939a7\",\"type\":\"schedules\",\"attributes\":{\"name\":\"Test-Set_On_Call_team_routing_rules_returns_OK_response-1763471054\",\"time_zone\":\"America/New_York\"},\"relationships\":{\"layers\":{\"data\":[{\"id\":\"f0e28d78-8563-4d83-8d67-0b079bd7fab7\",\"type\":\"layers\"}]},\"teams\":{\"data\":[{\"id\":\"65aea9d0-941c-4607-bf8a-14fc0dac2820\",\"type\":\"teams\"}]}}}}" }, "cookies": [], "headers": [ @@ -163,11 +163,11 @@ "status": 201, "statusText": "Created" }, - "startedDateTime": "2025-05-29T04:54:13.700Z", - "time": 630 + "startedDateTime": "2025-11-18T13:04:15.799Z", + "time": 268 }, { - "_id": "4e18913ff0861f90b5f62576874ae6bb", + "_id": "87915a697808ad5eea435b9665936dd6", "_order": 0, "cache": {}, "request": { @@ -185,13 +185,13 @@ "value": "application/json" } ], - "headersSize": 590, + "headersSize": 589, "httpVersion": "HTTP/1.1", "method": "POST", "postData": { "mimeType": "application/json", "params": [], - "text": "{\"data\":{\"attributes\":{\"name\":\"Test-Set_On_Call_team_routing_rules_returns_OK_response-1748494452\",\"resolve_page_on_policy_end\":true,\"retries\":2,\"steps\":[{\"assignment\":\"default\",\"escalate_after_seconds\":3600,\"targets\":[{\"id\":\"08b1cecb-154b-45ca-bafa-a7f0b3196b8d\",\"type\":\"teams\"},{\"id\":\"60ddefa7-5b46-44e1-aabc-2c5b5b2e6fc1\",\"type\":\"schedules\"},{\"id\":\"f70b5bc2-3c48-11f0-90c9-4ad2f0f8c382\",\"type\":\"users\"}]},{\"assignment\":\"round-robin\",\"escalate_after_seconds\":3600,\"targets\":[{\"id\":\"08b1cecb-154b-45ca-bafa-a7f0b3196b8d\",\"type\":\"teams\"}]}]},\"relationships\":{\"teams\":{\"data\":[{\"id\":\"08b1cecb-154b-45ca-bafa-a7f0b3196b8d\",\"type\":\"teams\"}]}},\"type\":\"policies\"}}" + "text": "{\"data\":{\"attributes\":{\"name\":\"Test-Set_On_Call_team_routing_rules_returns_OK_response-1763471054\",\"resolve_page_on_policy_end\":true,\"retries\":2,\"steps\":[{\"assignment\":\"default\",\"escalate_after_seconds\":3600,\"targets\":[{\"id\":\"8ab3f777-435e-42b6-8511-0c9020365b8d\",\"type\":\"teams\"},{\"id\":\"10ab1649-e333-41ac-9271-3484b87939a7\",\"type\":\"schedules\"},{\"id\":\"15c47aed-c47f-11f0-9f0b-be6d33dcd787\",\"type\":\"users\"}]},{\"assignment\":\"round-robin\",\"escalate_after_seconds\":3600,\"targets\":[{\"id\":\"8ab3f777-435e-42b6-8511-0c9020365b8d\",\"type\":\"teams\"}]}]},\"relationships\":{\"teams\":{\"data\":[{\"id\":\"8ab3f777-435e-42b6-8511-0c9020365b8d\",\"type\":\"teams\"}]}},\"type\":\"policies\"}}" }, "queryString": [], "url": "https://api.datadoghq.com/api/v2/on-call/escalation-policies" @@ -201,7 +201,7 @@ "content": { "mimeType": "application/vnd.api+json", "size": 448, - "text": "{\"data\":{\"id\":\"fc37a01c-221f-45e6-bc76-57ff1c182117\",\"type\":\"policies\",\"attributes\":{\"name\":\"Test-Set_On_Call_team_routing_rules_returns_OK_response-1748494452\",\"resolve_page_on_policy_end\":true,\"retries\":2},\"relationships\":{\"steps\":{\"data\":[{\"id\":\"46a2be27-34f0-4e0c-b1aa-a8141fbe64ed\",\"type\":\"steps\"},{\"id\":\"6ea28a95-8be6-4a8a-a5ca-c20ed36a8cf4\",\"type\":\"steps\"}]},\"teams\":{\"data\":[{\"id\":\"08b1cecb-154b-45ca-bafa-a7f0b3196b8d\",\"type\":\"teams\"}]}}}}" + "text": "{\"data\":{\"id\":\"ad66e3aa-4df4-4ab0-b928-03abd68cc44e\",\"type\":\"policies\",\"attributes\":{\"name\":\"Test-Set_On_Call_team_routing_rules_returns_OK_response-1763471054\",\"resolve_page_on_policy_end\":true,\"retries\":2},\"relationships\":{\"steps\":{\"data\":[{\"id\":\"975ba331-0aaa-4878-9660-c1f580b01711\",\"type\":\"steps\"},{\"id\":\"4b342992-de9c-4163-9360-ee63a115519a\",\"type\":\"steps\"}]},\"teams\":{\"data\":[{\"id\":\"8ab3f777-435e-42b6-8511-0c9020365b8d\",\"type\":\"teams\"}]}}}}" }, "cookies": [], "headers": [ @@ -216,11 +216,11 @@ "status": 201, "statusText": "Created" }, - "startedDateTime": "2025-05-29T04:54:14.339Z", - "time": 653 + "startedDateTime": "2025-11-18T13:04:16.072Z", + "time": 284 }, { - "_id": "ee9ce8e80181b8e0cc99808712b43659", + "_id": "6a3efee15b3c1bf7832c4d231d8b604c", "_order": 0, "cache": {}, "request": { @@ -238,13 +238,13 @@ "value": "application/json" } ], - "headersSize": 637, + "headersSize": 636, "httpVersion": "HTTP/1.1", "method": "PUT", "postData": { "mimeType": "application/json", "params": [], - "text": "{\"data\":{\"attributes\":{\"rules\":[{\"actions\":[{\"channel\":\"channel\",\"type\":\"send_slack_message\",\"workspace\":\"workspace\"}],\"query\":\"tags.service:test\",\"time_restriction\":{\"restrictions\":[{\"end_day\":\"monday\",\"end_time\":\"17:00:00\",\"start_day\":\"monday\",\"start_time\":\"09:00:00\"},{\"end_day\":\"tuesday\",\"end_time\":\"17:00:00\",\"start_day\":\"tuesday\",\"start_time\":\"09:00:00\"}],\"time_zone\":\"Europe/Paris\"}},{\"policy_id\":\"fc37a01c-221f-45e6-bc76-57ff1c182117\",\"query\":\"\",\"urgency\":\"low\"}]},\"id\":\"08b1cecb-154b-45ca-bafa-a7f0b3196b8d\",\"type\":\"team_routing_rules\"}}" + "text": "{\"data\":{\"attributes\":{\"rules\":[{\"actions\":[{\"channel\":\"channel\",\"type\":\"send_slack_message\",\"workspace\":\"workspace\"}],\"query\":\"tags.service:test\",\"time_restriction\":{\"restrictions\":[{\"end_day\":\"monday\",\"end_time\":\"17:00:00\",\"start_day\":\"monday\",\"start_time\":\"09:00:00\"},{\"end_day\":\"tuesday\",\"end_time\":\"17:00:00\",\"start_day\":\"tuesday\",\"start_time\":\"09:00:00\"}],\"time_zone\":\"Europe/Paris\"}},{\"policy_id\":\"ad66e3aa-4df4-4ab0-b928-03abd68cc44e\",\"query\":\"\",\"urgency\":\"low\"}]},\"id\":\"8ab3f777-435e-42b6-8511-0c9020365b8d\",\"type\":\"team_routing_rules\"}}" }, "queryString": [ { @@ -252,14 +252,14 @@ "value": "rules" } ], - "url": "https://api.datadoghq.com/api/v2/on-call/teams/08b1cecb-154b-45ca-bafa-a7f0b3196b8d/routing-rules?include=rules" + "url": "https://api.datadoghq.com/api/v2/on-call/teams/8ab3f777-435e-42b6-8511-0c9020365b8d/routing-rules?include=rules" }, "response": { "bodySize": 1056, "content": { "mimeType": "application/vnd.api+json", "size": 1056, - "text": "{\"data\":{\"id\":\"08b1cecb-154b-45ca-bafa-a7f0b3196b8d\",\"type\":\"team_routing_rules\",\"relationships\":{\"rules\":{\"data\":[{\"id\":\"virtual-08b1cecb-154b-45ca-bafa-a7f0b3196b8d-rule-0\",\"type\":\"team_routing_rules\"},{\"id\":\"virtual-08b1cecb-154b-45ca-bafa-a7f0b3196b8d-rule-1\",\"type\":\"team_routing_rules\"}]}}},\"included\":[{\"id\":\"virtual-08b1cecb-154b-45ca-bafa-a7f0b3196b8d-rule-0\",\"type\":\"team_routing_rules\",\"attributes\":{\"actions\":[{\"type\":\"send_slack_message\",\"channel\":\"channel\",\"workspace\":\"workspace\"}],\"query\":\"tags.service:test\",\"time_restriction\":{\"time_zone\":\"Europe/Paris\",\"restrictions\":[{\"start_time\":\"09:00:00\",\"start_day\":\"monday\",\"end_time\":\"17:00:00\",\"end_day\":\"monday\"},{\"start_time\":\"09:00:00\",\"start_day\":\"tuesday\",\"end_time\":\"17:00:00\",\"end_day\":\"tuesday\"}]}},\"relationships\":{\"policy\":{\"data\":null}}},{\"id\":\"virtual-08b1cecb-154b-45ca-bafa-a7f0b3196b8d-rule-1\",\"type\":\"team_routing_rules\",\"attributes\":{\"actions\":[],\"query\":\"\",\"urgency\":\"low\"},\"relationships\":{\"policy\":{\"data\":{\"id\":\"fc37a01c-221f-45e6-bc76-57ff1c182117\",\"type\":\"policies\"}}}}]}" + "text": "{\"data\":{\"id\":\"8ab3f777-435e-42b6-8511-0c9020365b8d\",\"type\":\"team_routing_rules\",\"relationships\":{\"rules\":{\"data\":[{\"id\":\"virtual-8ab3f777-435e-42b6-8511-0c9020365b8d-rule-0\",\"type\":\"team_routing_rules\"},{\"id\":\"virtual-8ab3f777-435e-42b6-8511-0c9020365b8d-rule-1\",\"type\":\"team_routing_rules\"}]}}},\"included\":[{\"id\":\"virtual-8ab3f777-435e-42b6-8511-0c9020365b8d-rule-0\",\"type\":\"team_routing_rules\",\"attributes\":{\"actions\":[{\"type\":\"send_slack_message\",\"channel\":\"channel\",\"workspace\":\"workspace\"}],\"query\":\"tags.service:test\",\"time_restriction\":{\"time_zone\":\"Europe/Paris\",\"restrictions\":[{\"start_time\":\"09:00:00\",\"start_day\":\"monday\",\"end_time\":\"17:00:00\",\"end_day\":\"monday\"},{\"start_time\":\"09:00:00\",\"start_day\":\"tuesday\",\"end_time\":\"17:00:00\",\"end_day\":\"tuesday\"}]}},\"relationships\":{\"policy\":{\"data\":null}}},{\"id\":\"virtual-8ab3f777-435e-42b6-8511-0c9020365b8d-rule-1\",\"type\":\"team_routing_rules\",\"attributes\":{\"actions\":[],\"query\":\"\",\"urgency\":\"low\"},\"relationships\":{\"policy\":{\"data\":{\"id\":\"ad66e3aa-4df4-4ab0-b928-03abd68cc44e\",\"type\":\"policies\"}}}}]}" }, "cookies": [], "headers": [ @@ -274,35 +274,45 @@ "status": 200, "statusText": "OK" }, - "startedDateTime": "2025-05-29T04:54:15.007Z", - "time": 656 + "startedDateTime": "2025-11-18T13:04:16.363Z", + "time": 275 }, { - "_id": "560d1328da1db9090e18870763c062ed", + "_id": "2c30a450c62483c92cdf496f9b231544", "_order": 0, "cache": {}, "request": { - "bodySize": 0, + "bodySize": 108, "cookies": [], "headers": [ { "_fromType": "array", "name": "accept", - "value": "*/*" + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" } ], - "headersSize": 563, + "headersSize": 622, "httpVersion": "HTTP/1.1", - "method": "DELETE", + "method": "PUT", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"data\":{\"attributes\":{\"rules\":[]},\"id\":\"8ab3f777-435e-42b6-8511-0c9020365b8d\",\"type\":\"team_routing_rules\"}}" + }, "queryString": [], - "url": "https://api.datadoghq.com/api/v2/on-call/escalation-policies/fc37a01c-221f-45e6-bc76-57ff1c182117" + "url": "https://api.datadoghq.com/api/v2/on-call/teams/8ab3f777-435e-42b6-8511-0c9020365b8d/routing-rules" }, "response": { - "bodySize": 104, + "bodySize": 120, "content": { "mimeType": "application/vnd.api+json", - "size": 104, - "text": "{\"errors\":[{\"title\":\"Generic Error\",\"detail\":\"policy[fc37a01c-221f-45e6-bc76-57ff1c182117] is in use\"}]}" + "size": 120, + "text": "{\"data\":{\"id\":\"8ab3f777-435e-42b6-8511-0c9020365b8d\",\"type\":\"team_routing_rules\",\"relationships\":{\"rules\":{\"data\":[]}}}}" }, "cookies": [], "headers": [ @@ -314,14 +324,14 @@ "headersSize": 525, "httpVersion": "HTTP/1.1", "redirectURL": "", - "status": 409, - "statusText": "Conflict" + "status": 200, + "statusText": "OK" }, - "startedDateTime": "2025-05-29T04:54:15.680Z", - "time": 618 + "startedDateTime": "2025-11-18T13:04:16.643Z", + "time": 311 }, { - "_id": "ba88265577b68d0bcb2f86b561c18f62", + "_id": "894ed436a007131606686bc54a40d1ba", "_order": 0, "cache": {}, "request": { @@ -334,37 +344,68 @@ "value": "*/*" } ], - "headersSize": 545, + "headersSize": 562, "httpVersion": "HTTP/1.1", "method": "DELETE", "queryString": [], - "url": "https://api.datadoghq.com/api/v2/on-call/schedules/60ddefa7-5b46-44e1-aabc-2c5b5b2e6fc1" + "url": "https://api.datadoghq.com/api/v2/on-call/escalation-policies/ad66e3aa-4df4-4ab0-b928-03abd68cc44e" }, "response": { - "bodySize": 106, + "bodySize": 0, "content": { - "mimeType": "application/vnd.api+json", - "size": 106, - "text": "{\"errors\":[{\"title\":\"Generic Error\",\"detail\":\"schedule[60ddefa7-5b46-44e1-aabc-2c5b5b2e6fc1] is in use\"}]}" + "mimeType": "text/plain", + "size": 0 }, "cookies": [], + "headers": [], + "headersSize": 464, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 204, + "statusText": "No Content" + }, + "startedDateTime": "2025-11-18T13:04:16.957Z", + "time": 254 + }, + { + "_id": "797df6bc5832d5b37f14c34dac958c13", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], "headers": [ { - "name": "content-type", - "value": "application/vnd.api+json" + "_fromType": "array", + "name": "accept", + "value": "*/*" } ], - "headersSize": 525, + "headersSize": 544, + "httpVersion": "HTTP/1.1", + "method": "DELETE", + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/on-call/schedules/10ab1649-e333-41ac-9271-3484b87939a7" + }, + "response": { + "bodySize": 0, + "content": { + "mimeType": "text/plain", + "size": 0 + }, + "cookies": [], + "headers": [], + "headersSize": 464, "httpVersion": "HTTP/1.1", "redirectURL": "", - "status": 409, - "statusText": "Conflict" + "status": 204, + "statusText": "No Content" }, - "startedDateTime": "2025-05-29T04:54:16.310Z", - "time": 608 + "startedDateTime": "2025-11-18T13:04:17.214Z", + "time": 273 }, { - "_id": "b2714d900e25979a79e96500f2da3b9d", + "_id": "5f0b04b22fafcb90e03f7f4c143d8701", "_order": 0, "cache": {}, "request": { @@ -377,11 +418,11 @@ "value": "*/*" } ], - "headersSize": 522, + "headersSize": 521, "httpVersion": "HTTP/1.1", "method": "DELETE", "queryString": [], - "url": "https://api.datadoghq.com/api/v2/team/08b1cecb-154b-45ca-bafa-a7f0b3196b8d" + "url": "https://api.datadoghq.com/api/v2/team/8ab3f777-435e-42b6-8511-0c9020365b8d" }, "response": { "bodySize": 0, @@ -397,11 +438,11 @@ "status": 204, "statusText": "No Content" }, - "startedDateTime": "2025-05-29T04:54:16.927Z", - "time": 716 + "startedDateTime": "2025-11-18T13:04:17.490Z", + "time": 408 }, { - "_id": "cb936542180b34731a26340e3ca4ea10", + "_id": "b39d7b8fb1fabd8f82c0b0e73dc4bfe3", "_order": 0, "cache": {}, "request": { @@ -414,11 +455,11 @@ "value": "*/*" } ], - "headersSize": 524, + "headersSize": 523, "httpVersion": "HTTP/1.1", "method": "DELETE", "queryString": [], - "url": "https://api.datadoghq.com/api/v2/users/f70b5bc2-3c48-11f0-90c9-4ad2f0f8c382" + "url": "https://api.datadoghq.com/api/v2/users/15c47aed-c47f-11f0-9f0b-be6d33dcd787" }, "response": { "bodySize": 0, @@ -434,8 +475,8 @@ "status": 204, "statusText": "No Content" }, - "startedDateTime": "2025-05-29T04:54:17.648Z", - "time": 770 + "startedDateTime": "2025-11-18T13:04:17.901Z", + "time": 412 } ], "pages": [], diff --git a/features/v2/undo.json b/features/v2/undo.json index 0ed8bec8f3ea..3799e64e630d 100644 --- a/features/v2/undo.json +++ b/features/v2/undo.json @@ -2829,7 +2829,18 @@ "SetOnCallTeamRoutingRules": { "tag": "On-Call", "undo": { - "type": "idempotent" + "operationId": "SetOnCallTeamRoutingRules", + "parameters": [ + { + "name": "team_id", + "source": "data.id" + }, + { + "name": "body", + "template": "{\n \"data\": {\n \"type\": \"team_routing_rules\",\n \"id\": \"{{ data.id }}\",\n \"attributes\": {\n \"rules\": []\n }\n }\n}" + } + ], + "type": "unsafe" } }, "ListOrgConfigs": {