Create Transaction From Sources

To create a Transaction from a source file, you need to know your Workspace identifier and the Service identifier. The sample code uses a serviceId of 123 and a workspaceId of 123456. Use the actual ID values of your Workspace and Service.

The creation response contains an identifier that you should note down. You will need the transactionID when you want to configure, deploy, or delete this Transaction later.

 

Minimum Parameters for creating a Transaction

The following parameters are the base parameters required to create a Transaction.

Create a TransactionMinimum Configuration Sample


curl 'https://mock.blazemeter.com/api/v1/workspaces/123456/transactions' \
   -X POST \
   -H 'accept: */*' \
   -H 'Content-Type: multipart/form-data' \
   -F 'serviceId=123' \
   -F 'verbose=true'

Create a Transaction Request Attributes

Attributes

  • workspaceId integer

    required

    The Workspace identifier

  • serviceId integer

    required

    The Service identifier

Response200 OK

{
  "apiVersion": 0,
  "error": "string",
  "limit": 0,
  "link": "string",
  "requestId": "string",
  "result": [
    {
      "description": "string",
      "dsl": {
          "priority": 1,
          "requestDsl": {
            "method": "GET",
            "host": "http://miurl.com.ec",
            "path": "",
            "url": {
              "key": "url",
              "matcherName": "equals_url",
              "matchingValue": "miurl.com.ec"
            },
            "headers": [],
            "queryParams": [],
            "cookies": [],
            "credentials": {},
            "body": []
          },
          "responseDsl": {
            "status": 200,
            "statusMessage": "OK",
            "proxyUrl": "",
            "headers": [],
            "binary": false,
            "contentType": "json",
            "content": "",
            "charset": "UTF-8"
          }
        } ,
      "id": 0,
      "link": "string",
      "name": "string",
      "serviceId": 123,
      "serviceName": "string",
      "tags": [
        "string"
      ]
    }
  ],
  "skip": 0,
  "total": 0
}