<?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: Execute Data Pipeline Via API in Pipelines</title>
    <link>https://community.fabric.microsoft.com/t5/Pipelines/Execute-Data-Pipeline-Via-API/m-p/3761313#M2136</link>
    <description>&lt;P&gt;One additional comment to the solution:&lt;/P&gt;&lt;P&gt;1. If you need to pass &lt;STRONG&gt;parameters&lt;/STRONG&gt; to the pipeline, you need to provide a payload/body in the following format:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{   "executionData": {
        "parameters": {
            "YourParameter1": 1,
            "YourParameter2": "Param2
        }
    }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Tip:&lt;/STRONG&gt; if you want to call Fabric APIs from a Fabrik Notebook you can use the semantic link library. This is also a great way of verifying/testing the API calls directly within Fabric:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;# Install sempy version 0.4.0 or higher
!pip install semantic-link --q 

import sempy.fabric as fabric

# Init the sempy client
client = fabric.FabricRestClient()

# Fabric REST API call “Job Scheduler – Run On Demand Item Job”
#    Docs: Job Scheduler - Run On Demand Item Job - REST API (Core) | https://learn.microsoft.com/en-us/rest/api/fabric/core/job-scheduler/run-on-demand-item-job
#    HTTP: POST https://api.fabric.microsoft.com/v1/workspaces/{workspaceId}/items/{itemId}/jobs/instances?jobType={jobType}
#    Body/Payload: {"executionData": { ... } }

# Get the default workspace id of the notebook
workspaceId = fabric.get_workspace_id()
itemId = f"yourPipelineUuid"
jobType = f"Pipeline"
payload = {
            "executionData": {
                "parameters": {
                    "YourParamter1": 1,
                    "YourParamter2": "Param2"
                    }
                }
            }

# Call Fabric REST API with semantic link Fabric REST client (sempy)
# Run without payload / no or default pipeline parameters

response = client.post(f"/v1/workspaces/{workspaceId}/items/{itemId}/jobs/instances?jobType={jobType}")

# Run with payload / pipeline parameters
response = client.post(f"/v1/workspaces/{workspaceId}/items/{itemId}/jobs/instances?jobType={jobType}",json= payload)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 13 Mar 2024 17:02:47 GMT</pubDate>
    <dc:creator>mpoeckl</dc:creator>
    <dc:date>2024-03-13T17:02:47Z</dc:date>
    <item>
      <title>Execute Data Pipeline Via API</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Execute-Data-Pipeline-Via-API/m-p/3740462#M2034</link>
      <description>&lt;P&gt;I have been attempting to execute a fabric data factory data pipeline via rest API from a synapse pipeline with no success. Has anyone done this? Is this possible currently? I thought I could do this via the &lt;A href="https://learn.microsoft.com/en-us/rest/api/fabric/core/job-scheduler/run-on-demand-item-job?tabs=HTTP" target="_self"&gt;Job Scheduler - Run On Demand Item Job&lt;/A&gt;&amp;nbsp;but it does not seem to be working or I am just doing something wrong. There does not seem to be much documentation on the job types but based on the example I should be able to run it with the paramater "DefaultJob" as job type, however, I receive errorCode: Invalid Job Type, message: The requested job type is invalid.&lt;BR /&gt;&lt;BR /&gt;Is this something anyone else has accomplished already?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2024 15:30:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Execute-Data-Pipeline-Via-API/m-p/3740462#M2034</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-03-04T15:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Data Pipeline Via API</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Execute-Data-Pipeline-Via-API/m-p/3740776#M2036</link>
      <description>&lt;P&gt;Unfortunately fabric Data pipeline APIs have yet not been exposed owining to which it is currently not possible to trigger the fabric data pipeline any way other than manual process or scheduled trigger&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2024 18:22:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Execute-Data-Pipeline-Via-API/m-p/3740776#M2036</guid>
      <dc:creator>NandanHegde</dc:creator>
      <dc:date>2024-03-04T18:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Data Pipeline Via API</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Execute-Data-Pipeline-Via-API/m-p/3748069#M2064</link>
      <description>&lt;P&gt;Hello&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;The Job Scheduler API is missing documentation when it comes to the jobType parameter. If you are trying to run a Data Pipeline on demand, don't use DefaultJob like this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/jobs/instances?jobType=DefaultJob&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Instead, use Pipeline like this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/jobs/instances?jobType=Pipeline&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2024 12:54:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Execute-Data-Pipeline-Via-API/m-p/3748069#M2064</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-03-07T12:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Data Pipeline Via API</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Execute-Data-Pipeline-Via-API/m-p/3751264#M2077</link>
      <description>&lt;P&gt;Hello&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;We haven’t heard from you on the last response and was just checking back to see if you have a resolution yet.&lt;BR /&gt;In case if you have any resolution please do share that same with the community as it can be helpful to others . &lt;BR /&gt;Otherwise, will respond back with the more details and we will try to help .&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2024 11:17:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Execute-Data-Pipeline-Via-API/m-p/3751264#M2077</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-03-08T11:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Data Pipeline Via API</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Execute-Data-Pipeline-Via-API/m-p/3752069#M2084</link>
      <description>&lt;P&gt;Thank you I can confirm that this is the correct answer and works.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2024 20:28:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Execute-Data-Pipeline-Via-API/m-p/3752069#M2084</guid>
      <dc:creator>cw_61591</dc:creator>
      <dc:date>2024-03-08T20:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Data Pipeline Via API</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Execute-Data-Pipeline-Via-API/m-p/3754493#M2093</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="700730" data-lia-user-login="cw_61591" class="lia-mention lia-mention-user"&gt;cw_61591&lt;/a&gt;&amp;nbsp;,&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Glad to know your query got resolved. Please continue using Fabric Community for your further queries.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2024 08:52:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Execute-Data-Pipeline-Via-API/m-p/3754493#M2093</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-03-11T08:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Data Pipeline Via API</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Execute-Data-Pipeline-Via-API/m-p/3761313#M2136</link>
      <description>&lt;P&gt;One additional comment to the solution:&lt;/P&gt;&lt;P&gt;1. If you need to pass &lt;STRONG&gt;parameters&lt;/STRONG&gt; to the pipeline, you need to provide a payload/body in the following format:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{   "executionData": {
        "parameters": {
            "YourParameter1": 1,
            "YourParameter2": "Param2
        }
    }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Tip:&lt;/STRONG&gt; if you want to call Fabric APIs from a Fabrik Notebook you can use the semantic link library. This is also a great way of verifying/testing the API calls directly within Fabric:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;# Install sempy version 0.4.0 or higher
!pip install semantic-link --q 

import sempy.fabric as fabric

# Init the sempy client
client = fabric.FabricRestClient()

# Fabric REST API call “Job Scheduler – Run On Demand Item Job”
#    Docs: Job Scheduler - Run On Demand Item Job - REST API (Core) | https://learn.microsoft.com/en-us/rest/api/fabric/core/job-scheduler/run-on-demand-item-job
#    HTTP: POST https://api.fabric.microsoft.com/v1/workspaces/{workspaceId}/items/{itemId}/jobs/instances?jobType={jobType}
#    Body/Payload: {"executionData": { ... } }

# Get the default workspace id of the notebook
workspaceId = fabric.get_workspace_id()
itemId = f"yourPipelineUuid"
jobType = f"Pipeline"
payload = {
            "executionData": {
                "parameters": {
                    "YourParamter1": 1,
                    "YourParamter2": "Param2"
                    }
                }
            }

# Call Fabric REST API with semantic link Fabric REST client (sempy)
# Run without payload / no or default pipeline parameters

response = client.post(f"/v1/workspaces/{workspaceId}/items/{itemId}/jobs/instances?jobType={jobType}")

# Run with payload / pipeline parameters
response = client.post(f"/v1/workspaces/{workspaceId}/items/{itemId}/jobs/instances?jobType={jobType}",json= payload)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2024 17:02:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Execute-Data-Pipeline-Via-API/m-p/3761313#M2136</guid>
      <dc:creator>mpoeckl</dc:creator>
      <dc:date>2024-03-13T17:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Data Pipeline Via API</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Execute-Data-Pipeline-Via-API/m-p/3863451#M2853</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am getting an error either running a notebook or a pipeline from synapse,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2024 20:09:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Execute-Data-Pipeline-Via-API/m-p/3863451#M2853</guid>
      <dc:creator>yllsuarez76</dc:creator>
      <dc:date>2024-04-23T20:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Data Pipeline Via API</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Execute-Data-Pipeline-Via-API/m-p/4019049#M4315</link>
      <description>&lt;P&gt;I am trying to run a notebook and receiving same error (invalid job type). I tried to use Pipeline and Notebook, but they didn't work. What is suitable jobtype for Notebooks?&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2024 18:21:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Execute-Data-Pipeline-Via-API/m-p/4019049#M4315</guid>
      <dc:creator>PanuO</dc:creator>
      <dc:date>2024-07-01T18:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Data Pipeline Via API</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Execute-Data-Pipeline-Via-API/m-p/4255665#M6036</link>
      <description>&lt;P&gt;Hi, I am trying to trigger a pipeline using the HTTPS "Run on Demand" feature and want to automate it with a button click from a model-driven app. Does anyone have any idea how we can achieve this? I tried using Power Automate (Flow), but I wasn't able to find any suitable connector.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2024 06:44:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Execute-Data-Pipeline-Via-API/m-p/4255665#M6036</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-10-24T06:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Data Pipeline Via API</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Execute-Data-Pipeline-Via-API/m-p/4297919#M6461</link>
      <description>&lt;P&gt;please add this to the documentation, the docs make no mention of how you should construct the parameters or the appropriate jobtypes&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2024 22:44:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Execute-Data-Pipeline-Via-API/m-p/4297919#M6461</guid>
      <dc:creator>richbenmintz</dc:creator>
      <dc:date>2024-11-22T22:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Data Pipeline Via API</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Execute-Data-Pipeline-Via-API/m-p/4376613#M6937</link>
      <description>&lt;P&gt;The jobType is `RunNotebook` for Notebooks. See here:&amp;nbsp;&lt;A href="https://www.reddit.com/r/MicrosoftFabric/comments/1hmtr86/comment/m41gjqs/?utm_source=share&amp;amp;utm_medium=web3x&amp;amp;utm_name=web3xcss&amp;amp;utm_term=1&amp;amp;utm_content=share_button" target="_blank"&gt;https://www.reddit.com/r/MicrosoftFabric/comments/1hmtr86/comment/m41gjqs/?utm_source=share&amp;amp;utm_medium=web3x&amp;amp;utm_name=web3xcss&amp;amp;utm_term=1&amp;amp;utm_content=share_button&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2025 00:22:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Execute-Data-Pipeline-Via-API/m-p/4376613#M6937</guid>
      <dc:creator>alexjbush</dc:creator>
      <dc:date>2025-01-23T00:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Data Pipeline Via API</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Execute-Data-Pipeline-Via-API/m-p/4423414#M7148</link>
      <description>&lt;P&gt;Microsoft has published&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-factory/pipeline-rest-api" target="_blank"&gt;Fabric data pipeline public REST API (Preview) - Microsoft Fabric | Microsoft Learn&lt;/A&gt;&amp;nbsp;guide, but I cannot get that&lt;EM&gt;&amp;nbsp;Run on-demand item job&lt;/EM&gt;&amp;nbsp;thing working. It just returns &lt;STRONG&gt;403.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Feb 2025 11:41:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Execute-Data-Pipeline-Via-API/m-p/4423414#M7148</guid>
      <dc:creator>PanuO</dc:creator>
      <dc:date>2025-02-23T11:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Data Pipeline Via API</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Execute-Data-Pipeline-Via-API/m-p/4598897#M7243</link>
      <description>&lt;P&gt;i found this:&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-factory/pipeline-rest-api#run-on-demand-item-job" target="_blank"&gt;Fabric data pipeline public REST API (Preview) - Microsoft Fabric | Microsoft Learn&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Mar 2025 15:47:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Execute-Data-Pipeline-Via-API/m-p/4598897#M7243</guid>
      <dc:creator>7effrey</dc:creator>
      <dc:date>2025-03-06T15:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Data Pipeline Via API</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Execute-Data-Pipeline-Via-API/m-p/4671055#M7654</link>
      <description>&lt;P&gt;This should now be possible:&lt;BR /&gt;&lt;A href="https://sqlkover.com/execute-fabric-data-pipeline-from-azure-data-factory/" target="_blank"&gt;https://sqlkover.com/execute-fabric-data-pipeline-from-azure-data-factory/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Apr 2025 12:47:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Execute-Data-Pipeline-Via-API/m-p/4671055#M7654</guid>
      <dc:creator>Koen_Verbeeck</dc:creator>
      <dc:date>2025-04-28T12:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Data Pipeline Via API</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Execute-Data-Pipeline-Via-API/m-p/4702238#M7864</link>
      <description>&lt;P&gt;I've got this to work. Just make a custom connector and that one respect the 202 response and will poll for status after 60 seconds.&lt;/P&gt;</description>
      <pubDate>Wed, 21 May 2025 18:20:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Execute-Data-Pipeline-Via-API/m-p/4702238#M7864</guid>
      <dc:creator>TOPsDEV</dc:creator>
      <dc:date>2025-05-21T18:20:43Z</dc:date>
    </item>
  </channel>
</rss>

