title: How to create a MR using GitLab API?
body: <p>I am trying to create a merge request using the <a href="https://docs.gitlab.com/ee/api/merge_requests.html#create-mr" rel="noreferrer">GitLab Merge Request API</a> with python and the python requests package. This is a snippet of my code</p>
  
  <pre><code>import requests, json
  
  MR = 'http://www.gitlab.com/api/v4/projects/317/merge_requests'
  
  id = '317'
  gitlabAccessToken = 'MySecretAccessToken'
  sourceBranch = 'issue110'
  targetBranch = 'master'
  title = 'title'
  description = 'description'
  
  header = { 'PRIVATE-TOKEN' : gitlabAccessToken,
             'id'            : id,    
             'title'         : title, 
             'source_branch' : sourceBranch, 
             'target_branch' : targetBranch
           }
  
  reply = requests.post(MR, headers = header)
  status = json.loads(reply.text)
  </code></pre>
  
  <p>but I keep getting the following message in the reply</p>
  
  <pre><code>{'error': 'title is missing, source_branch is missing, target_branch is missing'}
  </code></pre>
  
  <p>What should I change in my request to make it work?</p>