diff options
author | Jeroen Nijhof <jeroen@jeroennijhof.nl> | 2016-01-11 09:32:35 +0100 |
---|---|---|
committer | Jeroen Nijhof <jeroen@jeroennijhof.nl> | 2016-01-11 09:32:35 +0100 |
commit | 706255b926f21588fcb11f08d1a3781c407900cd (patch) | |
tree | b304932262b48942a6526fdd8464f53212577134 /doc/api/projects.md | |
parent | e0436005af0d567391031ebbf546877f7f525731 (diff) | |
parent | f394ccd584f7c2a58a172ad4dd501045cb388e9c (diff) | |
download | gitlab-ce-706255b926f21588fcb11f08d1a3781c407900cd.tar.gz |
Merge gitlab.com:gitlab-org/gitlab-ce
Diffstat (limited to 'doc/api/projects.md')
-rw-r--r-- | doc/api/projects.md | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/doc/api/projects.md b/doc/api/projects.md index 0ca81ffd49e..37d74216c1b 100644 --- a/doc/api/projects.md +++ b/doc/api/projects.md @@ -482,6 +482,34 @@ Parameters: - `id` (required) - The ID of a project +## Uploads + +### Upload a file + +Uploads a file to the specified project to be used in an issue or merge request description, or a comment. + +``` +POST /projects/:id/uploads +``` + +Parameters: + +- `id` (required) - The ID of the project +- `file` (required) - The file to be uploaded + +```json +{ + "alt": "dk", + "url": "/uploads/66dbcd21ec5d24ed6ea225176098d52b/dk.png", + "is_image": true, + "markdown": "" +} +``` + +**Note**: The returned `url` is relative to the project path. +In Markdown contexts, the link is automatically expanded when the format in `markdown` is used. + + ## Team members ### List project team members |