Hi @ileana.cantu2012, it seems that you’re trying to use a java app which interacts with Bitbucket? I’m not sure if this will help, but to modify a file via our api you can use the following example (but changing the auth):
$ curl -s -H "Authorization: Basic AUTH_TOKEN" -X GET "https://api.bitbucket.org/2.0/repositories/seanfarley/test-hg-subrepo/src/default/default" > foo
$ echo default >> foo
$ curl -s -H "Authorization: Basic AUTH_TOKEN" -X POST "https://api.bitbucket.org/2.0/repositories/seanfarley/test-hg-subrepo/src" -F /default=@foo
You can see the output of that here: https://bitbucket.org/seanfarley/test-hg-subrepo/commits/354d47270aba95ecf83bceae2b891aabfe2174e1?at=default
But I suspect that your question is more about this third-party app? I’m not sure but let me know if that helps.