---
title: "Pages for Bitbucket Server REST API"
canonical: "https://support.appfire.com/space/PAGE/151420949/Pages%20for%20Bitbucket%20Server%20REST%20API"
format: markdown
---
> Macro (aura-html)

##   
Get status of whether Pages is enabled for specified repository and branch/tag

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

- Example Request

- Example Response

## Enable Pages for specified repository and branch/tag

```perl
PUT /rest/pages/latest/pages-settings/{projectKey}/{repositorySlug}/enabled
```

- Example Request

- Example Response

## Disable Pages for specific repository and branch/tag

```perl
DELETE /rest/pages/latest/pages-settings/{projectKey}/{repositorySlug}/enabled
```

- Example Request

- Example Response

## Enable Pages support for any new branch in the specified repository

```perl
PUT /rest/pages/latest/pages-settings/{projectKey}/{repositorySlug}/enabled-for-new-branches
```

- Example Request

- Example Response

## Disable Pages support for new branches in the specified repository

```perl
DELETE /rest/pages/latest/pages-settings/{projectKey}/{repositorySlug}/enabled-for-new-branches
```

- Example Request

- Example Response

## Enable Pages support for any new tag in the specified repository

```perl
PUT /rest/pages/latest/pages-settings/{projectKey}/{repositorySlug}/enabled-for-new-tags
```

- Example Request

- Example Response

## Disable Pages support for new tags in the specified repository

```perl
DELETE /rest/pages/latest/pages-settings/{projectKey}/{repositorySlug}/enabled-for-new-tags
```

- Example Request

- Example Response