I want to upload a file like readme and .gitignore via api to bitbucket api. I am using version 1.0.
Command I am using:
curl --user name:password -X POST https://bitbucket-test.<company_name>.com/rest/api/1.0/projects/<project_name>/repos/test-1/src -F /tmp/mybamboowork/input.json=@input.json
But I get -
Warning: setting file input.json failed!
curl: (26) read function returned funny value
Also, I am able to create repo using api 1.0 but if I want to use 2.0 its not working for me.
2.0 enforce me to use base url as api.bitbucket.org but we are having base url as bitbucket-test.<company_name>.com.
I am quite confused, please advise
Hi!
Did you find a solution?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.