Rest API Issue link not working

Hudson Billock August 5, 2022

I am trying to create an issue via the Jira REST API as per this document. The localhost addresses do not seem to work, but I can access the links via 

https://mysite.atlassian.net/rest/api/latest/etc.

 I can access all addresses (/rest/api/latest/issue/createmeta/, /rest/api/latest/project, etc) that they give in the article except

https://mysite.atlassian.net/rest/api/latest/issue/

which is the one needed for the curl command to create a new issue. When I go to that url, it returns the following error: "This page isn’t working. If the problem continues, contact the site owner. HTTP ERROR 405." Is this documentation just outdated -- could I use a different url instead for the curl command? Or is it that I need to fix something with this url? Thanks!

1 answer

0 votes
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 5, 2022

The document you referenced is for the REST API for self-hosted Jira (Jira Server or Jira Data Center). Given that you say using endpoints like

https://mysite.atlassian.net

...work, then you are actually using Jira Cloud and need to reference the API documents for it. Here is a link to documentation for v3 of that API

https://developer.atlassian.com/cloud/jira/platform/rest/v3/intro/

In the examples I've viewed in that document they include an explicit version number within the endpoint rather than using "latest". Perhaps "latest" works generally unless the endpoint has changed from one version to the next, and then you need to use an explicit version.

Suggest an answer

Log in or Sign up to answer