GitLab API

GitlabTool

Actions1095

Projects → getApiV4ProjectsIdSnapshot

AI-generated

Summary

Make a request to the GitLab API endpoint to retrieve a project snapshot by its ID, optionally including the wiki repository.

Inputs

  • id (required) — The ID of the project to retrieve the snapshot for, provided as a path parameter.
  • wiki — Set to true to include the wiki repository in the snapshot response as a query parameter.
  • method — HTTP method to use for the request; defaults to GET.
  • baseUrl — Base URL for the GitLab instance; defaults to https://gitlab.com.

Output shape

a single JSON object representing the project snapshot, optionally including the wiki repository if requested

The response corresponds to the /api/v4/projects/{id}/snapshot endpoint. The 'wiki' query parameter controls whether the wiki repository data is included. Authentication is handled via GitLab API credentials unless explicit skipping is enabled.

Links

Discussion