GitLab API icon

GitLab API

Gitlab

Actions1062

Project_snippets → getApiV4ProjectsIdSnippetsSnippetIdFilesRefFilePathRaw

AI-generated

Summary

Retrieve the raw content of a file within a GitLab project snippet.

Inputs

  • id (required) — The ID or URL-encoded path of the project
  • snippet_id (required) — The ID of the snippet
  • ref (required) — The name of the branch, tag, or commit
  • file_path (required) — The URL-encoded path to the file inside the snippet (e.g., lib%2Fclass%2Erb)
  • skipAuthentication — Skip using credentials for authentication
  • baseUrl — Base URL of the GitLab instance (default: https://gitlab.com)
  • method — HTTP method to use (default: get)

Output shape

binary

Returns the raw file content as binary data.

Links

Discussion