{"data":{"markdownRemark":{"html":"<div class=\"ui segment info message\">\nNote: if you wish to modify variables in Globals please make sure any inputs are prefaced with system. or are contained within a system object.\n</div>\n<h1 id=\"put\"><a href=\"#put\" aria-hidden=\"true\" class=\"anchor\"><svg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>PUT</h1>\n<p>Update the state of an interactive simulation</p>\n<h2 id=\"request\"><a href=\"#request\" aria-hidden=\"true\" class=\"anchor\"><svg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Request</h2>\n<h3 id=\"parameters\"><a href=\"#parameters\" aria-hidden=\"true\" class=\"anchor\"><svg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Parameters</h3>\n<table class=\"ui basic table\">\n<thead>\n<tr>\n<th>Name</th>\n<th>Located in</th>\n<th>Description</th>\n<th>Required</th>\n<th>Schema</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>path</td>\n<td>ID of interactive simulation</td>\n<td>Yes</td>\n<td>string</td>\n</tr>\n<tr>\n<td>body</td>\n<td>body</td>\n<td>Optional state to apply to simulation</td>\n<td>Yes</td>\n<td>inline</td>\n</tr>\n</tbody>\n</table>\n<p class=\"code-header\">Example request</p>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token function\">curl</span> -X PUT http://localhost:8080/api/simulations/interactive/<span class=\"token punctuation\">{</span>id<span class=\"token punctuation\">}</span> \\\n  -H <span class=\"token string\">'Content-Type: application/json'</span> \\\n  -H <span class=\"token string\">'Accept: application/json'</span> \\\n  -d <span class=\"token string\">'{\"setup\": \"true\"}'</span></code></pre></div>\n<h3 id=\"body-schema\"><a href=\"#body-schema\" aria-hidden=\"true\" class=\"anchor\"><svg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Body Schema</h3>\n<p>State will always be applied in the order it appears in this table, regardless of the order in request body.</p>\n<table class=\"ui basic table\">\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>restart</td>\n<td>boolean</td>\n<td></td>\n<td>Restart the simulation, resetting all inputs and config to default values.</td>\n</tr>\n<tr>\n<td>config</td>\n<td>object</td>\n<td></td>\n<td>Key value object of config keys to update with values to update to.</td>\n</tr>\n<tr>\n<td>input</td>\n<td>object</td>\n<td></td>\n<td>Key value object of input field to update with values to update to.</td>\n</tr>\n<tr>\n<td>setup</td>\n<td>boolean</td>\n<td></td>\n<td>If the simulation should be setup.</td>\n</tr>\n<tr>\n<td>tick</td>\n<td>integer</td>\n<td></td>\n<td>Tick to run to simulation to.</td>\n</tr>\n</tbody>\n</table>\n<p class=\"code-header\">Example request body</p>\n<div class=\"gatsby-highlight\" data-language=\"json\"><pre class=\"language-json\"><code class=\"language-json\"><span class=\"token punctuation\">{</span>\n  <span class=\"token property\">\"restart\"</span><span class=\"token operator\">:</span> <span class=\"token boolean\">true</span><span class=\"token punctuation\">,</span>\n  <span class=\"token property\">\"config\"</span><span class=\"token operator\">:</span> <span class=\"token punctuation\">{</span> <span class=\"token property\">\"core.prng-seed\"</span><span class=\"token operator\">:</span> <span class=\"token number\">1</span> <span class=\"token punctuation\">}</span><span class=\"token punctuation\">,</span>\n  <span class=\"token property\">\"input\"</span><span class=\"token operator\">:</span> <span class=\"token punctuation\">{</span> <span class=\"token property\">\"gridsize\"</span><span class=\"token operator\">:</span> <span class=\"token number\">20</span> <span class=\"token punctuation\">}</span><span class=\"token punctuation\">,</span>\n  <span class=\"token property\">\"setup\"</span><span class=\"token operator\">:</span> <span class=\"token boolean\">true</span><span class=\"token punctuation\">,</span>\n  <span class=\"token property\">\"tick\"</span><span class=\"token operator\">:</span> <span class=\"token number\">10</span>\n<span class=\"token punctuation\">}</span></code></pre></div>\n<h2 id=\"response\"><a href=\"#response\" aria-hidden=\"true\" class=\"anchor\"><svg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Response</h2>\n<table class=\"ui basic table\">\n<thead>\n<tr>\n<th>Status</th>\n<th>Meaning</th>\n<th>Description</th>\n<th>Schema</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>204</td>\n<td><a href=\"https://tools.ietf.org/html/rfc7231#section-6.3.5\">No Content</a></td>\n<td>Request was completed successfully</td>\n<td>None</td>\n</tr>\n<tr>\n<td>400</td>\n<td><a href=\"https://tools.ietf.org/html/rfc7231#section-6.5.1\">Bad Request</a></td>\n<td>Request error</td>\n<td>Inline</td>\n</tr>\n<tr>\n<td>404</td>\n<td><a href=\"https://tools.ietf.org/html/rfc7231#section-6.5.4\">Not Found</a></td>\n<td>Simulation not found</td>\n<td>Inline</td>\n</tr>\n<tr>\n<td>409</td>\n<td><a href=\"https://tools.ietf.org/html/rfc7231#section-6.5.8\">Conflict</a></td>\n<td>Conflict completing request in current state</td>\n<td>Inline</td>\n</tr>\n<tr>\n<td>500</td>\n<td><a href=\"https://tools.ietf.org/html/rfc7231#section-6.6.1\">Internal Server Error</a></td>\n<td>Internal server error</td>\n<td>Inline</td>\n</tr>\n</tbody>\n</table>\n<h3 id=\"response-schema\"><a href=\"#response-schema\" aria-hidden=\"true\" class=\"anchor\"><svg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Response Schema</h3>\n<p>Status Code <strong>400</strong></p>\n<table class=\"ui basic table\">\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>message</td>\n<td>string</td>\n<td>true</td>\n</tr>\n</tbody>\n</table>\n<p class=\"code-header\">Example 400 response body</p>\n<div class=\"gatsby-highlight\" data-language=\"json\"><pre class=\"language-json\"><code class=\"language-json\"><span class=\"token punctuation\">{</span>\n  <span class=\"token property\">\"message\"</span><span class=\"token operator\">:</span> <span class=\"token string\">\"Could not handle message\"</span>\n<span class=\"token punctuation\">}</span></code></pre></div>\n<br>\n<p>Status Code <strong>404</strong></p>\n<table class=\"ui basic table\">\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>message</td>\n<td>string</td>\n<td>true</td>\n</tr>\n</tbody>\n</table>\n<p class=\"code-header\">Example 404 response body</p>\n<div class=\"gatsby-highlight\" data-language=\"json\"><pre class=\"language-json\"><code class=\"language-json\"><span class=\"token punctuation\">{</span>\n  <span class=\"token property\">\"message\"</span><span class=\"token operator\">:</span> <span class=\"token string\">\"Could not find simulation '5af75d69-1926-4ef2-a56f-07ad5f85673b'\"</span>\n<span class=\"token punctuation\">}</span></code></pre></div>\n<br>\n<p>Status Code <strong>409</strong></p>\n<table class=\"ui basic table\">\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>message</td>\n<td>string</td>\n<td>true</td>\n</tr>\n</tbody>\n</table>\n<p class=\"code-header\">Example 409 response body</p>\n<div class=\"gatsby-highlight\" data-language=\"json\"><pre class=\"language-json\"><code class=\"language-json\"><span class=\"token punctuation\">{</span>\n  <span class=\"token property\">\"message\"</span><span class=\"token operator\">:</span> <span class=\"token string\">\"Cannot set model tick for model that has not been setup.\"</span>\n<span class=\"token punctuation\">}</span></code></pre></div>\n<br>\n<p>Status Code <strong>500</strong></p>\n<table class=\"ui basic table\">\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>message</td>\n<td>string</td>\n<td>true</td>\n</tr>\n</tbody>\n</table>\n<hr>\n<h1 id=\"get\"><a href=\"#get\" aria-hidden=\"true\" class=\"anchor\"><svg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>GET</h1>\n<p>Given the id, returns the interactive simulation object.</p>\n<h2 id=\"request-1\"><a href=\"#request-1\" aria-hidden=\"true\" class=\"anchor\"><svg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Request</h2>\n<h3 id=\"parameters-1\"><a href=\"#parameters-1\" aria-hidden=\"true\" class=\"anchor\"><svg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Parameters</h3>\n<table class=\"ui basic table\">\n<thead>\n<tr>\n<th>Name</th>\n<th>Located in</th>\n<th>Description</th>\n<th>Required</th>\n<th>Schema</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>path</td>\n<td>ID of simulation</td>\n<td>Yes</td>\n<td>string</td>\n</tr>\n</tbody>\n</table>\n<p class=\"code-header\">Example request</p>\n<div class=\"gatsby-highlight\" data-language=\"shell\"><pre class=\"language-shell\"><code class=\"language-shell\"><span class=\"token function\">curl</span> -X GET http://localhost:8080/api/simulations/interactive/<span class=\"token punctuation\">{</span>id<span class=\"token punctuation\">}</span> \\\n  -H <span class=\"token string\">'Accept: application/json'</span></code></pre></div>\n<h2 id=\"response-1\"><a href=\"#response-1\" aria-hidden=\"true\" class=\"anchor\"><svg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Response</h2>\n<table class=\"ui basic table\">\n<thead>\n<tr>\n<th>Status</th>\n<th>Meaning</th>\n<th>Description</th>\n<th>Schema</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td><a href=\"https://tools.ietf.org/html/rfc7231#section-6.3.1\">OK</a></td>\n<td>Request was completed successfully</td>\n<td>Inline</td>\n</tr>\n<tr>\n<td>404</td>\n<td><a href=\"https://tools.ietf.org/html/rfc7231#section-6.5.4\">Not Found</a></td>\n<td>Simulation not found</td>\n<td>Inline</td>\n</tr>\n</tbody>\n</table>\n<h3 id=\"response-schema-1\"><a href=\"#response-schema-1\" aria-hidden=\"true\" class=\"anchor\"><svg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Response Schema</h3>\n<p>Status Code <strong>200</strong></p>\n<table class=\"ui basic table\">\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>string(uuid)</td>\n<td>true</td>\n<td></td>\n</tr>\n<tr>\n<td>isStarted</td>\n<td>boolean</td>\n<td>true</td>\n<td>Is simulation ready to take requests</td>\n</tr>\n<tr>\n<td>isBusy</td>\n<td>boolean</td>\n<td>true</td>\n<td>If simulation is currently busy processing, it cannot handle requests.</td>\n</tr>\n<tr>\n<td>metadata</td>\n<td>object</td>\n<td>true</td>\n<td></td>\n</tr>\n<tr>\n<td>» schema</td>\n<td>object</td>\n<td>true</td>\n<td>Schema of the simulation</td>\n</tr>\n<tr>\n<td>» setup</td>\n<td>boolean</td>\n<td>true</td>\n<td>If simulation has been setup.</td>\n</tr>\n<tr>\n<td>» compileResult</td>\n<td>object</td>\n<td>true</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n<p class=\"code-header\">Example 200 response body</p>\n<div class=\"gatsby-highlight\" data-language=\"json\"><pre class=\"language-json\"><code class=\"language-json\"><span class=\"token punctuation\">{</span>\n  <span class=\"token property\">\"id\"</span><span class=\"token operator\">:</span> <span class=\"token string\">\"998436e0-a2df-427b-9c70-b07ba99a54fd\"</span><span class=\"token punctuation\">,</span>\n  <span class=\"token property\">\"isStarted\"</span><span class=\"token operator\">:</span> <span class=\"token boolean\">true</span><span class=\"token punctuation\">,</span>\n  <span class=\"token property\">\"isBusy\"</span><span class=\"token operator\">:</span> <span class=\"token boolean\">false</span><span class=\"token punctuation\">,</span>\n  <span class=\"token property\">\"metadata\"</span><span class=\"token operator\">:</span> <span class=\"token punctuation\">{</span>\n    <span class=\"token property\">\"kind\"</span><span class=\"token operator\">:</span> <span class=\"token string\">\"pojo\"</span><span class=\"token punctuation\">,</span>\n    <span class=\"token property\">\"schema\"</span><span class=\"token operator\">:</span> <span class=\"token punctuation\">{</span><span class=\"token punctuation\">}</span><span class=\"token punctuation\">,</span>\n    <span class=\"token property\">\"setup\"</span><span class=\"token operator\">:</span> <span class=\"token boolean\">true</span><span class=\"token punctuation\">,</span>\n    <span class=\"token property\">\"compileResult\"</span><span class=\"token operator\">:</span> <span class=\"token punctuation\">{</span>\n      <span class=\"token property\">\"hasErrors\"</span><span class=\"token operator\">:</span> <span class=\"token boolean\">false</span><span class=\"token punctuation\">,</span>\n      <span class=\"token property\">\"hasWarnings\"</span><span class=\"token operator\">:</span> <span class=\"token boolean\">false</span><span class=\"token punctuation\">,</span>\n      <span class=\"token property\">\"files\"</span><span class=\"token operator\">:</span> <span class=\"token punctuation\">{</span><span class=\"token punctuation\">}</span>\n    <span class=\"token punctuation\">}</span>\n  <span class=\"token punctuation\">}</span>\n<span class=\"token punctuation\">}</span></code></pre></div>\n<br>\n<p>Status Code <strong>404</strong></p>\n<table class=\"ui basic table\">\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>message</td>\n<td>string</td>\n<td>true</td>\n</tr>\n</tbody>\n</table>\n<p class=\"code-header\">Example 404 response body</p>\n<div class=\"gatsby-highlight\" data-language=\"json\"><pre class=\"language-json\"><code class=\"language-json\"><span class=\"token punctuation\">{</span>\n  <span class=\"token property\">\"message\"</span><span class=\"token operator\">:</span> <span class=\"token string\">\"Could not find simulation '5af75d69-1926-4ef2-a56f-07ad5f85673b'\"</span>\n<span class=\"token punctuation\">}</span></code></pre></div>\n<h1 id=\"delete\"><a href=\"#delete\" aria-hidden=\"true\" class=\"anchor\"><svg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>DELETE</h1>\n<p>Given the id, deletes the simulation.</p>\n<h2 id=\"request-2\"><a href=\"#request-2\" aria-hidden=\"true\" class=\"anchor\"><svg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Request</h2>\n<h3 id=\"parameters-2\"><a href=\"#parameters-2\" aria-hidden=\"true\" class=\"anchor\"><svg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Parameters</h3>\n<table class=\"ui basic table\">\n<thead>\n<tr>\n<th>Name</th>\n<th>Located in</th>\n<th>Description</th>\n<th>Required</th>\n<th>Schema</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>path</td>\n<td>id of simulation</td>\n<td>Yes</td>\n<td>string</td>\n</tr>\n</tbody>\n</table>\n<p class=\"code-header\">Example request</p>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token function\">curl</span> -X DELETE \\\n  http://localhost:8080/api/simulations/interactive/a098275a-307d-4d65-b8a5-47b9b484c609 \\\n  -H <span class=\"token string\">'Cache-Control: no-cache'</span></code></pre></div>\n<h2 id=\"response-2\"><a href=\"#response-2\" aria-hidden=\"true\" class=\"anchor\"><svg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Response</h2>\n<table class=\"ui basic table\">\n<thead>\n<tr>\n<th>Status</th>\n<th>Meaning</th>\n<th>Description</th>\n<th>Schema</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>204</td>\n<td><a href=\"https://tools.ietf.org/html/rfc7231#section-6.3.5\">No Content</a></td>\n<td>Request was completed successfully</td>\n<td>None</td>\n</tr>\n<tr>\n<td>404</td>\n<td><a href=\"https://tools.ietf.org/html/rfc7231#section-6.5.4\">Not Found</a></td>\n<td>Simulation not found</td>\n<td>Inline</td>\n</tr>\n</tbody>\n</table>\n<h3 id=\"response-schema-2\"><a href=\"#response-schema-2\" aria-hidden=\"true\" class=\"anchor\"><svg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Response Schema</h3>\n<br>\n<p>Status Code <strong>404</strong></p>\n<table class=\"ui basic table\">\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>message</td>\n<td>string</td>\n<td>true</td>\n</tr>\n</tbody>\n</table>\n<p class=\"code-header\">Example 404 response body</p>\n<div class=\"gatsby-highlight\" data-language=\"json\"><pre class=\"language-json\"><code class=\"language-json\"><span class=\"token punctuation\">{</span>\n  <span class=\"token property\">\"message\"</span><span class=\"token operator\">:</span> <span class=\"token string\">\"Could not find simulation '5af75d69-1926-4ef2-a56f-07ad5f85673b'\"</span>\n<span class=\"token punctuation\">}</span></code></pre></div>","headings":[{"value":"PUT","depth":1},{"value":"Request","depth":2},{"value":"Parameters","depth":3},{"value":"Body Schema","depth":3},{"value":"Response","depth":2},{"value":"Response Schema","depth":3},{"value":"GET","depth":1},{"value":"Request","depth":2},{"value":"Parameters","depth":3},{"value":"Response","depth":2},{"value":"Response Schema","depth":3},{"value":"DELETE","depth":1},{"value":"Request","depth":2},{"value":"Parameters","depth":3},{"value":"Response","depth":2},{"value":"Response Schema","depth":3}],"frontmatter":{"title":"/api/simulations/interactive/{id}","toc":null,"experimental":null}},"site":{"siteMetadata":{"title":"Simudyne Docs","latestVersion":"2.6"}}},"pageContext":{"absolutePath":"/home/vsts/work/1/s/content/2.5/rest_api/interactive/api_simulations_interactive_id.md","versioned":true,"version":"2.5","kind":"rest_api","pagePath":"/rest_api/interactive/api_simulations_interactive_id","chronology":{"prev":{"name":"/api/simulations/interactive/{id}/config","path":"/rest_api/interactive/api_simulations_interactive_config"},"next":{"name":"/api/simulations/interactive/{id}/ticks","path":"/rest_api/interactive/api_simulations_interactive_id_ticks"}},"lastUpdated":"2026-04-21T13:56:54.864Z"}}