Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...


Get status of whether Pages

...

is enabled for specified repository and branch/tag

...

theme
GET /rest/latest/pages-settings/{projectKey}/{repositorySlug}/enabled
Code Block
languageperl
Confluence


Expand
titleExample Request

curl -u username:password -H "Content-Type:application/json"http://bitbucket.example.com/rest/latest/pages-settings/PROJECT_1/rep_1/enabled?refId=refs/heads/master


Expand
titleExample Response


Code Block
languagejs
{"repositoryId":1,"refId":"refs/heads/master","isEnabled":true}


Enable Pages

...

for specified repository and branch/tag

Confluence
Code Block
languageperl
theme
PUT /rest/latest/pages-settings/{projectKey}/{repositorySlug}/enabled


Expand
titleExample Request

curl -u username:password -H "Content-Type:application/json" -X PUT http://bitbucket.example.com/rest/latest/pages-settings/PROJECT_1/rep_1/enabled?refId=refs/heads/master


Expand
titleExample Response


Code Block
languagejs
{"repositoryId":1,"refId":"refs/heads/master","isEnabled":true}


Disable Pages

...

for specified repository and branch/tag

theme
DELETE /rest/latest/pages-settings/{projectKey}/{repositorySlug}/enabled
Code Block
languageperl
Confluence


Expand
titleExample Request

curl -u username:password -H "Content-Type:application/json" -X DELETEhttp://bitbucket.example.com/rest/latest/pages-settings/PROJECT_1/rep_1/enabled?refId=refs/heads/master


Expand
titleExample Response


Code Block
languagejs
{"repositoryId":1,"refId":"refs/heads/master","isEnabled":false}


Enable Pages support for any new branch in the specified repository

PUT /rest/latest/pages-settings/{projectKey}/{repositorySlug}/enabled-for-new-branches
Code Block
languageperl
themeConfluence


Expand
titleExample Request

curl -u username:password -H "Content-Type:application/json" -X PUT http://bitbucket.example.com/rest/latest/pages-settings/PROJECT_1/rep_1/enabled-for-new-branches


Expand
titleExample Response


Code Block
languagejs
{"repositoryId":1,"isEnabledForBranches":false,"isEnabledForTags":true}


Disable Pages support for new branches in the specified repository

Confluence
Code Block
languageperl
theme
DELETE /rest/latest/pages-settings/{projectKey}/{repositorySlug}/enabled-for-new-branches


Expand
titleExample Request

curl -u username:password -H "Content-Type:application/json" -X DELETE http://bitbucket.example.com/rest/latest/pages-settings/PROJECT_1/rep_1/enabled-for-new-branches


Expand
titleExample Response


Code Block
languagejs
{"repositoryId":1,"isEnabledForBranches":false,"isEnabledForTags":true}


Enable Pages support for any new tag in the specified repository

theme
PUT /rest/latest/pages-settings/{projectKey}/{repositorySlug}/enabled-for-new-tags
Code Block
languageperl
Confluence


Expand
titleExample Request

curl -u username:password -H "Content-Type:application/json" -X PUT http://bitbucket.example.com/rest/latest/pages-settings/PROJECT_1/rep_1/enabled-for-new-tags


Expand
titleExample Response


Code Block
languagejs
{"repositoryId":1,"isEnabledForBranches":false,"isEnabledForTags":true}


Disable Pages support for new tags in the specified repository

Confluence
Code Block
languageperl
theme
DELETE /rest/latest/pages-settings/{projectKey}/{repositorySlug}/enabled-for-new-tags


Expand
titleExample Request

curl -u username:password -H "Content-Type:application/json" -X DELETE http://bitbucket.example.com/rest/latest/pages-settings/PROJECT_1/rep_1/enabled-for-new-tags


Expand
titleExample Response


Code Block
languagejs
{"repositoryId":1,"isEnabledForBranches":false,"isEnabledForTags":false}