Hello,
I have been trying for days to add a file from Node VIA REST API. I am 100% sure that I am sending it correct. I am now trying in Postman with the following info
This is bitbucket server btw:
/rest/api/latest/projects/EPS/repos/gm-email/browse/test.html
I am sending form-data
branch
message
content - file, I have also tried string
return:
{
"errors": [
{
"context": null,
"message": "An error occurred while processing the request. Check the server logs for more information.",
"exceptionName": null
}
]
}
if I leave content null
{
"errors": [
{
"context": null,
"message": "Parameter 'content' cannot be null.",
"exceptionName": null
}
]
}
I have structured the content all sorts of ways from file to buffer to plain string no matter what it will not work.
Any help would be appreciated, I think there may be a bug with this call.
Thanks!