{ "info" : { "name" : "pagerduty-api", "schema" : "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", "description" : { }, "version" : "0.0.1-dev" }, "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\" : \"007d54908187\",\n \"description\" : \"970d38a4bc26\",\n \"contexts\" : {\n \"foo\" : \"bar\"\n },\n \"service_key\" : \"b09f67fed2a6\",\n \"client_url\" : \"1afdfee1e4b7\",\n \"details\" : {\n \"foo\" : \"bar\"\n },\n \"event_type\" : \"resolve\",\n \"client\" : \"84d68506804a\"\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 - string", "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\" : \"007d54908187\",\n \"description\" : \"970d38a4bc26\",\n \"contexts\" : {\n \"foo\" : \"bar\"\n },\n \"service_key\" : \"b09f67fed2a6\",\n \"client_url\" : \"1afdfee1e4b7\",\n \"details\" : {\n \"foo\" : \"bar\"\n },\n \"event_type\" : \"resolve\",\n \"client\" : \"84d68506804a\"\n}", "mode" : "raw" } }, "body" : "\"788079c64d0a\"", "code" : 200 } ], "type" : "item" } ], "type" : "folder" } ], "event" : [ ], "variable" : [ { "key" : "BASE_URL", "value" : "https://events.pagerduty.com", "type" : "string" } ] }