GitLab API

GitlabTool

Actions1095

Projects → headApiV4ProjectsIdRepositoryFilesFilePathBlame

AI-generated

Summary

Check for the existence and metadata of a file blame in a GitLab project repository using a HEAD request.

Inputs

  • id (required) — The project ID, which can be the numeric ID or URL-encoded path of the project.
  • file_path (required) — The URL-encoded path to the file within the repository.
  • ref (required) — The name of the branch, tag, or commit SHA to get the blame information from.
  • Skip Authentication — Optionally skip using the configured GitLab API authentication.

Output shape

no body — success/failure only

Does not return file blame content but responds with HTTP headers indicating the file's blame existence and metadata. HTTP status codes indicate presence or absence (e.g., 200 or 404). Requires all path and query parameters to be set.

Links

Discussion