---
title: "Enable Git LFS for a repository"
method: PUT
path: "/repos/{owner}/{repo}/lfs"
tags: ["repos"]
---

# Enable Git LFS for a repository

`PUT /repos/{owner}/{repo}/lfs`

Enables Git LFS for a repository. Access tokens must have the `admin:enterprise` scope.

## Path parameters

- `owner` string, required
- `repo` string, required

## Response `202`

Accepted

- object

## Other responses

- `403` — We will return a 403 with one of the following messages: - Git LFS support not enabled because Git LFS is globally disabled. - Git LFS support not enabled because Git LFS is disabled for the root repository in the network. - Git LFS support not enabled because Git LFS is disabled for <owner>.

---

[API](https://skmtc.net/github/apis/github-v3-rest-api-4.md) · [All operations](https://skmtc.net/github/apis/github-v3-rest-api-4/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/github-v3-rest-api-4/versions/ee6c7a46328e/schema)
