Chilkat Online Tools

PowerBuilder / Datadog API Collection / Trigger tests from CI/CD pipelines

Back to Collection Items

integer li_rc
oleobject loo_Http
integer li_Success
oleobject loo_Json
oleobject loo_Resp
oleobject loo_SbResponseBody
oleobject loo_JResp
integer li_RespStatusCode
integer li_Id
string ls_Name
string ls_Device
integer li_Location
string ls_Public_id
string ls_Result_id
string ls_StrVal
string ls_Batch_id
integer i
integer li_Count_i

// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.

loo_Http = create oleobject
// Use "Chilkat_9_5_0.Http" for versions of Chilkat < 10.0.0
li_rc = loo_Http.ConnectToNewObject("Chilkat.Http")
if li_rc < 0 then
    destroy loo_Http
    MessageBox("Error","Connecting to COM object failed")
    return
end if

// Use this online tool to generate code from sample JSON: Generate Code to Create JSON

// The following JSON is sent in the request body.

// {
//   "tests": [
//     {
//       "public_id": "aaa-aaa-aaa",
//       "allowInsecureCertificates": true,
//       "basicAuth": {
//         "password": "PaSSw0RD!",
//         "username": "my_username",
//         "type": "web"
//       },
//       "body": "commo",
//       "bodyType": "reprehenderit elit magna",
//       "cookies": "elit magna in",
//       "deviceIds": [
//         "laptop_large",
//         "laptop_large"
//       ],
//       "followRedirects": true,
//       "headers": {
//         "ametaeb": "veniam culpa Excepteur amet",
//         "esta": "exercitation eu nulla irure"
//       },
//       "locations": [
//         "aws:eu-west-3"
//       ],
//       "metadata": {
//         "ci": {
//           "pipeline": {
//             "url": "velit veniam quis"
//           },
//           "provider": {
//             "name": "amet"
//           }
//         },
//         "git": {
//           "branch": "cillum nostrud",
//           "commitSha": "esse anim mollit labore"
//         }
//       },
//       "retry": {
//         "count": 44207270,
//         "interval": 51741128.422602236
//       },
//       "startUrl": "sed pariatur reprehenderit",
//       "variables": {
//         "eu_4": "voluptate Duis Excepteur",
//         "reprehenderit385": "mollit i"
//       }
//     },
//     {
//       "public_id": "aaa-aaa-aaa",
//       "allowInsecureCertificates": true,
//       "basicAuth": {
//         "password": "PaSSw0RD!",
//         "username": "my_username",
//         "type": "web"
//       },
//       "body": "officia consectetur",
//       "bodyType": "in consequat",
//       "cookies": "exercitation non proident",
//       "deviceIds": [
//         "laptop_large",
//         "laptop_large"
//       ],
//       "followRedirects": false,
//       "headers": {
//         "commodo__": "occaecat cupidatat elit",
//         "utb78": "consequat",
//         "est_cc": "ullamco Ut officia voluptate veniam"
//       },
//       "locations": [
//         "aws:eu-west-3"
//       ],
//       "metadata": {
//         "ci": {
//           "pipeline": {
//             "url": "dolor officia fugiat tempor"
//           },
//           "provider": {
//             "name": "occaecat nisi i"
//           }
//         },
//         "git": {
//           "branch": "anim sint",
//           "commitSha": "ut sunt in"
//         }
//       },
//       "retry": {
//         "count": -91157506,
//         "interval": 92707099.30434671
//       },
//       "startUrl": "nostrud elit ali",
//       "variables": {
//         "id0_c": "ut officia ea",
//         "sunt2b": "voluptate commodo velit elit eu",
//         "laborum_ff": "quis laboris nisi ut",
//         "id_ba7": "dolore veniam",
//         "non59": "officia culpa Lorem nisi proident"
//       }
//     }
//   ]
// }

loo_Json = create oleobject
// Use "Chilkat_9_5_0.JsonObject" for versions of Chilkat < 10.0.0
li_rc = loo_Json.ConnectToNewObject("Chilkat.JsonObject")

loo_Json.UpdateString("tests[0].public_id","aaa-aaa-aaa")
loo_Json.UpdateBool("tests[0].allowInsecureCertificates",1)
loo_Json.UpdateString("tests[0].basicAuth.password","PaSSw0RD!")
loo_Json.UpdateString("tests[0].basicAuth.username","my_username")
loo_Json.UpdateString("tests[0].basicAuth.type","web")
loo_Json.UpdateString("tests[0].body","commo")
loo_Json.UpdateString("tests[0].bodyType","reprehenderit elit magna")
loo_Json.UpdateString("tests[0].cookies","elit magna in")
loo_Json.UpdateString("tests[0].deviceIds[0]","laptop_large")
loo_Json.UpdateString("tests[0].deviceIds[1]","laptop_large")
loo_Json.UpdateBool("tests[0].followRedirects",1)
loo_Json.UpdateString("tests[0].headers.ametaeb","veniam culpa Excepteur amet")
loo_Json.UpdateString("tests[0].headers.esta","exercitation eu nulla irure")
loo_Json.UpdateString("tests[0].locations[0]","aws:eu-west-3")
loo_Json.UpdateString("tests[0].metadata.ci.pipeline.url","velit veniam quis")
loo_Json.UpdateString("tests[0].metadata.ci.provider.name","amet")
loo_Json.UpdateString("tests[0].metadata.git.branch","cillum nostrud")
loo_Json.UpdateString("tests[0].metadata.git.commitSha","esse anim mollit labore")
loo_Json.UpdateInt("tests[0].retry.count",44207270)
loo_Json.UpdateNumber("tests[0].retry.interval","51741128.422602236")
loo_Json.UpdateString("tests[0].startUrl","sed pariatur reprehenderit")
loo_Json.UpdateString("tests[0].variables.eu_4","voluptate Duis Excepteur")
loo_Json.UpdateString("tests[0].variables.reprehenderit385","mollit i")
loo_Json.UpdateString("tests[1].public_id","aaa-aaa-aaa")
loo_Json.UpdateBool("tests[1].allowInsecureCertificates",1)
loo_Json.UpdateString("tests[1].basicAuth.password","PaSSw0RD!")
loo_Json.UpdateString("tests[1].basicAuth.username","my_username")
loo_Json.UpdateString("tests[1].basicAuth.type","web")
loo_Json.UpdateString("tests[1].body","officia consectetur")
loo_Json.UpdateString("tests[1].bodyType","in consequat")
loo_Json.UpdateString("tests[1].cookies","exercitation non proident")
loo_Json.UpdateString("tests[1].deviceIds[0]","laptop_large")
loo_Json.UpdateString("tests[1].deviceIds[1]","laptop_large")
loo_Json.UpdateBool("tests[1].followRedirects",0)
loo_Json.UpdateString("tests[1].headers.commodo__","occaecat cupidatat elit")
loo_Json.UpdateString("tests[1].headers.utb78","consequat")
loo_Json.UpdateString("tests[1].headers.est_cc","ullamco Ut officia voluptate veniam")
loo_Json.UpdateString("tests[1].locations[0]","aws:eu-west-3")
loo_Json.UpdateString("tests[1].metadata.ci.pipeline.url","dolor officia fugiat tempor")
loo_Json.UpdateString("tests[1].metadata.ci.provider.name","occaecat nisi i")
loo_Json.UpdateString("tests[1].metadata.git.branch","anim sint")
loo_Json.UpdateString("tests[1].metadata.git.commitSha","ut sunt in")
loo_Json.UpdateInt("tests[1].retry.count",-91157506)
loo_Json.UpdateNumber("tests[1].retry.interval","92707099.30434671")
loo_Json.UpdateString("tests[1].startUrl","nostrud elit ali")
loo_Json.UpdateString("tests[1].variables.id0_c","ut officia ea")
loo_Json.UpdateString("tests[1].variables.sunt2b","voluptate commodo velit elit eu")
loo_Json.UpdateString("tests[1].variables.laborum_ff","quis laboris nisi ut")
loo_Json.UpdateString("tests[1].variables.id_ba7","dolore veniam")
loo_Json.UpdateString("tests[1].variables.non59","officia culpa Lorem nisi proident")

loo_Http.SetRequestHeader("Content-Type","application/json")
loo_Http.SetRequestHeader("Accept","application/json")

loo_Resp = loo_Http.PostJson3("https://api.app.ddog-gov.com/api/v1/synthetics/tests/trigger/ci","application/json",loo_Json)
if loo_Http.LastMethodSuccess = 0 then
    Write-Debug loo_Http.LastErrorText
    destroy loo_Http
    destroy loo_Json
    return
end if

loo_SbResponseBody = create oleobject
// Use "Chilkat_9_5_0.StringBuilder" for versions of Chilkat < 10.0.0
li_rc = loo_SbResponseBody.ConnectToNewObject("Chilkat.StringBuilder")

loo_Resp.GetBodySb(loo_SbResponseBody)

loo_JResp = create oleobject
// Use "Chilkat_9_5_0.JsonObject" for versions of Chilkat < 10.0.0
li_rc = loo_JResp.ConnectToNewObject("Chilkat.JsonObject")

loo_JResp.LoadSb(loo_SbResponseBody)
loo_JResp.EmitCompact = 0

Write-Debug "Response Body:"
Write-Debug loo_JResp.Emit()

li_RespStatusCode = loo_Resp.StatusCode
Write-Debug "Response Status Code = " + string(li_RespStatusCode)
if li_RespStatusCode >= 400 then
    Write-Debug "Response Header:"
    Write-Debug loo_Resp.Header
    Write-Debug "Failed."
    destroy loo_Resp
    destroy loo_Http
    destroy loo_Json
    destroy loo_SbResponseBody
    destroy loo_JResp
    return
end if

destroy loo_Resp

// Sample JSON response:
// (Sample code for parsing the JSON response is shown below)

// {
//   "batch_id": "anim quis",
//   "locations": [
//     {
//       "id": -79104764,
//       "name": "laborum"
//     },
//     {
//       "id": -12473023,
//       "name": "ullamco eu"
//     }
//   ],
//   "results": [
//     {
//       "device": "laptop_large",
//       "location": -53475818,
//       "public_id": "Excepteur et",
//       "result_id": "in"
//     },
//     {
//       "device": "laptop_large",
//       "location": 59458053,
//       "public_id": "ut labore",
//       "result_id": "quis tempor cillum est eu"
//     }
//   ],
//   "triggered_check_ids": [
//     "in irure culpa",
//     "sit ad do Ut esse"
//   ]
// }

// Sample code for parsing the JSON response...
// Use this online tool to generate parsing code from sample JSON: Generate JSON Parsing Code

ls_Batch_id = loo_JResp.StringOf("batch_id")
i = 0
li_Count_i = loo_JResp.SizeOfArray("locations")
do while i < li_Count_i
    loo_JResp.I = i
    li_Id = loo_JResp.IntOf("locations[i].id")
    ls_Name = loo_JResp.StringOf("locations[i].name")
    i = i + 1
loop
i = 0
li_Count_i = loo_JResp.SizeOfArray("results")
do while i < li_Count_i
    loo_JResp.I = i
    ls_Device = loo_JResp.StringOf("results[i].device")
    li_Location = loo_JResp.IntOf("results[i].location")
    ls_Public_id = loo_JResp.StringOf("results[i].public_id")
    ls_Result_id = loo_JResp.StringOf("results[i].result_id")
    i = i + 1
loop
i = 0
li_Count_i = loo_JResp.SizeOfArray("triggered_check_ids")
do while i < li_Count_i
    loo_JResp.I = i
    ls_StrVal = loo_JResp.StringOf("triggered_check_ids[i]")
    i = i + 1
loop


destroy loo_Http
destroy loo_Json
destroy loo_SbResponseBody
destroy loo_JResp

Curl Command

curl -X POST
	-H "Content-Type: application/json"
	-H "Accept: application/json"
	-d '{
  "tests": [
    {
      "public_id": "aaa-aaa-aaa",
      "allowInsecureCertificates": true,
      "basicAuth": {
        "password": "PaSSw0RD!",
        "username": "my_username",
        "type": "web"
      },
      "body": "commo",
      "bodyType": "reprehenderit elit magna",
      "cookies": "elit magna in",
      "deviceIds": [
        "laptop_large",
        "laptop_large"
      ],
      "followRedirects": true,
      "headers": {
        "ametaeb": "veniam culpa Excepteur amet",
        "esta": "exercitation eu nulla irure"
      },
      "locations": [
        "aws:eu-west-3"
      ],
      "metadata": {
        "ci": {
          "pipeline": {
            "url": "velit veniam quis"
          },
          "provider": {
            "name": "amet"
          }
        },
        "git": {
          "branch": "cillum nostrud",
          "commitSha": "esse anim mollit labore"
        }
      },
      "retry": {
        "count": 44207270,
        "interval": 51741128.422602236
      },
      "startUrl": "sed pariatur reprehenderit",
      "variables": {
        "eu_4": "voluptate Duis Excepteur",
        "reprehenderit385": "mollit i"
      }
    },
    {
      "public_id": "aaa-aaa-aaa",
      "allowInsecureCertificates": true,
      "basicAuth": {
        "password": "PaSSw0RD!",
        "username": "my_username",
        "type": "web"
      },
      "body": "officia consectetur",
      "bodyType": "in consequat",
      "cookies": "exercitation non proident",
      "deviceIds": [
        "laptop_large",
        "laptop_large"
      ],
      "followRedirects": false,
      "headers": {
        "commodo__": "occaecat cupidatat elit",
        "utb78": "consequat",
        "est_cc": "ullamco Ut officia voluptate veniam"
      },
      "locations": [
        "aws:eu-west-3"
      ],
      "metadata": {
        "ci": {
          "pipeline": {
            "url": "dolor officia fugiat tempor"
          },
          "provider": {
            "name": "occaecat nisi i"
          }
        },
        "git": {
          "branch": "anim sint",
          "commitSha": "ut sunt in"
        }
      },
      "retry": {
        "count": -91157506,
        "interval": 92707099.30434671
      },
      "startUrl": "nostrud elit ali",
      "variables": {
        "id0_c": "ut officia ea",
        "sunt2b": "voluptate commodo velit elit eu",
        "laborum_ff": "quis laboris nisi ut",
        "id_ba7": "dolore veniam",
        "non59": "officia culpa Lorem nisi proident"
      }
    }
  ]
}'
https://api.app.ddog-gov.com/api/v1/synthetics/tests/trigger/ci

Postman Collection Item JSON

{
  "name": "Trigger tests from CI/CD pipelines",
  "request": {
    "method": "POST",
    "header": [
      {
        "key": "Content-Type",
        "value": "application/json"
      },
      {
        "key": "Accept",
        "value": "application/json"
      }
    ],
    "body": {
      "mode": "raw",
      "raw": "{\n  \"tests\": [\n    {\n      \"public_id\": \"aaa-aaa-aaa\",\n      \"allowInsecureCertificates\": true,\n      \"basicAuth\": {\n        \"password\": \"PaSSw0RD!\",\n        \"username\": \"my_username\",\n        \"type\": \"web\"\n      },\n      \"body\": \"commo\",\n      \"bodyType\": \"reprehenderit elit magna\",\n      \"cookies\": \"elit magna in\",\n      \"deviceIds\": [\n        \"laptop_large\",\n        \"laptop_large\"\n      ],\n      \"followRedirects\": true,\n      \"headers\": {\n        \"ametaeb\": \"veniam culpa Excepteur amet\",\n        \"esta\": \"exercitation eu nulla irure\"\n      },\n      \"locations\": [\n        \"aws:eu-west-3\"\n      ],\n      \"metadata\": {\n        \"ci\": {\n          \"pipeline\": {\n            \"url\": \"velit veniam quis\"\n          },\n          \"provider\": {\n            \"name\": \"amet\"\n          }\n        },\n        \"git\": {\n          \"branch\": \"cillum nostrud\",\n          \"commitSha\": \"esse anim mollit labore\"\n        }\n      },\n      \"retry\": {\n        \"count\": 44207270,\n        \"interval\": 51741128.422602236\n      },\n      \"startUrl\": \"sed pariatur reprehenderit\",\n      \"variables\": {\n        \"eu_4\": \"voluptate Duis Excepteur\",\n        \"reprehenderit385\": \"mollit i\"\n      }\n    },\n    {\n      \"public_id\": \"aaa-aaa-aaa\",\n      \"allowInsecureCertificates\": true,\n      \"basicAuth\": {\n        \"password\": \"PaSSw0RD!\",\n        \"username\": \"my_username\",\n        \"type\": \"web\"\n      },\n      \"body\": \"officia consectetur\",\n      \"bodyType\": \"in consequat\",\n      \"cookies\": \"exercitation non proident\",\n      \"deviceIds\": [\n        \"laptop_large\",\n        \"laptop_large\"\n      ],\n      \"followRedirects\": false,\n      \"headers\": {\n        \"commodo__\": \"occaecat cupidatat elit\",\n        \"utb78\": \"consequat\",\n        \"est_cc\": \"ullamco Ut officia voluptate veniam\"\n      },\n      \"locations\": [\n        \"aws:eu-west-3\"\n      ],\n      \"metadata\": {\n        \"ci\": {\n          \"pipeline\": {\n            \"url\": \"dolor officia fugiat tempor\"\n          },\n          \"provider\": {\n            \"name\": \"occaecat nisi i\"\n          }\n        },\n        \"git\": {\n          \"branch\": \"anim sint\",\n          \"commitSha\": \"ut sunt in\"\n        }\n      },\n      \"retry\": {\n        \"count\": -91157506,\n        \"interval\": 92707099.30434671\n      },\n      \"startUrl\": \"nostrud elit ali\",\n      \"variables\": {\n        \"id0_c\": \"ut officia ea\",\n        \"sunt2b\": \"voluptate commodo velit elit eu\",\n        \"laborum_ff\": \"quis laboris nisi ut\",\n        \"id_ba7\": \"dolore veniam\",\n        \"non59\": \"officia culpa Lorem nisi proident\"\n      }\n    }\n  ]\n}",
      "options": {
        "raw": {
          "headerFamily": "json",
          "language": "json"
        }
      }
    },
    "url": {
      "raw": "{{baseUrl}}/api/v1/synthetics/tests/trigger/ci",
      "host": [
        "{{baseUrl}}"
      ],
      "path": [
        "api",
        "v1",
        "synthetics",
        "tests",
        "trigger",
        "ci"
      ]
    },
    "description": "Trigger a set of Synthetic tests for continuous integration."
  },
  "response": [
    {
      "name": "OK",
      "originalRequest": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "Accept",
            "value": "application/json"
          },
          {
            "description": "Added as a part of security scheme: apikey",
            "key": "DD-API-KEY",
            "value": "<API Key>"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"tests\": [\n    {\n      \"public_id\": \"aaa-aaa-aaa\",\n      \"allowInsecureCertificates\": true,\n      \"basicAuth\": {\n        \"password\": \"PaSSw0RD!\",\n        \"username\": \"my_username\",\n        \"type\": \"web\"\n      },\n      \"body\": \"commo\",\n      \"bodyType\": \"reprehenderit elit magna\",\n      \"cookies\": \"elit magna in\",\n      \"deviceIds\": [\n        \"laptop_large\",\n        \"laptop_large\"\n      ],\n      \"followRedirects\": true,\n      \"headers\": {\n        \"ametaeb\": \"veniam culpa Excepteur amet\",\n        \"esta\": \"exercitation eu nulla irure\"\n      },\n      \"locations\": [\n        \"aws:eu-west-3\"\n      ],\n      \"metadata\": {\n        \"ci\": {\n          \"pipeline\": {\n            \"url\": \"velit veniam quis\"\n          },\n          \"provider\": {\n            \"name\": \"amet\"\n          }\n        },\n        \"git\": {\n          \"branch\": \"cillum nostrud\",\n          \"commitSha\": \"esse anim mollit labore\"\n        }\n      },\n      \"retry\": {\n        \"count\": 44207270,\n        \"interval\": 51741128.422602236\n      },\n      \"startUrl\": \"sed pariatur reprehenderit\",\n      \"variables\": {\n        \"eu_4\": \"voluptate Duis Excepteur\",\n        \"reprehenderit385\": \"mollit i\"\n      }\n    },\n    {\n      \"public_id\": \"aaa-aaa-aaa\",\n      \"allowInsecureCertificates\": true,\n      \"basicAuth\": {\n        \"password\": \"PaSSw0RD!\",\n        \"username\": \"my_username\",\n        \"type\": \"web\"\n      },\n      \"body\": \"officia consectetur\",\n      \"bodyType\": \"in consequat\",\n      \"cookies\": \"exercitation non proident\",\n      \"deviceIds\": [\n        \"laptop_large\",\n        \"laptop_large\"\n      ],\n      \"followRedirects\": false,\n      \"headers\": {\n        \"commodo__\": \"occaecat cupidatat elit\",\n        \"utb78\": \"consequat\",\n        \"est_cc\": \"ullamco Ut officia voluptate veniam\"\n      },\n      \"locations\": [\n        \"aws:eu-west-3\"\n      ],\n      \"metadata\": {\n        \"ci\": {\n          \"pipeline\": {\n            \"url\": \"dolor officia fugiat tempor\"\n          },\n          \"provider\": {\n            \"name\": \"occaecat nisi i\"\n          }\n        },\n        \"git\": {\n          \"branch\": \"anim sint\",\n          \"commitSha\": \"ut sunt in\"\n        }\n      },\n      \"retry\": {\n        \"count\": -91157506,\n        \"interval\": 92707099.30434671\n      },\n      \"startUrl\": \"nostrud elit ali\",\n      \"variables\": {\n        \"id0_c\": \"ut officia ea\",\n        \"sunt2b\": \"voluptate commodo velit elit eu\",\n        \"laborum_ff\": \"quis laboris nisi ut\",\n        \"id_ba7\": \"dolore veniam\",\n        \"non59\": \"officia culpa Lorem nisi proident\"\n      }\n    }\n  ]\n}",
          "options": {
            "raw": {
              "headerFamily": "json",
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}/api/v1/synthetics/tests/trigger/ci",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "v1",
            "synthetics",
            "tests",
            "trigger",
            "ci"
          ]
        }
      },
      "status": "OK",
      "code": 200,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n  \"batch_id\": \"anim quis\",\n  \"locations\": [\n    {\n      \"id\": -79104764,\n      \"name\": \"laborum\"\n    },\n    {\n      \"id\": -12473023,\n      \"name\": \"ullamco eu\"\n    }\n  ],\n  \"results\": [\n    {\n      \"device\": \"laptop_large\",\n      \"location\": -53475818,\n      \"public_id\": \"Excepteur et\",\n      \"result_id\": \"in\"\n    },\n    {\n      \"device\": \"laptop_large\",\n      \"location\": 59458053,\n      \"public_id\": \"ut labore\",\n      \"result_id\": \"quis tempor cillum est eu\"\n    }\n  ],\n  \"triggered_check_ids\": [\n    \"in irure culpa\",\n    \"sit ad do Ut esse\"\n  ]\n}"
    },
    {
      "name": "JSON format is wrong",
      "originalRequest": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "Accept",
            "value": "application/json"
          },
          {
            "description": "Added as a part of security scheme: apikey",
            "key": "DD-API-KEY",
            "value": "<API Key>"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"tests\": [\n    {\n      \"public_id\": \"aaa-aaa-aaa\",\n      \"allowInsecureCertificates\": true,\n      \"basicAuth\": {\n        \"password\": \"PaSSw0RD!\",\n        \"username\": \"my_username\",\n        \"type\": \"web\"\n      },\n      \"body\": \"commo\",\n      \"bodyType\": \"reprehenderit elit magna\",\n      \"cookies\": \"elit magna in\",\n      \"deviceIds\": [\n        \"laptop_large\",\n        \"laptop_large\"\n      ],\n      \"followRedirects\": true,\n      \"headers\": {\n        \"ametaeb\": \"veniam culpa Excepteur amet\",\n        \"esta\": \"exercitation eu nulla irure\"\n      },\n      \"locations\": [\n        \"aws:eu-west-3\"\n      ],\n      \"metadata\": {\n        \"ci\": {\n          \"pipeline\": {\n            \"url\": \"velit veniam quis\"\n          },\n          \"provider\": {\n            \"name\": \"amet\"\n          }\n        },\n        \"git\": {\n          \"branch\": \"cillum nostrud\",\n          \"commitSha\": \"esse anim mollit labore\"\n        }\n      },\n      \"retry\": {\n        \"count\": 44207270,\n        \"interval\": 51741128.422602236\n      },\n      \"startUrl\": \"sed pariatur reprehenderit\",\n      \"variables\": {\n        \"eu_4\": \"voluptate Duis Excepteur\",\n        \"reprehenderit385\": \"mollit i\"\n      }\n    },\n    {\n      \"public_id\": \"aaa-aaa-aaa\",\n      \"allowInsecureCertificates\": true,\n      \"basicAuth\": {\n        \"password\": \"PaSSw0RD!\",\n        \"username\": \"my_username\",\n        \"type\": \"web\"\n      },\n      \"body\": \"officia consectetur\",\n      \"bodyType\": \"in consequat\",\n      \"cookies\": \"exercitation non proident\",\n      \"deviceIds\": [\n        \"laptop_large\",\n        \"laptop_large\"\n      ],\n      \"followRedirects\": false,\n      \"headers\": {\n        \"commodo__\": \"occaecat cupidatat elit\",\n        \"utb78\": \"consequat\",\n        \"est_cc\": \"ullamco Ut officia voluptate veniam\"\n      },\n      \"locations\": [\n        \"aws:eu-west-3\"\n      ],\n      \"metadata\": {\n        \"ci\": {\n          \"pipeline\": {\n            \"url\": \"dolor officia fugiat tempor\"\n          },\n          \"provider\": {\n            \"name\": \"occaecat nisi i\"\n          }\n        },\n        \"git\": {\n          \"branch\": \"anim sint\",\n          \"commitSha\": \"ut sunt in\"\n        }\n      },\n      \"retry\": {\n        \"count\": -91157506,\n        \"interval\": 92707099.30434671\n      },\n      \"startUrl\": \"nostrud elit ali\",\n      \"variables\": {\n        \"id0_c\": \"ut officia ea\",\n        \"sunt2b\": \"voluptate commodo velit elit eu\",\n        \"laborum_ff\": \"quis laboris nisi ut\",\n        \"id_ba7\": \"dolore veniam\",\n        \"non59\": \"officia culpa Lorem nisi proident\"\n      }\n    }\n  ]\n}",
          "options": {
            "raw": {
              "headerFamily": "json",
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}/api/v1/synthetics/tests/trigger/ci",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "v1",
            "synthetics",
            "tests",
            "trigger",
            "ci"
          ]
        }
      },
      "status": "Bad Request",
      "code": 400,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n  \"errors\": [\n    \"Bad Request\",\n    \"Bad Request\"\n  ]\n}"
    },
    {
      "name": "Too many requests",
      "originalRequest": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "Accept",
            "value": "application/json"
          },
          {
            "description": "Added as a part of security scheme: apikey",
            "key": "DD-API-KEY",
            "value": "<API Key>"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"tests\": [\n    {\n      \"public_id\": \"aaa-aaa-aaa\",\n      \"allowInsecureCertificates\": true,\n      \"basicAuth\": {\n        \"password\": \"PaSSw0RD!\",\n        \"username\": \"my_username\",\n        \"type\": \"web\"\n      },\n      \"body\": \"commo\",\n      \"bodyType\": \"reprehenderit elit magna\",\n      \"cookies\": \"elit magna in\",\n      \"deviceIds\": [\n        \"laptop_large\",\n        \"laptop_large\"\n      ],\n      \"followRedirects\": true,\n      \"headers\": {\n        \"ametaeb\": \"veniam culpa Excepteur amet\",\n        \"esta\": \"exercitation eu nulla irure\"\n      },\n      \"locations\": [\n        \"aws:eu-west-3\"\n      ],\n      \"metadata\": {\n        \"ci\": {\n          \"pipeline\": {\n            \"url\": \"velit veniam quis\"\n          },\n          \"provider\": {\n            \"name\": \"amet\"\n          }\n        },\n        \"git\": {\n          \"branch\": \"cillum nostrud\",\n          \"commitSha\": \"esse anim mollit labore\"\n        }\n      },\n      \"retry\": {\n        \"count\": 44207270,\n        \"interval\": 51741128.422602236\n      },\n      \"startUrl\": \"sed pariatur reprehenderit\",\n      \"variables\": {\n        \"eu_4\": \"voluptate Duis Excepteur\",\n        \"reprehenderit385\": \"mollit i\"\n      }\n    },\n    {\n      \"public_id\": \"aaa-aaa-aaa\",\n      \"allowInsecureCertificates\": true,\n      \"basicAuth\": {\n        \"password\": \"PaSSw0RD!\",\n        \"username\": \"my_username\",\n        \"type\": \"web\"\n      },\n      \"body\": \"officia consectetur\",\n      \"bodyType\": \"in consequat\",\n      \"cookies\": \"exercitation non proident\",\n      \"deviceIds\": [\n        \"laptop_large\",\n        \"laptop_large\"\n      ],\n      \"followRedirects\": false,\n      \"headers\": {\n        \"commodo__\": \"occaecat cupidatat elit\",\n        \"utb78\": \"consequat\",\n        \"est_cc\": \"ullamco Ut officia voluptate veniam\"\n      },\n      \"locations\": [\n        \"aws:eu-west-3\"\n      ],\n      \"metadata\": {\n        \"ci\": {\n          \"pipeline\": {\n            \"url\": \"dolor officia fugiat tempor\"\n          },\n          \"provider\": {\n            \"name\": \"occaecat nisi i\"\n          }\n        },\n        \"git\": {\n          \"branch\": \"anim sint\",\n          \"commitSha\": \"ut sunt in\"\n        }\n      },\n      \"retry\": {\n        \"count\": -91157506,\n        \"interval\": 92707099.30434671\n      },\n      \"startUrl\": \"nostrud elit ali\",\n      \"variables\": {\n        \"id0_c\": \"ut officia ea\",\n        \"sunt2b\": \"voluptate commodo velit elit eu\",\n        \"laborum_ff\": \"quis laboris nisi ut\",\n        \"id_ba7\": \"dolore veniam\",\n        \"non59\": \"officia culpa Lorem nisi proident\"\n      }\n    }\n  ]\n}",
          "options": {
            "raw": {
              "headerFamily": "json",
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}/api/v1/synthetics/tests/trigger/ci",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "v1",
            "synthetics",
            "tests",
            "trigger",
            "ci"
          ]
        }
      },
      "status": "Too Many Requests",
      "code": 429,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n  \"errors\": [\n    \"Bad Request\",\n    \"Bad Request\"\n  ]\n}"
    }
  ]
}