---
title: "Changes to Update repo settings"
method: PUT
path: "/api/spaces/{namespace}/{repo}/settings"
---

# Changes to Update repo settings

`PUT /api/spaces/{namespace}/{repo}/settings`

> Every recorded change to this operation, newest first.

## Timeline

Changed in 2 of 277 revisions.

- **2026-10-19** `501428c95631`: 2 info
- **2026-09-08** `bd17546f47b8`: 7 breaking, 3 info

## Changes

- **2026-10-19** `501428c95631`: 2 info
  - added the new optional request property `gatedProfileSharing`
  - added the optional property `gatedProfileSharing` to the response with the `200` status
- **2026-09-08** `bd17546f47b8`: 7 breaking, 3 info
  - removed `subschema #1, subschema #2` from the `gated` request property `anyOf` list
  - the `discussionsSorting` request property type changed from no type to `string`
  - the `gatedNotificationsMode` request property type changed from no type to `string`
  - the `visibility` request property type changed from no type to `string`
  - the `discussionsSorting` response's property type changed from no type to `string` for status `200`
  - the `gatedNotificationsMode` response's property type changed from no type to `string` for status `200`
  - the `visibility` response's property type changed from no type to `string` for status `200`
  - added `subschema #1, subschema #2` to the `gated` request property `anyOf` list
  - added `subschema #1, subschema #2` to the `gated` response property `anyOf` list for the response status `200`
  - removed `subschema #1, subschema #2` from the `gated` response property `anyOf` list for the response status `200`

---

[Operation](https://skmtc.dev/huggingface/apis/hub-api-endpoints/docs/api/spaces/:namespace/:repo/settings/put.md) - [API](https://skmtc.dev/huggingface/apis/hub-api-endpoints.md) - [Page](https://skmtc.dev/huggingface/apis/hub-api-endpoints/changes/api/spaces/:namespace/:repo/settings/put)
