GitLab API icon

GitLab API

Gitlab

Actions1062

Projects → headApiV4ProjectsIdRepositoryFilesFilePathBlame

AI-generated

Summary

Check for the existence and accessibility of a file's blame information in a GitLab project repository without returning the content, by sending a HEAD request to the blame endpoint.

Inputs

  • Id (required) — The project ID or URL-encoded path identifying the GitLab project.
  • File_path (required) — The URL-encoded path to the specific file in the repository.
  • Ref (required) — The name of the branch, tag, or commit to reference for the file blame information.
  • Skip Authentication — Optionally skip authentication for this request.

Output shape

no body — success or failure indicated by HTTP status code

This operation uses the HEAD HTTP method to verify the existence or accessibility of the blame information for a file in a repository. It does not return the blame content itself. A successful response indicates the resource exists; failure or error codes indicate otherwise.

Links

Discussion