v14

OpenAPI 3.1.02026-08-043122950.3 KB
models

Update repo settings

Update the settings of a repo

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

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'