---
title: "Set the inheritance state for repository settings"
method: PUT
path: "/repositories/{workspace}/{repo_slug}/override-settings"
tags: ["Repositories"]
---

# Set the inheritance state for repository settings

`PUT /repositories/{workspace}/{repo_slug}/override-settings`

## Request

- Base URL: `https://api.bitbucket.org/2.0`
- URL: `https://api.bitbucket.org/2.0/repositories/{workspace}/{repo_slug}/override-settings`
- Auth: one of:
  - OAuth 2
    - Authorization code: `https://bitbucket.org/site/oauth2/authorize`
    - Token URL: `https://bitbucket.org/site/oauth2/access_token` scopes: `repository:admin`
  - HTTP basic
  - API key in header `Authorization`

## Response `204`

The repository setting inheritance state was set and no content returned

## Other responses

- `404`: If no repository exists at this location

---

[API](https://skmtc.dev/atlassian/apis/bitbucket-api.md) - [All operations](https://skmtc.dev/atlassian/apis/bitbucket-api/llms.txt) - [OpenAPI document](https://skmtc.dev/atlassian/apis/bitbucket-api/revisions/6ae783fa75da?raw)
