Roll an API collection back to an earlier version

Monday morning, the smoke tests fail. Over the weekend someone "cleaned up" the shared collection: renamed variables, deleted a folder, rewrote a login script. You could rebuild it by hand from memory, or you could roll it back to Friday.

If the collection is synced with a Git repository or a bucket, every push is a version you can go back to.

Pick a version

Open the collection's Overview ▸ Git sync ▸ Restore a version…. The list shows the commits of the linked branch that changed the collection's folder, newest first, with message, author, time and short commit id. The first line is the current version.

For a bucket link, the list holds the folder's revisions instead (each push to a bucket is a revision).

Preview before anything changes

Choosing a version compares it with the collection as it's stored now and lists what restoring would do:

Output
modified request List invoices
added request Health
deleted request New local

Read this carefully. A restore replaces everything that changed after that version, in the repository and in Requestarium, including edits made in Requestarium that were never pushed. The preview is where those show up.

Restore

Press Restore. The collection changes to that version, and the result is pushed as one new commit on top of the branch head:

Output
Restore Billing API to 4f9c2e1 from Requestarium

History is never rewritten. If you restored the wrong version, restore a later one.

If someone pushes between your preview and your restore, the restore is refused with the usual "someone else pushed" message. Preview again.

What it keeps

KeptWhy
CredentialsFiles only hold placeholders such as {{health_bearerToken}}, so values typed into Requestarium stay where the request still exists
EnvironmentsOn both sides, even when the link syncs them. Restore environment values by hand if you need to
Other files in the repositoryREADME, CI config and anything else that isn't the collection

A request that comes back through a restore after being deleted has no credential value. Enter it again.

Bring back one request, keep the rest

A restore isn't a merge: it doesn't try to keep newer work. To recover a single deleted request without losing everything since:

  1. Restore the old version.
  2. Copy the request you need.
  3. Restore the newest version again.
  4. Paste the request back.

Limits

  • The last 100 versions are listed. On AWS CodeCommit, which has no API that lists commits, the newest 50 commits of the branch are checked.
  • A version from before the collection was first pushed can't be restored.
  • In a bucket, revisions removed by a lifecycle rule end the list.
  • Restore is part of the Team plan. Developers, admins and owners of the workspace can use it.

The restore shows in the sync history as a push, with your name, so the team can see who rolled what back.