---
title: "Set a repository subscription"
method: PUT
path: "/repos/{owner}/{repo}/subscription"
tags: ["activity"]
---

# Set a repository subscription

`PUT /repos/{owner}/{repo}/subscription`

If you would like to watch a repository, set `subscribed` to `true`. If you would like to ignore notifications made within a repository, set `ignored` to `true`. If you would like to stop watching a repository, [delete the repository's subscription](https://docs.github.com/enterprise-cloud@latest/rest/activity/watching#delete-a-repository-subscription) completely.

## Path parameters

- `owner` string, required
- `repo` string, required

## Request body

- object
  - `subscribed` boolean — Determines if notifications should be received from this repository.
  - `ignored` boolean — Determines if all notifications should be blocked from this repository.

## Response `200`

Response

- RepositorySubscription — Repository invitations let you manage who you collaborate with.
  - `subscribed` boolean, required — Determines if notifications should be received from this repository.
  - `ignored` boolean, required — Determines if all notifications should be blocked from this repository.
  - `reason` string, nullable, required
  - `created_at` string, date-time, required
  - `url` string, uri, required
  - `repository_url` string, uri, required

---

[API](https://skmtc.net/github/apis/github-v3-rest-api-3.md) · [All operations](https://skmtc.net/github/apis/github-v3-rest-api-3/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/github-v3-rest-api-3/versions/dc0584ac4e13/schema)
