...
location | top |
---|
...
Get status of whether Pages is enabled for specified repository and branch/tag
Code Block | language | perl
---|---|
theme | Confluence |
Expand | title | Example Request
Example Request
Code Block | ||
---|---|---|
| ||
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 Expand | | title |
Example Response
Code Block | |||
---|---|---|---|
| js
| ||
{"repositoryId":1,"refId":"refs/heads/master","isEnabled":true} |
Enable Pages
...
for specified repository and branch/tag
Code Block | ||||
---|---|---|---|---|
| theme||||
Confluence | ||||
Expand | ||||
|
Example Request
Code Block | ||
---|---|---|
| ||
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 Expand | |
Example Response
Code Block | |||
---|---|---|---|
| js
| ||
{"repositoryId":1,"refId":"refs/heads/master","isEnabled":true} |
Disable Pages
...
for
...
specific repository and branch/tag
Code Block | ||||
---|---|---|---|---|
| theme||||
Confluence |
Example Request
Code Block | |||
---|---|---|---|
| Example Request
| ||
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 Expand | | title |
Example Response
Code Block | |||
---|---|---|---|
| js
| ||
{"repositoryId":1,"refId":"refs/heads/master","isEnabled":false} |
Enable Pages support for any new branch in the specified repository
Code Block | ||||
---|---|---|---|---|
| theme||||
Confluence | ||||
Expand | title | Example Request
Example Request
Code Block | ||
---|---|---|
| ||
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 Expand | | title |
Example Response
Code Block | |||
---|---|---|---|
| js
| ||
{"repositoryId":1,"isEnabledForBranches":false,"isEnabledForTags":true} |
Disable Pages support for new branches in the specified repository
Code Block | ||
---|---|---|
| ||
theme | Confluence | |
Expand |
Example Request
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 Expand | |
Example Response
Code Block | |||
---|---|---|---|
| js
| ||
{"repositoryId":1,"isEnabledForBranches":false,"isEnabledForTags":true} |
Enable Pages support for any new tag in the specified repository
Code Block | ||
---|---|---|
| ||
theme | Confluence | |
Expand | title | Example Request
Example Request
Code Block | ||
---|---|---|
| ||
curl -u username:password -H "Content-Type:application/json" -XPUT http PUT http://bitbucket.example.com/rest/pages/latest/pages-settings/PROJECT_1/rep_1/enabled-for-new-tagsexpand | title |
Example Response
Code Block | |||
---|---|---|---|
| js
| ||
{"repositoryId":1,"isEnabledForBranches":false,"isEnabledForTags":true} |
Disable Pages support for new tags in the specified repository
Code Block | ||
---|---|---|
| ||
theme | Confluence | |
Expand | title | Example Request
Example Request
Code Block | ||
---|---|---|
| ||
curl -u username:password -H "Content-Type:application/json" -XDELETE http DELETE http://bitbucket.example.com/rest/pages/latest/pages-settings/PROJECT_1/rep_1/enabled-for-new-tags Expand | | title |
Example Response
Code Block | |||
---|---|---|---|
| js
| ||
{"repositoryId":1,"isEnabledForBranches":false,"isEnabledForTags":false} |