title: GitLab CI variables in job api?
body: <p>I am using rest API to run manual jobs in GitLab CI. When i start a manual job from UI I am able to define custom variables that i can use during the job. How can i define them when running job through API?</p>
  
  <p>Could not find any documentation on it. Or not even a single question in forums.</p>
  
  <p>This is how i currently run my job</p>
  
  <pre><code>curl -k --request POST --header "PRIVATE-TOKEN: abc" https://mygit.com/api/v4/projects/17/jobs/1956/play
  </code></pre>
  
  <p>I tried adding:</p>
  
  <pre><code>--form variables[TEST]=hello
  </code></pre>
  
  <p>But this didnt work.</p>
  
  <p>Edit:
  A bit more information on what im doing. So my pipeline has two stages. Build and deploy. On each commit I want build to run once and then i want to be able to deploy this result to multiple different servers. Because the server list is dynamic and there are a lot of them I want to have the IP address of the server as an variable I can give to my deploy job.</p>