Hi
I am trying to use the bitbucket rest api to create a tag in bitbucket. However I am getting the error
curl -X POST -k -H 'Authorization: Basic <<Authentication String>>' -i 'https://api.bitbucket.org/2.0/repositories/lv_digital/code-commerce/refs/tags' --data '{
"name":"5.17.0-eco-05",
"target":{
"hash":"eda5e9c5565c8b56b55672fc21e20068116df84b"
}
} '
I get the following error
{"type": "error", "error": {"fields": {"": "expected a dictionary"}, "message": "Bad request"}}
I am unable to figure out anything wrong with the request.
Regards
Tejas
Hi @Tejas Shah,
I'm not an expert with the Bitbucket API. But as I have understood and the knowledge with this link code seems to be correct.
How about trying with the GET method as in the documentation.
(If it is an option for you in your case only. I mean if not you need this to be exactly on POST method)
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.