Blog

How to move API monitors to another workspace

A new project, a new computer or a teammate without access to your git — and the monitors get rebuilt one by one. “Export archive…” in Microkoi Bench packs them into a single file together with everything they depend on. “Import archive…” shows what will be added, what will be updated and where the conflicts are before anything is written.

Why monitors don’t move by copying files

A chain monitor references a chain, the chain references collection requests, the requests reference environment variables, and the folder references stands. Copy only the monitor files, and half the references in the new workspace come up empty, with checks failing for unclear reasons.

What goes into the archive

In the archiveNot in the archive
Monitors and certificate check setsNotes and mock responses
Chains and their step requestsRecorded traffic
Environments the monitors useCheck history
Folder standsSecret values and chain tokens

Inside the ZIP are the same files as in the workspace folder, plus manifest.json with the contents and SHA-256 checksums. Any archive tool shows what’s being sent.

Export the archive

  1. For a monitor folder, open the “⋯” menu in its row and choose “Export archive…”. For the whole workspace, use the “Archive” button in the section’s top bar and the same item.
  2. The “Export archive” window shows the contents, for example “6 monitors · 1 chain · 3 requests · 2 environments”.
  3. Click “Save archive…” and choose where to save the file.

Chains, requests and environments that the monitors use go into the archive automatically. Stands travel with their folder. If a monitor references a deleted chain or environment, the window warns “Not everything is in the workspace” and lists what’s missing and what refers to it.

Secrets stay with you

Values of variables marked as secret stay out of the archive. The “Secrets” section of the export window lists the environments and the names of those variables, so the recipient knows what to fill in.

A password or token typed straight into a request, rather than into an environment variable, isn’t a secret and goes into the archive — just as it goes into git. Before exporting, move such values into a variable marked as secret.

Import the archive into another workspace

  1. In Monitoring, click “Archive” and choose “Import archive…”.
  2. Pick the .zip file. Bench checks the whole archive before writing anything.
  3. The “Import archive” window shows where the archive came from and what will happen: “3 to add”, “1 to update”, “2 conflicts”.
  4. Decide what to do with the conflicts and click the import button with the file count.
LabelWhen
To addThere’s no such monitor, chain or environment here yet
To updateIt was loaded from an archive before and hasn’t changed here
ConflictIt was changed here after the last import, or it came from git

Conflicts are settled before writing

“For all conflicts:” sets a common choice, and you can change it for an individual file in its row.

  • “Replace” takes the version from the archive.
  • “Skip” keeps yours and leaves the archive file alone.
  • “Keep both” puts the archive file next to yours as a copy.

A file is matched by the ID inside it, not by name: a monitor moved to another folder here gets updated in its new place. Secrets already filled in aren’t erased on update. If the archive fails the check, the window names the file and the reason, and the workspace stays as it was.

Into a specific folder, or as a second copy

  • “Import archive into this folder…” in a folder’s “⋯” menu puts the archive inside it: an archive of the Delivery folder imported into Kazan lands in Kazan/Delivery.
  • The “Import as a copy” checkbox imports the same archive again with new IDs. That way one set of monitors can sit in two folders, with the copies using another environment.

After import, fill in the secrets

The import window ends with a “Secrets to fill in” list: environments with empty secrets and the variable names. “Fill in…” opens the environment in Requests. While the secrets are empty, the checks that need them fail — you see it right away, not a week later.

Earlier versions of Bench won’t open an archive with stands. Update Bench for your teammate before sending them the file.

What you get

A set of monitors moves as one file in a minute, with all its chains, environments and stands. Secrets don’t travel with it, the recipient sees what to fill in, and every conflict is known before anything is overwritten.

Move a monitor folder to another workspace in beta 0.9.6 and write to beta@microkoi.com about how the import went and what you had to fix by hand. We read every email.

Microkoi BenchMonitoringScheduled endpoint checks

Try it on your own project

The beta is free and needs no sign-up. Download it, pick your project folder and start the proxy — your first requests will show up within minutes.

Version 0.9.6 · macOS, Windows and Linux · no sign-up