Skip to content

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.

id
required
One of:
string

The ID or URL-encoded path of the group or project

Media type multipart/form-data
object
file
required

The attachment file to be uploaded

string format: binary
nullable
branch

The name of the branch

string
nullable

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