{ "info" : { "name" : "pagerduty-api", "schema" : "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", "description" : { }, "version" : "0.0.1" }, "item" : [ { "name" : "create_events", "item" : [ { "request" : { "url" : { "raw" : "{{BASE_URL}}/generic/2010-04-15/create_event.json", "host" : [ "{{BASE_URL}}" ], "path" : [ "generic", "2010-04-15", "create_event.json" ], "query" : [ ], "variable" : [ ] }, "method" : "POST", "description" : { "content" : "Create an alert on Pagerduty" }, "header" : [ { "key" : "Content-Type", "value" : "application/json", "description" : { "content" : "Required to send JSON body" } } ], "body" : { "raw" : "{\n \"incident_key\" : \"65c0182de0d1\",\n \"description\" : \"1e52ba708ff1\",\n \"contexts\" : {\n \"foo\" : \"bar\"\n },\n \"service_key\" : \"45565e0e5841\",\n \"client_url\" : \"a2aa824e0f42\",\n \"details\" : {\n \"foo\" : \"bar\"\n },\n \"event_type\" : \"resolve\",\n \"client\" : \"7b2453ae3f68\"\n}", "mode" : "raw" } }, "name" : "POST /generic/2010-04-15/create_event.json", "description" : { "content" : "Create an alert on Pagerduty" }, "event" : [ { "listen" : "test", "script" : { "exec" : [ "pm.test(\"POST requests should return 2xx\", function () {", " pm.response.to.be.success;", "});" ], "type" : "text/javascript" } } ], "response" : [ { "name" : "Example 200 - result", "originalRequest" : { "url" : { "raw" : "{{BASE_URL}}/generic/2010-04-15/create_event.json", "host" : [ "{{BASE_URL}}" ], "path" : [ "generic", "2010-04-15", "create_event.json" ], "query" : [ ], "variable" : [ ] }, "method" : "POST", "description" : { "content" : "Create an alert on Pagerduty" }, "header" : [ { "key" : "Content-Type", "value" : "application/json", "description" : { "content" : "Required to send JSON body" } } ], "body" : { "raw" : "{\n \"incident_key\" : \"65c0182de0d1\",\n \"description\" : \"1e52ba708ff1\",\n \"contexts\" : {\n \"foo\" : \"bar\"\n },\n \"service_key\" : \"45565e0e5841\",\n \"client_url\" : \"a2aa824e0f42\",\n \"details\" : {\n \"foo\" : \"bar\"\n },\n \"event_type\" : \"resolve\",\n \"client\" : \"7b2453ae3f68\"\n}", "mode" : "raw" } }, "body" : "{\n \"status\" : \"0e9b4414eb74\",\n \"message\" : \"8734cc11a591\",\n \"incident_key\" : \"9f097574dcdf\"\n}", "code" : 200 } ], "type" : "item" } ], "type" : "folder" } ], "event" : [ ], "variable" : [ { "key" : "BASE_URL", "value" : "https://events.pagerduty.com", "type" : "string" } ] }