summaryrefslogtreecommitdiff
path: root/doc/api/projects.md
diff options
context:
space:
mode:
authorJeroen Nijhof <jeroen@jeroennijhof.nl>2016-01-11 09:32:35 +0100
committerJeroen Nijhof <jeroen@jeroennijhof.nl>2016-01-11 09:32:35 +0100
commit706255b926f21588fcb11f08d1a3781c407900cd (patch)
treeb304932262b48942a6526fdd8464f53212577134 /doc/api/projects.md
parente0436005af0d567391031ebbf546877f7f525731 (diff)
parentf394ccd584f7c2a58a172ad4dd501045cb388e9c (diff)
downloadgitlab-ce-706255b926f21588fcb11f08d1a3781c407900cd.tar.gz
Merge gitlab.com:gitlab-org/gitlab-ce
Diffstat (limited to 'doc/api/projects.md')
-rw-r--r--doc/api/projects.md28
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": "![dk](/uploads/66dbcd21ec5d24ed6ea225176098d52b/dk.png)"
+}
+```
+
+**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