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

Configure Pull request description template via REST API

Lucky June 6, 2024

Dear Community,

I want to configure my Bitbucket Data Center (Atlassian Bitbucket v8.9.12) repository Pull request description template in the pull requests section via the REST API.

2024-06-06_17h19_24.png

I've searched through the RESTI API documentation The Bitbucket Data Center REST API (atlassian.com) but could not find any documentation for that.

Any hint if this is possible via the REST API? Thanks!

Best Regards,

Lucky

1 answer

1 accepted

0 votes
Answer accepted
Lucky June 7, 2024

Works with a PUT request against

/rest/ui/latest/projects/<project>/repos/<reposlug>/pull-request-templates

with this JSON payload

{
"description":"This is your description",
"enabled":true
}

But seems to not be officially documented in the Bitbucket Server REST API documentation. Just revere engineered it from the Web frontend.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events