https
PUT
api.github.com
None
/repos/PyGithub/PyGithub/rulesets/3474546
{'Authorization': 'token private_token_removed', 'User-Agent': 'PyGithub/Python', 'Content-Type': 'application/json'}
{"name": "edited rule set", "target": "branch", "enforcement": "disabled", "bypass_actors": [], "conditions": {"ref_name": {"exclude": [], "include": ["refs/heads/master", "refs/heads/main", "refs/heads/develop"]}}, "rules": [{"type": "deletion"}, {"type": "creation"}]}
200
[('Date', 'Fri, 31 Jan 2025 20:09:07 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP,Accept-Encoding, Accept, X-Requested-With'), ('ETag', 'W/"0cf092e37908248e3826de5995993c26ceb566d64a831402b22753c59fbaa4c0"'), ('github-authentication-token-expiration', '2025-02-21 11:42:01 +0100'), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('x-accepted-github-permissions', 'administration=write'), ('x-github-api-version-selected', '2022-11-28'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4990'), ('X-RateLimit-Reset', '1738357096'), ('X-RateLimit-Used', '10'), ('X-RateLimit-Resource', 'core'), ('Access-Control-Expose-Headers', 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset'), ('Access-Control-Allow-Origin', '*'), ('Strict-Transport-Security', 'max-age=31536000; includeSubdomains; preload'), ('X-Frame-Options', 'deny'), ('X-Content-Type-Options', 'nosniff'), ('X-XSS-Protection', '0'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('Content-Encoding', 'gzip'), ('Transfer-Encoding', 'chunked'), ('Server', 'github.com'), ('X-GitHub-Request-Id', '1FD9:1288:1FDC5F:2140B8:679D2DE3')]
{"id":3474546,"name":"edited rule set","target":"branch","source_type":"Repository","source":"PyGithub/PyGithub","enforcement":"disabled","conditions":{"ref_name":{"exclude":[],"include":["refs/heads/master", "refs/heads/main", "refs/heads/develop"]}},"rules":[{"type":"deletion"},{"type":"creation"}],"node_id":"RRS_lACqUmVwb3NpdG9yec43HleVzgA1BHI","created_at":"2025-01-31T20:59:12.515+01:00","updated_at":"2025-01-31T21:09:07.855+01:00","bypass_actors":[],"current_user_can_bypass":"never","_links":{"self":{"href":"https://api.github.com/repos/PyGithub/PyGithub/rulesets/3490869"},"html":{"href":"https://github.com/PyGithub/PyGithub/rules/3490869"}}}
