Update the log snapshot of a virtual service

To update a log snapshot of a virtual service and save it to the asset catalog, you need to know the log identifier, workspace identifier and the virtual service identifier. The sample code uses a logID of 42, a serviceMockId of 1234 and a workspaceId of 123456. Use the actual ID values of your log, workspace, and virtual service.

To get the logID, take a log snapshot of the virtual service.

Minimum parameters for updating the log of a virtual service

The following parameters are the base parameters required to update the log of a virtual service.

Update log of virtual serviceMinimum configuration sample

curl 'https://mock.blazemeter.com/api/v1/workspaces/123456/service-mocks/1234/log/42' \
    -X PUT \
    -H 'accept: */*' \
    -H 'Content-Type: application/json' \
    -d 'string'

Update log of virtual service request attributes

Attributes

  • serviceMockId integer

    required

    The virtual service identifier

  • workspaceId integer

    required

    The workspace identifier

  • logId integer

    required

    The log identifier

  • log string

    required

    The updated Log values

  •  

Response200 OK

{
  "apiVersion": 0,
  "error": "string",
  "limit": 0,
  "link": "string",
  "requestId": "string",
  "result": true,
  "skip": 0,
  "total": 0
}