title: Azure devops pass build parameters through Rest API
body: <p>I'm trying to pass a parameters through the build rest API using jira, but it doesn't override the parameter.</p>
  <p>Pipeline:</p>
  <pre><code>parameters:
  - name: &quot;Testplan&quot;
    type: string
    default: &quot;NoPlanDefined&quot;
  
  stage: Test
    jobs:
    - job: Testing_And_Transfer
      - task: PowerShell@2
          displayName: &quot;Testing API Call&quot;
          inputs:
            targetType: 'filepath'
            filePath: './script/Jira.ps1'
            arguments: 
              -Jira_id ${{ parameters.Testplan }}
  </code></pre>
  <p>Jira.ps1 content:</p>
  <pre><code>Param(
      [string]$Jira_id = &quot;no ID&quot;
  )
  #-----------------------Jira API--------------------------
  echo 'This is a test \n ID: '
  echo $Jira_id
  </code></pre>
  <p>My rest command is setup like so:</p>
  <blockquote>
  <p>URL: <a href="https://dev.azure.com/%7BMy" rel="nofollow noreferrer">https://dev.azure.com/{My</a> corp}/MyHello/_apis/build/builds?api-version=6.0</p>
  </blockquote>
  <p>Body:</p>
  <pre><code>{    
      &quot;definition&quot;:  { 
          &quot;id&quot;: 1 
          },
      &quot;parameters&quot;: &quot;{ \&quot;Testplan\&quot;:\&quot;Postman\&quot; }&quot;
  }
  </code></pre>
  <ul>
  <li>When using the trigger, the ps1 return <strong>NoPlanDefined</strong> as expected.</li>
  <li>When using a manual trigger and changing the parameter, the parameter
  get changed as expected.</li>
  <li>When trying to change the parameter through
  the Rest api, Testplan is empty instead of <strong>Postman</strong>.</li>
  </ul>
  <p>I'm I doing something wrong with the REST API?</p>