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

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.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events