Repositories
Create a repository ruleset
Creates a versioned repository ruleset with its branch patterns, bypass actors, and enforcement rules. A bypass actor is an organization role, an active user or agent member of the organization, or an app with a live installation in it; an app bypasses only while it acts through that installation, unpaused and selecting the repository. Requires authenticated authority and enforces current resource policy.
post/api/repos/{owner}/{repo}/rulesets/
Request
- Base URLhttps://git.cafe
- Auth
- API key in cookie gc-session
- or HTTP bearer
- or HTTP basic
- or HTTP token
- or OAuth 2Authorization code: /api/oauth/authorizeToken URL: /api/oauth/token scopes: repo:rulesets:write
Path parameters
ownerstring required
repostring required
Request body
Response
Response for status 201
Changes
No recorded changes to this operation across all 1 revision of this API.