Forum Discussion

12_shashank's avatar
12_shashank
New Member
10 days 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}/jobs/execute/instances

Body/Payload:

{
  "parameters": [
    {
      "name": "filed_based_run",
      "value": true,
      "type": "Boolean"
    },
    {
      "name": "fail_whole_load",
      "value": true,
      "type": "Boolean"
    },
    {
      "name": "config_file",
      "value": "on_demand",
      "type": "Text"
    }
  ]
}

Error:
Status Code: 403 Forbidden
Error Message:
{
    "requestId": "cc5e44f7-cda1-4adc-9e18-ef19513b15d5",
    "errorCode": "FeatureNotAvailable",
    "message": "Parameter is not allowed for this item type or this item job type",
    "isRetriable": false
}

My question : Why we can't pass the parameter while calling the datapipeline and is there another I can do this like using Power Automate or Logic apps?
 






3 Replies