Delete virtual services
To delete a virtual service, you need to know your workspace identifier and the virtual service identifier. The sample code uses a servicevirtualId of 1234 and a workspaceId of 123456. Use the actual ID values of your workspace and virtual service.
Minimum parameters for deleting a virtual service
The following parameters are the base parameters required to delete a virtual service.
Delete virtual serviceMinimum configuration sample
curl 'https://mock.blazemeter.com/api/v1/workspaces/123456/service-mocks/1234' \
-X DELETE \
-H 'accept: application/json;charset=UTF-8'
Delete virtual service request attributes
Attributes
-
serviceMockIdintegerrequired
The virtual service identifier
-
workspaceIdintegerrequired
The workspace identifier
-
Response200 OK
{
"body": {},
"statusCode": "100 CONTINUE",
"statusCodeValue": 0
}