diff --git a/Structurizr.Client/Api/StructurizrClient.cs b/Structurizr.Client/Api/StructurizrClient.cs
index c5e9948..9479ae6 100644
--- a/Structurizr.Client/Api/StructurizrClient.cs
+++ b/Structurizr.Client/Api/StructurizrClient.cs
@@ -243,7 +243,10 @@ public Workspace GetWorkspace(long workspaceId)
///
/// The workspace ID.
/// The workspace to be updated.
- public void PutWorkspace(long workspaceId, Workspace workspace)
+ /// A tuple containing the HTTP Response and the parsed workspace JSON.
+ ///
+ ///
+ public (string response, string workspaceAsJson) PutWorkspace(long workspaceId, Workspace workspace)
{
if (workspace == null)
{
@@ -292,7 +295,6 @@ public void PutWorkspace(long workspaceId, Workspace workspace)
}
stringWriter.Flush();
workspaceAsJson = stringWriter.ToString();
- System.Console.WriteLine(workspaceAsJson);
}
AddHeaders(httpClient, httpMethod, new Uri(Url + path).AbsolutePath, workspaceAsJson, "application/json; charset=UTF-8");
@@ -305,13 +307,14 @@ public void PutWorkspace(long workspaceId, Workspace workspace)
var response = httpClient.PutAsync(this.Url + path, content);
string responseContent = response.Result.Content.ReadAsStringAsync().Result;
- System.Console.WriteLine(responseContent);
if (response.Result.StatusCode != HttpStatusCode.OK)
{
ApiResponse apiResponse = ApiResponse.Parse(responseContent);
throw new StructurizrClientException(apiResponse.Message);
}
+
+ return (responseContent, workspaceAsJson);
}
catch (Exception e)
{