Skip to content

Snapshots

After a Send, choose Save As ▾ > Snapshot of This Request. korAPI keeps the response in the collection, under .snapshots/, so it travels with your files.

A Matches snapshot check with paths to ignore.

Add a Matches snapshot check to the request and choose what has to match:

  • the same values: the body must be the same as the snapshot.
  • the same fields and types: fields may change value, but none may be added, removed or change type. A null does not count as a change of type.

In the check’s target, list paths to ignore, such as $.createdAt, items[*].id or $.meta.*.

A snapshot belongs to the request’s path: rename the request and save the snapshot again. Export for Newman and k6 leave this check out.