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
Responses
🟢202Success
application/json
Body
🟠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