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

0 votes
marc -Collabello--Phase Locked-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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/

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events