Hello,
I Get a 404 error when I call confluence endpoints.
Here the request URL:
https://api.atlassian.com/ex/confluence/{CloudID}/wiki/rest/api/content,
The id written comes from the https://api.atlassian.com/oauth/token/accessible-resources endpoint., already used this ID with other Atlassian endpoints (ex: Jira Software Cloud, etc...) and it worked good.
Here is the response I get by using this URL:
{
"timestamp": "2023-09-21T09:54:27.984629Z",
"status": 404,
"error": "Not Found",
"message": "No message available",
"path": "/ex/confluence/7e2d94a9-d7fc-49e8-b071-6380d026cd8f/wiki/rest/api/content"
}
And this is the response header :
date: Thu, 21 Sep 2023 09:54:27 GMT
content-type: application/json
content-length: 192
x-trace-id: 871de60d656a9f5b
x-failure-category: FAILURE_CLIENT_TCS
x-frame-options: SameOrigin
x-content-type-options: nosniff
x-xss-protection: 1; mode=block
atl-traceid: 871de60d656a9f5b
report-to: {"endpoints": [{"url": "https://dz8aopenkvv6s.cloudfront.net"}], "group": "endpoint-1", "include_subdomains": true, "max_age": 600}
nel: {"failure_fraction": 0.001, "include_subdomains": true, "max_age": 600, "report_to": "endpoint-1"}
strict-transport-security: max-age=63072000; preload
server: AtlassianEdge
Any idea if I use the good URL or is there is another problem ?
Hello @ClicData ,
Could you please clarify what exactly endpoint and for what data retrieval should be used?
The '/rest/api/content' endpoint is used with:
https://<name>.atlassian.net/wiki/rest/api/content
For the content retrieval , not authenticating.
Hello,
Thank you for your fast answer.
We want to get contents as described at https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content/#api-wiki-rest-api-content-get
And we also want to retrieve contents in order to see views/viewers using these endpoints:
wiki/rest/api/analytics/content/{ContentId}/views
wiki/rest/api/analytics/content/{ContentId}/viewers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.