Why isn't "/attachments" listed in the api documentation?

brian kidd June 26, 2019

according to https://confluence.atlassian.com/bitbucketserverkb/how-to-enclose-file-to-pull-request-comment-via-rest-api-952073003.html

I should be able to upload files to a repo via a POST to

/projects/{projectKey}/repos/{repositorySlug}/attachments

yet this throws a 404. Also, the word "attachments" doesn't even exist on the rest api page https://docs.atlassian.com/bitbucket-server/rest/6.4.0/bitbucket-rest.html

Please let me know how this is supposed to work and where the api documentation is for it. Thanks.

1 answer

0 votes
Pratik March 23, 2022

Hi @brian kidd I am blocked with the same issue. I am on bb server v7.8.1 and in the Environment section from the Confluence link which you have shared says "Bitbucket Server and DataCenter version 7.16+". Just curious to know what bb server version are you on?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events