# /repos/{}/{}/tags/protection* stops working

Calls to /repos/{id}/{id}/tags/protection* on GitHub REST API stopped working on August 30, 2024.

## What to use instead

Manage tag protection with repository rulesets (/repos/{owner}/{repo}/rulesets) instead; existing rules were migrated to a tag ruleset.

- API: GitHub REST API (api.github.com)
- Kind: Endpoint removal
- Announced: May 29, 2024
- Takes effect: August 30, 2024
- Calls after that day: fail
- Calls it hits: `/repos/{id}/{id}/tags/protection*`
- Source: [Announcement](https://github.blog/changelog/2024-05-29-sunset-notice-tag-protections)
- Verified: November 6, 2026, against GitHub REST API's own pages
- Page: https://www.okapi.bot/providers/github-rest-api/breaking-changes/repos-tags-protection-stops-working/

## GitHub REST API's words

> August 30, 2024: All tag protection rules will be migrated to a new tag ruleset. All REST and GraphQL API endpoints will be deprecated

Okapi finds the calls this change hits in your repo and opens the pull request with the fix: https://github.com/apps/okapi-agent
