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
}