Skip to content

Retrieve file blame metadata

HEAD
/api/v4/projects/{id}/repository/files/{file_path}/blame

Retrieves blame metadata for lines in a specified file.

id
required
string

The project ID

Example
gitlab-org/gitlab
file_path
required
string

The URL-encoded path to the file.

Example
lib%2Fclass%2Erb
Media type application/json
object
ref
required

The name of branch, tag or commit

string
nullable
Example
main

OK

Bad Request

Not Found