Update Virtual Service Template Properties
To update the properties of a Virtual Service template, you need to know your Workspace identifier and the Virtual Service Template identifier. The sample code uses a serviceMockTemplateId
of 8
and a workspaceId
of 123456
. Use the actual ID values of your Workspace and Virtual Service template.
Minimum Parameters for updating a Virtual Service template
The following parameters are the base parameters required to update Virtual Service templates.
Update Virtual Service TemplatesMinimum Configuration Sample
curl 'https://mock.blazemeter.com/api/v1/workspaces/123456/service-mock-templates/8' \
-X PATCH \
-H 'accept: */*' \
-H 'Content-Type: application/json' \
-d '{ "description": "string", \
"location": "string", \
"name": "string",\
"mockServiceTransactions": [ 0 ] \
}'
Update Virtual Service Template Request Attributes
Attributes
-
description
stringThe description of the template
-
location
stringThe location of the Service, for example "cloud", "us-east-1", or "London"
-
name
stringThe name of the template
-
mockServiceTransactions
arrayThe identifiers of the Transactions used in this Virtual Service
Response200 OK
{
"apiVersion": 0,
"error": "string",
"limit": 0,
"link": "string",
"requestId": "string",
"result": {
"created": "2019-07-25T13:51:48.016Z",
"createdBy": "string",
"description": "string",
"id": 0,
"liveSystemHost": "string",
"liveSystemPort": 0,
"name": "string",
"noMatchingRequestPreference": "string",
"noMatchingRequestTxnId": 0,
"serviceId": 0,
"serviceName": "string",
"thinkTime": 0,
"mockServiceTransactions": [
0
],
"updated": "2019-07-25T13:51:48.016Z",
"updatedBy": "string"
},
"skip": 0,
"total": 0
}