summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNejc Habjan <nejc.habjan@siemens.com>2022-07-25 01:30:57 +0200
committerJohn Villalovos <john@sodarock.com>2022-07-24 17:50:39 -0700
commit03f548453d84d99354aae7b638f5267e5d751c59 (patch)
treeeed565c46d7bc312b12919cdf2d59fb8c1905c01
parent8703324dc21a30757e15e504b7d20472f25d2ab9 (diff)
downloadgitlab-03f548453d84d99354aae7b638f5267e5d751c59.tar.gz
docs(projects): document export with upload to URL
-rw-r--r--docs/gl_objects/projects.rst13
1 files changed, 13 insertions, 0 deletions
diff --git a/docs/gl_objects/projects.rst b/docs/gl_objects/projects.rst
index 775908c..fee55d1 100644
--- a/docs/gl_objects/projects.rst
+++ b/docs/gl_objects/projects.rst
@@ -293,6 +293,19 @@ generated by GitLab you need to:
with open('/tmp/export.tgz', 'wb') as f:
export.download(streamed=True, action=f.write)
+You can export and upload a project to an external URL (see upstream documentation
+for more details)::
+
+ project.exports.create(
+ {
+ "upload":
+ {
+ "url": "http://localhost:8080",
+ "method": "POST"
+ }
+ }
+ )
+
You can also get the status of an existing export, regardless of
whether it was created via the API or the Web UI::