Pull request using Stash rest api
<p>I am trying to create pull request using rest API. I went through the <a href="https://developer.atlassian.com/static/rest/stash/3.11.3/stash-rest.html#idp60384" rel="nofollow">documentaion</a> . I am doing a post request as mentioned in the doc with below json</p>

<pre><code>{
 "title": "blah blah", 
 "description": "blah blah",  
 "state": "OPEN",  "open": true,  
 "closed": false, 
 "fromRef":
    {
        "id": "feature/test1",
        "repository":
            {
                "slug": "test-repo",
                "name": null,
                "project":
                    {
                        "key": "PR"
                    }
            }
      }, 
 "toRef":
     {
         "id": "refs/heads/master",
         "repository":
             {
                 "slug": "test-repo",
                 "name": null,
                 "project":
                    {
                        "key": "PR"
                    }
             }
      }, 
"locked": false,  
"reviewers": [
                 {
                     "user":
                          {
                              "name": "nikhil"
                          }
                 }
             ]
}
</code></pre>

<p>but I am getting an error in response</p>

<pre><code>{
    "errors":
      [
         {
             "context":"type","message":"Please enter a type of permission","exceptionName":null
         },
         {
             "context":"permitted","message":"Please enter at least one user or group","exceptionName":null
         }
      ]
 }
</code></pre>

<p>I dont know what permission parameter to add in json request. Please help me with this. This is save a lot of time for me.</p>