Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

60 Days of Data Days! Live and on-demand sessions, challenges, study groups and more! And it's all FREE!. Join now. Learn more

Reply
RajPunjabi
New Member

Pipeline Trigger using API

I am facinng error while scheduling/triggering pipeline via api call

RajPunjabi_0-1742968930357.png


and another method i tried is: REST API capabilities for Fabric Data Factory (Preview) - Microsoft Fabric | Microsoft Learn

RajPunjabi_1-1742968975649.png

 


but it is giving me an error stating "Invalid job type" 

RajPunjabi_2-1742969093255.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @RajPunjabi ,

Thanks for the update! I understand that the "Invalid jobType" error is persisting. Since you’re scheduling the pipeline manually for now.

A few things to check: Ensure that jobType is not included in the request URL, as the API automatically determines it. Also, verify that your {pipelineId} is correct and matches an existing pipeline in your Fabric workspace. Additionally, double-check that your access token has the required permissions (Pipeline Operator or Fabric Admin).

If this post helps, then please give us Kudos and consider Accept it as a solution to help the other members find it more quickly.

Thankyou.

View solution in original post

6 REPLIES 6
Anonymous
Not applicable

Hi @RajPunjabi ,

Thank you for posting in the Microsoft Fabric Community.

 

The "InvalidJobType" error occurs because jobType=Pipeline is not the correct value for triggering a pipeline in Microsoft Fabric.

Try using the correct API call:

 

POST https://api.fabric.microsoft.com/v1/workspaces/{workspaceId}/items/{pipelineId}/jobs/instances?jobTy...

Authorization: Bearer {accessToken}

Content-Type: application/json

 

Request Body:

{

  "executionData": {

    "parameters": {}

  }

}

 

Please ensure that {pipelineId} is a valid pipeline ID from your Fabric workspace. You can verify this in the Fabric UI. Also, confirm that your API token has sufficient permissions (Fabric Admin or Pipeline Operator role).

If the error persists, you can manually trigger the pipeline from the Microsoft Fabric UI as a temporary solution.

 

I hope this will resolve your issue, if you need any further assistance, feel free to reach out.

If this post helps, then please give us Kudos and consider Accept it as a solution to help the other members find it more quickly.

Thankyou.

 

Still it is giving as Invalid jobtype. I will schedule that manually for now

Anonymous
Not applicable

Hi @RajPunjabi ,

 

May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.

 

Thank you.

Anonymous
Not applicable

Hi @RajPunjabi ,

Thanks for the update! I understand that the "Invalid jobType" error is persisting. Since you’re scheduling the pipeline manually for now.

A few things to check: Ensure that jobType is not included in the request URL, as the API automatically determines it. Also, verify that your {pipelineId} is correct and matches an existing pipeline in your Fabric workspace. Additionally, double-check that your access token has the required permissions (Pipeline Operator or Fabric Admin).

If this post helps, then please give us Kudos and consider Accept it as a solution to help the other members find it more quickly.

Thankyou.

RajPunjabi
New Member

RajPunjabi_0-1742985815084.png

Still i am facing same error

nilendraFabric
Super User
Super User

Try with jobtype=Pipeline once

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

June Fabric Update Carousel

Fabric Monthly Update - June 2026

Check out the June 2026 Fabric update to learn about new features.