control

register or update a record/replay cassette

Registers (or updates) a cassette entry in the in-memory cassette registry from a JSON body. The 'path' field is required; 'filename', 'expectationCount' and 'origin' are optional.

put/mockserver/cassettes

Request

  • Base URL: http://localhost:1080
  • URL: http://localhost:1080/mockserver/cassettes
  • Auth: none declared

Request body

pathstring required

cassette path (required, used as the registry key)

filenamestring
expectationCountinteger
originstring

Response

cassette registered

pathstring
filenamestring
expectationCountinteger
originstring
lastUsedinteger

Changes

No recorded changes to this operation across all 1 revision of this API.