title: Jira REST API returns error when creating issue
body: <p>My goal is to use the Jira REST API to create an issue. But as of now I am getting an error <strong>(405) Method Not Allowed.</strong></p>
  
  <p>I have checked in the Jira Properties if the Jira Remote APIs are switched on.
  Under:</p>
  
  <p><em>JIRA Configuration > General Configuration > Allow Remote API Calls is ON.</em> </p>
  
  <p>I have also checked my JSON string submitted which looks fine to me:</p>
  
  <pre><code>"{\"fields\":{\"project\":{\"key\":\"CTTS\"},\"summary\":\"Api  Test\",\"description\":\"Test\",\"issuetype\":{\"name\":\"Story\"}}}"
  </code></pre>
  
  <p>My current code to call the API is following:</p>
  
  <pre><code>public JiraApiResponseObject CreateRequest(JSONstring)
      {
          jiraRequest = (HttpWebRequest)WebRequest.Create("https://MyJiraUrl.net/rest/api/2/issue");
  
          jiraRequest.Method = "POST";
          jiraRequest.ContentType = "application/json";
          jiraRequest.Accept = "application/json";
  
          using (var streamWriter = new StreamWriter(jiraRequest.GetRequestStream()))
          {
              streamWriter.Write(JSONstring);
              streamWriter.Flush();
          }
  
          HttpWebResponse response = (HttpWebResponse)jiraRequest.GetResponse();
          return jiraReturnObject;
      }
  </code></pre>
  
  <p>I currently dont know what is causing the error. I just get the <strong>(405) Method Not Allowed</strong> error from the remote server, when i actually would expect a API response.</p>