diff options
author | Bob Van Landuyt <bob@vanlanduyt.co> | 2018-03-29 16:08:31 +0300 |
---|---|---|
committer | Bob Van Landuyt <bob@vanlanduyt.co> | 2018-04-05 10:18:12 +0300 |
commit | e3acc982a87d8d694690c928cf5ca792218c1782 (patch) | |
tree | a5bb9549d37cf9020f237c9e86572b01f9691bd0 /doc | |
parent | e40c0085ef300aca38076af3ea2f227761084038 (diff) |
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')
-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`. |