package com.structurizr.example.structurizr;

import com.structurizr.Workspace;
import com.structurizr.api.StructurizrClient;

public class UploadToStructurizr extends AbstractStructurizrWorkspace {

    public static void main(String[] args) throws Exception {
        new UploadToStructurizr().run();
    }

    void run() throws Exception {
        Workspace workspace = readFromFile();
        StructurizrClient structurizrClient = new StructurizrClient();
        structurizrClient.mergeWorkspace(121, workspace);
    }

}
@@ -120,16 +120,38 @@
 lient;%0A%0A
+import java.io.File;%0A%0A
 public c
@@ -472,24 +472,148 @@
 zrClient();%0A
+        structurizrClient.setWorkspaceArchiveLocation(new File(System.getProperty(%22user.home%22), %22structurizr-workspaces%22));%0A
         stru

Save Structurizr workspaces to a persistent directory.