Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

stash rest for isForkable

Robbin Bonthond
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 15, 2014

is there a way I can use REST to control isForkable on a repository?

3 answers

1 accepted

0 votes
Answer accepted
cofarrell
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 15, 2014

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

0 votes
Robbin Bonthond
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 21, 2014

curl -d {"forkable": true} -X PUT -H "Content-Type: application/json"http://host:port/rest/api/1.0/projects/$PROJECT/repos/$repo

0 votes
Robbin Bonthond
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 15, 2014

perfect! that works

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events