SQL Server / Postman API / Run a Monitor
Back to Collection Items
-- Important: See this note about string length limitations for strings returned by sp_OAMethod calls.
--
CREATE PROCEDURE ChilkatSample
AS
BEGIN
DECLARE @hr int
DECLARE @iTmp0 int
-- Important: Do not use nvarchar(max). See the warning about using nvarchar(max).
DECLARE @sTmp0 nvarchar(4000)
-- This example assumes the Chilkat API to have been previously unlocked.
-- See Global Unlock Sample for sample code.
DECLARE @http int
-- Use "Chilkat_9_5_0.Http" for versions of Chilkat < 10.0.0
EXEC @hr = sp_OACreate 'Chilkat.Http', @http OUT
IF @hr <> 0
BEGIN
PRINT 'Failed to create ActiveX component'
RETURN
END
DECLARE @success int
EXEC sp_OAMethod @http, 'SetRequestHeader', NULL, 'X-API-Key', '{{postman_api_key}}'
DECLARE @resp int
EXEC sp_OAMethod @http, 'QuickRequest', @resp OUT, 'POST', 'https://api.getpostman.com/monitors/{{monitor_uid}}/run'
EXEC sp_OAGetProperty @http, 'LastMethodSuccess', @iTmp0 OUT
IF @iTmp0 = 0
BEGIN
EXEC sp_OAGetProperty @http, 'LastErrorText', @sTmp0 OUT
PRINT @sTmp0
EXEC @hr = sp_OADestroy @http
RETURN
END
DECLARE @sbResponseBody int
-- Use "Chilkat_9_5_0.StringBuilder" for versions of Chilkat < 10.0.0
EXEC @hr = sp_OACreate 'Chilkat.StringBuilder', @sbResponseBody OUT
EXEC sp_OAMethod @resp, 'GetBodySb', @success OUT, @sbResponseBody
DECLARE @jResp int
-- Use "Chilkat_9_5_0.JsonObject" for versions of Chilkat < 10.0.0
EXEC @hr = sp_OACreate 'Chilkat.JsonObject', @jResp OUT
EXEC sp_OAMethod @jResp, 'LoadSb', @success OUT, @sbResponseBody
EXEC sp_OASetProperty @jResp, 'EmitCompact', 0
PRINT 'Response Body:'
EXEC sp_OAMethod @jResp, 'Emit', @sTmp0 OUT
PRINT @sTmp0
DECLARE @respStatusCode int
EXEC sp_OAGetProperty @resp, 'StatusCode', @respStatusCode OUT
PRINT 'Response Status Code = ' + @respStatusCode
IF @respStatusCode >= 400
BEGIN
PRINT 'Response Header:'
EXEC sp_OAGetProperty @resp, 'Header', @sTmp0 OUT
PRINT @sTmp0
PRINT 'Failed.'
EXEC @hr = sp_OADestroy @resp
EXEC @hr = sp_OADestroy @http
EXEC @hr = sp_OADestroy @sbResponseBody
EXEC @hr = sp_OADestroy @jResp
RETURN
END
EXEC @hr = sp_OADestroy @resp
-- Sample JSON response:
-- (Sample code for parsing the JSON response is shown below)
-- {
-- "run": {
-- "info": {
-- "jobId": "1e6ba2e1-6256-4430-bafa-a06e591523bd",
-- "monitorId": "1e6b8970-fd13-4480-b011-b3b3e3cd271d",
-- "name": "Sample Collection monitor 1 #54",
-- "collectionUid": "5852-1d3daef4-2037-4584-ab86-bafd8c8f8a55",
-- "status": "success",
-- "startedAt": "2016-12-04T14:29:39.000Z",
-- "finishedAt": "2016-12-04T14:29:39.000Z"
-- },
-- "stats": {
-- "assertions": {
-- "total": 1,
-- "failed": 0
-- },
-- "requests": {
-- "total": 3,
-- "failed": 0
-- }
-- },
-- "executions": [
-- {
-- "id": 1,
-- "item": {
-- "id": "b5e8d7dd-909c-4ba7-aef4-8609bc50b586",
-- "name": "Sample POST Request"
-- },
-- "request": {
-- "method": "POST",
-- "url": "echo.getpostman.com/post",
-- "headers": {
-- "content-type": "application/json",
-- "accept": "*/*",
-- "accept-encoding": "gzip, deflate",
-- "content-length": 18
-- },
-- "body": {
-- "contentLength": 18,
-- "mode": "raw"
-- },
-- "timestamp": "2016-12-04T14:29:39.520Z"
-- },
-- "response": {
-- "code": 200,
-- "body": {
-- "contentLength": 298
-- },
-- "responseTime": 57,
-- "responseSize": 298,
-- "headers": {
-- "date": "Sun, 04 Dec 2016 14:29:39 GMT",
-- "content-type": "application/json",
-- "transfer-encoding": "chunked",
-- "connection": "keep-alive",
-- "content-encoding": "gzip"
-- }
-- }
-- },
-- {
-- "id": 2,
-- "item": {
-- "id": "f790d046-755d-44f5-a416-b825e18dfd9d",
-- "name": "Sample GET Request"
-- },
-- "request": {
-- "method": "GET",
-- "url": "echo.getpostman.com/get",
-- "headers": {
-- "accept": "*/*",
-- "accept-encoding": "gzip, deflate"
-- },
-- "body": {
-- "contentLength": 0,
-- "mode": "formdata"
-- },
-- "timestamp": "2016-12-04T14:29:39.586Z"
-- },
-- "response": {
-- "code": 200,
-- "body": {
-- "contentLength": 282
-- },
-- "responseTime": 46,
-- "responseSize": 282,
-- "headers": {
-- "date": "Sun, 04 Dec 2016 14:29:39 GMT",
-- "content-type": "application/json",
-- "transfer-encoding": "chunked",
-- "connection": "keep-alive",
-- "content-encoding": "gzip"
-- }
-- },
-- "assertions": {
-- "Status code is 200": true
-- }
-- },
-- {
-- "id": 3,
-- "item": {
-- "id": "336e6e17-6d3e-4b8f-a48f-b7e75cf13afb",
-- "name": "This is the second request"
-- },
-- "request": {
-- "method": "POST",
-- "url": "echo.getpostman.com/post",
-- "headers": {
-- "accept": "*/*",
-- "accept-encoding": "gzip, deflate",
-- "content-length": 18
-- },
-- "body": {
-- "contentLength": 0,
-- "mode": "formdata"
-- },
-- "timestamp": "2016-12-04T14:29:39.965Z"
-- },
-- "response": {
-- "code": 200,
-- "body": {
-- "contentLength": 347
-- },
-- "responseTime": 10,
-- "responseSize": 347,
-- "headers": {
-- "date": "Sun, 04 Dec 2016 14:29:39 GMT",
-- "content-type": "application/json",
-- "transfer-encoding": "chunked",
-- "connection": "keep-alive",
-- "content-encoding": "gzip"
-- }
-- }
-- }
-- ],
-- "failures": [
-- ]
-- }
-- }
-- Sample code for parsing the JSON response...
-- Use this online tool to generate parsing code from sample JSON: Generate JSON Parsing Code
DECLARE @id int
DECLARE @Id nvarchar(4000)
DECLARE @itemName nvarchar(4000)
DECLARE @Method nvarchar(4000)
DECLARE @v_Url nvarchar(4000)
DECLARE @Content_type nvarchar(4000)
DECLARE @Accept nvarchar(4000)
DECLARE @Accept_encoding nvarchar(4000)
DECLARE @Content_length int
DECLARE @ContentLength int
DECLARE @Mode nvarchar(4000)
DECLARE @Timestamp nvarchar(4000)
DECLARE @Code int
DECLARE @BodyContentLength int
DECLARE @ResponseTime int
DECLARE @ResponseSize int
DECLARE @Date nvarchar(4000)
DECLARE @HeadersContent_type nvarchar(4000)
DECLARE @Transfer_encoding nvarchar(4000)
DECLARE @Connection nvarchar(4000)
DECLARE @Content_encoding nvarchar(4000)
DECLARE @Status_code_is_200 int
DECLARE @JobId nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @JobId OUT, 'run.info.jobId'
DECLARE @MonitorId nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @MonitorId OUT, 'run.info.monitorId'
DECLARE @Name nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @Name OUT, 'run.info.name'
DECLARE @CollectionUid nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @CollectionUid OUT, 'run.info.collectionUid'
DECLARE @Status nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @Status OUT, 'run.info.status'
DECLARE @StartedAt nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @StartedAt OUT, 'run.info.startedAt'
DECLARE @FinishedAt nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @FinishedAt OUT, 'run.info.finishedAt'
DECLARE @Total int
EXEC sp_OAMethod @jResp, 'IntOf', @Total OUT, 'run.stats.assertions.total'
DECLARE @Failed int
EXEC sp_OAMethod @jResp, 'IntOf', @Failed OUT, 'run.stats.assertions.failed'
DECLARE @RequestsTotal int
EXEC sp_OAMethod @jResp, 'IntOf', @RequestsTotal OUT, 'run.stats.requests.total'
DECLARE @RequestsFailed int
EXEC sp_OAMethod @jResp, 'IntOf', @RequestsFailed OUT, 'run.stats.requests.failed'
DECLARE @i int
SELECT @i = 0
DECLARE @count_i int
EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_i OUT, 'run.executions'
WHILE @i < @count_i
BEGIN
EXEC sp_OASetProperty @jResp, 'I', @i
EXEC sp_OAMethod @jResp, 'IntOf', @id OUT, 'run.executions[i].id'
EXEC sp_OAMethod @jResp, 'StringOf', @Id OUT, 'run.executions[i].item.id'
EXEC sp_OAMethod @jResp, 'StringOf', @itemName OUT, 'run.executions[i].item.name'
EXEC sp_OAMethod @jResp, 'StringOf', @Method OUT, 'run.executions[i].request.method'
EXEC sp_OAMethod @jResp, 'StringOf', @v_Url OUT, 'run.executions[i].request.url'
EXEC sp_OAMethod @jResp, 'StringOf', @Content_type OUT, 'run.executions[i].request.headers.content-type'
EXEC sp_OAMethod @jResp, 'StringOf', @Accept OUT, 'run.executions[i].request.headers.accept'
EXEC sp_OAMethod @jResp, 'StringOf', @Accept_encoding OUT, 'run.executions[i].request.headers.accept-encoding'
EXEC sp_OAMethod @jResp, 'IntOf', @Content_length OUT, 'run.executions[i].request.headers.content-length'
EXEC sp_OAMethod @jResp, 'IntOf', @ContentLength OUT, 'run.executions[i].request.body.contentLength'
EXEC sp_OAMethod @jResp, 'StringOf', @Mode OUT, 'run.executions[i].request.body.mode'
EXEC sp_OAMethod @jResp, 'StringOf', @Timestamp OUT, 'run.executions[i].request.timestamp'
EXEC sp_OAMethod @jResp, 'IntOf', @Code OUT, 'run.executions[i].response.code'
EXEC sp_OAMethod @jResp, 'IntOf', @BodyContentLength OUT, 'run.executions[i].response.body.contentLength'
EXEC sp_OAMethod @jResp, 'IntOf', @ResponseTime OUT, 'run.executions[i].response.responseTime'
EXEC sp_OAMethod @jResp, 'IntOf', @ResponseSize OUT, 'run.executions[i].response.responseSize'
EXEC sp_OAMethod @jResp, 'StringOf', @Date OUT, 'run.executions[i].response.headers.date'
EXEC sp_OAMethod @jResp, 'StringOf', @HeadersContent_type OUT, 'run.executions[i].response.headers.content-type'
EXEC sp_OAMethod @jResp, 'StringOf', @Transfer_encoding OUT, 'run.executions[i].response.headers.transfer-encoding'
EXEC sp_OAMethod @jResp, 'StringOf', @Connection OUT, 'run.executions[i].response.headers.connection'
EXEC sp_OAMethod @jResp, 'StringOf', @Content_encoding OUT, 'run.executions[i].response.headers.content-encoding'
EXEC sp_OAMethod @jResp, 'BoolOf', @Status_code_is_200 OUT, 'run.executions[i].assertions.Status code is 200'
SELECT @i = @i + 1
END
SELECT @i = 0
EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_i OUT, 'run.failures'
WHILE @i < @count_i
BEGIN
EXEC sp_OASetProperty @jResp, 'I', @i
SELECT @i = @i + 1
END
EXEC @hr = sp_OADestroy @http
EXEC @hr = sp_OADestroy @sbResponseBody
EXEC @hr = sp_OADestroy @jResp
END
GO
Curl Command
curl -X POST
-H "X-API-Key: {{postman_api_key}}"
https://api.getpostman.com/monitors/{{monitor_uid}}/run
Postman Collection Item JSON
{
"name": "Run a Monitor",
"request": {
"method": "POST",
"header": [
],
"url": {
"raw": "https://api.getpostman.com/monitors/{{monitor_uid}}/run",
"protocol": "https",
"host": [
"api",
"getpostman",
"com"
],
"path": [
"monitors",
"{{monitor_uid}}",
"run"
]
},
"description": "This endpoint will run the monitor instantly and wait for the monitor to run completely. It responds with the run results.\n\n> Requires <a href=\"#authentication\">API Key</a> as `X-Api-Key` request header or `apikey` URL query parameter."
},
"response": [
{
"name": "Monitor Run with No Errors",
"originalRequest": {
"method": "POST",
"header": [
],
"body": {
"mode": "formdata",
"formdata": [
]
},
"url": {
"raw": "https://api.getpostman.com/monitors/{{monitor_uid}}/run",
"protocol": "https",
"host": [
"api",
"getpostman",
"com"
],
"path": [
"monitors",
"{{monitor_uid}}",
"run"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"name": "Content-Type",
"description": {
"content": "",
"type": "text/plain"
}
}
],
"cookie": [
{
"expires": "Invalid Date",
"hostOnly": false,
"httpOnly": false,
"domain": "getpostman.com",
"path": "/",
"secure": false,
"session": false,
"value": "yes",
"key": "getpostmanlogin"
},
{
"expires": "Invalid Date",
"hostOnly": false,
"httpOnly": false,
"domain": "getpostman.com",
"path": "/",
"secure": false,
"session": false,
"value": "813af79fd620c970d59f4e41275292a96873bb5065975eccf67a84cfdc24b448037430d26c2a29f4192ad492875ed7a0d53bbea8c63f760bb75c886624b4da560fc52c7f9f9e79837bee212f90b9a59c1dfcf94b95156b20f45169eab2ed93b0c38669819143ae41e45dfaac6a5f0cf6d5e76ca40134c3bd9ef9f5532ad6d179519aa0315fe4e6e157ee9d71c9f14aa9b0455ff84f94ae7519f1139d0cccdeeef7e2aafe1696cf640ec874c62d4d5bda3dbe17cf6083fb276b7f3355eb19162430f171166d19a7d79da028c76b3c2b97e88c93dc7183bc486d9d331b93b9a20de1216e84ca74f7b6887df61785d0b65be19f56283523f211fd43a772afa39aadc3b8dc011ba680b69a7e4fcda83be75d593c8ce6c6997bf530b57a8036881ea3d5b3c28d096099ca712f5d6916b453f1b338c455c4f861da638dffd05fd2a3dd5b9dd6dbe5f2c3a30e304363c9c2bcfbe5d9abeba9c06df16d155a70c6b0a9848f7446a5646e58640d7fad642df11350f528e4bacb5c446986cddf8f0c7ad10ec1067daccca962d6fb90aad8db55c2ffa1dc8716865350d5127cb69e44cfc4511836cbc5828c1c01370c7464fef1f07c716456a57a467bc1445ea88b705ef9c0c068948a73dca851804663befbc2d9aec7cfc3a2daf377b1a8c020091216d82504ff9b38c84234ad9b6f8c596a",
"key": "postman.sid"
},
{
"expires": "Invalid Date",
"hostOnly": false,
"httpOnly": false,
"domain": "getpostman.com",
"path": "/",
"secure": false,
"session": false,
"value": "b8ee90dd180562a5a21edad92ea0b987583b7599811884947b9aae88d0c060e8abb0c337534285da6defa4cfabba320b37b611b2c9586b81cb38220830b58440a2ff03756c898b89eb08799bc486c7dc08643ef1ee6e38e5988c4aafda47f1ed26c4218a23620f43d57aa19bb7f79762b394384215a7805e6b1c2cc092b6ac5ad8e8848b1ce655edba6f52820a2ac5acf3d289dda878c6a1fe62e88bb4159f605e8081afa2afce7a72a0c5d96515d566bcbf9cb3842cfc2b7f3a48badbcbfb9e5907b6451674d2c09cf6bf0b34b967edfc3a6389a834f7be21592ba2fbf7aa9eaaa6b87f99590813ded37c6e4ad17e7afcca74455b703d2d653e6ce063ce8eb195ce46c910a1b61fb71f13a8cb52ab2a7bded1b9b5a6b56ad5a66ceafc20afc70962a1f49b8abf2ce3f9e7cf3f44aaf0f41f81605b4ee612f3044d81b787a7cb128c56474a25cdc13803e9057603ead1f1fd6666ae5467ca9e250bb228dfd11dafd16345019bb7e06c58b27bf69d550cbfcef348bc746fdea61d4ea93c48d5f5e4e729adf18655669170f0a059025a79fb2a48f924d9748895a42780d1a9fae32ebf2d57df434c60b675412e217d126b9edbd28b949dfcbcbc8518aa51339d3e1d1f37c6cac4866064c54a476cf94d749a570938a7ad3ce28a9f1c5ea6623b",
"key": "postman-staging.sid"
}
],
"body": "{\n \"run\": {\n \"info\": {\n \"jobId\": \"1e6ba2e1-6256-4430-bafa-a06e591523bd\",\n \"monitorId\": \"1e6b8970-fd13-4480-b011-b3b3e3cd271d\",\n \"name\": \"Sample Collection monitor 1 #54\",\n \"collectionUid\": \"5852-1d3daef4-2037-4584-ab86-bafd8c8f8a55\",\n \"status\": \"success\",\n \"startedAt\": \"2016-12-04T14:29:39.000Z\",\n \"finishedAt\": \"2016-12-04T14:29:39.000Z\"\n },\n \"stats\": {\n \"assertions\": {\n \"total\": 1,\n \"failed\": 0\n },\n \"requests\": {\n \"total\": 3,\n \"failed\": 0\n }\n },\n \"executions\": [\n {\n \"id\": 1,\n \"item\": {\n \"id\": \"b5e8d7dd-909c-4ba7-aef4-8609bc50b586\",\n \"name\": \"Sample POST Request\"\n },\n \"request\": {\n \"method\": \"POST\",\n \"url\": \"echo.getpostman.com/post\",\n \"headers\": {\n \"content-type\": \"application/json\",\n \"accept\": \"*/*\",\n \"accept-encoding\": \"gzip, deflate\",\n \"content-length\": 18\n },\n \"body\": {\n \"contentLength\": 18,\n \"mode\": \"raw\"\n },\n \"timestamp\": \"2016-12-04T14:29:39.520Z\"\n },\n \"response\": {\n \"code\": 200,\n \"body\": {\n \"contentLength\": 298\n },\n \"responseTime\": 57,\n \"responseSize\": 298,\n \"headers\": {\n \"date\": \"Sun, 04 Dec 2016 14:29:39 GMT\",\n \"content-type\": \"application/json\",\n \"transfer-encoding\": \"chunked\",\n \"connection\": \"keep-alive\",\n \"content-encoding\": \"gzip\"\n }\n }\n },\n {\n \"id\": 2,\n \"item\": {\n \"id\": \"f790d046-755d-44f5-a416-b825e18dfd9d\",\n \"name\": \"Sample GET Request\"\n },\n \"request\": {\n \"method\": \"GET\",\n \"url\": \"echo.getpostman.com/get\",\n \"headers\": {\n \"accept\": \"*/*\",\n \"accept-encoding\": \"gzip, deflate\"\n },\n \"body\": {\n \"contentLength\": 0,\n \"mode\": \"formdata\"\n },\n \"timestamp\": \"2016-12-04T14:29:39.586Z\"\n },\n \"response\": {\n \"code\": 200,\n \"body\": {\n \"contentLength\": 282\n },\n \"responseTime\": 46,\n \"responseSize\": 282,\n \"headers\": {\n \"date\": \"Sun, 04 Dec 2016 14:29:39 GMT\",\n \"content-type\": \"application/json\",\n \"transfer-encoding\": \"chunked\",\n \"connection\": \"keep-alive\",\n \"content-encoding\": \"gzip\"\n }\n },\n \"assertions\": {\n \"Status code is 200\": true\n }\n },\n {\n \"id\": 3,\n \"item\": {\n \"id\": \"336e6e17-6d3e-4b8f-a48f-b7e75cf13afb\",\n \"name\": \"This is the second request\"\n },\n \"request\": {\n \"method\": \"POST\",\n \"url\": \"echo.getpostman.com/post\",\n \"headers\": {\n \"accept\": \"*/*\",\n \"accept-encoding\": \"gzip, deflate\",\n \"content-length\": 18\n },\n \"body\": {\n \"contentLength\": 0,\n \"mode\": \"formdata\"\n },\n \"timestamp\": \"2016-12-04T14:29:39.965Z\"\n },\n \"response\": {\n \"code\": 200,\n \"body\": {\n \"contentLength\": 347\n },\n \"responseTime\": 10,\n \"responseSize\": 347,\n \"headers\": {\n \"date\": \"Sun, 04 Dec 2016 14:29:39 GMT\",\n \"content-type\": \"application/json\",\n \"transfer-encoding\": \"chunked\",\n \"connection\": \"keep-alive\",\n \"content-encoding\": \"gzip\"\n }\n }\n }\n ],\n \"failures\": []\n }\n}"
},
{
"name": "Monitor Run with Errors",
"originalRequest": {
"method": "POST",
"header": [
],
"body": {
"mode": "formdata",
"formdata": [
]
},
"url": {
"raw": "https://api.getpostman.com/monitors/{{monitor_uid}}/run",
"protocol": "https",
"host": [
"api",
"getpostman",
"com"
],
"path": [
"monitors",
"{{monitor_uid}}",
"run"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"name": "Content-Type",
"description": {
"content": "",
"type": "text/plain"
}
}
],
"cookie": [
{
"expires": "Invalid Date",
"hostOnly": false,
"httpOnly": false,
"domain": "getpostman.com",
"path": "/",
"secure": false,
"session": false,
"value": "yes",
"key": "getpostmanlogin"
},
{
"expires": "Invalid Date",
"hostOnly": false,
"httpOnly": false,
"domain": "getpostman.com",
"path": "/",
"secure": false,
"session": false,
"value": "813af79fd620c970d59f4e41275292a96873bb5065975eccf67a84cfdc24b448037430d26c2a29f4192ad492875ed7a0d53bbea8c63f760bb75c886624b4da560fc52c7f9f9e79837bee212f90b9a59c1dfcf94b95156b20f45169eab2ed93b0c38669819143ae41e45dfaac6a5f0cf6d5e76ca40134c3bd9ef9f5532ad6d179519aa0315fe4e6e157ee9d71c9f14aa9b0455ff84f94ae7519f1139d0cccdeeef7e2aafe1696cf640ec874c62d4d5bda3dbe17cf6083fb276b7f3355eb19162430f171166d19a7d79da028c76b3c2b97e88c93dc7183bc486d9d331b93b9a20de1216e84ca74f7b6887df61785d0b65be19f56283523f211fd43a772afa39aadc3b8dc011ba680b69a7e4fcda83be75d593c8ce6c6997bf530b57a8036881ea3d5b3c28d096099ca712f5d6916b453f1b338c455c4f861da638dffd05fd2a3dd5b9dd6dbe5f2c3a30e304363c9c2bcfbe5d9abeba9c06df16d155a70c6b0a9848f7446a5646e58640d7fad642df11350f528e4bacb5c446986cddf8f0c7ad10ec1067daccca962d6fb90aad8db55c2ffa1dc8716865350d5127cb69e44cfc4511836cbc5828c1c01370c7464fef1f07c716456a57a467bc1445ea88b705ef9c0c068948a73dca851804663befbc2d9aec7cfc3a2daf377b1a8c020091216d82504ff9b38c84234ad9b6f8c596a",
"key": "postman.sid"
},
{
"expires": "Invalid Date",
"hostOnly": false,
"httpOnly": false,
"domain": "getpostman.com",
"path": "/",
"secure": false,
"session": false,
"value": "b8ee90dd180562a5a21edad92ea0b987583b7599811884947b9aae88d0c060e8abb0c337534285da6defa4cfabba320b37b611b2c9586b81cb38220830b58440a2ff03756c898b89eb08799bc486c7dc08643ef1ee6e38e5988c4aafda47f1ed26c4218a23620f43d57aa19bb7f79762b394384215a7805e6b1c2cc092b6ac5ad8e8848b1ce655edba6f52820a2ac5acf3d289dda878c6a1fe62e88bb4159f605e8081afa2afce7a72a0c5d96515d566bcbf9cb3842cfc2b7f3a48badbcbfb9e5907b6451674d2c09cf6bf0b34b967edfc3a6389a834f7be21592ba2fbf7aa9eaaa6b87f99590813ded37c6e4ad17e7afcca74455b703d2d653e6ce063ce8eb195ce46c910a1b61fb71f13a8cb52ab2a7bded1b9b5a6b56ad5a66ceafc20afc70962a1f49b8abf2ce3f9e7cf3f44aaf0f41f81605b4ee612f3044d81b787a7cb128c56474a25cdc13803e9057603ead1f1fd6666ae5467ca9e250bb228dfd11dafd16345019bb7e06c58b27bf69d550cbfcef348bc746fdea61d4ea93c48d5f5e4e729adf18655669170f0a059025a79fb2a48f924d9748895a42780d1a9fae32ebf2d57df434c60b675412e217d126b9edbd28b949dfcbcbc8518aa51339d3e1d1f37c6cac4866064c54a476cf94d749a570938a7ad3ce28a9f1c5ea6623b",
"key": "postman-staging.sid"
}
],
"body": "{\n \"run\": {\n \"info\": {\n \"jobId\": \"1e6ba2e3-1aaf-4c10-bd5f-905943284b2a\",\n \"monitorId\": \"1e6b8970-fd13-4480-b011-b3b3e3cd271d\",\n \"name\": \"Sample Collection monitor 1 #56\",\n \"collectionUid\": \"5852-1d3daef4-2037-4584-ab86-bafd8c8f8a55\",\n \"status\": \"failed\",\n \"startedAt\": \"2016-12-04T14:30:25.000Z\",\n \"finishedAt\": \"2016-12-04T14:30:26.000Z\"\n },\n \"stats\": {\n \"assertions\": {\n \"total\": 1,\n \"failed\": 1\n },\n \"requests\": {\n \"total\": 3,\n \"failed\": 1\n }\n },\n \"executions\": [\n {\n \"id\": 1,\n \"item\": {\n \"id\": \"b5e8d7dd-909c-4ba7-aef4-8609bc50b586\",\n \"name\": \"Sample POST Request\"\n },\n \"request\": {\n \"method\": \"POST\",\n \"url\": \"echo.getpostman.com/post\",\n \"headers\": {\n \"content-type\": \"application/json\",\n \"accept\": \"*/*\",\n \"accept-encoding\": \"gzip, deflate\",\n \"content-length\": 18\n },\n \"body\": {\n \"contentLength\": 18,\n \"mode\": \"raw\"\n },\n \"timestamp\": \"2016-12-04T14:30:26.025Z\"\n },\n \"response\": {\n \"code\": 200,\n \"body\": {\n \"contentLength\": 298\n },\n \"responseTime\": 26,\n \"responseSize\": 298,\n \"headers\": {\n \"date\": \"Sun, 04 Dec 2016 14:30:26 GMT\",\n \"content-type\": \"application/json\",\n \"transfer-encoding\": \"chunked\",\n \"connection\": \"keep-alive\",\n \"content-encoding\": \"gzip\"\n }\n }\n },\n {\n \"id\": 2,\n \"item\": {\n \"id\": \"f790d046-755d-44f5-a416-b825e18dfd9d\",\n \"name\": \"Sample GET Request\"\n },\n \"request\": {\n \"method\": \"GET\",\n \"url\": \"echo.getpostman.com/get\",\n \"headers\": {\n \"accept\": \"*/*\",\n \"accept-encoding\": \"gzip, deflate\"\n },\n \"body\": {\n \"contentLength\": 0,\n \"mode\": \"formdata\"\n },\n \"timestamp\": \"2016-12-04T14:30:26.093Z\"\n },\n \"response\": {\n \"code\": 200,\n \"body\": {\n \"contentLength\": 280\n },\n \"responseTime\": 46,\n \"responseSize\": 280,\n \"headers\": {\n \"date\": \"Sun, 04 Dec 2016 14:30:26 GMT\",\n \"content-type\": \"application/json\",\n \"transfer-encoding\": \"chunked\",\n \"connection\": \"keep-alive\",\n \"content-encoding\": \"gzip\"\n }\n },\n \"assertions\": {\n \"Status code is 400\": false\n }\n },\n {\n \"id\": 3,\n \"item\": {\n \"id\": \"336e6e17-6d3e-4b8f-a48f-b7e75cf13afb\",\n \"name\": \"This is the second request\"\n },\n \"request\": {\n \"method\": \"POST\",\n \"url\": \"echo.getpostman.com/post\",\n \"headers\": {\n \"accept\": \"*/*\",\n \"accept-encoding\": \"gzip, deflate\",\n \"content-length\": 18\n },\n \"body\": {\n \"contentLength\": 0,\n \"mode\": \"formdata\"\n },\n \"timestamp\": \"2016-12-04T14:30:26.477Z\"\n },\n \"response\": {\n \"code\": 200,\n \"body\": {\n \"contentLength\": 345\n },\n \"responseTime\": 9,\n \"responseSize\": 345,\n \"headers\": {\n \"date\": \"Sun, 04 Dec 2016 14:30:26 GMT\",\n \"content-type\": \"application/json\",\n \"transfer-encoding\": \"chunked\",\n \"connection\": \"keep-alive\",\n \"content-encoding\": \"gzip\"\n }\n }\n }\n ],\n \"failures\": [\n {\n \"executionId\": 2,\n \"name\": \"AssertionError\",\n \"message\": \"Expected 'Status code is 400' to be truthy\",\n \"assertion\": {\n \"Status code is 400\": false\n }\n }\n ]\n }\n}"
}
]
}