I'm trying to access the endpoint rest/api/2/attachment/meta to be able to find out the upload limit for the attachments. This works fine when I'm logged in as an admin. But when I'm logged in as a user, the rest/api/2/attachment/meta returns a status code of 302 with a new location for the user to be redirected to. Why can't i access this endpoint as a logged in user? Is there any permissions that the logged in user is missing to be able to successfully reach the endpoint?
Just had a quick look to the API documentation
Consumers of this resource may also need to check if the logged in user has permission to upload or otherwise manipulate attachments
Does the user you are using have the right set of permissions?
You might want to double check for the version you are using
https://docs.atlassian.com/software/jira/docs/api/REST/8.20.0/#attachment-getAttachmentMeta
Cheers
Kurt
Hi @Kurt Klinner,
Thank you for responding to this issue. I have checked the permissions and the user has sufficient permissions to create/view/delete attachments. Even with the correct permissions still no success. I decided to write my own end point instead of using the rest/api/2/attachment/meta end point.
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.