Skip to content

Create an upload

POST
/api/v4/projects/{id}/uploads

Creates an upload.

id
required
One of:
string

The ID or URL-encoded path of the project

Media type multipart/form-data
object
file
required

The attachment file to be uploaded

string format: binary
nullable

Created

Media type application/json
object
id
integer format: int64
alt
string
url
string
full_path
string
markdown
string
Example
{
"id": 1,
"alt": "filename",
"url": "/uploads/secret/filename",
"full_path": "/-/project/1/uploads/secret/filename",
"markdown": "[filename](/uploads/secret/filename)"
}

Bad Request

Not found