How do I enable LFS through the Rest API for a given repository?
There is a private API rest/git-lfs/admin/projects/{projectKey}/repos/{repositorySlug}/enabled but this seems to 404 when I try it.
The internal API "rest/git-lfs/admin/projects/{projectKey}/repos/{repositorySlug}/enabled" does actually work to control git-lfs, though all responses are empty.
GET will tell you if git-lfs is enabled or not. A return code of 200 if it is enabled, and 404 if it is not.
PUT (not POST) will enable git-lfs for the repo.
DELETE will disable git-lfs for the repo.
As a short term solution I may started doing the same Form POSTs the browser GUI gives.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.