Enables Git LFS for a repository. Access tokens must have the admin:enterprise scope.
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request PUT 'https://api.github.com/repos///lfs'
Response Response Example
202 - Example 1
{}
Request
Path Params
owner
stringÂ
required
The account owner of the repository. The name is not case sensitive.
repo
stringÂ
required
The name of the repository. The name is not case sensitive.
Responses
🟢202Success
application/json
Body
object {0}
🟠403We 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 b