I'm trying to edit an existing branch file according the following doc.
I'm using Postman like the following:
- Content-Type -> multipart/form-data
- Body -> form-data with the following key-values pairs
- branch : <my-branch>
- content : "Updating new content"
- message: "new commit message"
- sourceCommitId : <commitId>
- PUT call with URL: <server-path>/rest/api/latest/projects/<project-key>/repos/<repo-slug>/browse/README.md
and I'm getting back the following not informative error message:
{
"errors": [
{
"context": null,
"message": "An error occurred while processing the request. Check the server logs for more information.",
"exceptionName": null
}
]
}
What am I doing wrong?