Upload an attachment to a project wiki
POST
/api/v4/projects/{id}/wikis/attachments
Uploads a file to the uploads directory in a specified project wiki.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Request Body required
Section titled “ Request Body required ” Media type multipart/form-data
object
file
required
The attachment file to be uploaded
string format: binary
branch
The name of the branch
string
Responses
Section titled “ Responses ”Created
Media type application/json
object
file_name
string
file_path
string
branch
string
link
object
Example
{ "file_name": "dk.png", "file_path": "uploads/6a061c4cf9f1c28cb22c384b4b8d4e3c/dk.png", "branch": "main"}Bad Request
Not found