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
perfect! that works
curl -d {"forkable": true} -X PUT -H "Content-Type: application/json"http://host:port/rest/api/1.0/projects/$PROJECT/repos/$repo
It looks like you're new here. Sign in or register to get started.