GitLab API

GitlabTool

Actions1095

Project_snippets → getApiV4ProjectsIdSnippetsSnippetIdFilesRefFilePathRaw

AI-generated

Summary

Retrieves the raw contents of a file in a project snippet at a specified branch, tag, or commit. Configure all four required path parameters: project ID or URL-encoded path, snippet ID, ref, and URL-encoded file path.

Inputs

  • Skip Authentication — Defaults to false. When enabled, skips authentication; otherwise the GitLab API credential is used.
  • Base URL — Defaults to https://gitlab.com. The source indicates the base URL is defined by the GitLab API credential.
  • Method — HTTP method selector, defaulting to GET; the UI also offers POST, PUT, DELETE, HEAD, and PATCH.
  • Id (required) — Project ID or URL-encoded project path.
  • Snippet_id (required) — Snippet ID.
  • Ref (required) — Branch, tag, or commit name.
  • File_path (required) — URL-encoded path to the file, such as lib%2Fclass%2Erb.

Output shape

A raw file response from the GitLab API.

The provided source shows the node delegates request handling to OpenApiToolNode and does not specify the response encoding or n8n item shape.

Links

Discussion