The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Darren Jennings
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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

TAGS
AUG Leaders

Atlassian Community Events