The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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 Champions.
January 15, 2014

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

3 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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 Champions.
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 Champions.
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 Champions.
January 15, 2014

perfect! that works

TAGS
AUG Leaders

Atlassian Community Events