summaryrefslogtreecommitdiff
path: root/doc/api/projects.md
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-07-10 03:54:58 -0700
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-07-10 03:54:58 -0700
commit90d497056fe68593f54886e2d546eaff1315227c (patch)
tree427d4c62cdddb50623f2ea1975027f59a4f70ac4 /doc/api/projects.md
parentd2d566b162b60a2d310dfcdbcd0963c2156dd5ae (diff)
parentea5a006f27cfd3013f94652e0e0f0e63091036ad (diff)
downloadgitlab-ce-90d497056fe68593f54886e2d546eaff1315227c.tar.gz
Merge pull request #4515 from amacarthur/fork-admin
Additon of apis for fork administration.
Diffstat (limited to 'doc/api/projects.md')
-rw-r--r--doc/api/projects.md25
1 files changed, 25 insertions, 0 deletions
diff --git a/doc/api/projects.md b/doc/api/projects.md
index 323c0be63a4..41b6b6add39 100644
--- a/doc/api/projects.md
+++ b/doc/api/projects.md
@@ -453,3 +453,28 @@ Parameters:
+ `id` (required) - The ID of the project.
+ `branch` (required) - The name of the branch.
+
+## Admin fork relation
+
+Allows modification of the forked relationship between existing projects. . Available only for admins.
+
+### Create a forked from/to relation between existing projects.
+
+```
+POST /projects/:id/fork/:forked_from_id
+```
+
+Parameters:
+
++ `id` (required) - The ID of the project
++ `forked_from_id:` (required) - The ID of the project that was forked from
+
+### Delete an existing forked from relationship
+
+```
+DELETE /projects/:id/fork
+```
+
+Parameter:
+
++ `id` (required) - The ID of the project \ No newline at end of file