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
| Name | Type | Description |
|---|---|---|
idPath, | String or integer | The ID or URL- |
wikiQuery | Boolean | Set to true to receive the wiki repository |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | String (binary) (application/) |
400 | Bad Request | — |
401 | Unauthorized | — |
404 | Not Found | — |