<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/manage-the-code-coverage-ruleset-condition-with-the-rest-api-obwpisupq" -->

---
title: Manage the code coverage ruleset condition with the REST API
description: GitHub now supports managing the 'Restrict code coverage' repository ruleset option via the generally available REST API, not just through the web UI. This...
canonical: https://daily.dev/posts/manage-the-code-coverage-ruleset-condition-with-the-rest-api-obwpisupq
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Manage the code coverage ruleset condition with the REST API | daily.dev
og:description: GitHub now supports managing the 'Restrict code coverage' repository ruleset option via the generally available REST API, not just through the web UI. This...
og:url: https://daily.dev/posts/manage-the-code-coverage-ruleset-condition-with-the-rest-api-obwpisupq
og:image: https://api.daily.dev/og/posts/oBwPisuPq.png
og:image:alt: Manage the code coverage ruleset condition with the REST API
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Manage the code coverage ruleset condition with the REST API

**[GitHub Changelog](https://daily.dev/sources/github_updates)** · 1 min read · 1 upvotes · 0 comments

## Summary

GitHub now supports managing the 'Restrict code coverage' repository ruleset option via the generally available REST API, not just through the web UI. This ruleset enforces a minimum line coverage percentage or a maximum tolerable coverage drop for pull requests. It requires GitHub Code Quality enabled with code coverage uploads configured, and is available on GitHub Enterprise Cloud and GitHub Team (including data residency), but not GitHub Enterprise Server. The change lets teams create, update, and read this setting programmatically for consistency across many repos or as part of infrastructure-as-code workflows.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://github.blog/changelog/2026-09-18-manage-the-code-coverage-ruleset-condition-with-the-rest-api>

## Questions this post answers

### Can I configure GitHub's code coverage ruleset using the REST API instead of the UI?

Yes, the REST API now generally supports managing the 'Restrict code coverage' repository ruleset option, in addition to the existing UI support. This lets you create, update, and read the ruleset programmatically, useful for enforcing minimum line coverage or a maximum coverage drop across many repositories or within infrastructure-as-code workflows. It requires GitHub Code Quality enabled and code coverage uploads configured, and works on GitHub Enterprise Cloud and GitHub Team, but not GitHub Enterprise Server.

_Teams standardizing coverage rules across repos can follow ecosystem updates like this on daily.dev._

### What are the requirements for using the code coverage ruleset on GitHub?

The repository must have GitHub Code Quality enabled and code coverage uploads configured. The ruleset is available on GitHub Enterprise Cloud and GitHub Team, including Enterprise Cloud with data residency, but it is not available on GitHub Enterprise Server.

_Developers rolling out coverage enforcement policies can track platform capability changes like this on daily.dev._

## Similar posts on daily.dev

- [GitHub code coverage merge protection for pull requests](https://daily.dev/posts/github-code-coverage-merge-protection-for-pull-requests-doqipxmzb) · GitHub Changelog · 7 upvotes · 3 comments
- [Code coverage on pull requests is now in public preview](https://daily.dev/posts/code-coverage-on-pull-requests-is-now-in-public-preview-kg6teet8i) · GitHub Changelog · 24 upvotes · 2 comments
- [Code coverage automatic enablement in Code Quality settings](https://daily.dev/posts/code-coverage-automatic-enablement-in-code-quality-settings-we34dtzkj) · GitHub Changelog · 0 upvotes · 0 comments
- [GitHub Separates Who Writes Code From Who Runs Your CI](https://daily.dev/posts/github-separates-who-writes-code-from-who-runs-your-ci-nku4hdcup) · DevOps.com · 0 upvotes · 0 comments

---

Tags: [#github](https://daily.dev/tags/github), [#rest-api](https://daily.dev/tags/rest-api), [#iac](https://daily.dev/tags/iac)

[View this post on daily.dev](https://daily.dev/posts/manage-the-code-coverage-ruleset-condition-with-the-rest-api-obwpisupq)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Manage the code coverage ruleset condition with the REST API","url":"https://daily.dev/posts/manage-the-code-coverage-ruleset-condition-with-the-rest-api-obwpisupq","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/manage-the-code-coverage-ruleset-condition-with-the-rest-api-obwpisupq"},"datePublished":"2026-09-18T19:36:22.745Z","dateModified":"2026-09-18T19:36:39.048Z","description":"GitHub now supports managing the 'Restrict code coverage' repository ruleset option via the generally available REST API, not just through the web UI. This...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/130b3bca59caa9a1837c28072eef0242?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/130b3bca59caa9a1837c28072eef0242?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"GitHub Changelog","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"GitHub Changelog","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/15004b7835da4d89b02b115871f0f6dc","url":"https://daily.dev/sources/github_updates"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/manage-the-code-coverage-ruleset-condition-with-the-rest-api-obwpisupq","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"github,rest-api,iac","timeRequired":"PT1M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"GitHub Changelog","item":"https://daily.dev/sources/github_updates"},{"@type":"ListItem","position":3,"name":"Manage the code coverage ruleset condition with the REST API"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/manage-the-code-coverage-ruleset-condition-with-the-rest-api-obwpisupq#faq","mainEntity":[{"@type":"Question","name":"Can I configure GitHub's code coverage ruleset using the REST API instead of the UI?","acceptedAnswer":{"@type":"Answer","text":"Yes, the REST API now generally supports managing the 'Restrict code coverage' repository ruleset option, in addition to the existing UI support. This lets you create, update, and read the ruleset programmatically, useful for enforcing minimum line coverage or a maximum coverage drop across many repositories or within infrastructure-as-code workflows. It requires GitHub Code Quality enabled and code coverage uploads configured, and works on GitHub Enterprise Cloud and GitHub Team, but not GitHub Enterprise Server. Teams standardizing coverage rules across repos can follow ecosystem updates like this on daily.dev."}},{"@type":"Question","name":"What are the requirements for using the code coverage ruleset on GitHub?","acceptedAnswer":{"@type":"Answer","text":"The repository must have GitHub Code Quality enabled and code coverage uploads configured. The ruleset is available on GitHub Enterprise Cloud and GitHub Team, including Enterprise Cloud with data residency, but it is not available on GitHub Enterprise Server. Developers rolling out coverage enforcement policies can track platform capability changes like this on daily.dev."}}]}
```

