{"componentChunkName":"component---src-templates-default-template-tsx","path":"/documentation/migration_topics/migration_6_7/","result":{"data":{"asciidoc":{"id":"a97e071f-2651-57dd-b6e3-5e9955699337","html":"<div id=\"preamble\">\n<div class=\"sectionbody\">\n<div class=\"paragraph\">\n<p>Migrating from HIRO&#8482; 6 to HIRO&#8482; 7 provides you with new functionalities and a restructured API. The changes in the API&#8217;s required to move from HIRO&#8482; 6 to 7 are available in this document.</p>\n</div>\n</div>\n</div>\n<div class=\"sect1\">\n<h2 id=\"_api_changes_from_hiro_6_to_7\">API Changes from HIRO&#8482; 6 to 7</h2>\n<div class=\"sectionbody\">\n<div class=\"ulist\">\n<ul>\n<li>\n<p>There is now a common base url (<a href=\"https://core.engine.datagroup.de\" class=\"bare\">https://core.engine.datagroup.de</a>) for all customers and instances</p>\n</li>\n<li>\n<p>Each HIRO instance has its own <code><strong>scope</strong></code> which is used to manage access-permissions</p>\n</li>\n<li>\n<p>The <code>ogit/_owner</code> attribute no longer needs to be set when writing to provide visibility and access</p>\n</li>\n<li>\n<p>The structure of the path for calling the interfaces has been changed, swapping the position of the API version:<br>\n<code>/api/<em>$VERSION</em>/graph/</code> (previous)<br>\n<code>/api/graph/<em>$VERSION</em>/</code> (now)<br>\nfor all available APIs, please visit  <a href=\"https://core.engine.datagroup.de/help/\" class=\"bare\">https://core.engine.datagroup.de/help/</a></p>\n</li>\n<li>\n<p>The special treatment for <code>ogit/Person</code> (email address has also been used as the vertex id) has been removed.</p>\n</li>\n</ul>\n</div>\n</div>\n</div>\n<div class=\"sect1\">\n<h2 id=\"_necessary_adjustments_in_existing_code\">Necessary adjustments in existing code</h2>\n<div class=\"sectionbody\">\n<div class=\"paragraph\">\n<p>To make your existing project work with HIRO&#8482; 7 you will need to:</p>\n</div>\n<div class=\"dlist\">\n<dl>\n<dt class=\"hdlist1\">Update the Authentication API URL</dt>\n<dd>\n<p>New authentication URL: <a href=\"https://core.engine.datagroup.de/api/auth/6/app\" class=\"bare\">https://core.engine.datagroup.de/api/auth/6/app</a></p>\n</dd>\n<dt class=\"hdlist1\">Update the Graph API URL</dt>\n<dd>\n<p>New Graph-Api URL: <a href=\"https://core.engine.datagroup.de/api/graph/7/\" class=\"bare\">https://core.engine.datagroup.de/api/graph/7/</a></p>\n</dd>\n<dt class=\"hdlist1\">Use scope instead of owner for permissions</dt>\n<dd>\n<p>Change your code to refer to your scope instead of an owner whenever you are performing a task:<br>\ne.g. when creating a new vertex set the attribute <code>ogit/_scope</code><br>\ni.e <span class=\"line-through\"><code>ogit/_owner</code> </span>  &#8594; <code>ogit/_scope</code><br>\nFor details please read/follow the tutorial <a href=\"/7.0/tutorials/tutorial-first-steps-with-hiro/\">First Steps with HIRO</a></p>\n</dd>\n</dl>\n</div>\n<div class=\"paragraph\">\n<p><strong>Note</strong> - These API&#8217;s may be updated time to time. Latest API&#8217;s can be found at  <a href=\"https://core.engine.datagroup.de/help/\" class=\"bare\">https://core.engine.datagroup.de/help/</a></p>\n</div>\n</div>\n</div>\n<div class=\"sect1\">\n<h2 id=\"_action_handlers_in_hiro_7\">Action Handlers in HIRO 7</h2>\n<div class=\"sectionbody\">\n<div class=\"paragraph\">\n<p>In HIRO 6 Action Handlers were a part of the engine configuration and executed on the engine. Customers can now create their own on-premise action handlers using the Action API.</p>\n</div>\n<div class=\"paragraph\">\n<p>For more information on the Action API, please visit <a href=\"/7.0/documentation/api/action-api/\">Action API</a></p>\n</div>\n<div class=\"dlist\">\n<dl>\n<dt class=\"hdlist1\">URL to get capabilities and applicabilities</dt>\n<dd>\n<p><strong>Capabilities</strong>: <a href=\"https://core.engine.datagroup.de/api/action/1/capabilities\" class=\"bare\">https://core.engine.datagroup.de/api/action/1/capabilities</a><br>\n<strong>Applicabilities</strong>: <a href=\"https://core.engine.datagroup.de/api/action/1/applicabilities\" class=\"bare\">https://core.engine.datagroup.de/api/action/1/applicabilities</a></p>\n</dd>\n<dt class=\"hdlist1\">URL to create websocket</dt>\n<dd>\n<p>URL: <code>wss://core.almato.ai/api/action-ws/1/</code><br>\nSubProtocol: action-1.0.0<br>\nSample websocket connection request:</p>\n</dd>\n</dl>\n</div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre class=\"highlight\"><code class=\"language-javascript\" data-lang=\"javascript\">const ws = new WebSocket('wss://core.almato.ai/api/action-ws/1/', ['action-1.0.0', 'token-' + '$token'])</code></pre>\n</div>\n</div>\n<div class=\"paragraph\">\n<p><strong>Note</strong> - These API&#8217;s may be updated time to time. Latest  API&#8217;s can be found at  <a href=\"https://core.engine.datagroup.de/help/\" class=\"bare\">https://core.engine.datagroup.de/help/</a></p>\n</div>\n</div>\n</div>","document":{"main":"Migrating to HIRO™ 7 API","title":"Migrating to HIRO™ 7 API","subtitle":""},"fields":{"toc":false,"location":["documentation","migration_topics","migration_6_7"]}},"sidebarYaml":{"id":"6d066bdd-c982-5a69-b909-a31e6fc044e0","showIndex":null}},"pageContext":{"id":"a97e071f-2651-57dd-b6e3-5e9955699337","parent":"documentation"}},"staticQueryHashes":["1010459453","1010459453","2356112386","2356112386","2603905930","2603905930","3026652197","3026652197","3167850324","3167850324","63159454","63159454"]}