Skip to content

Commit 03f5484

Browse files
nejchJohnVillalovos
authored andcommitted
docs(projects): document export with upload to URL
1 parent 8703324 commit 03f5484

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

docs/gl_objects/projects.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,19 @@ generated by GitLab you need to:
293293
with open('/tmp/export.tgz', 'wb') as f:
294294
export.download(streamed=True, action=f.write)
295295

296+
You can export and upload a project to an external URL (see upstream documentation
297+
for more details)::
298+
299+
project.exports.create(
300+
{
301+
"upload":
302+
{
303+
"url": "http://localhost:8080",
304+
"method": "POST"
305+
}
306+
}
307+
)
308+
296309
You can also get the status of an existing export, regardless of
297310
whether it was created via the API or the Web UI::
298311

0 commit comments

Comments
 (0)