title: ADF Create Pipeline Run - Parameters
body: <p>I need to trigger a ADF Pipeline via REST API and pass a parameter in order to execute the pipeline for the given ID (parameter).
  With sparse documentation around this, I am unable to figure out how to pass parameters to the URL</p>
  <p>Sample:</p>
  <pre><code>https://management.azure.com/subscriptions/asdc57878-77fg-fb1e8-7b06-7b0698bfb1e8/resourceGroups/dev-rg/providers/Microsoft.DataFactory/factories/df-datafactory-dev/pipelines/pl_StartProcessing/createRun?api-version=2018-06-01
  </code></pre>
  <p>I tried to send parmaters in the request body but I get the following message depending on how params are sent</p>
  <pre><code>{
      &quot;message&quot;: &quot;The request entity's media type 'text/plain' is not supported for this resource.&quot;
  }
  </code></pre>
  <p>I tried using python requests :</p>
  <pre><code>import requests
  
  url = &quot;https://management.azure.com/subscriptions/adsad-asdasd-adasd-adasda-adada/resourceGroups/dev-rg/providers/Microsoft.DataFactory/factories/datafactory-dev/pipelines/pl_Processing/createRun?api-version=2018-06-01&quot;
  
  payload = &quot; \&quot;parameters\&quot;: {\r\n     “stateID”: “78787878”\r\n}&quot;
  headers = {
    'Content-Type': 'application/json',
    'Authorization': 'Bearer adsasdasdsad'
  }
  
  response = requests.request(&quot;POST&quot;, url, headers=headers, data = payload)
  
  print(response.text.encode('utf8'))
  </code></pre>
  <p>I tried to put the parameter in the payload (body)</p>