GitLab API

GitlabTool

Actions1095

Project_snippets → getApiV4ProjectsIdSnippetsSnippetIdRaw

AI-generated

Summary

Fetches the raw content of a project snippet using the GitLab API. Provide the project ID or URL-encoded path and snippet ID; the request method defaults to GET, and the base URL defaults to https://gitlab.com.

Inputs

  • skipAuthentication — Skip authentication; defaults to false. When false, the GitLab API credential is used.
  • baseUrl — Base URL for GitLab; defaults to https://gitlab.com. The node source notes that the actual base URL is defined in the GitLab API credential.
  • method — HTTP method, defaulting to GET; other declared choices are POST, PUT, DELETE, HEAD, and PATCH.
  • pathParameters.id (required) — Project ID or URL-encoded project path.
  • pathParameters.snippet_id (required) — ID of the project snippet.

Output shape

A single response from the GitLab API containing the snippet's raw content.

The operation targets GET /api/v4/projects/{id}/snippets/{snippet_id}/raw by default. The source pack does not show response parsing or the exact returned item structure.

Links

Discussion