Create Tag using bitbucket rest api fails


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 '' --data '{
 } '

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.


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

-H 'Content-Type: application/json'