is there a way I can use REST to control isForkable on a repository?
Hi Robbin,
If by "control" you mean update then you can get and set the forkable field through the repository endpoint:
https://developer.atlassian.com/static/rest/stash/2.10.1/stash-rest.html#idp269152
curl -d {"forkable": true} -X PUT -H "Content-Type: application/json" http://host:port/rest/api/1.0/projects/$PROJECT/repos/$repo
Does that answer your question?
Charles
curl -d {"forkable": true} -X PUT -H "Content-Type: application/json"http://host:port/rest/api/1.0/projects/$PROJECT/repos/$repo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
perfect! that works
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.