Pages for Bitbucket Server REST API
Get status of whether Pages is enabled for specified repository and branch/tag
GET /rest/pages/latest/pages-settings/{projectKey}/{repositorySlug}/enabled
Example Request
curl -u username:password -H "Content-Type:application/json" http://bitbucket.example.com/rest/pages/latest/pages-settings/PROJECT_1/rep_1/enabled?refId=refs/heads/master
Example Response
{"repositoryId":1,"refId":"refs/heads/master","isEnabled":true}
Enable Pages for specified repository and branch/tag
Example Request
Example Response
Disable Pages for specific repository and branch/tag
Example Request
Example Response
Enable Pages support for any new branch in the specified repository
Example Request
Example Response
Disable Pages support for new branches in the specified repository
Example Request
Example Response
Enable Pages support for any new tag in the specified repository
Example Request
Example Response
Disable Pages support for new tags in the specified repository
Example Request
Example Response
Â
Â