Get status of whether Pages is enabled for specified repository and branch/tag
GET /rest/latest/pages-settings/{projectKey}/{repositorySlug}/enabled
CODE
Example 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
BASH
Example Response
{"repositoryId":1,"refId":"refs/heads/master","isEnabled":true}
JSON
Enable Pages for specified repository and branch/tag
PUT /rest/latest/pages-settings/{projectKey}/{repositorySlug}/enabled
PERL
Example 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
BASH
Example Response
{"repositoryId":1,"refId":"refs/heads/master","isEnabled":true}
JSON
Disable Pages for specific repository and branch/tag
DELETE /rest/latest/pages-settings/{projectKey}/{repositorySlug}/enabled
PERL
Example 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?refId=refs/heads/master
BASH
Example Response
{"repositoryId":1,"refId":"refs/heads/master","isEnabled":false}
JSON
Enable Pages support for any new branch in the specified repository
PUT /rest/latest/pages-settings/{projectKey}/{repositorySlug}/enabled-for-new-branches
PERL
Example 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
BASH
Example Response
{"repositoryId":1,"isEnabledForBranches":false,"isEnabledForTags":true}
JSON
Disable Pages support for new branches in the specified repository
DELETE /rest/latest/pages-settings/{projectKey}/{repositorySlug}/enabled-for-new-branches
PERL
Example 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
CODE
Example Response
{"repositoryId":1,"isEnabledForBranches":false,"isEnabledForTags":true}
JSON
Enable Pages support for any new tag in the specified repository
PUT /rest/latest/pages-settings/{projectKey}/{repositorySlug}/enabled-for-new-tags
PERL
Example 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
BASH
Example Response
{"repositoryId":1,"isEnabledForBranches":false,"isEnabledForTags":true}
JSON
Disable Pages support for new tags in the specified repository
DELETE /rest/latest/pages-settings/{projectKey}/{repositorySlug}/enabled-for-new-tags
PERL
Example 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
BASH
Example Response
{"repositoryId":1,"isEnabledForBranches":false,"isEnabledForTags":false}
JSON