Use this API to download a snapshot of a project’s repository, for use in salvaging a corrupt repository.

These endpoints require administrator access to the instance.

Download snapshot of a Git repository

GET /api/v4/projects/{id}/snapshot

Downloads snapshot of a Git repository.

Parameters

NameTypeDescription
id
Path, required
String or integerThe ID or URL-encoded path of the project
wiki
Query
BooleanSet to true to receive the wiki repository

Responses

CodeDescriptionSchema
200OKString (binary) (application/x-tar)
400Bad Request—
401Unauthorized—
404Not Found—