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

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

...

Code Block
languagebash
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

...

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

...

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

...

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

...

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

...

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

...

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

...

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

...

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

...

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

...

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

...

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

...

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

...