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

Feat REST: allow Account ID to be used to update users in branch-restrictions

Sander Mol May 10, 2024

The current endpoint of https://api.bitbucket.org/2.0/repositories/<username>/<repository>/branch-restrictions does not allow for users to be posted by "account_id". Currently, only "username" and "uuid" is supported.

I would expect the following post body to be supported

{
"type": "branchrestriction",
"kind": "restrict_merges",
"value": null,
"branch_match_kind": "branching_model",
"branch_type": "development",
"users": [{
"account_id": "<account_id>"
}]
}

This currently results in a successful post, but without a user actually being posted. This is especially relevant now that Account ID is used in more and more places as the preferred identification field.

Related:

https://community.atlassian.com/t5/Bitbucket-questions/Feat-Swagger-V3-Update-account-schema/qaq-p/2694518

1 answer

1 accepted

1 vote
Answer accepted
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 14, 2024

Hi Sander,

Thank you for the feedback. I went ahead and created a request in our issue tracker:

You can vote for it (by selecting the Vote for this issue link) and you can also add yourself as a watcher (by selecting the Start watching this issue link) if you'd like to get notified via email on updates.

Implementation of features is done as per our policy here and any updates will be posted in the feature request.

Kind regards,
Theodora

Sander Mol May 18, 2024

Thank you very much for creating this issue!

Like Theodora Boudale likes this
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 21, 2024

You are very welcome! Please feel free to reach out if you ever need anything else!

Like Sander Mol likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events