Upload an attachment to a group wiki
POST
/api/v4/groups/{id}/wikis/attachments
Uploads a file to the uploads directory in a specified group wiki.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”Media typemultipart/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 typeapplication/json
object
file_name
string
file_path
string
branch
string
link
object
url
string
markdown
string
Example
{ "file_name": "dk.png", "file_path": "uploads/6a061c4cf9f1c28cb22c384b4b8d4e3c/dk.png", "branch": "main", "link": { "url": "uploads/6a061c4cf9f1c28cb22c384b4b8d4e3c/dk.png", "markdown": "" }}Bad Request
Not found