I’m having some trouble understanding exactly what i need to provide since the documentation is a little unclear to me. Could someone explain what is expected in the “files” and “parents” parameters in what i presume is the payload? Am i supposed to specify a file path or the actual content of the file? If the content, then where would I specify the file name that i’m trying to update?
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):
Thanks, any idea how we can pass along the last known commit hash (and get a 409 conflict if there has been an update on it)? Updating the file isn’t very useful without that! Also I hope this response returns the updated SHA for future commits but I fear it doesn’t?