Create Tag using bitbucket rest api fails

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

Hey! Try adding a Content-Type header to specify that the data is JSON:

-H 'Content-Type: application/json'