<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Running Notebooks via API with a Specified Session ID in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Running-Notebooks-via-API-with-a-Specified-Session-ID/m-p/4662688#M8764</link>
    <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1263031"&gt;@rushp&lt;/a&gt;&amp;nbsp;If the solution works please do give a kudos and accept it as a solution so as it will be easier for others to find&lt;BR /&gt;Thanks In Advance&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Apr 2025 09:20:01 GMT</pubDate>
    <dc:creator>Akash_Varuna</dc:creator>
    <dc:date>2025-04-22T09:20:01Z</dc:date>
    <item>
      <title>Running Notebooks via API with a Specified Session ID</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Running-Notebooks-via-API-with-a-Specified-Session-ID/m-p/4660796#M8737</link>
      <description>&lt;P&gt;I want to run a Fabric notebook via an API endpoint using a high-concurrency session that I have just manually started.&lt;/P&gt;&lt;P&gt;My approach was to include the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;sessionID&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;in the request payload and send a POST request, but it ends up creating a run using both the concurrent session&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;and&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;a new standard session.&lt;/P&gt;&lt;P&gt;So, where and how should I include the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;sessionID&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;in the sample request payload that I found in the official documentation?&lt;/P&gt;&lt;P&gt;I tried adding sessionID and sessionId as a key within "conf" dictionary - it does not work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;POST https://api.fabric.microsoft.com/v1/workspaces/{{WORKSPACE_ID}}/items/{{ARTIFACT_ID}}/jobs/instances?jobType=RunNotebook

{
    "executionData": {
        "parameters": {
            "parameterName": {
                "value": "new value",
                "type": "string"
            }
        },
        "configuration": {
            "conf": {
                "spark.conf1": "value"
            },
            "environment": {
                "id": "&amp;lt;environment_id&amp;gt;",
                "name": "&amp;lt;environment_name&amp;gt;"
            },
            "defaultLakehouse": {
                "name": "&amp;lt;lakehouse-name&amp;gt;",
                "id": "&amp;lt;lakehouse-id&amp;gt;",
                "workspaceId": "&amp;lt;(optional) workspace-id-that-contains-the-lakehouse&amp;gt;"
            },
            "useStarterPool": false,
            "useWorkspacePool": "&amp;lt;workspace-pool-name&amp;gt;"
        }
    }
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;SPAN&gt;IS THIS EVEN POSSIBLE???&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone explored a solution other than using&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;notebookutils.notebook.run()?&lt;/P&gt;&lt;P&gt;I tried but couldn’t find any.&lt;BR /&gt;Below are the two jobs that were created after manually initiating a High Concurrency session and sending the API request mentioned above — one that uses the High Concurrency session (which is desired), and another that creates a new independent session (which is not desired).&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="run.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1261932i844FD50A2C079359/image-size/large?v=v2&amp;amp;px=999" role="button" title="run.png" alt="run.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Apr 2025 10:15:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Running-Notebooks-via-API-with-a-Specified-Session-ID/m-p/4660796#M8737</guid>
      <dc:creator>rushp</dc:creator>
      <dc:date>2025-04-21T10:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: Running Notebooks via API with a Specified Session ID</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Running-Notebooks-via-API-with-a-Specified-Session-ID/m-p/4660827#M8738</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1263031"&gt;@rushp&lt;/a&gt;&amp;nbsp;I don’t think it’s currently possible to bind a manually started high-concurrency session directly to a notebook execution via the Fabric API. You might need to explore notebookutils.notebook.run() or raise a support ticket with Microsoft for clarification.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Apr 2025 10:32:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Running-Notebooks-via-API-with-a-Specified-Session-ID/m-p/4660827#M8738</guid>
      <dc:creator>Akash_Varuna</dc:creator>
      <dc:date>2025-04-21T10:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: Running Notebooks via API with a Specified Session ID</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Running-Notebooks-via-API-with-a-Specified-Session-ID/m-p/4662525#M8761</link>
      <description>&lt;P&gt;Thanks for the clarification, &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/855667"&gt;@Akash_Varuna&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;Yes, for now, I've implemented a workaround using notebookutils.notebook.run(), and it works.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Apr 2025 07:44:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Running-Notebooks-via-API-with-a-Specified-Session-ID/m-p/4662525#M8761</guid>
      <dc:creator>rushp</dc:creator>
      <dc:date>2025-04-22T07:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: Running Notebooks via API with a Specified Session ID</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Running-Notebooks-via-API-with-a-Specified-Session-ID/m-p/4662688#M8764</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1263031"&gt;@rushp&lt;/a&gt;&amp;nbsp;If the solution works please do give a kudos and accept it as a solution so as it will be easier for others to find&lt;BR /&gt;Thanks In Advance&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Apr 2025 09:20:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Running-Notebooks-via-API-with-a-Specified-Session-ID/m-p/4662688#M8764</guid>
      <dc:creator>Akash_Varuna</dc:creator>
      <dc:date>2025-04-22T09:20:01Z</dc:date>
    </item>
  </channel>
</rss>

