repository
put/repos/{owner}/{repo}/subscription

Request

  • Base URL
    https://demo.gitea.com/api/v1
  • Auth
    • HTTP basic
    • or API key in query parameter token
    • or API key in query parameter access_token
    • or API key in header Authorization
    • or API key in query parameter sudo
    • or API key in header Sudo
    • or API key in header X-GITEA-OTP
  • TypeScript
    A function with typed inputs. Its response is checked against the schema.

Path parameters

ownerstring required

owner of the repo

repostring required

name of the repo

Response

WatchInfo

created_atstring date-time

The timestamp when the watch status was created

ignoredboolean

Whether notifications for the repository are ignored

reasonunknown
repository_urlstring

The URL of the repository being watched

subscribedboolean

Whether the repository is being watched for notifications

urlstring

The URL for managing the watch status

Changes

    • info

      removed the non-success response with the status

    • info

      removed the non-success response with the status