Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

which one to use between rest api vs rest api v2

Sachin Somannavar March 5, 2024

url = "https://your-domain.atlassian.net/wiki/rest/api/space"

this is for getting the spaces in rest api

this is the url I am using url = f'https://api.atlassian.com/ex/confluence/cloudid /rest/api/space' and it is working

url = "https://{your-domain}/wiki/api/v2/spaces"

 

if I use this url url = "https://api.atlassian.com/ex/confluence/cloudid/wiki/api/v2/spaces"

this is for getting the spaces in rest api v2 , it is not working , what I am missing in rest 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.
March 6, 2024

`api.atlassian.com` is for OAuth access, `XXXX.atlassian.net` is for Basic Auth access.

That means you need to use the correct url depending on your authentication method.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events