Save a response as an example

Keep a response on a saved request, masked, for a mock server to answer with.

In short

An example is a response kept on a saved request: its status, headers and body. A mock server answers with a request's examples. Secrets are masked before an example is saved.

Before you start

Steps

  1. Open a saved request and press "Send".
  2. On the answer, press "Save as example". A small form opens in place.
  3. Name it - the status is suggested, such as 200 OK - and tick "Make it the default example" if it should be the usual answer.
  4. Press "Save example". The message has Undo.

Result: the example is listed in the request's "Notes" tab with its status, content type and size, and {{brand}} says how many values it masked.

What is masked

Editing an example masks it again. Read an example once before you share a mock address that answers with it.

Good to know

If something goes wrong

Related