Forum Discussion

12_shashank's avatar
12_shashank
New Member
2 months ago
Solved

Passing the Parameter while calling the Data Pipeline using REST API

Hello Readers, I am trying to trigger the REST API to trigger an on-demand job on my datapipeline: POST https://api.fabric.microsoft.com/v1/workspaces/{workspaceId}/dataPipelines/{pipelineId}/job...
  • tayloramy's avatar
    tayloramy
    1 day ago

    Hi 12_shashank​,

    The body needs to contain an executionData element. 

    Also ensure that your jobType is Pipeline. 

    POST 

    https://api.fabric.microsoft.com/v1/workspaces/{WorkspaceID}/items/{ItemID}/jobs/Pipeline/instances

    {
      "executionData": {
        "parameters": {
          "config_file": "excess"
        }
      }
    }

     I have tested this and it is functional. 

    Here is the body I used: 

    {
      "executionData": {
        "parameters": {
          "Subject": "Test",
          "Body": "This is a test"
        }
      }
    }

    and in the service here is the pipeline run with those parameters: