spaces

Update repo settings

Changed on

Update the settings of a repo

put/api/spaces/{namespace}/{repo}/settings

Request

  • Base URL: https://huggingface.co
  • URL: https://huggingface.co/api/spaces/{namespace}/{repo}/settings
  • Auth: HTTP bearer

Path parameters

namespacestring required
repostring required

Request body

privateboolean
visibility'private' | 'public' | 'protected'

Repository visibility. protected is only supported for Spaces.

discussionsDisabledboolean
discussionsSorting'recently-created' | 'trending' | 'reactions'
orgMembersGatedboolean

If true, members of the owning org (except admins) must also go through the gated access-request flow.

gatedNotificationsEmailstring email
gatedNotificationsMode'bulk' | 'real-time'

Response

The updated repo settings.

privateboolean
visibility'private' | 'public' | 'protected'

Repository visibility. protected is only supported for Spaces.

discussionsDisabledboolean
discussionsSorting'recently-created' | 'trending' | 'reactions'
orgMembersGatedboolean

If true, members of the owning org (except admins) must also go through the gated access-request flow.

gatedNotificationsEmailstring email
gatedNotificationsMode'bulk' | 'real-time'

Changes

    • info

      added the new optional request property

    • info

      added the optional property to the response with the status

    • breaking

      removed subschema #1 subschema #2 from the request property anyOf list

    • breaking

      the request property type changed from no type to string

    • breaking

      the request property type changed from no type to string

    • breaking

      the request property type changed from no type to string

    • breaking

      the response's property type changed from no type to string for status

    • breaking

      the response's property type changed from no type to string for status

    • breaking

      the response's property type changed from no type to string for status

    • info

      added subschema #1 subschema #2 to the request property anyOf list

    • info

      added subschema #1 subschema #2 to the response property anyOf list for the response status

    • info

      removed subschema #1 subschema #2 from the response property anyOf list for the response status