diff options
Diffstat (limited to 'doc/api/projects.md')
-rw-r--r-- | doc/api/projects.md | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/api/projects.md b/doc/api/projects.md index d680b5d8597..b0c1e65709c 100644 --- a/doc/api/projects.md +++ b/doc/api/projects.md @@ -89,6 +89,24 @@ Parameters: } ``` +## Create project + +Create new project owned by user + +``` +POST /projects +``` + +Parameters: + ++ `name` (required) - new project name ++ `code` (optional) - new project code, uses project name if not set ++ `path` (optional) - new project path, uses project name if not set + +Will return created project with status `201 Created` on success, or `404 Not +found` on fail. + + ## Project repository branches Get a list of project repository branches sorted by name alphabetically. |