Sorting is not working when I add sort url parameters. I am however able to get the list of branches without sorting.
GET request:
https://api.bitbucket.org/2.0/repositories/{user}/{repo}/refs/branches?sort=-updated_on
Error:
{"type": "error", "error": {"message": "Invalid field name: updated_on"}}
Hi Darren,
The reason for this error is that there is no "updated_on" field for each branch.
The "updated_on" field mentioned in the doc:
is part of the repository object (the repo where the branches belong to) instead of each branch.
Kind regards,Theodora
It looks like you're new here. Sign in or register to get started.