{"data":{"markdownRemark":{"html":"<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 array of ticks, time-steps within the 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 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 GET http://localhost:8080/api/simulations/batch/<span class=\"token punctuation\">{</span>id<span class=\"token punctuation\">}</span>/ticks \\\n  -H <span class=\"token string\">'Accept: application/json'</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>200</td>\n<td><a href=\"https://tools.ietf.org/html/rfc7231#section-6.3.1\">OK</a></td>\n<td>Response completed sucessfully</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\"><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>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</tr>\n</thead>\n<tbody>\n<tr>\n<td>ticks</td>\n<td>[object]</td>\n<td>true</td>\n</tr>\n<tr>\n<td>» time</td>\n<td>string(date-time)</td>\n<td></td>\n</tr>\n<tr>\n<td>» tick</td>\n<td>integer</td>\n<td></td>\n</tr>\n<tr>\n<td>» data</td>\n<td>object</td>\n<td></td>\n</tr>\n<tr>\n<td>»» time</td>\n<td>object</td>\n<td>true</td>\n</tr>\n<tr>\n<td>»»» start</td>\n<td>string(date-time)</td>\n<td>true</td>\n</tr>\n<tr>\n<td>»»» end</td>\n<td>string(date-time)</td>\n<td>true</td>\n</tr>\n<tr>\n<td>»»» timeStep</td>\n<td>integer</td>\n<td>true</td>\n</tr>\n<tr>\n<td>»»» ticks</td>\n<td>integer</td>\n<td>true</td>\n</tr>\n<tr>\n<td>»»» macroStep</td>\n<td>integer</td>\n<td>true</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\">\"ticks\"</span><span class=\"token operator\">:</span> <span class=\"token punctuation\">[</span>\n        <span class=\"token punctuation\">{</span>\n            <span class=\"token property\">\"time\"</span><span class=\"token operator\">:</span> <span class=\"token string\">\"2018-01-01T00:00Z\"</span><span class=\"token punctuation\">,</span>\n            <span class=\"token property\">\"tick\"</span><span class=\"token operator\">:</span> <span class=\"token number\">0</span><span class=\"token punctuation\">,</span>\n            <span class=\"token property\">\"data\"</span><span class=\"token operator\">:</span> <span class=\"token punctuation\">{</span>\n                <span class=\"token property\">\"aliveCells\"</span><span class=\"token operator\">:</span> <span class=\"token punctuation\">{</span>\n                    <span class=\"token property\">\"min\"</span><span class=\"token operator\">:</span> <span class=\"token number\">204</span><span class=\"token punctuation\">,</span>\n                    <span class=\"token property\">\"max\"</span><span class=\"token operator\">:</span> <span class=\"token number\">204</span><span class=\"token punctuation\">,</span>\n                    <span class=\"token property\">\"mean\"</span><span class=\"token operator\">:</span> <span class=\"token number\">204</span><span class=\"token punctuation\">,</span>\n                    <span class=\"token property\">\"median\"</span><span class=\"token operator\">:</span> <span class=\"token number\">204</span><span class=\"token punctuation\">,</span>\n                    <span class=\"token property\">\"lower_quartile\"</span><span class=\"token operator\">:</span> <span class=\"token number\">204</span><span class=\"token punctuation\">,</span>\n                    <span class=\"token property\">\"upper_quartile\"</span><span class=\"token operator\">:</span> <span class=\"token number\">204</span><span class=\"token punctuation\">,</span>\n                    <span class=\"token property\">\"std\"</span><span class=\"token operator\">:</span> <span class=\"token number\">0</span><span class=\"token punctuation\">,</span>\n                    <span class=\"token property\">\"variance\"</span><span class=\"token operator\">:</span> <span class=\"token number\">0</span>\n                <span class=\"token punctuation\">}</span><span class=\"token punctuation\">,</span>\n                <span class=\"token property\">\"time\"</span><span class=\"token operator\">:</span> <span class=\"token punctuation\">{</span>\n                    <span class=\"token property\">\"start\"</span><span class=\"token operator\">:</span> <span class=\"token string\">\"2018-01-01T00:00Z\"</span><span class=\"token punctuation\">,</span>\n                    <span class=\"token property\">\"end\"</span><span class=\"token operator\">:</span> <span class=\"token string\">\"2023-01-01T00:00Z\"</span><span class=\"token punctuation\">,</span>\n                    <span class=\"token property\">\"timeStep\"</span><span class=\"token operator\">:</span> <span class=\"token number\">1</span><span class=\"token punctuation\">,</span>\n                    <span class=\"token property\">\"timeUnit\"</span><span class=\"token operator\">:</span> <span class=\"token string\">\"Months\"</span><span class=\"token punctuation\">,</span>\n                    <span class=\"token property\">\"ticks\"</span><span class=\"token operator\">:</span> <span class=\"token number\">60</span><span class=\"token punctuation\">,</span>\n                    <span class=\"token property\">\"macroStep\"</span><span class=\"token operator\">:</span> <span class=\"token number\">25</span>\n                <span class=\"token punctuation\">}</span>\n            <span class=\"token punctuation\">}</span>\n        <span class=\"token punctuation\">}</span><span class=\"token punctuation\">,</span>\n    <span class=\"token punctuation\">{</span> ... <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>","headings":[{"value":"GET","depth":1},{"value":"Request","depth":2},{"value":"Parameters","depth":3},{"value":"Response","depth":2},{"value":"Response Schema","depth":3}],"frontmatter":{"title":"/api/simulations/batch/{id}/ticks","toc":null,"experimental":null}},"site":{"siteMetadata":{"title":"Simudyne Docs","latestVersion":"2.6"}}},"pageContext":{"absolutePath":"/home/vsts/work/1/s/content/2.3/rest_api/batch/api_simulations_batch_id_ticks.md","versioned":true,"version":"2.3","kind":"rest_api","pagePath":"/rest_api/batch/api_simulations_batch_id_ticks","chronology":{"prev":{"name":"/api/simulations/batch/{id}","path":"/rest_api/batch/api_simulations_batch_id"},"next":{"name":"Scenario Rest API","path":"/rest_api/scenario"}},"lastUpdated":"2026-04-21T13:56:54.845Z"}}