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: 

Unable to get a page content by ID with Postman through rest API v. 3.0.2

Mikhail1990
July 8, 2020

Hello! I'm trying to get a page content with postman using rest API. The version we are using is 3.0.2. It is old but we have no choice.

The actual link: http://ewiki.site.com:8080/pages/viewpage.action?pageId=1302

The link to request in docs: https://docs.atlassian.com/atlassian-confluence/REST/3.2/#id281443

The request in Postman looks like this: http://ewiki.site.com:8080/confluence/rest/prototype/1/content/1302

The response is:

 Page Not Found

The page you were trying to reach could not be found. This could be because:

  • The page does not exist.
  • The page exists, but you do not have permission to view it.

 

Maybe I'm missing some minor detail? The link to docs for API is rest API. 

I would appreciate any advice. Thank you!

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Answer accepted
Mikhail1990
July 15, 2020

It appeared that confluence 3.0.2 has no REST API, but it has WSDL and SOAP. 

Python script would look like this:

from suds.client import Client

client = Client(m_wsdl) #link to your wsdl file
token = client.service.login(m_userName, m_password)
page = client.service.getPage(token, m_pageId)

 

TAGS
AUG Leaders

Atlassian Community Events