Hi,
I can get the JSON from rest api using a browser but not Postman (Basic Authentication). I did not have this problem getting issues from Jira Service management and has been given permission to this space. Does anyone know why that is?
I was trying to access this endpoint: /wiki/rest/api/space/EUW/content?expand=history
I got this error in Postman:
{
"statusCode": 404,
"data": {
"authorized": true,
"valid": true,
"errors": [],
"successful": true
},
"message": "com.atlassian.confluence.api.service.exceptions.NotFoundException: No space found with key : EUW"
}
I have the exact same problem.
Browser works, postman/python does not.
I have tried both with bearer token and basic auth.
I am using the same confluence user account for all 3 things.
@Adlisyam Azhar and welcome to the community,
According to the API doc:
Returned if any of the following is true:
- There is no space with the given key.
- The calling user does not have permission to view the space.
A schema has not been defined for this response code.
So I would either check the space key and the viewing permission of the authentication user you are using to make this http request.
I tried it on my instance and works as expected.
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.