Update Transaction

To update an existing Transaction in your Workspace, you need to know your Workspace identifier and the Transaction identifier. The sample code uses a transactionId of 77 and a workspaceId of 123456. Use the actual ID values of your workspace and Transaction.

 

Minimum Parameters for Updating a Transaction

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

 

Update a Transaction Request Attributes

Attributes

Update a TransactionMinimum Configuration Sample


curl 'https://mock.blazemeter.com/api/v1/workspaces/123456/transactions/77' \
   -X PUT \
   -H 'accept: */*' \
   -H 'Content-Type: application/json' \
   -d '{ "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": 0, \
         "serviceName": "string", \
         "tags": [ "string" ]
       }'

Response201 Created

{
  "apiVersion": 0,
  "error": "string",
  "limit": 0,
  "link": "string",
  "requestId": "string",
  "result": {
    "created": "2019-07-24T16:07:03.541Z",
    "createdBy": "string",
    "createdDate": "string",
    "description": "string",
    "endpointPreference": "string",
    "harborId": "string",
    "httpEndpoint": "string",
    "httpsEndpoint": "string",
    "id": 0,
    "liveSystemHost": "string",
    "liveSystemPort": 0,
    "name": "string",
    "noMatchingRequestPreference": "string",
    "noMatchingRequestTxnId": 0,
    "serviceId": 0,
    "serviceName": "string",
    "shipId": "string",
    "status": "STOPPED",
    "thinkTime": 0,
    "mockServiceTransactions": [
      0
    ],
    "updated": "2019-07-24T16:07:03.541Z",
    "updatedBy": "string"
  },
  "skip": 0,
  "total": 0
}