summaryrefslogtreecommitdiff
path: root/doc/api
diff options
context:
space:
mode:
authorBob Van Landuyt <bob@vanlanduyt.co>2018-03-29 15:08:31 +0200
committerBob Van Landuyt <bob@vanlanduyt.co>2018-04-05 09:18:12 +0200
commite3acc982a87d8d694690c928cf5ca792218c1782 (patch)
treea5bb9549d37cf9020f237c9e86572b01f9691bd0 /doc/api
parente40c0085ef300aca38076af3ea2f227761084038 (diff)
downloadgitlab-ce-e3acc982a87d8d694690c928cf5ca792218c1782.tar.gz
Override values from JSON with import data
This overrides values defined in the project JSON with the values provided in project.import_data.data['override_params']. These could be passed from the API.
Diffstat (limited to 'doc/api')
-rw-r--r--doc/api/project_import_export.md3
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`.