promote recorded traffic to active expectations
Retrieves recorded (forwarded) exchanges matching an optional request-matcher filter, consolidates them into reusable mocks and ACTIVATES them by adding them to the expectation set. Redaction is on by default so promoted mocks never carry captured credentials; consolidation and parameterization are also on by default, so a single recorded id does not pin the mock. The request body is optional — omit it to promote every recorded exchange.
Request
- Base URL: http://localhost:1080
- URL: http://localhost:1080/mockserver/recordings/promote
- Auth: none declared
Query parameters
collapse matching exchanges into unlimited-times expectations; set false to promote verbatim
generalise volatile path, query, header and body values
redact credentials captured in the recorded traffic
comma-separated additional header names to redact
comma-separated additional body field names to redact
Request body
Response
recordings promoted to active expectations
list of activated expectations
Changes
No recorded changes to this operation across all 1 revision of this API.