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

/2.0/repositories/{user}/{repo}/refs/branches?sort=-update_on "Invalid field name"

Darren Jennings April 6, 2017

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"}}

1 answer

1 vote
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 17, 2020

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events