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

# Watch a repo

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

## Path parameters

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

## Response `200`

WatchInfo

- WatchInfo — WatchInfo represents an API watch status of one repository
  - `created_at` string, date-time — The timestamp when the watch status was created
  - `ignored` boolean — Whether notifications for the repository are ignored
  - `reason` unknown
  - `repository_url` string — The URL of the repository being watched
  - `subscribed` boolean — Whether the repository is being watched for notifications
  - `url` string — The URL for managing the watch status

## Other responses

- `403` — APIForbiddenError is a forbidden error response
- `404` — APINotFound is a not found empty response

---

[API](https://skmtc.net/gitea/apis/gitea-api.md) · [All operations](https://skmtc.net/gitea/apis/gitea-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gitea/gitea-api/revisions/350de506cefa/schema)
