Configure or Reconfigure Virtual Services
To configure or reconfigure an existing Virtual Service, you need to know your Workspace identifier and the Virtual Service identifier. The sample code uses a serviceMockId
of 1234
and a workspaceId
of 123456
. Use the actual ID values of your Workspace and Virtual Service.
Minimum Parameters for Configuring a Virtual Service
The following parameters are the base parameters required to configure a Virtual Service.
Configure Virtual ServiceMinimum Configuration Sample
curl 'https://mock.blazemeter.com/api/v1/workspaces/123456/service-mocks/1234/configure' \
-X GET \
-H 'accept: application/json;charset=UTF-8'
Configure Virtual Service Request Attributes
Attributes
-
serviceMockId
integerrequired
The Virtual Service identifier
-
workspaceId
integerrequired
The Workspace identifier
Response200 OK
{
"apiVersion": 0,
"error": "string",
"limit": 0,
"link": "string",
"requestId": "string",
"result": {
"trackingId": "string",
"trackingUrl": "string"
},
"skip": 0,
"total": 0
}