Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,560,234
Community Members
 
Community Events
185
Community Groups

Bitbucket - ERROR creating pull request with reviewers

Edited

I'm trying to create pull request in bitbucket via its API.

API description: https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Busername%7D/%7Brepo_slug%7D/pullrequests

This is an object I'm passing to the API

{
username : 'derbeerk',
repo_slug : 'lisatest',
title : 'title',
description : 'description',
source : { branch: { name: '1_package' }},
destination : { branch: { name: 'master' }},
reviewers : '{13e7e98b-414b-4345-9a63-5a59d76f8032}'
}

In return I get an errors like this

StatusCodeError: 500 - {"type":"error","error":{"message":"'list'","id":"0436de5105664825bb69a5e80c65614d"}}

 

I tried to change reviewers to username, uuid without curly braces, add trailing comma, etc.. always got the same error in return.

P.S. If I remove reviewers property - pull request would be created perfectly fine

 

1 answer

0 votes
Caterina _or Kate_ Curti
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 23, 2022

Hello,

 

This is how you can specify a reviewer in the payload when creating a pull request:

 "reviewers": [
{
"uuid": "{504c3b62-8120-4f0c-a7bc-87800b9d6f70}"
}
]

 

This is an array so multiple reviewers can be set in this way.

 

Caterina

 

P.S. I know you posted this some time ago but I still wanted to add an answer here. It might still help who lands on this post in the future.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events