projects

Create an upload

Creates an upload.

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

Request

  • Base URL
    https://gitlab.com
  • Auth
    none declared

Path parameters

idstring required

The ID or URL-encoded path of the project

Request body

filestring binary required

The attachment file to be uploaded

Response

Create an upload

idinteger required
altstring required
urlstring required
full_pathstring required
markdownstring required

Example response

{
  "id": 1,
  "alt": "filename",
  "url": "/uploads/secret/filename",
  "full_path": "/-/project/1/uploads/secret/filename",
  "markdown": "[filename](/uploads/secret/filename)"
}

Changes

No recorded changes to this operation across all 5 revisions of this API.