diff options
author | Douwe Maan <douwe@gitlab.com> | 2018-04-05 15:18:49 +0000 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2018-04-05 15:18:49 +0000 |
commit | 082bf1c6ee97aefc9c53e7462cf870ce8ce0ad2b (patch) | |
tree | 68f6bbf147404ee8c273170c41e89882299969ea /doc | |
parent | b2a7faa5a9223811884676bb1004f97fb8a18a54 (diff) | |
parent | 902cec12b5b531434ccf7ecf6df22ddb4249c253 (diff) | |
download | gitlab-ce-082bf1c6ee97aefc9c53e7462cf870ce8ce0ad2b.tar.gz |
Merge branch 'bvl-override-import-params' into 'master'
Allow passing params to import API to override project attributes
Closes gitlab-ee#4788
See merge request gitlab-org/gitlab-ce!18086
Diffstat (limited to 'doc')
-rw-r--r-- | doc/api/project_import_export.md | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/api/project_import_export.md b/doc/api/project_import_export.md index 5467187788a..995f10571d0 100644 --- a/doc/api/project_import_export.md +++ b/doc/api/project_import_export.md @@ -111,6 +111,9 @@ POST /projects/import | `namespace` | integer/string | no | The ID or path of the namespace that the project will be imported to. Defaults to the current user's namespace | | `file` | string | yes | The file to be uploaded | | `path` | string | yes | Name and path for new project | +| `override_params` | Hash | no | Supports all fields defined in the [Project API](projects.md)] | + +The override params passed will take precendence over all values defined inside the export file. To upload a file from your filesystem, use the `--form` argument. This causes cURL to post data using the header `Content-Type: multipart/form-data`. |