summaryrefslogtreecommitdiff
path: root/doc/api/projects.md
diff options
context:
space:
mode:
authorJarka Kadlecova <jarka@gitlab.com>2017-02-21 15:12:32 +0100
committerJarka Kadlecova <jarka@gitlab.com>2017-02-27 07:55:45 +0100
commit08ee177d6f247d1f8aa43a91e89469434526aabe (patch)
treef6ccd578b2abb5c49be06d69a17d99775a768a87 /doc/api/projects.md
parent90040620cba77620a57e028d25e6148c72494fbd (diff)
downloadgitlab-ce-08ee177d6f247d1f8aa43a91e89469434526aabe.tar.gz
API project create: Make name or path required
Diffstat (limited to 'doc/api/projects.md')
-rw-r--r--doc/api/projects.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/api/projects.md b/doc/api/projects.md
index 1a8c0ae758f..5de23908b42 100644
--- a/doc/api/projects.md
+++ b/doc/api/projects.md
@@ -435,8 +435,8 @@ Parameters:
| Attribute | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
-| `name` | string | yes | The name of the new project |
-| `path` | string | no | Custom repository name for new project. By default generated based on name |
+| `name` | string | yes if path is not provided | The name of the new project. Equals path if not provided. |
+| `path` | string | yes if name is not provided | Repository name for new project. Generated based on name if not provided (generated lowercased with dashes). |
| `namespace_id` | integer | no | Namespace for the new project (defaults to the current user's namespace) |
| `description` | string | no | Short project description |
| `issues_enabled` | boolean | no | Enable issues for this project |