{"openapi":"3.1.0","info":{"title":"api-v3","version":"2"},"servers":[{"url":"https://client.apimetrics.io/api/3"}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"Authorization"}}},"security":[{"ApiKeyAuth":[]}],"paths":{"/project/analytics/calls-monthly":{"get":{"summary":"Get Monthly Project Data Report","description":"Use this API to get a monthly report for your project.","operationId":"get-monthly-project-data-report","parameters":[{"name":"start_date","in":"query","description":"Must be in ISO 8601 date format e.g. 2024-05-01","required":true,"schema":{"type":"string","format":"date"}},{"name":"Accept","in":"header","description":"Use \"text/csv\" to receive the data in CSV format","schema":{"type":"string","default":"application/json"}},{"name":"Apimetrics-Project-Id","in":"header","description":"Use the desired Project ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"JSON":{"value":"{\n  \"meta\": {\n    \"report_type\": \"project_monthly\",\n    \"version\": 1,\n    \"project_id\": \"APImetrics APIs\",\n    \"month\": \"2024-08-01\",\n    \"created_at\": \"2024-08-19T23:14:38.107406\"\n  },\n  \"data\": [\n    {\n      \"day\": \"2024-08-01\",\n      \"test_id\": \"Audits List\",\n      \"pass_count\": 144,\n      \"slow_count\": 0,\n      \"warn_count\": 0,\n      \"fail_count\": 0,\n      \"total\": 144,\n      \"avg_server_time\": 1360.865486111111,\n      \"sum_server_time\": 195964.63,\n      \"url\": \"https://client.apimetrics.io/api/2/audits/\"\n    },\n    {\n      \"day\": \"2024-08-01\",\n      \"test_id\": \"Files List\",\n      \"pass_count\": 144,\n      \"slow_count\": 0,\n      \"warn_count\": 0,\n      \"fail_count\": 0,\n      \"total\": 144,\n      \"avg_server_time\": 189.64794444444448,\n      \"sum_server_time\": 27309.304000000007,\n      \"url\": \"https://client.apimetrics.io/api/2/files/\"\n    },\n    {\n      \"day\": \"2024-08-01\",\n      \"test_id\": \"Project Synopsis Get\",\n      \"pass_count\": 143,\n      \"slow_count\": 0,\n      \"warn_count\": 0,\n      \"fail_count\": 0,\n      \"total\": 143,\n      \"avg_server_time\": 508.0842867132867,\n      \"sum_server_time\": 72656.05300000001,\n      \"url\": \"https://client.apimetrics.io/api/2/project/synopsis\"\n    },\n    {\n      \"day\": \"2024-08-17\",\n      \"test_id\": \"Insights List\",\n      \"pass_count\": 143,\n      \"slow_count\": 0,\n      \"warn_count\": 0,\n      \"fail_count\": 0,\n      \"total\": 143,\n      \"avg_server_time\": 313.92235664335686,\n      \"sum_server_time\": 44890.89700000001,\n      \"url\": \"https://client.apimetrics.io/api/2/insights/\"\n    },\n    {\n      \"day\": \"2024-08-17\",\n      \"test_id\": \"Results List\",\n      \"pass_count\": 143,\n      \"slow_count\": 0,\n      \"warn_count\": 0,\n      \"fail_count\": 0,\n      \"total\": 143,\n      \"avg_server_time\": 373.08416083916086,\n      \"sum_server_time\": 53351.03499999998,\n      \"url\": \"https://client.apimetrics.io/api/2/results/\"\n    },\n    {\n      \"day\": \"2024-08-18\",\n      \"test_id\": \"Hooks List (has outgoing webhook)\",\n      \"pass_count\": 1429,\n      \"slow_count\": 0,\n      \"warn_count\": 0,\n      \"fail_count\": 0,\n      \"total\": 1429,\n      \"avg_server_time\": 168.155687193842,\n      \"sum_server_time\": 240294.47700000004,\n      \"url\": \"https://client.apimetrics.io/api/2/hooks/\"\n    },\n    {\n      \"day\": \"2024-08-18\",\n      \"test_id\": \"Webhooks List\",\n      \"pass_count\": 143,\n      \"slow_count\": 0,\n      \"warn_count\": 0,\n      \"fail_count\": 0,\n      \"total\": 143,\n      \"avg_server_time\": 175.40404195804194,\n      \"sum_server_time\": 25082.778000000002,\n      \"url\": \"https://client.apimetrics.io/api/2/webhooks/\"\n    },\n    {\n      \"day\": \"2024-08-18\",\n      \"test_id\": \"Workflows List\",\n      \"pass_count\": 1428,\n      \"slow_count\": 0,\n      \"warn_count\": 0,\n      \"fail_count\": 0,\n      \"total\": 1428,\n      \"avg_server_time\": 174.95439775910367,\n      \"sum_server_time\": 249834.88000000012,\n      \"url\": \"https://client.apimetrics.io/api/2/workflows/\"\n    },\n    {\n      \"day\": \"2024-08-18\",\n      \"test_id\": \"Auth List\",\n      \"pass_count\": 1428,\n      \"slow_count\": 0,\n      \"warn_count\": 0,\n      \"fail_count\": 0,\n      \"total\": 1428,\n      \"avg_server_time\": 165.99024159663873,\n      \"sum_server_time\": 237034.06499999994,\n      \"url\": \"https://client.apimetrics.io/api/2/auth/\"\n    },\n    {\n      \"day\": \"2024-08-18\",\n      \"test_id\": \"Hooks Get Hook\",\n      \"pass_count\": 1429,\n      \"slow_count\": 0,\n      \"warn_count\": 0,\n      \"fail_count\": 0,\n      \"total\": 1429,\n      \"avg_server_time\": 158.85384394681589,\n      \"sum_server_time\": 227002.14300000016,\n      \"url\": \"https://client.apimetrics.io/api/2/hooks/__HOOK_ID__/\"\n    },\n    {\n      \"day\": \"2024-08-18\",\n      \"test_id\": \"Audits List\",\n      \"pass_count\": 143,\n      \"slow_count\": 0,\n      \"warn_count\": 0,\n      \"fail_count\": 0,\n      \"total\": 143,\n      \"avg_server_time\": 1052.0964755244756,\n      \"sum_server_time\": 150449.79599999997,\n      \"url\": \"https://client.apimetrics.io/api/2/audits/\"\n    },\n    {\n      \"day\": \"2024-08-18\",\n      \"test_id\": \"Reports List\",\n      \"pass_count\": 1429,\n      \"slow_count\": 0,\n      \"warn_count\": 0,\n      \"fail_count\": 0,\n      \"total\": 1429,\n      \"avg_server_time\": 176.56326172148374,\n      \"sum_server_time\": 252308.90099999987,\n      \"url\": \"https://client.apimetrics.io/api/2/reports/\"\n    },\n    {\n      \"day\": \"2024-08-18\",\n      \"test_id\": \"Insights Rank\",\n      \"pass_count\": 142,\n      \"slow_count\": 0,\n      \"warn_count\": 0,\n      \"fail_count\": 0,\n      \"total\": 142,\n      \"avg_server_time\": 287.9506830985916,\n      \"sum_server_time\": 40888.99699999999,\n      \"url\": \"https://client.apimetrics.io/api/2/insights/rank/\"\n    },\n    {\n      \"day\": \"2024-08-19\",\n      \"test_id\": \"Insights List\",\n      \"pass_count\": 138,\n      \"slow_count\": 0,\n      \"warn_count\": 0,\n      \"fail_count\": 0,\n      \"total\": 138,\n      \"avg_server_time\": 350.361347826087,\n      \"sum_server_time\": 48349.866,\n      \"url\": \"https://client.apimetrics.io/api/2/insights/\"\n    },\n    {\n      \"day\": \"2024-08-19\",\n      \"test_id\": \"Results List\",\n      \"pass_count\": 139,\n      \"slow_count\": 0,\n      \"warn_count\": 0,\n      \"fail_count\": 0,\n      \"total\": 139,\n      \"avg_server_time\": 368.1123381294964,\n      \"sum_server_time\": 51167.615,\n      \"url\": \"https://client.apimetrics.io/api/2/results/\"\n    }\n  ]\n}"}},"schema":{"type":"object","properties":{"meta":{"type":"object","properties":{"report_type":{"type":"string","example":"project_monthly"},"version":{"type":"integer","example":1,"default":0},"project_id":{"type":"string","example":"APImetrics APIs"},"month":{"type":"string","example":"2024-08-01"},"created_at":{"type":"string","example":"2024-08-19T23:14:38.107406"}}},"data":{"type":"array","items":{"type":"object","properties":{"day":{"type":"string","example":"2024-08-01"},"test_id":{"type":"string","example":"Audits List"},"pass_count":{"type":"integer","example":144,"default":0},"slow_count":{"type":"integer","example":0,"default":0},"warn_count":{"type":"integer","example":0,"default":0},"fail_count":{"type":"integer","example":0,"default":0},"total":{"type":"integer","example":144,"default":0},"avg_server_time":{"type":"number","example":1360.865486111111,"default":0},"sum_server_time":{"type":"number","example":195964.63,"default":0},"url":{"type":"string","example":"https://client.apimetrics.io/api/2/audits/"}}}}}}},"text/plain":{"examples":{"CSV":{"value":"day,test_id,pass_count,slow_count,warn_count,fail_count,total,avg_server_time,sum_server_time,url\n2024-08-01,Workflows List,1440,0,0,0,1440,204.23675069444442,294100.9209999998,https://client.apimetrics.io/api/2/workflows/\n2024-08-01,Auth List,1440,0,0,0,1440,195.1278534722223,280984.1090000002,https://client.apimetrics.io/api/2/auth/\n2024-08-01,Hooks Get Hook,1440,0,0,0,1440,183.3836451388892,264072.44900000026,https://client.apimetrics.io/api/2/hooks/__HOOK_ID__/\n2024-08-01,Audits List,144,0,0,0,144,1360.865486111111,195964.63,https://client.apimetrics.io/api/2/audits/\n2024-08-01,Files List,144,0,0,0,144,189.64794444444448,27309.304000000007,https://client.apimetrics.io/api/2/files/\n2024-08-01,Project Synopsis Get,143,0,0,0,143,508.0842867132867,72656.05300000001,https://client.apimetrics.io/api/2/project/synopsis\n"}}}}}},"deprecated":false}},"/organizations/{org_id}/analytics/slow-calls-daily":{"get":{"summary":"Get Daily Project Slow Data Report","description":"Use this API to retrieve slow data reports for all projects within a date range","operationId":"get-daily-project-data-report","parameters":[{"name":"org_id","in":"path","description":"The Organization ID that owns all the projects","schema":{"type":"string"},"required":true},{"name":"start_date","in":"query","description":"Must be in ISO 8601 date format e.g. 2024-05-01","required":true,"schema":{"type":"string","format":"date"}},{"name":"end_date","in":"query","description":"Must be in ISO 8601 date format e.g. 2024-05-01","required":true,"schema":{"type":"string","format":"date"}},{"name":"thresholds","in":"query","description":"Time in milliseconds to use as thresholds for SLOWs, e.g. 700, 800, 900, 1000, 2000","schema":{"type":"array","items":{"type":"string"}}},{"name":"Accept","in":"header","description":"Use \"text/csv\" for CSV formatted data","schema":{"type":"string","default":"application/json"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"JSON":{"value":"{\n  \"meta\": {\n    \"report_type\": \"slow_calls_daily\",\n    \"version\": 1,\n    \"start_date\": \"2024-08-01\",\n    \"end_date\": \"2024-08-03\",\n    \"created_at\": \"2024-08-19T21:23:32.530241\"\n  },\n  \"data\": [\n    {\n      \"day\": \"2024-08-01\",\n      \"project_id\": \"APImetrics APIs\",\n      \"pass_count\": 35095,\n      \"slow700_count\": 50,\n      \"slow800_count\": 72,\n      \"slow900_count\": 38,\n      \"slow1000_count\": 184,\n      \"slow2000_count\": 285,\n      \"warn_count\": 0,\n      \"fail_count\": 1,\n      \"total\": 35725\n    },\n    {\n      \"day\": \"2024-08-01\",\n      \"project_id\": \"APImetrics v3 APIs\",\n      \"pass_count\": 261,\n      \"slow700_count\": 17,\n      \"slow800_count\": 5,\n      \"slow900_count\": 0,\n      \"slow1000_count\": 3,\n      \"slow2000_count\": 2,\n      \"warn_count\": 0,\n      \"fail_count\": 0,\n      \"total\": 288\n    },\n    {\n      \"day\": \"2024-08-02\",\n      \"project_id\": \"APImetrics APIs\",\n      \"pass_count\": 35141,\n      \"slow700_count\": 57,\n      \"slow800_count\": 63,\n      \"slow900_count\": 39,\n      \"slow1000_count\": 191,\n      \"slow2000_count\": 227,\n      \"warn_count\": 0,\n      \"fail_count\": 6,\n      \"total\": 35724\n    },\n    {\n      \"day\": \"2024-08-02\",\n      \"project_id\": \"APImetrics v3 APIs\",\n      \"pass_count\": 258,\n      \"slow700_count\": 17,\n      \"slow800_count\": 3,\n      \"slow900_count\": 3,\n      \"slow1000_count\": 3,\n      \"slow2000_count\": 4,\n      \"warn_count\": 0,\n      \"fail_count\": 0,\n      \"total\": 288\n    }\n  ]\n}"}},"schema":{"type":"object","properties":{"meta":{"type":"object","properties":{"report_type":{"type":"string","example":"slow_calls_daily"},"version":{"type":"integer","example":1,"default":0},"start_date":{"type":"string","example":"2024-08-01"},"end_date":{"type":"string","example":"2024-08-03"},"created_at":{"type":"string","example":"2024-08-19T21:23:32.530241"}}},"data":{"type":"array","items":{"type":"object","properties":{"day":{"type":"string","example":"2024-08-01"},"project_id":{"type":"string","example":"APImetrics APIs"},"pass_count":{"type":"integer","example":35095,"default":0},"slow700_count":{"type":"integer","example":50,"default":0},"slow800_count":{"type":"integer","example":72,"default":0},"slow900_count":{"type":"integer","example":38,"default":0},"slow1000_count":{"type":"integer","example":184,"default":0},"slow2000_count":{"type":"integer","example":285,"default":0},"warn_count":{"type":"integer","example":0,"default":0},"fail_count":{"type":"integer","example":1,"default":0},"total":{"type":"integer","example":35725,"default":0}}}}}}},"text/plain":{"examples":{"CSV":{"value":"day,project_id,pass_count,slow700_count,slow800_count,slow900_count,slow1000_count,slow2000_count,warn_count,fail_count,total\n2024-08-01,APImetrics APIs,35095,50,72,38,184,285,0,1,35725\n2024-08-01,APImetrics v3 APIs,261,17,5,0,3,2,0,0,288\n2024-08-02,APImetrics APIs,35141,57,63,39,191,227,0,6,35724\n2024-08-02,APImetrics v3 APIs,258,17,3,3,3,4,0,0,288\n"}}}}}},"deprecated":false}},"/organizations/{org_id}/analytics/slow-calls-monthly":{"get":{"summary":"Get Monthly Project Slow Data Report by Endpoint","description":"Use this API to retrieve a slow data report for each individual API endpoint across all projects within the specified month. The report will include aggregated slow data for each endpoint during the given monthly period.","operationId":"get-monthly-project-slow-data-report","parameters":[{"name":"org_id","in":"path","description":"The Organization ID that owns all the projects","schema":{"type":"string"},"required":true},{"name":"start_date","in":"query","description":"Must be in ISO 8601 date format e.g. 2024-05-01","required":true,"schema":{"type":"string","format":"date"}},{"name":"thresholds","in":"query","description":"Time in milliseconds to use as thresholds for SLOWs, e.g. 700, 800, 900, 1000, 2000","schema":{"type":"array","items":{"type":"string"}}},{"name":"Accept","in":"header","description":"Use \"text/csv\" for CSV formatted data","schema":{"type":"string","default":"application/json"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"JSON":{"value":"{\n  \"meta\": {\n    \"report_type\": \"slow_calls_monthly\",\n    \"version\": 1,\n    \"start_date\": \"2024-07-01\",\n    \"end_date\": \"2024-08-02\",\n    \"created_at\": \"2024-08-19T22:11:46.125494\"\n  },\n  \"data\": [\n    {\n      \"month\": \"2024-07-01\",\n      \"project_id\": \"APImetrics APIs\",\n      \"test_id\": \"Webhooks List\",\n      \"pass_count\": 4411,\n      \"slow700_count\": 2,\n      \"slow800_count\": 1,\n      \"slow900_count\": 0,\n      \"slow1000_count\": 10,\n      \"slow2000_count\": 8,\n      \"warn_count\": 0,\n      \"fail_count\": 1,\n      \"total\": 4433\n    },\n    {\n      \"month\": \"2024-07-01\",\n      \"project_id\": \"APImetrics APIs\",\n      \"test_id\": \"Workflows List\",\n      \"pass_count\": 44119,\n      \"slow700_count\": 52,\n      \"slow800_count\": 11,\n      \"slow900_count\": 11,\n      \"slow1000_count\": 56,\n      \"slow2000_count\": 86,\n      \"warn_count\": 0,\n      \"fail_count\": 2,\n      \"total\": 44337\n    },\n    {\n      \"month\": \"2024-07-01\",\n      \"project_id\": \"APImetrics APIs\",\n      \"test_id\": \"Auth List\",\n      \"pass_count\": 44145,\n      \"slow700_count\": 31,\n      \"slow800_count\": 10,\n      \"slow900_count\": 12,\n      \"slow1000_count\": 49,\n      \"slow2000_count\": 82,\n      \"warn_count\": 0,\n      \"fail_count\": 2,\n      \"total\": 44331\n    },\n    {\n      \"month\": \"2024-07-01\",\n      \"project_id\": \"APImetrics APIs\",\n      \"test_id\": \"Hooks Get Hook\",\n      \"pass_count\": 44202,\n      \"slow700_count\": 23,\n      \"slow800_count\": 13,\n      \"slow900_count\": 7,\n      \"slow1000_count\": 42,\n      \"slow2000_count\": 67,\n      \"warn_count\": 0,\n      \"fail_count\": 3,\n      \"total\": 44357\n    },\n    {\n      \"month\": \"2024-07-01\",\n      \"project_id\": \"APImetrics APIs\",\n      \"test_id\": \"Audits List\",\n      \"pass_count\": 0,\n      \"slow700_count\": 14,\n      \"slow800_count\": 165,\n      \"slow900_count\": 509,\n      \"slow1000_count\": 3484,\n      \"slow2000_count\": 253,\n      \"warn_count\": 0,\n      \"fail_count\": 0,\n      \"total\": 4425\n    }\n  ]\n}"}},"schema":{"type":"object","properties":{"meta":{"type":"object","properties":{"report_type":{"type":"string","example":"slow_calls_monthly"},"version":{"type":"integer","example":1,"default":0},"start_date":{"type":"string","example":"2024-07-01"},"end_date":{"type":"string","example":"2024-08-02"},"created_at":{"type":"string","example":"2024-08-19T22:11:46.125494"}}},"data":{"type":"array","items":{"type":"object","properties":{"month":{"type":"string","example":"2024-07-01"},"project_id":{"type":"string","example":"APImetrics APIs"},"test_id":{"type":"string","example":"Webhooks List"},"pass_count":{"type":"integer","example":4411,"default":0},"slow700_count":{"type":"integer","example":2,"default":0},"slow800_count":{"type":"integer","example":1,"default":0},"slow900_count":{"type":"integer","example":0,"default":0},"slow1000_count":{"type":"integer","example":10,"default":0},"slow2000_count":{"type":"integer","example":8,"default":0},"warn_count":{"type":"integer","example":0,"default":0},"fail_count":{"type":"integer","example":1,"default":0},"total":{"type":"integer","example":4433,"default":0}}}}}}},"text/plain":{"examples":{"CSV":{"value":"month,project_id,test_id,pass_count,slow700_count,slow800_count,slow900_count,slow1000_count,slow2000_count,warn_count,fail_count,total\n2024-07-01,APImetrics APIs,Hooks List (has outgoing webhook),44132,32,13,16,53,85,0,3,44334\n2024-07-01,APImetrics APIs,Webhooks List,4411,2,1,0,10,8,0,1,4433\n2024-07-01,APImetrics APIs,Workflows List,44119,52,11,11,56,86,0,2,44337\n2024-07-01,APImetrics APIs,Auth List,44145,31,10,12,49,82,0,2,44331\n2024-07-01,APImetrics APIs,Hooks Get Hook,44202,23,13,7,42,67,0,3,44357\n2024-07-01,APImetrics APIs,Audits List,0,14,165,509,3484,253,0,0,4425\n2024-07-01,APImetrics APIs,Files List,4409,2,0,1,11,10,0,0,4433\n2024-07-01,APImetrics APIs,Project Synopsis Get,3583,202,163,124,346,11,0,1,4430\n2024-07-01,APImetrics APIs,Timestamps List,44172,24,10,9,65,66,0,0,44346\n2024-07-01,APImetrics APIs,Reports List,44077,56,16,15,65,99,2,1,44331\n2024-07-01,APImetrics APIs,Insights Rank,3963,162,116,60,108,15,0,0,4424\n2024-07-01,APImetrics APIs,Calls List,43736,75,340,52,80,59,0,2,44344\n2024-07-01,APImetrics APIs,Reports Get Report,44188,26,12,9,41,67,0,5,44348\n2024-07-01,APImetrics APIs,Workflows Get Workflow,44221,20,10,4,55,52,0,4,44366\n2024-07-01,APImetrics APIs,Calls List by Auth,43842,114,333,62,88,63,1,2,44505\n2024-07-01,APImetrics APIs,Calls Get Call,44267,22,13,8,37,63,0,0,44410\n2024-07-01,APImetrics APIs,Auth Get Auth,44225,19,9,5,51,70,0,2,44381\n2024-07-01,APImetrics APIs,Calls List (with cursor),43791,69,341,50,69,56,1,1,44378\n2024-07-01,APImetrics APIs,Decode a JWT,44181,15,5,5,47,84,0,1,44338\n"}}}}}},"deprecated":false}},"/organizations/{org_id}/downtimes":{"get":{"summary":"List Org-level Downtimes","description":"Use this API to retrieve a comprehensive list all Downtime configurations across your Organization's projects.","operationId":"list-org-level-downtimes","parameters":[{"name":"org_id","in":"path","description":"The ID of the Organization you want to list the downtimes for","schema":{"type":"string"},"required":true}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}},"422":{"description":"422","content":{"application/json":{"examples":{"Result":{"value":"{\n  \"detail\": [\n    {\n      \"loc\": [\n        \"string\",\n        0\n      ],\n      \"msg\": \"string\",\n      \"type\": \"string\"\n    }\n  ]\n}"}},"schema":{"type":"object","properties":{"detail":{"type":"array","items":{"type":"object","properties":{"loc":{"type":"array"},"msg":{"type":"string","example":"string"},"type":{"type":"string","example":"string"}}}}}}}}}},"deprecated":false},"post":{"summary":"Create Org-level Downtime","description":"Use this API to create downtime configuration across one or more projects within your Organization.","operationId":"create-org-level-downtime","parameters":[{"name":"org_id","in":"path","description":"The ID of the Organization you want to list the downtimes for","schema":{"type":"string"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["downtime"],"properties":{"downtime":{"type":"object","description":"(set content-type: application/json)","properties":{}},"projects":{"type":"array","description":"project_id-1, project_id-2,...","items":{"type":"string"}},"repeated":{"type":"boolean","description":"Whether or not the Downtime repeats daily (or weekly)","default":false},"repeat_days":{"type":"integer","description":"If repeated, how many days later to repeat Downtime","default":0,"format":"int32"},"start_time":{"type":"string","description":"Start time of Downtime","format":"date"},"end_time":{"type":"string","description":"End time of Downtime","format":"date"},"zone":{"type":"string","description":"Timezone to use when applying Downtime","default":"UTC"}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}},"422":{"description":"422","content":{"application/json":{"examples":{"Result":{"value":"{\n  \"detail\": [\n    {\n      \"loc\": [\n        \"string\",\n        0\n      ],\n      \"msg\": \"string\",\n      \"type\": \"string\"\n    }\n  ]\n}"}},"schema":{"type":"object","properties":{"detail":{"type":"array","items":{"type":"object","properties":{"loc":{"type":"array"},"msg":{"type":"string","example":"string"},"type":{"type":"string","example":"string"}}}}}}}}}},"deprecated":false}},"/organizations/{org_id}/downtimes/{downtime_id}":{"put":{"summary":"Update Org-level Downtime","description":"Use this API to update existing downtime configuration.","operationId":"update-org-level-downtime","parameters":[{"name":"org_id","in":"path","description":"The ID of the Organization you want to update the downtimes for","schema":{"type":"string"},"required":true},{"name":"downtime_id","in":"path","description":"The ID of the downtime you want to update","schema":{"type":"string"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["downtime"],"properties":{"downtime":{"type":"object","description":"(set content-type: application/json)","properties":{}},"projects":{"type":"array","description":"project_id-1, project_id-2,...","items":{"type":"string"}},"repeated":{"type":"boolean","description":"Whether or not the Downtime repeats daily (or weekly)","default":false},"repeat_days":{"type":"integer","description":"If repeated, how many days later to repeat Downtime","default":0,"format":"int32"},"start_time":{"type":"string","description":"Start time of Downtime","format":"date"},"end_time":{"type":"string","description":"End time of Downtime","format":"date"},"zone":{"type":"string","description":"Timezone to use when applying Downtime","default":"UTC"}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}},"422":{"description":"422","content":{"application/json":{"examples":{"Result":{"value":"{\n  \"detail\": [\n    {\n      \"loc\": [\n        \"string\",\n        0\n      ],\n      \"msg\": \"string\",\n      \"type\": \"string\"\n    }\n  ]\n}"}},"schema":{"type":"object","properties":{"detail":{"type":"array","items":{"type":"object","properties":{"loc":{"type":"array"},"msg":{"type":"string","example":"string"},"type":{"type":"string","example":"string"}}}}}}}}}},"deprecated":false},"delete":{"summary":"Delete Org-level Downtime","description":"Use this API to delete an Org-level Downtime","operationId":"delete-org-level-downtime","parameters":[{"name":"org_id","in":"path","description":"The ID of the Organization you want to delete the downtime","schema":{"type":"string"},"required":true},{"name":"downtime_id","in":"path","description":"The ID of the downtime you want to delete","schema":{"type":"string"},"required":true}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}},"422":{"description":"422","content":{"application/json":{"examples":{"Result":{"value":"{\n  \"detail\": [\n    {\n      \"loc\": [\n        \"string\",\n        0\n      ],\n      \"msg\": \"string\",\n      \"type\": \"string\"\n    }\n  ]\n}"}},"schema":{"type":"object","properties":{"detail":{"type":"array","items":{"type":"object","properties":{"loc":{"type":"array"},"msg":{"type":"string","example":"string"},"type":{"type":"string","example":"string"}}}}}}}}}},"deprecated":false}}},"x-readme":{"headers":[{"key":"Authorization","value":"Bearer [[Access_Token]]"}],"explorer-enabled":true,"proxy-enabled":true},"x-readme-fauxas":true}