The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

404 Error using Rest API V2 but 200 code using Rest API

Liza Wu
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 31, 2024

Hello,

I can call API using Rest API with 200 code returned, but getting error 404 error using REST API V2.

  • REST API Endpoint: 
    • https://{{YOURORG}}.atlassian.net/wiki/rest/api/search?cql=id != 0 order by lastmodified desc&limit=1
  • REST API V2 Endpoint: https://{{YOURORG}}.atlassian.net/wiki/api/v2/pages

I am using same HEADERS in Request.

Could you help me how to find endpoint for API V2?

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
marc -Collabello--Phase Locked-
Community Champion
June 3, 2024

Hi @Liza Wu ,

The error code 404 is not defined for the APIV2 pages endpoint.  I'd recommend to ask this question here: https://community.developer.atlassian.com/

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events