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: 

Why do I get 403 code when try to approve PR via REST API?

Dmitrij Abashin
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 27, 2024

Hi all!

I add a reviewer to a pull request and then try to approve the PR via 

PUT /rest/api/1.0/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/participants/{userSlug}

I use the HTTP token from the user whose userSlug I use in the URL.

But whatever I do I get the error: {"message":"You may only update your own status.","status-code":403}

The product is server, I have no option for this, IDKW.

Please give me a clue, I really have no idea what is wrong here.

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Jason Snouffer
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 3, 2024

I'm also encountering this problem. I can approve PRs just fine through the API with basic user credentials (username/password), but not with repository-level HTTP access tokens. I've tried multiple options for userSlug with no success.

DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events