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