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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.