Skip to content

Export a project

POST
/api/v4/projects/{id}/export

Exports a project. Use the upload hash parameter to upload the exported project to a web server or any S3-compatible platform.

id
required
One of:
string

The ID or URL-encoded path of the project

Media type application/json
object
description

Override the project description

string
nullable
upload

Object that contains information on the upload

object
url

The URL to upload the project

string
nullable
http_method

HTTP method to upload the exported project

string
default: PUT nullable
Allowed values: PUT POST
excluded_relations

List of project relation names to exclude from the export (e.g. [“merge_requests”, “issues”])

Array<string>
nullable

Accepted

Bad request

Unauthorized

Forbidden

Not found

Too many requests

Service unavailable