# Module `gitea_api`
## Source
- Backend: `swagger`
- Default hostname: `localhost:3000`
- Source kind: `git`
- Repository: `https://github.com/go-gitea/gitea`
- Pinned tag: `v28.3.0`
- Files: `templates/swagger/v1-swagger.generated.json`
- Resolved SHA: `4f5a3e13e5f3aca85d830e3a9024c893b0bbf1e1`
- Reproducible: yes
## admin
- Description: Site administration
### `gitea admin admin-add-user-badges`
- Summary: Add a badge to a user
- HTTP: `POST /api/v1/admin/users/{username}/badges`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--username` (path, required): username of the user to whom a badge is to be added
- Output: response media `application/json`
### `gitea admin admin-adopt-repository`
- Summary: Adopt unadopted files as a repository
- HTTP: `POST /api/v1/admin/unadopted/{owner}/{repo}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- Output: response media `application/json`
### `gitea admin admin-create-hook`
- Summary: Create a hook
- HTTP: `POST /api/v1/admin/hooks`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: required
- Flags: none
- Output: response media `application/json`
### `gitea admin admin-create-org`
- Summary: Create an organization
- HTTP: `POST /api/v1/admin/users/{username}/orgs`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: required
- Flags:
- `--username` (path, required): username of the user who will own the created organization
- Output: response media `application/json`
### `gitea admin admin-create-public-key`
- Summary: Add a public key on behalf of a user
- HTTP: `POST /api/v1/admin/users/{username}/keys`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--username` (path, required): username of the user who is to receive a public key
- Output: response media `application/json`
### `gitea admin admin-create-repo`
- Summary: Create a repository on behalf of a user
- HTTP: `POST /api/v1/admin/users/{username}/repos`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: required
- Flags:
- `--username` (path, required): username of the user who will own the created repository
- Output: response media `application/json`
### `gitea admin admin-create-runner-registration-token`
- Summary: Get a global actions runner registration token
- HTTP: `POST /api/v1/admin/actions/runners/registration-token`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags: none
- Output: response media `application/json`
### `gitea admin admin-create-user`
- Summary: Create a user
- HTTP: `POST /api/v1/admin/users`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags: none
- Output: response media `application/json`
### `gitea admin admin-cron-list`
- Summary: List cron tasks
- HTTP: `GET /api/v1/admin/cron`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea admin admin-cron-run`
- Summary: Run cron task
- HTTP: `POST /api/v1/admin/cron/{task}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--task` (path, required): task to run
- Output: response media `application/json`
### `gitea admin admin-delete-hook`
- Summary: Delete a hook
- HTTP: `DELETE /api/v1/admin/hooks/{id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--id` (path, required, int64): id of the hook to delete
- Output: response media `application/json`
### `gitea admin admin-delete-unadopted-repository`
- Summary: Delete unadopted files
- HTTP: `DELETE /api/v1/admin/unadopted/{owner}/{repo}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- Output: response media `application/json`
### `gitea admin admin-delete-user`
- Summary: Delete a user
- HTTP: `DELETE /api/v1/admin/users/{username}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--username` (path, required): username of the user to delete
- `--purge` (query): purge the user from the system completely
- Output: response media `application/json`
### `gitea admin admin-delete-user-badges`
- Summary: Remove a badge from a user
- HTTP: `DELETE /api/v1/admin/users/{username}/badges`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--username` (path, required): username of the user whose badge is to be deleted
- Output: response media `application/json`
### `gitea admin admin-delete-user-public-key`
- Summary: Delete a user's public key
- HTTP: `DELETE /api/v1/admin/users/{username}/keys/{id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--username` (path, required): username of the user whose public key is to be deleted
- `--id` (path, required, int64): id of the key to delete
- Output: response media `application/json`
### `gitea admin admin-edit-hook`
- Summary: Update a hook
- HTTP: `PATCH /api/v1/admin/hooks/{id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--id` (path, required, int64): id of the hook to update
- Output: response media `application/json`
### `gitea admin admin-edit-user`
- Summary: Edit an existing user
- HTTP: `PATCH /api/v1/admin/users/{username}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--username` (path, required): username of the user whose data is to be edited
- Output: response media `application/json`
### `gitea admin admin-get-all-emails`
- Summary: List all emails
- HTTP: `GET /api/v1/admin/emails`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea admin admin-get-all-orgs`
- Summary: List all organizations
- HTTP: `GET /api/v1/admin/orgs`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea admin admin-get-hook`
- Summary: Get a hook
- HTTP: `GET /api/v1/admin/hooks/{id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--id` (path, required, int64): id of the hook to get
- Output: response media `application/json`
### `gitea admin admin-list-hooks`
- Summary: List system's webhooks
- HTTP: `GET /api/v1/admin/hooks`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- `--type` (query, default `system`, one of: system|default|all): system, default or both kinds of webhooks
- Output: response media `application/json`
### `gitea admin admin-list-packages`
- Summary: List all packages
- HTTP: `GET /api/v1/admin/packages`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- `--type` (query, one of: alpine|cargo|chef|composer|conan|conda|container|cran|debian|generic|go|helm|maven|npm|nuget|pub|pypi|rpm|rubygems|swift|terraform|vagrant): package type filter
- `--q` (query): name filter
- Output: response media `application/json`
### `gitea admin admin-list-user-badges`
- Summary: List a user's badges
- HTTP: `GET /api/v1/admin/users/{username}/badges`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--username` (path, required): username of the user whose badges are to be listed
- Output: response media `application/json`
### `gitea admin admin-rename-user`
- Summary: Rename a user
- HTTP: `POST /api/v1/admin/users/{username}/rename`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: required
- Flags:
- `--username` (path, required): current username of the user
- Output: response media `application/json`
### `gitea admin admin-search-emails`
- Summary: Search all emails
- HTTP: `GET /api/v1/admin/emails/search`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--q` (query): keyword
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea admin admin-search-users`
- Summary: Search users according filter conditions
- HTTP: `GET /api/v1/admin/users`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--source-id` (query, int64): ID of the user's login source to search for
- `--login-name` (query): identifier of the user, provided by the external authenticator
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- `--sort` (query): sort users by attribute. Supported values are "name", "created", "updated" and "id". Default is "name"
- `--order` (query): sort order, either "asc" (ascending) or "desc" (descending). Default is "asc", ignored if "sort" is not specified.
- `--q` (query): search term (username, full name, email)
- `--visibility` (query): visibility filter. Supported values are "public", "limited" and "private".
- `--is-active` (query): filter active users
- `--is-admin` (query): filter admin users
- `--is-restricted` (query): filter restricted users
- `--is-2fa-enabled` (query): filter 2FA enabled users
- `--is-prohibit-login` (query): filter login prohibited users
- Output: response media `application/json`
### `gitea admin admin-unadopted-list`
- Summary: List unadopted repositories
- HTTP: `GET /api/v1/admin/unadopted`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- `--query` (query): glob pattern of repositories to search for, in the form owner or owner/repo
- Output: response media `application/json`
### `gitea admin delete-admin-runner`
- Summary: Delete a global runner
- HTTP: `DELETE /api/v1/admin/actions/runners/{runner_id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--runner-id` (path, required): id of the runner
- Output: response media `application/json`
### `gitea admin get-admin-runner`
- Summary: Get a global runner
- HTTP: `GET /api/v1/admin/actions/runners/{runner_id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--runner-id` (path, required): id of the runner
- Output: response media `application/json`
### `gitea admin get-admin-runners`
- Summary: Get all runners
- HTTP: `GET /api/v1/admin/actions/runners`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--disabled` (query): filter by disabled status (true or false)
- Output: response media `application/json`
### `gitea admin list-admin-workflow-jobs`
- Summary: Lists all jobs
- HTTP: `GET /api/v1/admin/actions/jobs`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--status` (query): workflow status (requested, pending, queued, in_progress, failure, success, skipped)
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- `--sort` (query): sort jobs by attribute. Supported values are "id". Default is "id"
- `--order` (query): sort order, either "asc" (ascending) or "desc" (descending). Default is "asc"
- Output: response media `application/json`
### `gitea admin list-admin-workflow-runs`
- Summary: Lists all runs
- HTTP: `GET /api/v1/admin/actions/runs`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--event` (query): workflow event name
- `--branch` (query): workflow branch
- `--status` (query): workflow status (requested, pending, queued, in_progress, failure, success, skipped)
- `--actor` (query): triggered by user
- `--head-sha` (query): triggering sha of the workflow run
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea admin update-admin-runner`
- Summary: Update a global runner
- HTTP: `PATCH /api/v1/admin/actions/runners/{runner_id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--runner-id` (path, required): id of the runner
- Output: response media `application/json`
## issue
- Description: Issues, pull requests, comments, labels and milestones
### `gitea issue issue-add-assignees`
- Summary: Add assignees to an issue
- HTTP: `POST /api/v1/repos/{owner}/{repo}/issues/{index}/assignees`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: required
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--index` (path, required, int64): index of the issue
- Output: response media `application/json`
### `gitea issue issue-add-label`
- Summary: Add a label to an issue
- HTTP: `POST /api/v1/repos/{owner}/{repo}/issues/{index}/labels`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--index` (path, required, int64): index of the issue
- Output: response media `application/json`
### `gitea issue issue-add-subscription`
- Summary: Subscribe user to issue
- HTTP: `PUT /api/v1/repos/{owner}/{repo}/issues/{index}/subscriptions/{user}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--index` (path, required, int64): index of the issue
- `--user` (path, required): username of the user to subscribe the issue to
- Output: response media `application/json`
### `gitea issue issue-add-time`
- Summary: Add tracked time to a issue
- HTTP: `POST /api/v1/repos/{owner}/{repo}/issues/{index}/times`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--index` (path, required, int64): index of the issue
- Output: response media `application/json`
### `gitea issue issue-check-assignee`
- Summary: Check if a user can be assigned to an issue
- HTTP: `GET /api/v1/repos/{owner}/{repo}/issues/{index}/assignees/{assignee}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--index` (path, required, int64): index of the issue
- `--assignee` (path, required): username of the user to check for being an assignee
- Output: response media `application/json`
### `gitea issue issue-check-subscription`
- Summary: Check if user is subscribed to an issue
- HTTP: `GET /api/v1/repos/{owner}/{repo}/issues/{index}/subscriptions/check`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--index` (path, required, int64): index of the issue
- Output: response media `application/json`
### `gitea issue issue-clear-labels`
- Summary: Remove all labels from an issue
- HTTP: `DELETE /api/v1/repos/{owner}/{repo}/issues/{index}/labels`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--index` (path, required, int64): index of the issue
- Output: response media `application/json`
### `gitea issue issue-create-comment`
- Summary: Add a comment to an issue
- HTTP: `POST /api/v1/repos/{owner}/{repo}/issues/{index}/comments`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--index` (path, required, int64): index of the issue
- Output: response media `application/json`
### `gitea issue issue-create-issue`
- Summary: Create an issue. If using deadline only the date will be taken into account, and time of day ignored.
- HTTP: `POST /api/v1/repos/{owner}/{repo}/issues`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- Output: response media `application/json`
### `gitea issue issue-create-issue-attachment`
- Summary: Create an issue attachment
- HTTP: `POST /api/v1/repos/{owner}/{repo}/issues/{index}/assets`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--index` (path, required, int64): index of the issue
- `--name` (query): name of the attachment
- `--attachment` (formData, required, binary): attachment to upload
- Output: response media `application/json`
### `gitea issue issue-create-issue-blocking`
- Summary: Block the issue given in the body by the issue in path
- HTTP: `POST /api/v1/repos/{owner}/{repo}/issues/{index}/blocks`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--index` (path, required): index of the issue
- Output: response media `application/json`
### `gitea issue issue-create-issue-comment-attachment`
- Summary: Create a comment attachment
- HTTP: `POST /api/v1/repos/{owner}/{repo}/issues/comments/{id}/assets`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--id` (path, required, int64): id of the comment
- `--name` (query): name of the attachment
- `--attachment` (formData, required, binary): attachment to upload
- Output: response media `application/json`
### `gitea issue issue-create-issue-dependencies`
- Summary: Make the issue in the url depend on the issue in the form.
- HTTP: `POST /api/v1/repos/{owner}/{repo}/issues/{index}/dependencies`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--index` (path, required): index of the issue
- Output: response media `application/json`
### `gitea issue issue-create-label`
- Summary: Create a label
- HTTP: `POST /api/v1/repos/{owner}/{repo}/labels`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- Output: response media `application/json`
### `gitea issue issue-create-milestone`
- Summary: Create a milestone
- HTTP: `POST /api/v1/repos/{owner}/{repo}/milestones`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- Output: response media `application/json`
### `gitea issue issue-delete`
- Summary: Delete an issue
- HTTP: `DELETE /api/v1/repos/{owner}/{repo}/issues/{index}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--index` (path, required, int64): index of issue to delete
### `gitea issue issue-delete-comment`
- Summary: Delete a comment
- HTTP: `DELETE /api/v1/repos/{owner}/{repo}/issues/comments/{id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--id` (path, required, int64): id of comment to delete
### `gitea issue issue-delete-comment-deprecated`
- Summary: Delete a comment
- HTTP: `DELETE /api/v1/repos/{owner}/{repo}/issues/{index}/comments/{id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--index` (path, required): this parameter is ignored
- `--id` (path, required, int64): id of comment to delete
### `gitea issue issue-delete-comment-reaction`
- Summary: Remove a reaction from a comment of an issue
- HTTP: `DELETE /api/v1/repos/{owner}/{repo}/issues/comments/{id}/reactions`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--id` (path, required, int64): id of the comment to edit
- Output: response media `application/json`
### `gitea issue issue-delete-issue-attachment`
- Summary: Delete an issue attachment
- HTTP: `DELETE /api/v1/repos/{owner}/{repo}/issues/{index}/assets/{attachment_id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--index` (path, required, int64): index of the issue
- `--attachment-id` (path, required, int64): id of the attachment to delete
- Output: response media `application/json`
### `gitea issue issue-delete-issue-comment-attachment`
- Summary: Delete a comment attachment
- HTTP: `DELETE /api/v1/repos/{owner}/{repo}/issues/comments/{id}/assets/{attachment_id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--id` (path, required, int64): id of the comment
- `--attachment-id` (path, required, int64): id of the attachment to delete
- Output: response media `application/json`
### `gitea issue issue-delete-issue-reaction`
- Summary: Remove a reaction from an issue
- HTTP: `DELETE /api/v1/repos/{owner}/{repo}/issues/{index}/reactions`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--index` (path, required, int64): index of the issue
- Output: response media `application/json`
### `gitea issue issue-delete-label`
- Summary: Delete a label
- HTTP: `DELETE /api/v1/repos/{owner}/{repo}/labels/{id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--id` (path, required, int64): id of the label to delete
### `gitea issue issue-delete-milestone`
- Summary: Delete a milestone
- HTTP: `DELETE /api/v1/repos/{owner}/{repo}/milestones/{id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--id` (path, required): the milestone to delete, identified by ID and if not available by name
### `gitea issue issue-delete-stop-watch`
- Summary: Delete an issue's existing stopwatch.
- HTTP: `DELETE /api/v1/repos/{owner}/{repo}/issues/{index}/stopwatch/delete`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--index` (path, required, int64): index of the issue to stop the stopwatch on
- Output: response media `application/json`
### `gitea issue issue-delete-subscription`
- Summary: Unsubscribe user from issue
- HTTP: `DELETE /api/v1/repos/{owner}/{repo}/issues/{index}/subscriptions/{user}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--index` (path, required, int64): index of the issue
- `--user` (path, required): username of the user to unsubscribe from an issue
- Output: response media `application/json`
### `gitea issue issue-delete-time`
- Summary: Delete specific tracked time
- HTTP: `DELETE /api/v1/repos/{owner}/{repo}/issues/{index}/times/{id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--index` (path, required, int64): index of the issue
- `--id` (path, required, int64): id of time to delete
- Output: response media `application/json`
### `gitea issue issue-edit-comment`
- Summary: Edit a comment
- HTTP: `PATCH /api/v1/repos/{owner}/{repo}/issues/comments/{id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--id` (path, required, int64): id of the comment to edit
- Output: response media `application/json`
### `gitea issue issue-edit-comment-deprecated`
- Summary: Edit a comment
- HTTP: `PATCH /api/v1/repos/{owner}/{repo}/issues/{index}/comments/{id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--index` (path, required): this parameter is ignored
- `--id` (path, required, int64): id of the comment to edit
- Output: response media `application/json`
### `gitea issue issue-edit-issue`
- Summary: Edit an issue. If using deadline only the date will be taken into account, and time of day ignored.
- HTTP: `PATCH /api/v1/repos/{owner}/{repo}/issues/{index}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--index` (path, required, int64): index of the issue to edit
- Output: response media `application/json`
### `gitea issue issue-edit-issue-attachment`
- Summary: Edit an issue attachment
- HTTP: `PATCH /api/v1/repos/{owner}/{repo}/issues/{index}/assets/{attachment_id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--index` (path, required, int64): index of the issue
- `--attachment-id` (path, required, int64): id of the attachment to edit
- Output: response media `application/json`
### `gitea issue issue-edit-issue-comment-attachment`
- Summary: Edit a comment attachment
- HTTP: `PATCH /api/v1/repos/{owner}/{repo}/issues/comments/{id}/assets/{attachment_id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--id` (path, required, int64): id of the comment
- `--attachment-id` (path, required, int64): id of the attachment to edit
- Output: response media `application/json`
### `gitea issue issue-edit-issue-deadline`
- Summary: Set an issue deadline. If set to null, the deadline is deleted. If using deadline only the date will be taken into account, and time of day ignored.
- HTTP: `POST /api/v1/repos/{owner}/{repo}/issues/{index}/deadline`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--index` (path, required, int64): index of the issue to create or update a deadline on
- Output: response media `application/json`
### `gitea issue issue-edit-label`
- Summary: Update a label
- HTTP: `PATCH /api/v1/repos/{owner}/{repo}/labels/{id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--id` (path, required, int64): id of the label to edit
- Output: response media `application/json`
### `gitea issue issue-edit-milestone`
- Summary: Update a milestone
- HTTP: `PATCH /api/v1/repos/{owner}/{repo}/milestones/{id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--id` (path, required): the milestone to edit, identified by ID and if not available by name
- Output: response media `application/json`
### `gitea issue issue-get-comment`
- Summary: Get a comment
- HTTP: `GET /api/v1/repos/{owner}/{repo}/issues/comments/{id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--id` (path, required, int64): id of the comment
- Output: response media `application/json`
### `gitea issue issue-get-comment-reactions`
- Summary: Get a list of reactions from a comment of an issue
- HTTP: `GET /api/v1/repos/{owner}/{repo}/issues/comments/{id}/reactions`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--id` (path, required, int64): id of the comment to edit
- Output: response media `application/json`
### `gitea issue issue-get-comments`
- Summary: List all comments on an issue
- HTTP: `GET /api/v1/repos/{owner}/{repo}/issues/{index}/comments`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--index` (path, required, int64): index of the issue
- `--since` (query, date-time): if provided, only comments updated since the specified time are returned.
- `--before` (query, date-time): if provided, only comments updated before the provided time are returned.
- Output: response media `application/json`
### `gitea issue issue-get-comments-and-timeline`
- Summary: List all comments and events on an issue
- HTTP: `GET /api/v1/repos/{owner}/{repo}/issues/{index}/timeline`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--index` (path, required, int64): index of the issue
- `--since` (query, date-time): if provided, only comments updated since the specified time are returned.
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- `--before` (query, date-time): if provided, only comments updated before the provided time are returned.
- Output: response media `application/json`
### `gitea issue issue-get-issue`
- Summary: Get an issue
- HTTP: `GET /api/v1/repos/{owner}/{repo}/issues/{index}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--index` (path, required, int64): index of the issue to get
- Output: response media `application/json`
### `gitea issue issue-get-issue-attachment`
- Summary: Get an issue attachment
- HTTP: `GET /api/v1/repos/{owner}/{repo}/issues/{index}/assets/{attachment_id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--index` (path, required, int64): index of the issue
- `--attachment-id` (path, required, int64): id of the attachment to get
- Output: response media `application/json`
### `gitea issue issue-get-issue-comment-attachment`
- Summary: Get a comment attachment
- HTTP: `GET /api/v1/repos/{owner}/{repo}/issues/comments/{id}/assets/{attachment_id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--id` (path, required, int64): id of the comment
- `--attachment-id` (path, required, int64): id of the attachment to get
- Output: response media `application/json`
### `gitea issue issue-get-issue-reactions`
- Summary: Get a list reactions of an issue
- HTTP: `GET /api/v1/repos/{owner}/{repo}/issues/{index}/reactions`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--index` (path, required, int64): index of the issue
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea issue issue-get-label`
- Summary: Get a single label
- HTTP: `GET /api/v1/repos/{owner}/{repo}/labels/{id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--id` (path, required, int64): id of the label to get
- Output: response media `application/json`
### `gitea issue issue-get-labels`
- Summary: Get an issue's labels
- HTTP: `GET /api/v1/repos/{owner}/{repo}/issues/{index}/labels`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--index` (path, required, int64): index of the issue
- Output: response media `application/json`
### `gitea issue issue-get-milestone`
- Summary: Get a milestone
- HTTP: `GET /api/v1/repos/{owner}/{repo}/milestones/{id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--id` (path, required): the milestone to get, identified by ID and if not available by name
- Output: response media `application/json`
### `gitea issue issue-get-milestones-list`
- Summary: Get all of a repository's opened milestones
- HTTP: `GET /api/v1/repos/{owner}/{repo}/milestones`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--state` (query): Milestone state, Recognized values are open, closed and all. Defaults to "open"
- `--name` (query): filter by milestone name
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea issue issue-get-repo-comments`
- Summary: List all comments in a repository
- HTTP: `GET /api/v1/repos/{owner}/{repo}/issues/comments`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--since` (query, date-time): if provided, only comments updated since the provided time are returned.
- `--before` (query, date-time): if provided, only comments updated before the provided time are returned.
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea issue issue-list-blocks`
- Summary: List issues that are blocked by this issue
- HTTP: `GET /api/v1/repos/{owner}/{repo}/issues/{index}/blocks`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--index` (path, required): index of the issue
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea issue issue-list-issue-attachments`
- Summary: List issue's attachments
- HTTP: `GET /api/v1/repos/{owner}/{repo}/issues/{index}/assets`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--index` (path, required, int64): index of the issue
- Output: response media `application/json`
### `gitea issue issue-list-issue-comment-attachments`
- Summary: List comment's attachments
- HTTP: `GET /api/v1/repos/{owner}/{repo}/issues/comments/{id}/assets`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--id` (path, required, int64): id of the comment
- Output: response media `application/json`
### `gitea issue issue-list-issue-dependencies`
- Summary: List an issue's dependencies, i.e all issues that block this issue.
- HTTP: `GET /api/v1/repos/{owner}/{repo}/issues/{index}/dependencies`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--index` (path, required): index of the issue
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea issue issue-list-issues`
- Summary: List a repository's issues
- HTTP: `GET /api/v1/repos/{owner}/{repo}/issues`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--state` (query, one of: closed|open|all): whether issue is open or closed
- `--labels` (query): comma separated list of label names. Fetch only issues that have any of this label names. Non existent labels are discarded.
- `--q` (query): search string
- `--type` (query, one of: issues|pulls): filter by type (issues / pulls) if set
- `--milestones` (query): comma separated list of milestone names or ids. It uses names and fall back to ids. Fetch only issues that have any of this milestones. Non existent milestones are discarded
- `--since` (query, date-time): Only show items updated after the given time. This is a timestamp in RFC 3339 format
- `--before` (query, date-time): Only show items updated before the given time. This is a timestamp in RFC 3339 format
- `--created-by` (query): Only show items which were created by the given user
- `--assigned-by` (query): Only show items for which the given user is assigned
- `--mentioned-by` (query): Only show items in which the given user was mentioned
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea issue issue-list-labels`
- Summary: Get all of a repository's labels
- HTTP: `GET /api/v1/repos/{owner}/{repo}/labels`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea issue issue-lock-issue`
- Summary: Lock an issue
- HTTP: `PUT /api/v1/repos/{owner}/{repo}/issues/{index}/lock`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--index` (path, required, int64): index of the issue
- Output: response media `application/json`
### `gitea issue issue-post-comment-reaction`
- Summary: Add a reaction to a comment of an issue
- HTTP: `POST /api/v1/repos/{owner}/{repo}/issues/comments/{id}/reactions`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--id` (path, required, int64): id of the comment to edit
- Output: response media `application/json`
### `gitea issue issue-post-issue-reaction`
- Summary: Add a reaction to an issue
- HTTP: `POST /api/v1/repos/{owner}/{repo}/issues/{index}/reactions`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--index` (path, required, int64): index of the issue
- Output: response media `application/json`
### `gitea issue issue-remove-assignees`
- Summary: Remove assignees from an issue
- HTTP: `DELETE /api/v1/repos/{owner}/{repo}/issues/{index}/assignees`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: required
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--index` (path, required, int64): index of the issue
- Output: response media `application/json`
### `gitea issue issue-remove-issue-blocking`
- Summary: Unblock the issue given in the body by the issue in path
- HTTP: `DELETE /api/v1/repos/{owner}/{repo}/issues/{index}/blocks`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--index` (path, required): index of the issue
- Output: response media `application/json`
### `gitea issue issue-remove-issue-dependencies`
- Summary: Remove an issue dependency
- HTTP: `DELETE /api/v1/repos/{owner}/{repo}/issues/{index}/dependencies`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--index` (path, required): index of the issue
- Output: response media `application/json`
### `gitea issue issue-remove-label`
- Summary: Remove a label from an issue
- HTTP: `DELETE /api/v1/repos/{owner}/{repo}/issues/{index}/labels/{id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--index` (path, required, int64): index of the issue
- `--id` (path, required, int64): id of the label to remove
- Output: response media `application/json`
### `gitea issue issue-replace-labels`
- Summary: Replace an issue's labels
- HTTP: `PUT /api/v1/repos/{owner}/{repo}/issues/{index}/labels`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--index` (path, required, int64): index of the issue
- Output: response media `application/json`
### `gitea issue issue-reset-time`
- Summary: Reset a tracked time of an issue
- HTTP: `DELETE /api/v1/repos/{owner}/{repo}/issues/{index}/times`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--index` (path, required, int64): index of the issue to add tracked time to
- Output: response media `application/json`
### `gitea issue issue-search-issues`
- Summary: Search for issues across the repositories that the user has access to
- HTTP: `GET /api/v1/repos/issues/search`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--state` (query, default `open`, one of: open|closed|all): State of the issue
- `--labels` (query): Comma-separated list of label names. Fetch only issues that have any of these labels. Non existent labels are discarded.
- `--milestones` (query): Comma-separated list of milestone names. Fetch only issues that have any of these milestones. Non existent milestones are discarded.
- `--q` (query): Search string
- `--type` (query, one of: issues|pulls): Filter by issue type
- `--since` (query, date-time): Only show issues updated after the given time (RFC 3339 format)
- `--before` (query, date-time): Only show issues updated before the given time (RFC 3339 format)
- `--assigned` (query, default `false`): Filter issues or pulls assigned to the authenticated user
- `--created` (query, default `false`): Filter issues or pulls created by the authenticated user
- `--mentioned` (query, default `false`): Filter issues or pulls mentioning the authenticated user
- `--review-requested` (query, default `false`): Filter pull requests where the authenticated user's review was requested
- `--reviewed` (query, default `false`): Filter pull requests reviewed by the authenticated user
- `--owner` (query): Filter by repository owner
- `--created-by` (query): Only show items which were created by the given user
- `--team` (query): Filter by team (requires organization owner parameter)
- `--page` (query, default `1`): Page number of results to return (1-based)
- `--limit` (query): Number of items per page
- Output: response media `application/json`
### `gitea issue issue-start-stop-watch`
- Summary: Start stopwatch on an issue.
- HTTP: `POST /api/v1/repos/{owner}/{repo}/issues/{index}/stopwatch/start`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--index` (path, required, int64): index of the issue to create the stopwatch on
- Output: response media `application/json`
### `gitea issue issue-stop-stop-watch`
- Summary: Stop an issue's existing stopwatch.
- HTTP: `POST /api/v1/repos/{owner}/{repo}/issues/{index}/stopwatch/stop`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--index` (path, required, int64): index of the issue to stop the stopwatch on
- Output: response media `application/json`
### `gitea issue issue-subscriptions`
- Summary: Get users who subscribed on an issue.
- HTTP: `GET /api/v1/repos/{owner}/{repo}/issues/{index}/subscriptions`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--index` (path, required, int64): index of the issue
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea issue issue-tracked-times`
- Summary: List an issue's tracked times
- HTTP: `GET /api/v1/repos/{owner}/{repo}/issues/{index}/times`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--index` (path, required, int64): index of the issue
- `--user` (query): optional filter by user (available for issue managers)
- `--since` (query, date-time): Only show times updated after the given time. This is a timestamp in RFC 3339 format
- `--before` (query, date-time): Only show times updated before the given time. This is a timestamp in RFC 3339 format
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea issue issue-unlock-issue`
- Summary: Unlock an issue
- HTTP: `DELETE /api/v1/repos/{owner}/{repo}/issues/{index}/lock`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--index` (path, required, int64): index of the issue
- Output: response media `application/json`
### `gitea issue move-issue-pin`
- Summary: Moves the Pin to the given Position
- HTTP: `PATCH /api/v1/repos/{owner}/{repo}/issues/{index}/pin/{position}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--index` (path, required, int64): index of issue
- `--position` (path, required, int64): the new position
### `gitea issue pin-issue`
- Summary: Pin an Issue
- HTTP: `POST /api/v1/repos/{owner}/{repo}/issues/{index}/pin`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--index` (path, required, int64): index of issue to pin
### `gitea issue unpin-issue`
- Summary: Unpin an Issue
- HTTP: `DELETE /api/v1/repos/{owner}/{repo}/issues/{index}/pin`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--index` (path, required, int64): index of issue to unpin
## miscellaneous
- Description: Miscellaneous endpoints
### `gitea miscellaneous delete-current-token`
- Summary: Delete the currently authenticated token
- HTTP: `DELETE /api/v1/token`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags: none
- Output: response media `application/json`
### `gitea miscellaneous get-current-token`
- Summary: Get the currently authenticated token
- HTTP: `GET /api/v1/token`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags: none
- Output: response media `application/json`
### `gitea miscellaneous get-gitignore-template-info`
- Summary: Returns information about a gitignore template
- HTTP: `GET /api/v1/gitignore/templates/{name}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--name` (path, required): name of the template
- Output: response media `application/json`
### `gitea miscellaneous get-label-template-info`
- Summary: Returns all labels in a template
- HTTP: `GET /api/v1/label/templates/{name}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--name` (path, required): name of the template
- Output: response media `application/json`
### `gitea miscellaneous get-license-template-info`
- Summary: Returns information about a license template
- HTTP: `GET /api/v1/licenses/{name}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--name` (path, required): name of the license
- Output: response media `application/json`
### `gitea miscellaneous get-signing-key`
- Summary: Get default signing-key.gpg
- HTTP: `GET /api/v1/signing-key.gpg`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags: none
- Output: response media `text/plain`
### `gitea miscellaneous get-signing-key-ssh`
- Summary: Get default signing-key.pub
- HTTP: `GET /api/v1/signing-key.pub`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags: none
- Output: response media `text/plain`
### `gitea miscellaneous get-version`
- Summary: Returns the version of the Gitea application
- HTTP: `GET /api/v1/version`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags: none
- Output: response media `application/json`
### `gitea miscellaneous list-gitignores-templates`
- Summary: Returns a list of all gitignore templates
- HTTP: `GET /api/v1/gitignore/templates`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags: none
- Output: response media `application/json`
### `gitea miscellaneous list-label-templates`
- Summary: Returns a list of all label templates
- HTTP: `GET /api/v1/label/templates`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags: none
- Output: response media `application/json`
### `gitea miscellaneous list-license-templates`
- Summary: Returns a list of all license templates
- HTTP: `GET /api/v1/licenses`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags: none
- Output: response media `application/json`
### `gitea miscellaneous render-markdown`
- Summary: Render a markdown document as HTML
- HTTP: `POST /api/v1/markdown`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags: none
- Output: response media `text/html`
### `gitea miscellaneous render-markdown-raw`
- Summary: Render raw markdown as HTML
- HTTP: `POST /api/v1/markdown/raw`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: required
- Flags: none
- Output: response media `text/html`
### `gitea miscellaneous render-markup`
- Summary: Render a markup document as HTML
- HTTP: `POST /api/v1/markup`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags: none
- Output: response media `text/html`
## notification
- Description: User notifications
### `gitea notification notify-get-list`
- Summary: List users's notification threads
- HTTP: `GET /api/v1/notifications`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--all` (query): If true, show notifications marked as read. Default value is false
- `--status-types` (query): Show notifications with the provided status types. Options are: unread, read and/or pinned. Defaults to unread & pinned.
- `--subject-type` (query): filter notifications by subject type
- `--since` (query, date-time): Only show notifications updated after the given time. This is a timestamp in RFC 3339 format
- `--before` (query, date-time): Only show notifications updated before the given time. This is a timestamp in RFC 3339 format
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea notification notify-get-repo-list`
- Summary: List users's notification threads on a specific repo
- HTTP: `GET /api/v1/repos/{owner}/{repo}/notifications`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--all` (query): If true, show notifications marked as read. Default value is false
- `--status-types` (query): Show notifications with the provided status types. Options are: unread, read and/or pinned. Defaults to unread & pinned
- `--subject-type` (query): filter notifications by subject type
- `--since` (query, date-time): Only show notifications updated after the given time. This is a timestamp in RFC 3339 format
- `--before` (query, date-time): Only show notifications updated before the given time. This is a timestamp in RFC 3339 format
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea notification notify-get-thread`
- Summary: Get notification thread by ID
- HTTP: `GET /api/v1/notifications/threads/{id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--id` (path, required): id of notification thread
- Output: response media `application/json`
### `gitea notification notify-new-available`
- Summary: Check if unread notifications exist
- HTTP: `GET /api/v1/notifications/new`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags: none
### `gitea notification notify-read-list`
- Summary: Mark notification threads as read, pinned or unread
- HTTP: `PUT /api/v1/notifications`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--last-read-at` (query, date-time): Describes the last point that notifications were checked. Anything updated since this time will not be updated.
- `--all` (query): If true, mark all notifications on this repo. Default value is false
- `--status-types` (query): Mark notifications with the provided status types. Options are: unread, read and/or pinned. Defaults to unread.
- `--to-status` (query): Status to mark notifications as, Defaults to read.
- Output: response media `application/json`
### `gitea notification notify-read-repo-list`
- Summary: Mark notification threads as read, pinned or unread on a specific repo
- HTTP: `PUT /api/v1/repos/{owner}/{repo}/notifications`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--all` (query): If true, mark all notifications on this repo. Default value is false
- `--status-types` (query): Mark notifications with the provided status types. Options are: unread, read and/or pinned. Defaults to unread.
- `--to-status` (query): Status to mark notifications as. Defaults to read.
- `--last-read-at` (query, date-time): Describes the last point that notifications were checked. Anything updated since this time will not be updated.
- Output: response media `application/json`
### `gitea notification notify-read-thread`
- Summary: Mark notification thread as read by ID
- HTTP: `PATCH /api/v1/notifications/threads/{id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--id` (path, required): id of notification thread
- `--to-status` (query, default `read`): Status to mark notifications as
- Output: response media `application/json`
## organization
- Description: Organizations and teams
### `gitea organization create-org-repo`
- Summary: Create a repository in an organization
- HTTP: `POST /api/v1/orgs/{org}/repos`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--org` (path, required): name of organization
- Output: response media `application/json`
### `gitea organization create-org-repo-deprecated`
- Summary: Create a repository in an organization
- HTTP: `POST /api/v1/org/{org}/repos`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--org` (path, required): name of organization
- Output: response media `application/json`
### `gitea organization create-org-variable`
- Summary: Create an org-level variable
- HTTP: `POST /api/v1/orgs/{org}/actions/variables/{variablename}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--org` (path, required): name of the organization
- `--variablename` (path, required): name of the variable
- Output: response media `application/json`
### `gitea organization delete-org-runner`
- Summary: Delete an org-level runner
- HTTP: `DELETE /api/v1/orgs/{org}/actions/runners/{runner_id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--org` (path, required): name of the organization
- `--runner-id` (path, required): id of the runner
- Output: response media `application/json`
### `gitea organization delete-org-secret`
- Summary: Delete a secret in an organization
- HTTP: `DELETE /api/v1/orgs/{org}/actions/secrets/{secretname}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--org` (path, required): name of organization
- `--secretname` (path, required): name of the secret
- Output: response media `application/json`
### `gitea organization delete-org-variable`
- Summary: Delete an org-level variable
- HTTP: `DELETE /api/v1/orgs/{org}/actions/variables/{variablename}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--org` (path, required): name of the organization
- `--variablename` (path, required): name of the variable
- Output: response media `application/json`
### `gitea organization get-org-runner`
- Summary: Get an org-level runner
- HTTP: `GET /api/v1/orgs/{org}/actions/runners/{runner_id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--org` (path, required): name of the organization
- `--runner-id` (path, required): id of the runner
- Output: response media `application/json`
### `gitea organization get-org-runners`
- Summary: Get org-level runners
- HTTP: `GET /api/v1/orgs/{org}/actions/runners`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--org` (path, required): name of the organization
- `--disabled` (query): filter by disabled status (true or false)
- Output: response media `application/json`
### `gitea organization get-org-variable`
- Summary: Get an org-level variable
- HTTP: `GET /api/v1/orgs/{org}/actions/variables/{variablename}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--org` (path, required): name of the organization
- `--variablename` (path, required): name of the variable
- Output: response media `application/json`
### `gitea organization get-org-variables-list`
- Summary: Get an org-level variables list
- HTTP: `GET /api/v1/orgs/{org}/actions/variables`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--org` (path, required): name of the organization
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea organization get-org-workflow-jobs`
- Summary: Get org-level workflow jobs
- HTTP: `GET /api/v1/orgs/{org}/actions/jobs`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--org` (path, required): name of the organization
- `--status` (query): workflow status (requested, pending, queued, in_progress, failure, success, skipped)
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea organization get-org-workflow-runs`
- Summary: Get org-level workflow runs
- HTTP: `GET /api/v1/orgs/{org}/actions/runs`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--org` (path, required): name of the organization
- `--event` (query): workflow event name
- `--branch` (query): workflow branch
- `--status` (query): workflow status (requested, pending, queued, in_progress, failure, success, skipped)
- `--actor` (query): triggered by user
- `--head-sha` (query): triggering sha of the workflow run
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea organization org-add-issue-to-project-column`
- Summary: Add an issue to a project column
- HTTP: `POST /api/v1/orgs/{org}/projects/{id}/columns/{column_id}/issues/{issue_id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--org` (path, required): name of the organization
- `--id` (path, required, int64): id of the project
- `--column-id` (path, required, int64): id of the column
- `--issue-id` (path, required, int64): global id of the issue, not the repository-local index
### `gitea organization org-add-team-member`
- Summary: Add a team member
- HTTP: `PUT /api/v1/teams/{id}/members/{username}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--id` (path, required, int64): id of the team
- `--username` (path, required): username of the user to add to a team
- Output: response media `application/json`
### `gitea organization org-add-team-repository`
- Summary: Add a repository to a team
- HTTP: `PUT /api/v1/teams/{id}/repos/{org}/{repo}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--id` (path, required, int64): id of the team
- `--org` (path, required): organization that owns the repo to add
- `--repo` (path, required): name of the repo to add
- Output: response media `application/json`
### `gitea organization org-conceal-member`
- Summary: Conceal a user's membership
- HTTP: `DELETE /api/v1/orgs/{org}/public_members/{username}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--org` (path, required): name of the organization
- `--username` (path, required): username of the user whose membership is to be concealed
- Output: response media `application/json`
### `gitea organization org-create`
- Summary: Create an organization
- HTTP: `POST /api/v1/orgs`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: required
- Flags: none
- Output: response media `application/json`
### `gitea organization org-create-hook`
- Summary: Create a hook
- HTTP: `POST /api/v1/orgs/{org}/hooks`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: required
- Flags:
- `--org` (path, required): name of the organization
- Output: response media `application/json`
### `gitea organization org-create-label`
- Summary: Create a label for an organization
- HTTP: `POST /api/v1/orgs/{org}/labels`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--org` (path, required): name of the organization
- Output: response media `application/json`
### `gitea organization org-create-project`
- Summary: Create a project owned by an organization
- HTTP: `POST /api/v1/orgs/{org}/projects`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--org` (path, required): name of the organization
- Output: response media `application/json`
### `gitea organization org-create-project-column`
- Summary: Create a column in a project
- HTTP: `POST /api/v1/orgs/{org}/projects/{id}/columns`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--org` (path, required): name of the organization
- `--id` (path, required, int64): id of the project
- Output: response media `application/json`
### `gitea organization org-create-runner-registration-token`
- Summary: Get an organization's actions runner registration token
- HTTP: `POST /api/v1/orgs/{org}/actions/runners/registration-token`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--org` (path, required): name of the organization
- Output: response media `application/json`
### `gitea organization org-create-team`
- Summary: Create a team
- HTTP: `POST /api/v1/orgs/{org}/teams`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--org` (path, required): name of the organization
- Output: response media `application/json`
### `gitea organization org-delete`
- Summary: Delete an organization
- HTTP: `DELETE /api/v1/orgs/{org}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--org` (path, required): organization that is to be deleted
- Output: response media `application/json`
### `gitea organization org-delete-avatar`
- Summary: Delete Avatar
- HTTP: `DELETE /api/v1/orgs/{org}/avatar`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--org` (path, required): name of the organization
- Output: response media `application/json`
### `gitea organization org-delete-hook`
- Summary: Delete a hook
- HTTP: `DELETE /api/v1/orgs/{org}/hooks/{id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--org` (path, required): name of the organization
- `--id` (path, required, int64): id of the hook to delete
- Output: response media `application/json`
### `gitea organization org-delete-label`
- Summary: Delete a label
- HTTP: `DELETE /api/v1/orgs/{org}/labels/{id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--org` (path, required): name of the organization
- `--id` (path, required, int64): id of the label to delete
### `gitea organization org-delete-member`
- Summary: Remove a member from an organization
- HTTP: `DELETE /api/v1/orgs/{org}/members/{username}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--org` (path, required): name of the organization
- `--username` (path, required): username of the user to remove from the organization
- Output: response media `application/json`
### `gitea organization org-delete-project`
- Summary: Delete a project
- HTTP: `DELETE /api/v1/orgs/{org}/projects/{id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--org` (path, required): name of the organization
- `--id` (path, required, int64): id of the project
### `gitea organization org-delete-project-column`
- Summary: Delete a project column
- HTTP: `DELETE /api/v1/orgs/{org}/projects/{id}/columns/{column_id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--org` (path, required): name of the organization
- `--id` (path, required, int64): id of the project
- `--column-id` (path, required, int64): id of the column
### `gitea organization org-delete-repos`
- Summary: Delete all repositories in an organization
- HTTP: `DELETE /api/v1/orgs/{org}/repos`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--org` (path, required): name of the organization
- Output: response media `application/json`
### `gitea organization org-delete-team`
- Summary: Delete a team
- HTTP: `DELETE /api/v1/teams/{id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--id` (path, required, int64): id of the team to delete
### `gitea organization org-edit`
- Summary: Edit an organization
- HTTP: `PATCH /api/v1/orgs/{org}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: required
- Flags:
- `--org` (path, required): name of the organization to edit
- Output: response media `application/json`
### `gitea organization org-edit-hook`
- Summary: Update a hook
- HTTP: `PATCH /api/v1/orgs/{org}/hooks/{id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--org` (path, required): name of the organization
- `--id` (path, required, int64): id of the hook to update
- Output: response media `application/json`
### `gitea organization org-edit-label`
- Summary: Update a label
- HTTP: `PATCH /api/v1/orgs/{org}/labels/{id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--org` (path, required): name of the organization
- `--id` (path, required, int64): id of the label to edit
- Output: response media `application/json`
### `gitea organization org-edit-project`
- Summary: Edit a project
- HTTP: `PATCH /api/v1/orgs/{org}/projects/{id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--org` (path, required): name of the organization
- `--id` (path, required, int64): id of the project
- Output: response media `application/json`
### `gitea organization org-edit-project-column`
- Summary: Edit a project column
- HTTP: `PATCH /api/v1/orgs/{org}/projects/{id}/columns/{column_id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--org` (path, required): name of the organization
- `--id` (path, required, int64): id of the project
- `--column-id` (path, required, int64): id of the column
- Output: response media `application/json`
### `gitea organization org-edit-team`
- Summary: Edit a team
- HTTP: `PATCH /api/v1/teams/{id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--id` (path, required): id of the team to edit
- Output: response media `application/json`
### `gitea organization org-get`
- Summary: Get an organization
- HTTP: `GET /api/v1/orgs/{org}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--org` (path, required): name of the organization to get
- Output: response media `application/json`
### `gitea organization org-get-all`
- Summary: Get list of organizations
- HTTP: `GET /api/v1/orgs`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea organization org-get-hook`
- Summary: Get a hook
- HTTP: `GET /api/v1/orgs/{org}/hooks/{id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--org` (path, required): name of the organization
- `--id` (path, required, int64): id of the hook to get
- Output: response media `application/json`
### `gitea organization org-get-label`
- Summary: Get a single label
- HTTP: `GET /api/v1/orgs/{org}/labels/{id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--org` (path, required): name of the organization
- `--id` (path, required, int64): id of the label to get
- Output: response media `application/json`
### `gitea organization org-get-project`
- Summary: Get a project
- HTTP: `GET /api/v1/orgs/{org}/projects/{id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--org` (path, required): name of the organization
- `--id` (path, required, int64): id of the project
- Output: response media `application/json`
### `gitea organization org-get-project-column`
- Summary: Get a project column
- HTTP: `GET /api/v1/orgs/{org}/projects/{id}/columns/{column_id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--org` (path, required): name of the organization
- `--id` (path, required, int64): id of the project
- `--column-id` (path, required, int64): id of the column
- Output: response media `application/json`
### `gitea organization org-get-team`
- Summary: Get a team
- HTTP: `GET /api/v1/teams/{id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--id` (path, required, int64): id of the team to get
- Output: response media `application/json`
### `gitea organization org-get-user-permissions`
- Summary: Get user permissions in organization
- HTTP: `GET /api/v1/users/{username}/orgs/{org}/permissions`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--username` (path, required): username of the user whose permissions are to be obtained
- `--org` (path, required): name of the organization
- Output: response media `application/json`
### `gitea organization org-is-member`
- Summary: Check if a user is a member of an organization
- HTTP: `GET /api/v1/orgs/{org}/members/{username}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--org` (path, required): name of the organization
- `--username` (path, required): username of the user to check for an organization membership
### `gitea organization org-is-public-member`
- Summary: Check if a user is a public member of an organization
- HTTP: `GET /api/v1/orgs/{org}/public_members/{username}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--org` (path, required): name of the organization
- `--username` (path, required): username of the user to check for a public organization membership
### `gitea organization org-list-actions-secrets`
- Summary: List an organization's actions secrets
- HTTP: `GET /api/v1/orgs/{org}/actions/secrets`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--org` (path, required): name of the organization
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea organization org-list-activity-feeds`
- Summary: List an organization's activity feeds
- HTTP: `GET /api/v1/orgs/{org}/activities/feeds`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--org` (path, required): name of the org
- `--date` (query, date): the date of the activities to be found
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea organization org-list-current-user-orgs`
- Summary: List the current user's organizations
- HTTP: `GET /api/v1/user/orgs`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea organization org-list-hooks`
- Summary: List an organization's webhooks
- HTTP: `GET /api/v1/orgs/{org}/hooks`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--org` (path, required): name of the organization
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea organization org-list-labels`
- Summary: List an organization's labels
- HTTP: `GET /api/v1/orgs/{org}/labels`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--org` (path, required): name of the organization
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea organization org-list-members`
- Summary: List an organization's members
- HTTP: `GET /api/v1/orgs/{org}/members`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--org` (path, required): name of the organization
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea organization org-list-project-column-issues`
- Summary: List the issues in a project column
- HTTP: `GET /api/v1/orgs/{org}/projects/{id}/columns/{column_id}/issues`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--org` (path, required): name of the organization
- `--id` (path, required, int64): id of the project
- `--column-id` (path, required, int64): id of the column
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea organization org-list-project-columns`
- Summary: List a project's columns
- HTTP: `GET /api/v1/orgs/{org}/projects/{id}/columns`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--org` (path, required): name of the organization
- `--id` (path, required, int64): id of the project
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea organization org-list-projects`
- Summary: List an organization's projects
- HTTP: `GET /api/v1/orgs/{org}/projects`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--org` (path, required): name of the organization
- `--state` (query, default `open`, one of: open|closed|all): State of the project (open, closed, all)
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea organization org-list-public-members`
- Summary: List an organization's public members
- HTTP: `GET /api/v1/orgs/{org}/public_members`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--org` (path, required): name of the organization
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea organization org-list-repos`
- Summary: List an organization's repos
- HTTP: `GET /api/v1/orgs/{org}/repos`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--org` (path, required): name of the organization
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea organization org-list-team-activity-feeds`
- Summary: List a team's activity feeds
- HTTP: `GET /api/v1/teams/{id}/activities/feeds`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--id` (path, required, int64): id of the team
- `--date` (query, date): the date of the activities to be found
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea organization org-list-team-member`
- Summary: List a particular member of team
- HTTP: `GET /api/v1/teams/{id}/members/{username}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--id` (path, required, int64): id of the team
- `--username` (path, required): username of the user whose data is to be listed
- Output: response media `application/json`
### `gitea organization org-list-team-members`
- Summary: List a team's members
- HTTP: `GET /api/v1/teams/{id}/members`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--id` (path, required, int64): id of the team
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea organization org-list-team-repo`
- Summary: List a particular repo of team
- HTTP: `GET /api/v1/teams/{id}/repos/{org}/{repo}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--id` (path, required, int64): id of the team
- `--org` (path, required): organization that owns the repo to list
- `--repo` (path, required): name of the repo to list
- Output: response media `application/json`
### `gitea organization org-list-team-repos`
- Summary: List a team's repos
- HTTP: `GET /api/v1/teams/{id}/repos`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--id` (path, required, int64): id of the team
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea organization org-list-teams`
- Summary: List an organization's teams
- HTTP: `GET /api/v1/orgs/{org}/teams`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--org` (path, required): name of the organization
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea organization org-list-user-orgs`
- Summary: List a user's organizations
- HTTP: `GET /api/v1/users/{username}/orgs`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--username` (path, required): username of the user whose organizations are to be listed
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea organization org-move-project-columns`
- Summary: Reorder a project's columns
- HTTP: `POST /api/v1/orgs/{org}/projects/{id}/columns/move`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--org` (path, required): name of the organization
- `--id` (path, required, int64): id of the project
### `gitea organization org-move-project-issue`
- Summary: Move an issue between a project's columns
- HTTP: `POST /api/v1/orgs/{org}/projects/{id}/issues/{issue_id}/move`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--org` (path, required): name of the organization
- `--id` (path, required, int64): id of the project
- `--issue-id` (path, required, int64): global id of the issue, not the repository-local index
### `gitea organization org-publicize-member`
- Summary: Publicize a user's membership
- HTTP: `PUT /api/v1/orgs/{org}/public_members/{username}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--org` (path, required): name of the organization
- `--username` (path, required): username of the user whose membership is to be publicized
- Output: response media `application/json`
### `gitea organization org-remove-issue-from-project-column`
- Summary: Remove an issue from a project column
- HTTP: `DELETE /api/v1/orgs/{org}/projects/{id}/columns/{column_id}/issues/{issue_id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--org` (path, required): name of the organization
- `--id` (path, required, int64): id of the project
- `--column-id` (path, required, int64): id of the column
- `--issue-id` (path, required, int64): global id of the issue, not the repository-local index
### `gitea organization org-remove-team-member`
- Summary: Remove a team member
- HTTP: `DELETE /api/v1/teams/{id}/members/{username}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--id` (path, required, int64): id of the team
- `--username` (path, required): username of the user to remove from a team
- Output: response media `application/json`
### `gitea organization org-remove-team-repository`
- Summary: Remove a repository from a team
- HTTP: `DELETE /api/v1/teams/{id}/repos/{org}/{repo}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--id` (path, required, int64): id of the team
- `--org` (path, required): organization that owns the repo to remove
- `--repo` (path, required): name of the repo to remove
- Output: response media `application/json`
### `gitea organization org-set-default-project-column`
- Summary: Set a project's default column
- HTTP: `POST /api/v1/orgs/{org}/projects/{id}/columns/{column_id}/default`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--org` (path, required): name of the organization
- `--id` (path, required, int64): id of the project
- `--column-id` (path, required, int64): id of the column
### `gitea organization org-update-avatar`
- Summary: Update Avatar
- HTTP: `POST /api/v1/orgs/{org}/avatar`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--org` (path, required): name of the organization
- Output: response media `application/json`
### `gitea organization organization-block-user`
- Summary: Block a user
- HTTP: `PUT /api/v1/orgs/{org}/blocks/{username}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--org` (path, required): name of the organization
- `--username` (path, required): username of the user to block
- `--note` (query): optional note for the block
### `gitea organization organization-check-user-block`
- Summary: Check if a user is blocked by the organization
- HTTP: `GET /api/v1/orgs/{org}/blocks/{username}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--org` (path, required): name of the organization
- `--username` (path, required): username of the user to check
### `gitea organization organization-list-blocks`
- Summary: List users blocked by the organization
- HTTP: `GET /api/v1/orgs/{org}/blocks`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--org` (path, required): name of the organization
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea organization organization-unblock-user`
- Summary: Unblock a user
- HTTP: `DELETE /api/v1/orgs/{org}/blocks/{username}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--org` (path, required): name of the organization
- `--username` (path, required): username of the user to unblock
### `gitea organization rename-org`
- Summary: Rename an organization
- HTTP: `POST /api/v1/orgs/{org}/rename`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: required
- Flags:
- `--org` (path, required): existing org name
- Output: response media `application/json`
### `gitea organization team-search`
- Summary: Search for teams within an organization
- HTTP: `GET /api/v1/orgs/{org}/teams/search`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--org` (path, required): name of the organization
- `--q` (query): keywords to search
- `--include-desc` (query): include search within team description (defaults to true)
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: list path `data`; columns `name`, `id`, `can_create_org_repo`, `description`, `includes_all_repositories`, `permission`; response media `application/json`; pagination `offset`
### `gitea organization update-org-runner`
- Summary: Update an org-level runner
- HTTP: `PATCH /api/v1/orgs/{org}/actions/runners/{runner_id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--org` (path, required): name of the organization
- `--runner-id` (path, required): id of the runner
- Output: response media `application/json`
### `gitea organization update-org-secret`
- Summary: Create or Update a secret value in an organization
- HTTP: `PUT /api/v1/orgs/{org}/actions/secrets/{secretname}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--org` (path, required): name of organization
- `--secretname` (path, required): name of the secret
- Output: response media `application/json`
### `gitea organization update-org-variable`
- Summary: Update an org-level variable
- HTTP: `PUT /api/v1/orgs/{org}/actions/variables/{variablename}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--org` (path, required): name of the organization
- `--variablename` (path, required): name of the variable
- Output: response media `application/json`
## package
- Description: Package registry
### `gitea package delete-package`
- Summary: Delete a package
- HTTP: `DELETE /api/v1/packages/{owner}/{type}/{name}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the package
- `--type` (path, required): type of the package
- `--name` (path, required): name of the package
### `gitea package delete-package-version`
- Summary: Delete a package version
- HTTP: `DELETE /api/v1/packages/{owner}/{type}/{name}/{version}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the package
- `--type` (path, required): type of the package
- `--name` (path, required): name of the package
- `--version` (path, required): version of the package
### `gitea package get-latest-package-version`
- Summary: Gets the latest version of a package
- HTTP: `GET /api/v1/packages/{owner}/{type}/{name}/-/latest`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the package
- `--type` (path, required): type of the package
- `--name` (path, required): name of the package
- Output: response media `application/json`
### `gitea package get-package`
- Summary: Gets a package
- HTTP: `GET /api/v1/packages/{owner}/{type}/{name}/{version}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the package
- `--type` (path, required): type of the package
- `--name` (path, required): name of the package
- `--version` (path, required): version of the package
- Output: response media `application/json`
### `gitea package link-package`
- Summary: Link a package to a repository
- HTTP: `POST /api/v1/packages/{owner}/{type}/{name}/-/link/{repo_name}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the package
- `--type` (path, required): type of the package
- `--name` (path, required): name of the package
- `--repo-name` (path, required): name of the repository to link.
### `gitea package list-package-files`
- Summary: Gets all files of a package
- HTTP: `GET /api/v1/packages/{owner}/{type}/{name}/{version}/files`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the package
- `--type` (path, required): type of the package
- `--name` (path, required): name of the package
- `--version` (path, required): version of the package
- Output: response media `application/json`
### `gitea package list-package-versions`
- Summary: Gets all versions of a package
- HTTP: `GET /api/v1/packages/{owner}/{type}/{name}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the package
- `--type` (path, required): type of the package
- `--name` (path, required): name of the package
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea package list-packages`
- Summary: Gets all packages of an owner
- HTTP: `GET /api/v1/packages/{owner}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the packages
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- `--type` (query, one of: alpine|cargo|chef|composer|conan|conda|container|cran|debian|generic|go|helm|maven|npm|nuget|pub|pypi|rpm|rubygems|swift|terraform|vagrant): package type filter
- `--q` (query): name filter
- Output: response media `application/json`
### `gitea package unlink-package`
- Summary: Unlink a package from a repository
- HTTP: `POST /api/v1/packages/{owner}/{type}/{name}/-/unlink`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the package
- `--type` (path, required): type of the package
- `--name` (path, required): name of the package
## repository
- Description: Repositories and their contents
### `gitea repository accept-repo-transfer`
- Summary: Accept a repo transfer
- HTTP: `POST /api/v1/repos/{owner}/{repo}/transfer/accept`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo to transfer
- `--repo` (path, required): name of the repo to transfer
- Output: response media `application/json`
### `gitea repository actions-disable-workflow`
- Summary: Disable a workflow
- HTTP: `PUT /api/v1/repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--workflow-id` (path, required): id of the workflow
- Output: response media `application/json`
### `gitea repository actions-dispatch-workflow`
- Summary: Create a workflow dispatch event
- HTTP: `POST /api/v1/repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--workflow-id` (path, required): id of the workflow
- `--return-run-details` (query): Whether the response should include the workflow run ID and URLs.
- `--scoped-workflow-source-repo-id` (query, int64): For a scoped workflow, the ID of the source repository providing it; omit or 0 for a repo-level workflow.
- Output: response media `application/json`
### `gitea repository actions-enable-workflow`
- Summary: Enable a workflow
- HTTP: `PUT /api/v1/repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--workflow-id` (path, required): id of the workflow
- Output: response media `application/json`
### `gitea repository actions-get-workflow`
- Summary: Get a workflow
- HTTP: `GET /api/v1/repos/{owner}/{repo}/actions/workflows/{workflow_id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--workflow-id` (path, required): id of the workflow
- Output: response media `application/json`
### `gitea repository actions-list-repository-workflows`
- Summary: List repository workflows
- HTTP: `GET /api/v1/repos/{owner}/{repo}/actions/workflows`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- Output: response media `application/json`
### `gitea repository actions-list-workflow-runs`
- Summary: List runs for a workflow
- HTTP: `GET /api/v1/repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--workflow-id` (path, required): id of the workflow, must be the workflow file name (e.g. `build.yml`)
- `--event` (query): workflow event name
- `--branch` (query): workflow branch
- `--status` (query): workflow status (requested, pending, queued, in_progress, failure, success, skipped)
- `--actor` (query): triggered by user
- `--head-sha` (query): triggering sha of the workflow run
- `--exclude-pull-requests` (query): if true, the `pull_requests` field on each returned run is emptied
- `--scoped-workflow-source-repo-id` (query, int64): For a scoped workflow, the ID of the source repository providing it; omit or 0 for a repo-level workflow.
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea repository approve-workflow-run`
- Summary: Approve a workflow run that requires approval
- HTTP: `POST /api/v1/repos/{owner}/{repo}/actions/runs/{run}/approve`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repository
- `--run` (path, required): run ID
- Output: response media `application/json`
### `gitea repository cancel-workflow-run`
- Summary: Cancel a workflow run and its jobs
- HTTP: `POST /api/v1/repos/{owner}/{repo}/actions/runs/{run}/cancel`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repository
- `--run` (path, required): run ID
- Output: response media `application/json`
### `gitea repository create-fork`
- Summary: Fork a repository
- HTTP: `POST /api/v1/repos/{owner}/{repo}/forks`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--owner` (path, required): owner of the repo to fork
- `--repo` (path, required): name of the repo to fork
- Output: response media `application/json`
### `gitea repository create-repo-variable`
- Summary: Create a repo-level variable
- HTTP: `POST /api/v1/repos/{owner}/{repo}/actions/variables/{variablename}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repository
- `--variablename` (path, required): name of the variable
- Output: response media `application/json`
### `gitea repository delete-action-run`
- Summary: Delete a workflow run
- HTTP: `DELETE /api/v1/repos/{owner}/{repo}/actions/runs/{run}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repository
- `--run` (path, required): runid of the workflow run
- Output: response media `application/json`
### `gitea repository delete-artifact`
- Summary: Deletes a specific artifact for a workflow run
- HTTP: `DELETE /api/v1/repos/{owner}/{repo}/actions/artifacts/{artifact_id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repository
- `--artifact-id` (path, required): id of the artifact
- Output: response media `application/json`
### `gitea repository delete-repo-runner`
- Summary: Delete a repo-level runner
- HTTP: `DELETE /api/v1/repos/{owner}/{repo}/actions/runners/{runner_id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--runner-id` (path, required): id of the runner
- Output: response media `application/json`
### `gitea repository delete-repo-secret`
- Summary: Delete a secret in a repository
- HTTP: `DELETE /api/v1/repos/{owner}/{repo}/actions/secrets/{secretname}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repository
- `--repo` (path, required): name of the repository
- `--secretname` (path, required): name of the secret
- Output: response media `application/json`
### `gitea repository delete-repo-variable`
- Summary: Delete a repo-level variable
- HTTP: `DELETE /api/v1/repos/{owner}/{repo}/actions/variables/{variablename}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repository
- `--variablename` (path, required): name of the variable
- Output: response media `application/json`
### `gitea repository download-actions-run-job-logs`
- Summary: Downloads the job logs for a workflow run
- HTTP: `GET /api/v1/repos/{owner}/{repo}/actions/jobs/{job_id}/logs`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repository
- `--job-id` (path, required): id of the job
- Output: response media `application/json`
### `gitea repository download-artifact`
- Summary: Downloads a specific artifact for a workflow run redirects to blob url
- HTTP: `GET /api/v1/repos/{owner}/{repo}/actions/artifacts/{artifact_id}/zip`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repository
- `--artifact-id` (path, required): id of the artifact
### `gitea repository force-cancel-workflow-run`
- Summary: Force-cancel a workflow run
- HTTP: `POST /api/v1/repos/{owner}/{repo}/actions/runs/{run}/force-cancel`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repository
- `--run` (path, required): run ID
- Output: response media `application/json`
### `gitea repository generate-repo`
- Summary: Create a repository using a template
- HTTP: `POST /api/v1/repos/{template_owner}/{template_repo}/generate`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--template-owner` (path, required): owner of the template repository
- `--template-repo` (path, required): name of the template repository
- Output: response media `application/json`
### `gitea repository get-annotated-tag`
- Summary: Gets the tag object of an annotated tag (not lightweight tags)
- HTTP: `GET /api/v1/repos/{owner}/{repo}/git/tags/{sha}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--sha` (path, required): sha of the tag. The Git tags API only supports annotated tag objects, not lightweight tags.
- Output: response media `application/json`
### `gitea repository get-artifact`
- Summary: Gets a specific artifact for a workflow run
- HTTP: `GET /api/v1/repos/{owner}/{repo}/actions/artifacts/{artifact_id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repository
- `--artifact-id` (path, required): id of the artifact
- Output: response media `application/json`
### `gitea repository get-artifacts`
- Summary: Lists all artifacts for a repository
- HTTP: `GET /api/v1/repos/{owner}/{repo}/actions/artifacts`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repository
- `--name` (query): name of the artifact
- Output: response media `application/json`
### `gitea repository get-artifacts-of-run`
- Summary: Lists all artifacts for a repository run
- HTTP: `GET /api/v1/repos/{owner}/{repo}/actions/runs/{run}/artifacts`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repository
- `--run` (path, required): runid of the workflow run
- `--name` (query): name of the artifact
- Output: response media `application/json`
### `gitea repository get-blob`
- Summary: Gets the blob of a repository.
- HTTP: `GET /api/v1/repos/{owner}/{repo}/git/blobs/{sha}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--sha` (path, required): sha of the commit
- Output: response media `application/json`
### `gitea repository get-repo-runner`
- Summary: Get a repo-level runner
- HTTP: `GET /api/v1/repos/{owner}/{repo}/actions/runners/{runner_id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--runner-id` (path, required): id of the runner
- Output: response media `application/json`
### `gitea repository get-repo-runners`
- Summary: Get repo-level runners
- HTTP: `GET /api/v1/repos/{owner}/{repo}/actions/runners`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--disabled` (query): filter by disabled status (true or false)
- Output: response media `application/json`
### `gitea repository get-repo-variable`
- Summary: Get a repo-level variable
- HTTP: `GET /api/v1/repos/{owner}/{repo}/actions/variables/{variablename}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repository
- `--variablename` (path, required): name of the variable
- Output: response media `application/json`
### `gitea repository get-repo-variables-list`
- Summary: Get repo-level variables list
- HTTP: `GET /api/v1/repos/{owner}/{repo}/actions/variables`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repository
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea repository get-tree`
- Summary: Gets the tree of a repository.
- HTTP: `GET /api/v1/repos/{owner}/{repo}/git/trees/{sha}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--sha` (path, required): sha of the commit
- `--recursive` (query): show all directories and files
- `--page` (query): page number; the 'truncated' field in the response will be true if there are still more items after this page, false if the last page
- `--per-page` (query): number of items per page
- Output: response media `application/json`
### `gitea repository get-workflow-job`
- Summary: Gets a specific workflow job for a workflow run
- HTTP: `GET /api/v1/repos/{owner}/{repo}/actions/jobs/{job_id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repository
- `--job-id` (path, required): id of the job
- Output: response media `application/json`
### `gitea repository get-workflow-run`
- Summary: Gets a specific workflow run
- HTTP: `GET /api/v1/repos/{owner}/{repo}/actions/runs/{run}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repository
- `--run` (path, required): id of the run
- Output: response media `application/json`
### `gitea repository get-workflow-run-attempt`
- Summary: Gets a specific workflow run attempt
- HTTP: `GET /api/v1/repos/{owner}/{repo}/actions/runs/{run}/attempts/{attempt}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repository
- `--run` (path, required): id of the run
- `--attempt` (path, required): logical attempt number of the run
- Output: response media `application/json`
### `gitea repository get-workflow-run-logs`
- Summary: Download workflow run logs as archive
- HTTP: `GET /api/v1/repos/{owner}/{repo}/actions/runs/{run}/logs`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repository
- `--run` (path, required): run ID
- Output: response media `application/zip`; binary response: write with --output-file <new-path> or - for stdout (exact flag in output.binary.flag)
### `gitea repository get-workflow-runs`
- Summary: Lists all runs for a repository run
- HTTP: `GET /api/v1/repos/{owner}/{repo}/actions/runs`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repository
- `--event` (query): workflow event name
- `--branch` (query): workflow branch
- `--status` (query): workflow status (requested, pending, queued, in_progress, failure, success, skipped)
- `--actor` (query): triggered by user
- `--head-sha` (query): triggering sha of the workflow run
- `--exclude-pull-requests` (query): if true, the `pull_requests` field on each returned run is emptied
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea repository list-action-tasks`
- Summary: List a repository's action tasks
- HTTP: `GET /api/v1/repos/{owner}/{repo}/actions/tasks`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results, default maximum page size is 50
- Output: response media `application/json`
### `gitea repository list-forks`
- Summary: List a repository's forks
- HTTP: `GET /api/v1/repos/{owner}/{repo}/forks`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea repository list-workflow-jobs`
- Summary: Lists all jobs for a repository
- HTTP: `GET /api/v1/repos/{owner}/{repo}/actions/jobs`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repository
- `--status` (query): workflow status (requested, pending, queued, in_progress, failure, success, skipped)
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- `--sort` (query): sort jobs by attribute. Supported values are "id". Default is "id"
- `--order` (query): sort order, either "asc" (ascending) or "desc" (descending). Default is "asc"
- Output: response media `application/json`
### `gitea repository list-workflow-run-attempt-jobs`
- Summary: Lists all jobs for a workflow run attempt
- HTTP: `GET /api/v1/repos/{owner}/{repo}/actions/runs/{run}/attempts/{attempt}/jobs`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repository
- `--run` (path, required): id of the workflow run
- `--attempt` (path, required): logical attempt number of the run
- `--status` (query): workflow status (requested, pending, queued, in_progress, failure, success, skipped)
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea repository list-workflow-run-jobs`
- Summary: Lists all jobs for a workflow run
- HTTP: `GET /api/v1/repos/{owner}/{repo}/actions/runs/{run}/jobs`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repository
- `--run` (path, required): runid of the workflow run
- `--status` (query): workflow status (requested, pending, queued, in_progress, failure, success, skipped)
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- `--sort` (query): sort jobs by attribute. Supported values are "id". Default is "id"
- `--order` (query): sort order, either "asc" (ascending) or "desc" (descending). Default is "asc"
- Output: response media `application/json`
### `gitea repository reject-repo-transfer`
- Summary: Reject a repo transfer
- HTTP: `POST /api/v1/repos/{owner}/{repo}/transfer/reject`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo to transfer
- `--repo` (path, required): name of the repo to transfer
- Output: response media `application/json`
### `gitea repository repo-add-collaborator`
- Summary: Add or Update a collaborator to a repository
- HTTP: `PUT /api/v1/repos/{owner}/{repo}/collaborators/{collaborator}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--collaborator` (path, required): username of the user to add or update as a collaborator
- Output: response media `application/json`
### `gitea repository repo-add-issue-to-project-column`
- Summary: Add an issue to a project column
- HTTP: `POST /api/v1/repos/{owner}/{repo}/projects/{id}/columns/{column_id}/issues/{issue_id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--id` (path, required, int64): id of the project
- `--column-id` (path, required, int64): id of the column
- `--issue-id` (path, required, int64): global id of the issue, not the repository-local index
### `gitea repository repo-add-push-mirror`
- Summary: add a push mirror to the repository
- HTTP: `POST /api/v1/repos/{owner}/{repo}/push_mirrors`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- Output: response media `application/json`
### `gitea repository repo-add-team`
- Summary: Add a team to a repository
- HTTP: `PUT /api/v1/repos/{owner}/{repo}/teams/{team}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--team` (path, required): team name
- Output: response media `application/json`
### `gitea repository repo-add-topic`
- Summary: Add a topic to a repository
- HTTP: `PUT /api/v1/repos/{owner}/{repo}/topics/{topic}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--topic` (path, required): name of the topic to add
- Output: response media `application/json`
### `gitea repository repo-apply-diff-patch`
- Summary: Apply diff patch to repository
- HTTP: `POST /api/v1/repos/{owner}/{repo}/diffpatch`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: required
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- Output: response media `application/json`
### `gitea repository repo-cancel-scheduled-auto-merge`
- Summary: Cancel the scheduled auto merge for the given pull request
- HTTP: `DELETE /api/v1/repos/{owner}/{repo}/pulls/{index}/merge`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--index` (path, required, int64): index of the pull request to merge
- Output: response media `application/json`
### `gitea repository repo-change-files`
- Summary: Modify multiple files in a repository
- HTTP: `POST /api/v1/repos/{owner}/{repo}/contents`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: required
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- Output: response media `application/json`
### `gitea repository repo-check-assignee`
- Summary: Check if a user can be assigned to issues in a repository
- HTTP: `GET /api/v1/repos/{owner}/{repo}/assignees/{assignee}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--assignee` (path, required): username of the user to check for being an assignee
- Output: response media `application/json`
### `gitea repository repo-check-collaborator`
- Summary: Check if a user is a collaborator of a repository
- HTTP: `GET /api/v1/repos/{owner}/{repo}/collaborators/{collaborator}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--collaborator` (path, required): username of the user to check for being a collaborator
- Output: response media `application/json`
### `gitea repository repo-check-team`
- Summary: Check if a team is assigned to a repository
- HTTP: `GET /api/v1/repos/{owner}/{repo}/teams/{team}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--team` (path, required): team name
- Output: response media `application/json`
### `gitea repository repo-compare-diff`
- Summary: Get commit comparison information
- HTTP: `GET /api/v1/repos/{owner}/{repo}/compare/{basehead}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--basehead` (path, required): compare two refs as `base...head` (or `base..head`); refs may be branches, tags, full or short SHAs (including branch names that contain slashes), optionally with a `^` or `~N` revision suffix.
- `--output` (query, one of: diff|patch): return the raw comparison as `diff` or `patch` instead of JSON
- `--verification` (query): include verification for every commit (disable for speedup, default 'true')
- `--files` (query): include a list of affected files for every commit (disable for speedup, default 'true')
- Output: response media `application/json`
### `gitea repository repo-create-branch`
- Summary: Create a branch
- HTTP: `POST /api/v1/repos/{owner}/{repo}/branches`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- Output: response media `application/json`
### `gitea repository repo-create-branch-protection`
- Summary: Create a branch protections for a repository
- HTTP: `POST /api/v1/repos/{owner}/{repo}/branch_protections`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- Output: response media `application/json`
### `gitea repository repo-create-deploy-token`
- Summary: Add a deploy token to a repository, it authenticates git over HTTPS
- HTTP: `POST /api/v1/repos/{owner}/{repo}/keys/tokens`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- Output: response media `application/json`
### `gitea repository repo-create-file`
- Summary: Create a file in a repository
- HTTP: `POST /api/v1/repos/{owner}/{repo}/contents/{filepath}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: required
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--filepath` (path, required): path of the file to create
- Output: response media `application/json`
### `gitea repository repo-create-hook`
- Summary: Create a hook
- HTTP: `POST /api/v1/repos/{owner}/{repo}/hooks`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- Output: response media `application/json`
### `gitea repository repo-create-key`
- Summary: Add a key to a repository
- HTTP: `POST /api/v1/repos/{owner}/{repo}/keys`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- Output: response media `application/json`
### `gitea repository repo-create-project`
- Summary: Create a project owned by a repository
- HTTP: `POST /api/v1/repos/{owner}/{repo}/projects`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- Output: response media `application/json`
### `gitea repository repo-create-project-column`
- Summary: Create a column in a project
- HTTP: `POST /api/v1/repos/{owner}/{repo}/projects/{id}/columns`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--id` (path, required, int64): id of the project
- Output: response media `application/json`
### `gitea repository repo-create-pull-request`
- Summary: Create a pull request
- HTTP: `POST /api/v1/repos/{owner}/{repo}/pulls`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- Output: response media `application/json`
### `gitea repository repo-create-pull-review`
- Summary: Create a review to a pull request
- HTTP: `POST /api/v1/repos/{owner}/{repo}/pulls/{index}/reviews`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: required
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--index` (path, required, int64): index of the pull request
- Output: response media `application/json`
### `gitea repository repo-create-pull-review-comment-reply`
- Summary: Reply to a pull request review comment
- HTTP: `POST /api/v1/repos/{owner}/{repo}/pulls/{index}/comments/{id}/replies`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: required
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--index` (path, required, int64): index of the pull request
- `--id` (path, required, int64): id of the review comment to reply to
- Output: response media `application/json`
### `gitea repository repo-create-pull-review-requests`
- Summary: create review requests for a pull request
- HTTP: `POST /api/v1/repos/{owner}/{repo}/pulls/{index}/requested_reviewers`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: required
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--index` (path, required, int64): index of the pull request
- Output: response media `application/json`
### `gitea repository repo-create-release`
- Summary: Create a release
- HTTP: `POST /api/v1/repos/{owner}/{repo}/releases`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- Output: response media `application/json`
### `gitea repository repo-create-release-attachment`
- Summary: Create a release attachment
- HTTP: `POST /api/v1/repos/{owner}/{repo}/releases/{id}/assets`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--id` (path, required, int64): id of the release
- `--name` (query): name of the attachment
- `--attachment` (formData, binary): attachment to upload
- Output: response media `application/json`
### `gitea repository repo-create-runner-registration-token`
- Summary: Get a repository's actions runner registration token
- HTTP: `POST /api/v1/repos/{owner}/{repo}/actions/runners/registration-token`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- Output: response media `application/json`
### `gitea repository repo-create-status`
- Summary: Create a commit status
- HTTP: `POST /api/v1/repos/{owner}/{repo}/statuses/{sha}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--sha` (path, required): sha of the commit
- Output: response media `application/json`
### `gitea repository repo-create-tag`
- Summary: Create a new git tag in a repository
- HTTP: `POST /api/v1/repos/{owner}/{repo}/tags`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- Output: response media `application/json`
### `gitea repository repo-create-tag-protection`
- Summary: Create a tag protections for a repository
- HTTP: `POST /api/v1/repos/{owner}/{repo}/tag_protections`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- Output: response media `application/json`
### `gitea repository repo-create-wiki-page`
- Summary: Create a wiki page
- HTTP: `POST /api/v1/repos/{owner}/{repo}/wiki/new`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
### `gitea repository repo-delete`
- Summary: Delete a repository
- HTTP: `DELETE /api/v1/repos/{owner}/{repo}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo to delete
- `--repo` (path, required): name of the repo to delete
- Output: response media `application/json`
### `gitea repository repo-delete-avatar`
- Summary: Delete avatar
- HTTP: `DELETE /api/v1/repos/{owner}/{repo}/avatar`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- Output: response media `application/json`
### `gitea repository repo-delete-branch`
- Summary: Delete a specific branch from a repository
- HTTP: `DELETE /api/v1/repos/{owner}/{repo}/branches/{branch}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--branch` (path, required): branch to delete
- Output: response media `application/json`
### `gitea repository repo-delete-branch-protection`
- Summary: Delete a specific branch protection for the repository
- HTTP: `DELETE /api/v1/repos/{owner}/{repo}/branch_protections/{name}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--name` (path, required): name of protected branch
- Output: response media `application/json`
### `gitea repository repo-delete-collaborator`
- Summary: Delete a collaborator from a repository
- HTTP: `DELETE /api/v1/repos/{owner}/{repo}/collaborators/{collaborator}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--collaborator` (path, required): username of the collaborator to delete
- Output: response media `application/json`
### `gitea repository repo-delete-file`
- Summary: Delete a file in a repository
- HTTP: `DELETE /api/v1/repos/{owner}/{repo}/contents/{filepath}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: required
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--filepath` (path, required): path of the file to delete
- Output: response media `application/json`
### `gitea repository repo-delete-git-hook`
- Summary: Delete a Git hook in a repository
- HTTP: `DELETE /api/v1/repos/{owner}/{repo}/hooks/git/{id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--id` (path, required): id of the hook to get
- Output: response media `application/json`
### `gitea repository repo-delete-hook`
- Summary: Delete a hook in a repository
- HTTP: `DELETE /api/v1/repos/{owner}/{repo}/hooks/{id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--id` (path, required, int64): id of the hook to delete
- Output: response media `application/json`
### `gitea repository repo-delete-key`
- Summary: Delete a key from a repository
- HTTP: `DELETE /api/v1/repos/{owner}/{repo}/keys/{id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--id` (path, required, int64): id of the key to delete
### `gitea repository repo-delete-project`
- Summary: Delete a project
- HTTP: `DELETE /api/v1/repos/{owner}/{repo}/projects/{id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--id` (path, required, int64): id of the project
### `gitea repository repo-delete-project-column`
- Summary: Delete a project column
- HTTP: `DELETE /api/v1/repos/{owner}/{repo}/projects/{id}/columns/{column_id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--id` (path, required, int64): id of the project
- `--column-id` (path, required, int64): id of the column
### `gitea repository repo-delete-pull-review`
- Summary: Delete a specific review from a pull request
- HTTP: `DELETE /api/v1/repos/{owner}/{repo}/pulls/{index}/reviews/{id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--index` (path, required, int64): index of the pull request
- `--id` (path, required, int64): id of the review
- Output: response media `application/json`
### `gitea repository repo-delete-pull-review-requests`
- Summary: cancel review requests for a pull request
- HTTP: `DELETE /api/v1/repos/{owner}/{repo}/pulls/{index}/requested_reviewers`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: required
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--index` (path, required, int64): index of the pull request
- Output: response media `application/json`
### `gitea repository repo-delete-push-mirror`
- Summary: deletes a push mirror from a repository by remoteName
- HTTP: `DELETE /api/v1/repos/{owner}/{repo}/push_mirrors/{name}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--name` (path, required): remote name of the pushMirror
- Output: response media `application/json`
### `gitea repository repo-delete-release`
- Summary: Delete a release
- HTTP: `DELETE /api/v1/repos/{owner}/{repo}/releases/{id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--id` (path, required, int64): id of the release to delete
### `gitea repository repo-delete-release-attachment`
- Summary: Delete a release attachment
- HTTP: `DELETE /api/v1/repos/{owner}/{repo}/releases/{id}/assets/{attachment_id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--id` (path, required, int64): id of the release
- `--attachment-id` (path, required, int64): id of the attachment to delete
- Output: response media `application/json`
### `gitea repository repo-delete-release-by-tag`
- Summary: Delete a release by tag name
- HTTP: `DELETE /api/v1/repos/{owner}/{repo}/releases/tags/{tag}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--tag` (path, required): tag name of the release to delete
### `gitea repository repo-delete-tag`
- Summary: Delete a repository's tag by name
- HTTP: `DELETE /api/v1/repos/{owner}/{repo}/tags/{tag}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--tag` (path, required): name of tag to delete
- Output: response media `application/json`
### `gitea repository repo-delete-tag-protection`
- Summary: Delete a specific tag protection for the repository
- HTTP: `DELETE /api/v1/repos/{owner}/{repo}/tag_protections/{id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--id` (path, required): id of protected tag
- Output: response media `application/json`
### `gitea repository repo-delete-team`
- Summary: Delete a team from a repository
- HTTP: `DELETE /api/v1/repos/{owner}/{repo}/teams/{team}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--team` (path, required): team name
- Output: response media `application/json`
### `gitea repository repo-delete-topic`
- Summary: Delete a topic from a repository
- HTTP: `DELETE /api/v1/repos/{owner}/{repo}/topics/{topic}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--topic` (path, required): name of the topic to delete
- Output: response media `application/json`
### `gitea repository repo-delete-wiki-page`
- Summary: Delete a wiki page
- HTTP: `DELETE /api/v1/repos/{owner}/{repo}/wiki/page/{pageName}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--page-name` (path, required): name of the page
### `gitea repository repo-dismiss-pull-review`
- Summary: Dismiss a review for a pull request
- HTTP: `POST /api/v1/repos/{owner}/{repo}/pulls/{index}/reviews/{id}/dismissals`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: required
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--index` (path, required, int64): index of the pull request
- `--id` (path, required, int64): id of the review
- Output: response media `application/json`
### `gitea repository repo-download-commit-diff-or-patch`
- Summary: Get a commit's diff or patch
- HTTP: `GET /api/v1/repos/{owner}/{repo}/git/commits/{sha}.{diffType}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--sha` (path, required): SHA of the commit to get
- `--diff-type` (path, required, one of: diff|patch): whether the output is diff or patch
- Output: response media `text/plain`
### `gitea repository repo-download-pull-diff-or-patch`
- Summary: Get a pull request diff or patch
- HTTP: `GET /api/v1/repos/{owner}/{repo}/pulls/{index}.{diffType}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--index` (path, required, int64): index of the pull request to get
- `--diff-type` (path, required, one of: diff|patch): whether the output is diff or patch
- `--binary` (query): whether to include binary file changes. if true, the diff is applicable with `git apply`
- Output: response media `text/plain`
### `gitea repository repo-edit`
- Summary: Edit a repository's properties. Only fields that are set will be changed.
- HTTP: `PATCH /api/v1/repos/{owner}/{repo}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--owner` (path, required): owner of the repo to edit
- `--repo` (path, required): name of the repo to edit
- Output: response media `application/json`
### `gitea repository repo-edit-branch-protection`
- Summary: Edit a branch protections for a repository. Only fields that are set will be changed
- HTTP: `PATCH /api/v1/repos/{owner}/{repo}/branch_protections/{name}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--name` (path, required): name of protected branch
- Output: response media `application/json`
### `gitea repository repo-edit-git-hook`
- Summary: Edit a Git hook in a repository
- HTTP: `PATCH /api/v1/repos/{owner}/{repo}/hooks/git/{id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--id` (path, required): id of the hook to get
- Output: response media `application/json`
### `gitea repository repo-edit-hook`
- Summary: Edit a hook in a repository
- HTTP: `PATCH /api/v1/repos/{owner}/{repo}/hooks/{id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--id` (path, required, int64): index of the hook
- Output: response media `application/json`
### `gitea repository repo-edit-project`
- Summary: Edit a project
- HTTP: `PATCH /api/v1/repos/{owner}/{repo}/projects/{id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--id` (path, required, int64): id of the project
- Output: response media `application/json`
### `gitea repository repo-edit-project-column`
- Summary: Edit a project column
- HTTP: `PATCH /api/v1/repos/{owner}/{repo}/projects/{id}/columns/{column_id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--id` (path, required, int64): id of the project
- `--column-id` (path, required, int64): id of the column
- Output: response media `application/json`
### `gitea repository repo-edit-pull-request`
- Summary: Update a pull request. If using deadline only the date will be taken into account, and time of day ignored.
- HTTP: `PATCH /api/v1/repos/{owner}/{repo}/pulls/{index}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--index` (path, required, int64): index of the pull request to edit
- Output: response media `application/json`
### `gitea repository repo-edit-release`
- Summary: Update a release
- HTTP: `PATCH /api/v1/repos/{owner}/{repo}/releases/{id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--id` (path, required, int64): id of the release to edit
- Output: response media `application/json`
### `gitea repository repo-edit-release-attachment`
- Summary: Edit a release attachment
- HTTP: `PATCH /api/v1/repos/{owner}/{repo}/releases/{id}/assets/{attachment_id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--id` (path, required, int64): id of the release
- `--attachment-id` (path, required, int64): id of the attachment to edit
- Output: response media `application/json`
### `gitea repository repo-edit-tag-protection`
- Summary: Edit a tag protections for a repository. Only fields that are set will be changed
- HTTP: `PATCH /api/v1/repos/{owner}/{repo}/tag_protections/{id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--id` (path, required): id of protected tag
- Output: response media `application/json`
### `gitea repository repo-edit-wiki-page`
- Summary: Edit a wiki page
- HTTP: `PATCH /api/v1/repos/{owner}/{repo}/wiki/page/{pageName}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--page-name` (path, required): name of the page
### `gitea repository repo-get`
- Summary: Get a repository
- HTTP: `GET /api/v1/repos/{owner}/{repo}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- Output: response media `application/json`
### `gitea repository repo-get-all-commits`
- Summary: Get a list of all commits from a repository
- HTTP: `GET /api/v1/repos/{owner}/{repo}/commits`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--sha` (query): SHA or branch to start listing commits from (usually 'master')
- `--path` (query): filepath of a file/dir
- `--since` (query, date-time): Only commits after this date will be returned (ISO 8601 format)
- `--until` (query, date-time): Only commits before this date will be returned (ISO 8601 format)
- `--stat` (query): include diff stats for every commit (disable for speedup, default 'true')
- `--verification` (query): include verification for every commit (disable for speedup, default 'true')
- `--files` (query): include a list of affected files for every commit (disable for speedup, default 'true')
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results (ignored if used with 'path')
- `--not` (query): commits that match the given specifier will not be listed.
- Output: response media `application/json`
### `gitea repository repo-get-archive`
- Summary: Get an archive of a repository
- HTTP: `GET /api/v1/repos/{owner}/{repo}/archive/{archive}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--archive` (path, required): the git reference for download with attached archive format (e.g. master.zip)
- `--path` (query): subpath of the repository to download
- Output: response media `application/json`
### `gitea repository repo-get-assignees`
- Summary: Return all users that have write access and can be assigned to issues
- HTTP: `GET /api/v1/repos/{owner}/{repo}/assignees`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- Output: response media `application/json`
### `gitea repository repo-get-branch`
- Summary: Retrieve a specific branch from a repository, including its effective branch protection
- HTTP: `GET /api/v1/repos/{owner}/{repo}/branches/{branch}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--branch` (path, required): branch to get
- Output: response media `application/json`
### `gitea repository repo-get-branch-protection`
- Summary: Get a specific branch protection for the repository
- HTTP: `GET /api/v1/repos/{owner}/{repo}/branch_protections/{name}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--name` (path, required): name of protected branch
- Output: response media `application/json`
### `gitea repository repo-get-by-id`
- Summary: Get a repository by id
- HTTP: `GET /api/v1/repositories/{id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--id` (path, required, int64): id of the repo to get
- Output: response media `application/json`
### `gitea repository repo-get-combined-status-by-ref`
- Summary: Get a commit's combined status, by branch/tag/commit reference
- HTTP: `GET /api/v1/repos/{owner}/{repo}/commits/{ref}/status`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--ref` (path, required): name of branch/tag/commit
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea repository repo-get-commit-pull-request`
- Summary: Get the merged pull request of the commit
- HTTP: `GET /api/v1/repos/{owner}/{repo}/commits/{sha}/pull`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--sha` (path, required): SHA of the commit to get
- Output: response media `application/json`
### `gitea repository repo-get-contents`
- Summary: Gets the metadata and contents (if a file) of an entry in a repository, or a list of entries if a dir.
- HTTP: `GET /api/v1/repos/{owner}/{repo}/contents/{filepath}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--filepath` (path, required): path of the dir, file, symlink or submodule in the repo
- `--ref` (query): The name of the commit/branch/tag. Default to the repository’s default branch.
- Output: response media `application/json`
### `gitea repository repo-get-contents-ext`
- Summary: The extended "contents" API, to get file metadata and/or content, or list a directory.
- HTTP: `GET /api/v1/repos/{owner}/{repo}/contents-ext/{filepath}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--filepath` (path, required): path of the dir, file, symlink or submodule in the repo. Swagger requires path parameter to be "required", you can leave it empty or pass a single dot (".") to get the root directory.
- `--ref` (query): the name of the commit/branch/tag, default to the repository’s default branch.
- `--includes` (query): By default this API's response only contains file's metadata. Use comma-separated "includes" options to retrieve more fields. Option "file_content" will try to retrieve the file content, "lfs_metadata" will try to retrieve LFS metadata, "commit_metadata" will try to retrieve commit metadata, and "commit_message" will try to retrieve commit message.
- Output: response media `application/json`
### `gitea repository repo-get-contents-list`
- Summary: Gets the metadata of all the entries of the root dir.
- HTTP: `GET /api/v1/repos/{owner}/{repo}/contents`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--ref` (query): The name of the commit/branch/tag. Default to the repository’s default branch.
- Output: response media `application/json`
### `gitea repository repo-get-editor-config`
- Summary: Get the EditorConfig definitions of a file in a repository
- HTTP: `GET /api/v1/repos/{owner}/{repo}/editorconfig/{filepath}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--filepath` (path, required): filepath of file to get
- `--ref` (query): The name of the commit/branch/tag. Default to the repository’s default branch.
- Output: response media `application/json`
### `gitea repository repo-get-file-contents`
- Summary: Get the metadata and contents of requested files
- HTTP: `GET /api/v1/repos/{owner}/{repo}/file-contents`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--ref` (query): The name of the commit/branch/tag. Default to the repository’s default branch.
- `--body` (query, required): The JSON encoded body (see the POST request): {"files": ["filename1", "filename2"]}
- Output: response media `application/json`
### `gitea repository repo-get-file-contents-post`
- Summary: Get the metadata and contents of requested files
- HTTP: `POST /api/v1/repos/{owner}/{repo}/file-contents`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: required
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--ref` (query): The name of the commit/branch/tag. Default to the repository’s default branch.
- Output: response media `application/json`
### `gitea repository repo-get-git-hook`
- Summary: Get a Git hook
- HTTP: `GET /api/v1/repos/{owner}/{repo}/hooks/git/{id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--id` (path, required): id of the hook to get
- Output: response media `application/json`
### `gitea repository repo-get-hook`
- Summary: Get a hook
- HTTP: `GET /api/v1/repos/{owner}/{repo}/hooks/{id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--id` (path, required, int64): id of the hook to get
- Output: response media `application/json`
### `gitea repository repo-get-issue-config`
- Summary: Returns the issue config for a repo
- HTTP: `GET /api/v1/repos/{owner}/{repo}/issue_config`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- Output: response media `application/json`
### `gitea repository repo-get-issue-templates`
- Summary: Get available issue templates for a repository
- HTTP: `GET /api/v1/repos/{owner}/{repo}/issue_templates`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- Output: response media `application/json`
### `gitea repository repo-get-key`
- Summary: Get a repository's key by id
- HTTP: `GET /api/v1/repos/{owner}/{repo}/keys/{id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--id` (path, required, int64): id of the key to get
- Output: response media `application/json`
### `gitea repository repo-get-languages`
- Summary: Get languages and number of bytes of code written
- HTTP: `GET /api/v1/repos/{owner}/{repo}/languages`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- Output: response media `application/json`
### `gitea repository repo-get-latest-release`
- Summary: Gets the most recent non-prerelease, non-draft release of a repository, sorted by created_at
- HTTP: `GET /api/v1/repos/{owner}/{repo}/releases/latest`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- Output: response media `application/json`
### `gitea repository repo-get-licenses`
- Summary: Get repo licenses
- HTTP: `GET /api/v1/repos/{owner}/{repo}/licenses`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- Output: response media `application/json`
### `gitea repository repo-get-note`
- Summary: Get a note corresponding to a single commit from a repository
- HTTP: `GET /api/v1/repos/{owner}/{repo}/git/notes/{sha}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--sha` (path, required): a git ref or commit sha
- `--verification` (query): include verification for every commit (disable for speedup, default 'true')
- `--files` (query): include a list of affected files for every commit (disable for speedup, default 'true')
- Output: response media `application/json`
### `gitea repository repo-get-project`
- Summary: Get a project
- HTTP: `GET /api/v1/repos/{owner}/{repo}/projects/{id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--id` (path, required, int64): id of the project
- Output: response media `application/json`
### `gitea repository repo-get-project-column`
- Summary: Get a project column
- HTTP: `GET /api/v1/repos/{owner}/{repo}/projects/{id}/columns/{column_id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--id` (path, required, int64): id of the project
- `--column-id` (path, required, int64): id of the column
- Output: response media `application/json`
### `gitea repository repo-get-pull-request`
- Summary: Get a pull request
- HTTP: `GET /api/v1/repos/{owner}/{repo}/pulls/{index}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--index` (path, required, int64): index of the pull request to get
- Output: response media `application/json`
### `gitea repository repo-get-pull-request-by-base-head`
- Summary: Get a pull request by base and head
- HTTP: `GET /api/v1/repos/{owner}/{repo}/pulls/{base}/{head}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--base` (path, required): base of the pull request to get
- `--head` (path, required): head of the pull request to get
- Output: response media `application/json`
### `gitea repository repo-get-pull-request-commits`
- Summary: Get commits for a pull request
- HTTP: `GET /api/v1/repos/{owner}/{repo}/pulls/{index}/commits`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--index` (path, required, int64): index of the pull request to get
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- `--verification` (query): include verification for every commit (disable for speedup, default 'true')
- `--files` (query): include a list of affected files for every commit (disable for speedup, default 'true')
- Output: response media `application/json`
### `gitea repository repo-get-pull-request-files`
- Summary: Get changed files for a pull request
- HTTP: `GET /api/v1/repos/{owner}/{repo}/pulls/{index}/files`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--index` (path, required, int64): index of the pull request to get
- `--skip-to` (query): skip to given file
- `--whitespace` (query, one of: ignore-all|ignore-change|ignore-eol|show-all): whitespace behavior
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea repository repo-get-pull-review`
- Summary: Get a specific review for a pull request
- HTTP: `GET /api/v1/repos/{owner}/{repo}/pulls/{index}/reviews/{id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--index` (path, required, int64): index of the pull request
- `--id` (path, required, int64): id of the review
- Output: response media `application/json`
### `gitea repository repo-get-pull-review-comments`
- Summary: Get a specific review for a pull request
- HTTP: `GET /api/v1/repos/{owner}/{repo}/pulls/{index}/reviews/{id}/comments`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--index` (path, required, int64): index of the pull request
- `--id` (path, required, int64): id of the review
- Output: response media `application/json`
### `gitea repository repo-get-push-mirror-by-remote-name`
- Summary: Get push mirror of the repository by remoteName
- HTTP: `GET /api/v1/repos/{owner}/{repo}/push_mirrors/{name}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--name` (path, required): remote name of push mirror
- Output: response media `application/json`
### `gitea repository repo-get-raw-file`
- Summary: Get a file from a repository
- HTTP: `GET /api/v1/repos/{owner}/{repo}/raw/{filepath}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--filepath` (path, required): path of the file to get, it should be "{ref}/{filepath}". If there is no ref could be inferred, it will be treated as the default branch
- `--ref` (query): The name of the commit/branch/tag. Default to the repository’s default branch
- Output: response media `application/octet-stream`; binary response: write with --output-file <new-path> or - for stdout (exact flag in output.binary.flag)
### `gitea repository repo-get-raw-file-or-lfs`
- Summary: Get a file or it's LFS object from a repository
- HTTP: `GET /api/v1/repos/{owner}/{repo}/media/{filepath}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--filepath` (path, required): path of the file to get, it should be "{ref}/{filepath}". If there is no ref could be inferred, it will be treated as the default branch
- `--ref` (query): The name of the commit/branch/tag. Default to the repository’s default branch
- Output: response media `application/octet-stream`; binary response: write with --output-file <new-path> or - for stdout (exact flag in output.binary.flag)
### `gitea repository repo-get-release`
- Summary: Get a release
- HTTP: `GET /api/v1/repos/{owner}/{repo}/releases/{id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--id` (path, required, int64): id of the release to get
- Output: response media `application/json`
### `gitea repository repo-get-release-attachment`
- Summary: Get a release attachment
- HTTP: `GET /api/v1/repos/{owner}/{repo}/releases/{id}/assets/{attachment_id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--id` (path, required, int64): id of the release
- `--attachment-id` (path, required, int64): id of the attachment to get
- Output: response media `application/json`
### `gitea repository repo-get-release-by-tag`
- Summary: Get a release by tag name
- HTTP: `GET /api/v1/repos/{owner}/{repo}/releases/tags/{tag}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--tag` (path, required): tag name of the release to get
- Output: response media `application/json`
### `gitea repository repo-get-repo-permissions`
- Summary: Get repository permissions for a user
- HTTP: `GET /api/v1/repos/{owner}/{repo}/collaborators/{collaborator}/permission`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--collaborator` (path, required): username of the collaborator whose permissions are to be obtained
- Output: response media `application/json`
### `gitea repository repo-get-reviewers`
- Summary: Return all users that can be requested to review in this repo
- HTTP: `GET /api/v1/repos/{owner}/{repo}/reviewers`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- Output: response media `application/json`
### `gitea repository repo-get-single-commit`
- Summary: Get a single commit from a repository, it has a GitHub-compatible alias "/repos/{owner}/{repo}/commits/{ref}"
- HTTP: `GET /api/v1/repos/{owner}/{repo}/git/commits/{sha}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--sha` (path, required): a git ref or commit sha
- `--stat` (query): include diff stats for every commit (disable for speedup, default 'true')
- `--verification` (query): include verification for every commit (disable for speedup, default 'true')
- `--files` (query): include a list of affected files for every commit (disable for speedup, default 'true')
- Output: response media `application/json`
### `gitea repository repo-get-tag`
- Summary: Get the tag of a repository by tag name
- HTTP: `GET /api/v1/repos/{owner}/{repo}/tags/{tag}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--tag` (path, required): name of tag
- Output: response media `application/json`
### `gitea repository repo-get-tag-protection`
- Summary: Get a specific tag protection for the repository
- HTTP: `GET /api/v1/repos/{owner}/{repo}/tag_protections/{id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--id` (path, required): id of the tag protect to get
- Output: response media `application/json`
### `gitea repository repo-get-wiki-page`
- Summary: Get a wiki page
- HTTP: `GET /api/v1/repos/{owner}/{repo}/wiki/page/{pageName}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--page-name` (path, required): name of the page
- Output: response media `application/json`
### `gitea repository repo-get-wiki-page-revisions`
- Summary: Get revisions of a wiki page
- HTTP: `GET /api/v1/repos/{owner}/{repo}/wiki/revisions/{pageName}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--page-name` (path, required): name of the page
- `--page` (query): page number of results to return (1-based)
- Output: response media `application/json`
### `gitea repository repo-get-wiki-pages`
- Summary: Get all wiki pages
- HTTP: `GET /api/v1/repos/{owner}/{repo}/wiki/pages`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea repository repo-list-actions-secrets`
- Summary: List a repo's actions secrets
- HTTP: `GET /api/v1/repos/{owner}/{repo}/actions/secrets`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repository
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea repository repo-list-activity-feeds`
- Summary: List a repository's activity feeds
- HTTP: `GET /api/v1/repos/{owner}/{repo}/activities/feeds`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--date` (query, date): the date of the activities to be found
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea repository repo-list-all-git-refs`
- Summary: Get specified ref or filtered repository's refs
- HTTP: `GET /api/v1/repos/{owner}/{repo}/git/refs`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- Output: response media `application/json`
### `gitea repository repo-list-branch-protection`
- Summary: List branch protections for a repository
- HTTP: `GET /api/v1/repos/{owner}/{repo}/branch_protections`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- Output: response media `application/json`
### `gitea repository repo-list-branches`
- Summary: List a repository's branches
- HTTP: `GET /api/v1/repos/{owner}/{repo}/branches`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- `--q` (query): branch name substring to filter by
- Output: response media `application/json`
### `gitea repository repo-list-collaborators`
- Summary: List a repository's collaborators
- HTTP: `GET /api/v1/repos/{owner}/{repo}/collaborators`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea repository repo-list-git-hooks`
- Summary: List the Git hooks in a repository
- HTTP: `GET /api/v1/repos/{owner}/{repo}/hooks/git`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- Output: response media `application/json`
### `gitea repository repo-list-git-refs`
- Summary: Get specified ref or filtered repository's refs
- HTTP: `GET /api/v1/repos/{owner}/{repo}/git/refs/{ref}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--ref` (path, required): part or full name of the ref
- Output: response media `application/json`
### `gitea repository repo-list-hooks`
- Summary: List the hooks in a repository
- HTTP: `GET /api/v1/repos/{owner}/{repo}/hooks`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea repository repo-list-keys`
- Summary: List a repository's keys
- HTTP: `GET /api/v1/repos/{owner}/{repo}/keys`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--key-id` (query): the key_id to search for
- `--fingerprint` (query): fingerprint of the key
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea repository repo-list-pinned-issues`
- Summary: List a repo's pinned issues
- HTTP: `GET /api/v1/repos/{owner}/{repo}/issues/pinned`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- Output: response media `application/json`
### `gitea repository repo-list-pinned-pull-requests`
- Summary: List a repo's pinned pull requests
- HTTP: `GET /api/v1/repos/{owner}/{repo}/pulls/pinned`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- Output: response media `application/json`
### `gitea repository repo-list-project-column-issues`
- Summary: List the issues in a project column
- HTTP: `GET /api/v1/repos/{owner}/{repo}/projects/{id}/columns/{column_id}/issues`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--id` (path, required, int64): id of the project
- `--column-id` (path, required, int64): id of the column
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea repository repo-list-project-columns`
- Summary: List a project's columns
- HTTP: `GET /api/v1/repos/{owner}/{repo}/projects/{id}/columns`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--id` (path, required, int64): id of the project
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea repository repo-list-projects`
- Summary: List a repository's projects
- HTTP: `GET /api/v1/repos/{owner}/{repo}/projects`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--state` (query, default `open`, one of: open|closed|all): State of the project (open, closed, all)
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea repository repo-list-pull-requests`
- Summary: List a repo's pull requests
- HTTP: `GET /api/v1/repos/{owner}/{repo}/pulls`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): Name of the repo
- `--base-branch` (query): Filter by target base branch of the pull request
- `--state` (query, default `open`, one of: open|closed|all): State of pull request
- `--sort` (query, one of: oldest|recentupdate|recentclose|leastupdate|mostcomment|leastcomment|priority): Type of sort
- `--milestone` (query, int64): ID of the milestone
- `--labels` (query): Label IDs
- `--poster` (query): Filter by pull request author
- `--page` (query, default `1`): Page number of results to return (1-based)
- `--limit` (query): Page size of results
- Output: response media `application/json`
### `gitea repository repo-list-pull-reviews`
- Summary: List all reviews for a pull request
- HTTP: `GET /api/v1/repos/{owner}/{repo}/pulls/{index}/reviews`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--index` (path, required, int64): index of the pull request
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea repository repo-list-push-mirrors`
- Summary: Get all push mirrors of the repository
- HTTP: `GET /api/v1/repos/{owner}/{repo}/push_mirrors`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea repository repo-list-release-attachments`
- Summary: List release's attachments
- HTTP: `GET /api/v1/repos/{owner}/{repo}/releases/{id}/assets`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--id` (path, required, int64): id of the release
- Output: response media `application/json`
### `gitea repository repo-list-releases`
- Summary: List a repo's releases
- HTTP: `GET /api/v1/repos/{owner}/{repo}/releases`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--draft` (query): filter (exclude / include) drafts, if you don't have repo write access none will show
- `--pre-release` (query): filter (exclude / include) pre-releases
- `--tag-filter` (query): filter releases by tag. supports "*" as a wildcard (for example: v1*, *beta, *rc*).
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea repository repo-list-stargazers`
- Summary: List a repo's stargazers
- HTTP: `GET /api/v1/repos/{owner}/{repo}/stargazers`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea repository repo-list-statuses`
- Summary: Get a commit's statuses
- HTTP: `GET /api/v1/repos/{owner}/{repo}/statuses/{sha}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--sha` (path, required): sha of the commit
- `--sort` (query, one of: oldest|recentupdate|leastupdate|leastindex|highestindex): type of sort
- `--state` (query, one of: pending|success|error|failure|warning): type of state
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea repository repo-list-statuses-by-ref`
- Summary: Get a commit's statuses, by branch/tag/commit reference
- HTTP: `GET /api/v1/repos/{owner}/{repo}/commits/{ref}/statuses`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--ref` (path, required): name of branch/tag/commit
- `--sort` (query, one of: oldest|recentupdate|leastupdate|leastindex|highestindex): type of sort
- `--state` (query, one of: pending|success|error|failure|warning): type of state
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea repository repo-list-subscribers`
- Summary: List a repo's watchers
- HTTP: `GET /api/v1/repos/{owner}/{repo}/subscribers`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea repository repo-list-tag-protection`
- Summary: List tag protections for a repository
- HTTP: `GET /api/v1/repos/{owner}/{repo}/tag_protections`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- Output: response media `application/json`
### `gitea repository repo-list-tags`
- Summary: List a repository's tags
- HTTP: `GET /api/v1/repos/{owner}/{repo}/tags`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results, default maximum page size is 50
- Output: response media `application/json`
### `gitea repository repo-list-teams`
- Summary: List a repository's teams
- HTTP: `GET /api/v1/repos/{owner}/{repo}/teams`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- Output: response media `application/json`
### `gitea repository repo-list-topics`
- Summary: Get list of topics that a repository has
- HTTP: `GET /api/v1/repos/{owner}/{repo}/topics`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea repository repo-merge-pull-request`
- Summary: Merge a pull request
- HTTP: `POST /api/v1/repos/{owner}/{repo}/pulls/{index}/merge`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--index` (path, required, int64): index of the pull request to merge
- Output: response media `application/json`
### `gitea repository repo-merge-upstream`
- Summary: Merge a branch from upstream
- HTTP: `POST /api/v1/repos/{owner}/{repo}/merge-upstream`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- Output: response media `application/json`
### `gitea repository repo-migrate`
- Summary: Migrate a remote git repository
- HTTP: `POST /api/v1/repos/migrate`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags: none
- Output: response media `application/json`
### `gitea repository repo-mirror-sync`
- Summary: Sync a mirrored repository
- HTTP: `POST /api/v1/repos/{owner}/{repo}/mirror-sync`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo to sync
- `--repo` (path, required): name of the repo to sync
- Output: response media `application/json`
### `gitea repository repo-move-project-columns`
- Summary: Reorder a project's columns
- HTTP: `POST /api/v1/repos/{owner}/{repo}/projects/{id}/columns/move`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--id` (path, required, int64): id of the project
### `gitea repository repo-move-project-issue`
- Summary: Move an issue between a project's columns
- HTTP: `POST /api/v1/repos/{owner}/{repo}/projects/{id}/issues/{issue_id}/move`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--id` (path, required, int64): id of the project
- `--issue-id` (path, required, int64): global id of the issue, not the repository-local index
### `gitea repository repo-new-pin-allowed`
- Summary: Returns if new Issue Pins are allowed
- HTTP: `GET /api/v1/repos/{owner}/{repo}/new_pin_allowed`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- Output: response media `application/json`
### `gitea repository repo-pull-request-is-merged`
- Summary: Check if a pull request has been merged
- HTTP: `GET /api/v1/repos/{owner}/{repo}/pulls/{index}/merge`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--index` (path, required, int64): index of the pull request
- Output: response media `application/json`
### `gitea repository repo-push-mirror-sync`
- Summary: Sync all push mirrored repository
- HTTP: `POST /api/v1/repos/{owner}/{repo}/push_mirrors-sync`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo to sync
- `--repo` (path, required): name of the repo to sync
- Output: response media `application/json`
### `gitea repository repo-remove-issue-from-project-column`
- Summary: Remove an issue from a project column
- HTTP: `DELETE /api/v1/repos/{owner}/{repo}/projects/{id}/columns/{column_id}/issues/{issue_id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--id` (path, required, int64): id of the project
- `--column-id` (path, required, int64): id of the column
- `--issue-id` (path, required, int64): global id of the issue, not the repository-local index
### `gitea repository repo-rename-branch`
- Summary: Rename a branch
- HTTP: `PATCH /api/v1/repos/{owner}/{repo}/branches/{branch}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--branch` (path, required): name of the branch
- Output: response media `application/json`
### `gitea repository repo-resolve-pull-review-comment`
- Summary: Resolve a pull request review comment
- HTTP: `POST /api/v1/repos/{owner}/{repo}/pulls/comments/{id}/resolve`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--id` (path, required, int64): id of the review comment
- Output: response media `application/json`
### `gitea repository repo-search`
- Summary: Search for repositories
- HTTP: `GET /api/v1/repos/search`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--q` (query): keyword
- `--topic` (query): Limit search to repositories with keyword as topic
- `--include-desc` (query): include search of keyword within repository description
- `--uid` (query, int64): search only for repos that the user with the given id owns or contributes to
- `--priority-owner-id` (query, int64): repo owner to prioritize in the results
- `--team-id` (query, int64): search only for repos that belong to the given team id
- `--starred-by` (query, int64): search only for repos that the user with the given id has starred
- `--private` (query): include private repositories this user has access to (defaults to true)
- `--is-private` (query): show only pubic, private or all repositories (defaults to all)
- `--template` (query): include template repositories this user has access to (defaults to true)
- `--archived` (query): show only archived, non-archived or all repositories (defaults to all)
- `--mode` (query): type of repository to search for. Supported values are "fork", "source", "mirror" and "collaborative"
- `--exclusive` (query): if `uid` is given, search only for repos that the user owns
- `--sort` (query): sort repos by attribute. Supported values are "alpha", "created", "updated", "size", "git_size", "lfs_size", "stars", "forks" and "id". Default is "alpha"
- `--order` (query): sort order, either "asc" (ascending) or "desc" (descending). Default is "asc", ignored if "sort" is not specified.
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea repository repo-set-default-project-column`
- Summary: Set a project's default column
- HTTP: `POST /api/v1/repos/{owner}/{repo}/projects/{id}/columns/{column_id}/default`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--id` (path, required, int64): id of the project
- `--column-id` (path, required, int64): id of the column
### `gitea repository repo-signing-key`
- Summary: Get signing-key.gpg for given repository
- HTTP: `GET /api/v1/repos/{owner}/{repo}/signing-key.gpg`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- Output: response media `text/plain`
### `gitea repository repo-signing-key-ssh`
- Summary: Get signing-key.pub for given repository
- HTTP: `GET /api/v1/repos/{owner}/{repo}/signing-key.pub`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- Output: response media `text/plain`
### `gitea repository repo-submit-pull-review`
- Summary: Submit a pending review to a pull request
- HTTP: `POST /api/v1/repos/{owner}/{repo}/pulls/{index}/reviews/{id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: required
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--index` (path, required, int64): index of the pull request
- `--id` (path, required, int64): id of the review
- Output: response media `application/json`
### `gitea repository repo-test-hook`
- Summary: Test a push webhook
- HTTP: `POST /api/v1/repos/{owner}/{repo}/hooks/{id}/tests`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--id` (path, required, int64): id of the hook to test
- `--ref` (query): The name of the commit/branch/tag, indicates which commit will be loaded to the webhook payload.
- Output: response media `application/json`
### `gitea repository repo-tracked-times`
- Summary: List a repo's tracked times
- HTTP: `GET /api/v1/repos/{owner}/{repo}/times`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--user` (query): optional filter by user (available for issue managers)
- `--since` (query, date-time): Only show times updated after the given time. This is a timestamp in RFC 3339 format
- `--before` (query, date-time): Only show times updated before the given time. This is a timestamp in RFC 3339 format
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea repository repo-transfer`
- Summary: Transfer a repo ownership
- HTTP: `POST /api/v1/repos/{owner}/{repo}/transfer`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: required
- Flags:
- `--owner` (path, required): owner of the repo to transfer
- `--repo` (path, required): name of the repo to transfer
- Output: response media `application/json`
### `gitea repository repo-un-dismiss-pull-review`
- Summary: Cancel to dismiss a review for a pull request
- HTTP: `POST /api/v1/repos/{owner}/{repo}/pulls/{index}/reviews/{id}/undismissals`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--index` (path, required, int64): index of the pull request
- `--id` (path, required, int64): id of the review
- Output: response media `application/json`
### `gitea repository repo-unresolve-pull-review-comment`
- Summary: Unresolve a pull request review comment
- HTTP: `POST /api/v1/repos/{owner}/{repo}/pulls/comments/{id}/unresolve`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--id` (path, required, int64): id of the review comment
- Output: response media `application/json`
### `gitea repository repo-update-avatar`
- Summary: Update avatar
- HTTP: `POST /api/v1/repos/{owner}/{repo}/avatar`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- Output: response media `application/json`
### `gitea repository repo-update-branch`
- Summary: Update a branch reference to a new commit
- HTTP: `PUT /api/v1/repos/{owner}/{repo}/branches/{branch}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--branch` (path, required): name of the branch
- Output: response media `application/json`
### `gitea repository repo-update-branch-protection-priories`
- Summary: Update the priorities of branch protections for a repository.
- HTTP: `POST /api/v1/repos/{owner}/{repo}/branch_protections/priority`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- Output: response media `application/json`
### `gitea repository repo-update-file`
- Summary: Update a file in a repository if SHA is set, or create the file if SHA is not set
- HTTP: `PUT /api/v1/repos/{owner}/{repo}/contents/{filepath}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: required
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--filepath` (path, required): path of the file to update
- Output: response media `application/json`
### `gitea repository repo-update-pull-request`
- Summary: Merge PR's baseBranch into headBranch
- HTTP: `POST /api/v1/repos/{owner}/{repo}/pulls/{index}/update`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--index` (path, required, int64): index of the pull request to get
- `--style` (query, one of: merge|rebase): how to update pull request
- Output: response media `application/json`
### `gitea repository repo-update-topics`
- Summary: Replace list of topics for a repository
- HTTP: `PUT /api/v1/repos/{owner}/{repo}/topics`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- Output: response media `application/json`
### `gitea repository repo-validate-issue-config`
- Summary: Returns the validation information for a issue config
- HTTP: `GET /api/v1/repos/{owner}/{repo}/issue_config/validate`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- Output: response media `application/json`
### `gitea repository rerun-failed-workflow-run`
- Summary: Reruns all failed jobs in a workflow run
- HTTP: `POST /api/v1/repos/{owner}/{repo}/actions/runs/{run}/rerun-failed-jobs`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repository
- `--run` (path, required): id of the run
### `gitea repository rerun-workflow-job`
- Summary: Reruns a specific workflow job in a run
- HTTP: `POST /api/v1/repos/{owner}/{repo}/actions/runs/{run}/jobs/{job_id}/rerun`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repository
- `--run` (path, required): id of the run
- `--job-id` (path, required): id of the job
- Output: response media `application/json`
### `gitea repository rerun-workflow-run`
- Summary: Reruns an entire workflow run
- HTTP: `POST /api/v1/repos/{owner}/{repo}/actions/runs/{run}/rerun`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repository
- `--run` (path, required): id of the run
- Output: response media `application/json`
### `gitea repository topic-search`
- Summary: search topics via keyword
- HTTP: `GET /api/v1/topics/search`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--q` (query, required): keywords to search
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea repository update-repo-runner`
- Summary: Update a repo-level runner
- HTTP: `PATCH /api/v1/repos/{owner}/{repo}/actions/runners/{runner_id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--runner-id` (path, required): id of the runner
- Output: response media `application/json`
### `gitea repository update-repo-secret`
- Summary: Create or Update a secret value in a repository
- HTTP: `PUT /api/v1/repos/{owner}/{repo}/actions/secrets/{secretname}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--owner` (path, required): owner of the repository
- `--repo` (path, required): name of the repository
- `--secretname` (path, required): name of the secret
- Output: response media `application/json`
### `gitea repository update-repo-variable`
- Summary: Update a repo-level variable
- HTTP: `PUT /api/v1/repos/{owner}/{repo}/actions/variables/{variablename}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repository
- `--variablename` (path, required): name of the variable
- Output: response media `application/json`
### `gitea repository user-current-check-subscription`
- Summary: Check if the current user is watching a repo
- HTTP: `GET /api/v1/repos/{owner}/{repo}/subscription`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
### `gitea repository user-current-delete-subscription`
- Summary: Unwatch a repo
- HTTP: `DELETE /api/v1/repos/{owner}/{repo}/subscription`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
### `gitea repository user-current-put-subscription`
- Summary: Watch a repo
- HTTP: `PUT /api/v1/repos/{owner}/{repo}/subscription`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
### `gitea repository user-tracked-times`
- Summary: List a user's tracked times in a repo
- HTTP: `GET /api/v1/repos/{owner}/{repo}/times/{user}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
- `--user` (path, required): username of the user whose tracked times are to be listed
- Output: response media `application/json`
## settings
- Description: Server settings
### `gitea settings get-general-api-settings`
- Summary: Get instance's global settings for api
- HTTP: `GET /api/v1/settings/api`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags: none
- Output: response media `application/json`
### `gitea settings get-general-attachment-settings`
- Summary: Get instance's global settings for Attachment
- HTTP: `GET /api/v1/settings/attachment`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags: none
- Output: response media `application/json`
### `gitea settings get-general-repository-settings`
- Summary: Get instance's global settings for repositories
- HTTP: `GET /api/v1/settings/repository`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags: none
- Output: response media `application/json`
### `gitea settings get-general-ui-settings`
- Summary: Get instance's global settings for ui
- HTTP: `GET /api/v1/settings/ui`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags: none
- Output: response media `application/json`
## user
- Description: The authenticated user
### `gitea user create-current-user-repo`
- Summary: Create a repository
- HTTP: `POST /api/v1/user/repos`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags: none
- Output: response media `application/json`
### `gitea user create-user-variable`
- Summary: Create a user-level variable
- HTTP: `POST /api/v1/user/actions/variables/{variablename}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--variablename` (path, required): name of the variable
- Output: response media `application/json`
### `gitea user delete-user-runner`
- Summary: Delete a user-level runner
- HTTP: `DELETE /api/v1/user/actions/runners/{runner_id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--runner-id` (path, required): id of the runner
- Output: response media `application/json`
### `gitea user delete-user-secret`
- Summary: Delete a secret in a user scope
- HTTP: `DELETE /api/v1/user/actions/secrets/{secretname}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--secretname` (path, required): name of the secret
- Output: response media `application/json`
### `gitea user delete-user-variable`
- Summary: Delete a user-level variable which is created by current doer
- HTTP: `DELETE /api/v1/user/actions/variables/{variablename}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--variablename` (path, required): name of the variable
- Output: response media `application/json`
### `gitea user get-user-runner`
- Summary: Get a user-level runner
- HTTP: `GET /api/v1/user/actions/runners/{runner_id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--runner-id` (path, required): id of the runner
- Output: response media `application/json`
### `gitea user get-user-runners`
- Summary: Get user-level runners
- HTTP: `GET /api/v1/user/actions/runners`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--disabled` (query): filter by disabled status (true or false)
- Output: response media `application/json`
### `gitea user get-user-settings`
- Summary: Get user settings
- HTTP: `GET /api/v1/user/settings`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags: none
- Output: response media `application/json`
### `gitea user get-user-variable`
- Summary: Get a user-level variable which is created by current doer
- HTTP: `GET /api/v1/user/actions/variables/{variablename}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--variablename` (path, required): name of the variable
- Output: response media `application/json`
### `gitea user get-user-variables-list`
- Summary: Get the user-level list of variables which is created by current doer
- HTTP: `GET /api/v1/user/actions/variables`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea user get-user-workflow-jobs`
- Summary: Get workflow jobs
- HTTP: `GET /api/v1/user/actions/jobs`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--status` (query): workflow status (requested, pending, queued, in_progress, failure, success, skipped)
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- `--sort` (query): sort jobs by attribute. Supported values are "id". Default is "id"
- `--order` (query): sort order, either "asc" (ascending) or "desc" (descending). Default is "asc"
- Output: response media `application/json`
### `gitea user get-user-workflow-runs`
- Summary: Get workflow runs
- HTTP: `GET /api/v1/user/actions/runs`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--event` (query): workflow event name
- `--branch` (query): workflow branch
- `--status` (query): workflow status (requested, pending, queued, in_progress, failure, success, skipped)
- `--actor` (query): triggered by user
- `--head-sha` (query): triggering sha of the workflow run
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea user get-verification-token`
- Summary: Get a Token to verify
- HTTP: `GET /api/v1/user/gpg_key_token`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags: none
- Output: response media `text/plain`
### `gitea user update-user-runner`
- Summary: Update a user-level runner
- HTTP: `PATCH /api/v1/user/actions/runners/{runner_id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--runner-id` (path, required): id of the runner
- Output: response media `application/json`
### `gitea user update-user-secret`
- Summary: Create or Update a secret value in a user scope
- HTTP: `PUT /api/v1/user/actions/secrets/{secretname}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--secretname` (path, required): name of the secret
- Output: response media `application/json`
### `gitea user update-user-settings`
- Summary: Update user settings
- HTTP: `PATCH /api/v1/user/settings`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags: none
- Output: response media `application/json`
### `gitea user update-user-variable`
- Summary: Update a user-level variable which is created by current doer
- HTTP: `PUT /api/v1/user/actions/variables/{variablename}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--variablename` (path, required): name of the variable
- Output: response media `application/json`
### `gitea user user-add-email`
- Summary: Add email addresses
- HTTP: `POST /api/v1/user/emails`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags: none
- Output: response media `application/json`
### `gitea user user-block-user`
- Summary: Block a user
- HTTP: `PUT /api/v1/user/blocks/{username}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--username` (path, required): username of the user to block
- `--note` (query): optional note for the block
### `gitea user user-check-following`
- Summary: Check if one user is following another user
- HTTP: `GET /api/v1/users/{username}/following/{target}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--username` (path, required): username of the following user
- `--target` (path, required): username of the followed user
### `gitea user user-check-user-block`
- Summary: Check if a user is blocked by the authenticated user
- HTTP: `GET /api/v1/user/blocks/{username}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--username` (path, required): username of the user to check
### `gitea user user-create-hook`
- Summary: Create a hook
- HTTP: `POST /api/v1/user/hooks`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: required
- Flags: none
- Output: response media `application/json`
### `gitea user user-create-o-auth2application`
- Summary: creates a new OAuth2 application
- HTTP: `POST /api/v1/user/applications/oauth2`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: required
- Flags: none
- Output: response media `application/json`
### `gitea user user-create-runner-registration-token`
- Summary: Get a user's actions runner registration token
- HTTP: `POST /api/v1/user/actions/runners/registration-token`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags: none
- Output: response media `application/json`
### `gitea user user-create-token`
- Summary: Create an access token
- HTTP: `POST /api/v1/users/{username}/tokens`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--username` (path, required): username of the user whose token is to be created
- Output: response media `application/json`
### `gitea user user-current-add-issue-to-project-column`
- Summary: Add an issue to a project column
- HTTP: `POST /api/v1/user/projects/{id}/columns/{column_id}/issues/{issue_id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--id` (path, required, int64): id of the project
- `--column-id` (path, required, int64): id of the column
- `--issue-id` (path, required, int64): global id of the issue, not the repository-local index
### `gitea user user-current-check-following`
- Summary: Check whether a user is followed by the authenticated user
- HTTP: `GET /api/v1/user/following/{username}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--username` (path, required): username of the user to check for authenticated followers
### `gitea user user-current-check-starring`
- Summary: Whether the authenticated is starring the repo
- HTTP: `GET /api/v1/user/starred/{owner}/{repo}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo
- `--repo` (path, required): name of the repo
### `gitea user user-current-create-project`
- Summary: Create a project owned by the authenticated user
- HTTP: `POST /api/v1/user/projects`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags: none
- Output: response media `application/json`
### `gitea user user-current-create-project-column`
- Summary: Create a column in a project
- HTTP: `POST /api/v1/user/projects/{id}/columns`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--id` (path, required, int64): id of the project
- Output: response media `application/json`
### `gitea user user-current-delete-follow`
- Summary: Unfollow a user
- HTTP: `DELETE /api/v1/user/following/{username}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--username` (path, required): username of the user to unfollow
### `gitea user user-current-delete-gpg-key`
- Summary: Remove a GPG key
- HTTP: `DELETE /api/v1/user/gpg_keys/{id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--id` (path, required, int64): id of key to delete
- Output: response media `application/json`
### `gitea user user-current-delete-key`
- Summary: Delete a public key
- HTTP: `DELETE /api/v1/user/keys/{id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--id` (path, required, int64): id of key to delete
- Output: response media `application/json`
### `gitea user user-current-delete-project`
- Summary: Delete a project
- HTTP: `DELETE /api/v1/user/projects/{id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--id` (path, required, int64): id of the project
### `gitea user user-current-delete-project-column`
- Summary: Delete a project column
- HTTP: `DELETE /api/v1/user/projects/{id}/columns/{column_id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--id` (path, required, int64): id of the project
- `--column-id` (path, required, int64): id of the column
### `gitea user user-current-delete-star`
- Summary: Unstar the given repo
- HTTP: `DELETE /api/v1/user/starred/{owner}/{repo}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo to unstar
- `--repo` (path, required): name of the repo to unstar
### `gitea user user-current-edit-project`
- Summary: Edit a project
- HTTP: `PATCH /api/v1/user/projects/{id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--id` (path, required, int64): id of the project
- Output: response media `application/json`
### `gitea user user-current-edit-project-column`
- Summary: Edit a project column
- HTTP: `PATCH /api/v1/user/projects/{id}/columns/{column_id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--id` (path, required, int64): id of the project
- `--column-id` (path, required, int64): id of the column
- Output: response media `application/json`
### `gitea user user-current-get-gpg-key`
- Summary: Get a GPG key
- HTTP: `GET /api/v1/user/gpg_keys/{id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--id` (path, required, int64): id of key to get
- Output: response media `application/json`
### `gitea user user-current-get-key`
- Summary: Get a public key
- HTTP: `GET /api/v1/user/keys/{id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--id` (path, required, int64): id of key to get
- Output: response media `application/json`
### `gitea user user-current-get-project`
- Summary: Get a project
- HTTP: `GET /api/v1/user/projects/{id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--id` (path, required, int64): id of the project
- Output: response media `application/json`
### `gitea user user-current-get-project-column`
- Summary: Get a project column
- HTTP: `GET /api/v1/user/projects/{id}/columns/{column_id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--id` (path, required, int64): id of the project
- `--column-id` (path, required, int64): id of the column
- Output: response media `application/json`
### `gitea user user-current-list-followers`
- Summary: List the authenticated user's followers
- HTTP: `GET /api/v1/user/followers`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea user user-current-list-following`
- Summary: List the users that the authenticated user is following
- HTTP: `GET /api/v1/user/following`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea user user-current-list-gpg-keys`
- Summary: List the authenticated user's GPG keys
- HTTP: `GET /api/v1/user/gpg_keys`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea user user-current-list-keys`
- Summary: List the authenticated user's public keys
- HTTP: `GET /api/v1/user/keys`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--fingerprint` (query): fingerprint of the key
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea user user-current-list-project-column-issues`
- Summary: List the issues in a project column
- HTTP: `GET /api/v1/user/projects/{id}/columns/{column_id}/issues`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--id` (path, required, int64): id of the project
- `--column-id` (path, required, int64): id of the column
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea user user-current-list-project-columns`
- Summary: List a project's columns
- HTTP: `GET /api/v1/user/projects/{id}/columns`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--id` (path, required, int64): id of the project
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea user user-current-list-projects`
- Summary: List your projects
- HTTP: `GET /api/v1/user/projects`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--state` (query, default `open`, one of: open|closed|all): State of the project (open, closed, all)
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea user user-current-list-repos`
- Summary: List the repos that the authenticated user owns
- HTTP: `GET /api/v1/user/repos`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea user user-current-list-starred`
- Summary: The repos that the authenticated user has starred
- HTTP: `GET /api/v1/user/starred`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea user user-current-list-subscriptions`
- Summary: List repositories watched by the authenticated user
- HTTP: `GET /api/v1/user/subscriptions`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea user user-current-move-project-columns`
- Summary: Reorder a project's columns
- HTTP: `POST /api/v1/user/projects/{id}/columns/move`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--id` (path, required, int64): id of the project
### `gitea user user-current-move-project-issue`
- Summary: Move an issue between a project's columns
- HTTP: `POST /api/v1/user/projects/{id}/issues/{issue_id}/move`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--id` (path, required, int64): id of the project
- `--issue-id` (path, required, int64): global id of the issue, not the repository-local index
### `gitea user user-current-post-gpg-key`
- Summary: Create a GPG key
- HTTP: `POST /api/v1/user/gpg_keys`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags: none
- Output: response media `application/json`
### `gitea user user-current-post-key`
- Summary: Create a public key
- HTTP: `POST /api/v1/user/keys`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags: none
- Output: response media `application/json`
### `gitea user user-current-put-follow`
- Summary: Follow a user
- HTTP: `PUT /api/v1/user/following/{username}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--username` (path, required): username of the user to follow
### `gitea user user-current-put-star`
- Summary: Star the given repo
- HTTP: `PUT /api/v1/user/starred/{owner}/{repo}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--owner` (path, required): owner of the repo to star
- `--repo` (path, required): name of the repo to star
### `gitea user user-current-remove-issue-from-project-column`
- Summary: Remove an issue from a project column
- HTTP: `DELETE /api/v1/user/projects/{id}/columns/{column_id}/issues/{issue_id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--id` (path, required, int64): id of the project
- `--column-id` (path, required, int64): id of the column
- `--issue-id` (path, required, int64): global id of the issue, not the repository-local index
### `gitea user user-current-set-default-project-column`
- Summary: Set a project's default column
- HTTP: `POST /api/v1/user/projects/{id}/columns/{column_id}/default`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--id` (path, required, int64): id of the project
- `--column-id` (path, required, int64): id of the column
### `gitea user user-current-tracked-times`
- Summary: List the current user's tracked times
- HTTP: `GET /api/v1/user/times`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- `--since` (query, date-time): Only show times updated after the given time. This is a timestamp in RFC 3339 format
- `--before` (query, date-time): Only show times updated before the given time. This is a timestamp in RFC 3339 format
- Output: response media `application/json`
### `gitea user user-delete-access-token`
- Summary: delete an access token
- HTTP: `DELETE /api/v1/users/{username}/tokens/{token}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--username` (path, required): username of the user whose token is to be deleted
- `--token` (path, required): token to be deleted, identified by ID and if not available by name
- Output: response media `application/json`
### `gitea user user-delete-avatar`
- Summary: Delete Avatar
- HTTP: `DELETE /api/v1/user/avatar`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags: none
- Output: response media `application/json`
### `gitea user user-delete-email`
- Summary: Delete email addresses
- HTTP: `DELETE /api/v1/user/emails`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags: none
- Output: response media `application/json`
### `gitea user user-delete-hook`
- Summary: Delete a hook
- HTTP: `DELETE /api/v1/user/hooks/{id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--id` (path, required, int64): id of the hook to delete
- Output: response media `application/json`
### `gitea user user-delete-o-auth2application`
- Summary: delete an OAuth2 Application
- HTTP: `DELETE /api/v1/user/applications/oauth2/{id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--id` (path, required, int64): token to be deleted
- Output: response media `application/json`
### `gitea user user-edit-hook`
- Summary: Update a hook
- HTTP: `PATCH /api/v1/user/hooks/{id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags:
- `--id` (path, required, int64): id of the hook to update
- Output: response media `application/json`
### `gitea user user-get`
- Summary: Get a user
- HTTP: `GET /api/v1/users/{username}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--username` (path, required): username of the user whose data is to be listed
- Output: response media `application/json`
### `gitea user user-get-current`
- Summary: Get the authenticated user
- HTTP: `GET /api/v1/user`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags: none
- Output: response media `application/json`
### `gitea user user-get-heatmap-data`
- Summary: Get a user's heatmap
- HTTP: `GET /api/v1/users/{username}/heatmap`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--username` (path, required): username of the user whose heatmap is to be obtained
- Output: response media `application/json`
### `gitea user user-get-hook`
- Summary: Get a hook
- HTTP: `GET /api/v1/user/hooks/{id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--id` (path, required, int64): id of the hook to get
- Output: response media `application/json`
### `gitea user user-get-o-auth2application`
- Summary: get an OAuth2 Application
- HTTP: `GET /api/v1/user/applications/oauth2/{id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--id` (path, required, int64): Application ID to be found
- Output: response media `application/json`
### `gitea user user-get-oauth2application`
- Summary: List the authenticated user's oauth2 applications
- HTTP: `GET /api/v1/user/applications/oauth2`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea user user-get-stop-watches`
- Summary: Get list of all existing stopwatches
- HTTP: `GET /api/v1/user/stopwatches`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea user user-get-tokens`
- Summary: List the authenticated user's access tokens
- HTTP: `GET /api/v1/users/{username}/tokens`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--username` (path, required): username of to user whose access tokens are to be listed
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea user user-list-activity-feeds`
- Summary: List a user's activity feeds
- HTTP: `GET /api/v1/users/{username}/activities/feeds`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--username` (path, required): username of the user whose activity feeds are to be listed
- `--only-performed-by` (query): if true, only show actions performed by the requested user
- `--date` (query, date): the date of the activities to be found
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea user user-list-blocks`
- Summary: List users blocked by the authenticated user
- HTTP: `GET /api/v1/user/blocks`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea user user-list-emails`
- Summary: List the authenticated user's email addresses
- HTTP: `GET /api/v1/user/emails`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags: none
- Output: response media `application/json`
### `gitea user user-list-followers`
- Summary: List the given user's followers
- HTTP: `GET /api/v1/users/{username}/followers`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--username` (path, required): username of the user whose followers are to be listed
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea user user-list-following`
- Summary: List the users that the given user is following
- HTTP: `GET /api/v1/users/{username}/following`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--username` (path, required): username of the user whose followed users are to be listed
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea user user-list-gpg-keys`
- Summary: List the given user's GPG keys
- HTTP: `GET /api/v1/users/{username}/gpg_keys`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--username` (path, required): username of the user whose GPG key list is to be obtained
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea user user-list-hooks`
- Summary: List the authenticated user's webhooks
- HTTP: `GET /api/v1/user/hooks`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea user user-list-keys`
- Summary: List the given user's public keys
- HTTP: `GET /api/v1/users/{username}/keys`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--username` (path, required): username of the user whose public keys are to be listed
- `--fingerprint` (query): fingerprint of the key
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea user user-list-projects`
- Summary: List a user's projects
- HTTP: `GET /api/v1/users/{username}/projects`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--username` (path, required): username of the user
- `--state` (query, default `open`, one of: open|closed|all): State of the project (open, closed, all)
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea user user-list-repos`
- Summary: List the repos owned by the given user
- HTTP: `GET /api/v1/users/{username}/repos`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--username` (path, required): username of the user whose owned repos are to be listed
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea user user-list-starred`
- Summary: The repos that the given user has starred
- HTTP: `GET /api/v1/users/{username}/starred`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--username` (path, required): username of the user whose starred repos are to be listed
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea user user-list-subscriptions`
- Summary: List the repositories watched by a user
- HTTP: `GET /api/v1/users/{username}/subscriptions`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--username` (path, required): username of the user whose watched repos are to be listed
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea user user-list-teams`
- Summary: List all the teams a user belongs to
- HTTP: `GET /api/v1/user/teams`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: response media `application/json`
### `gitea user user-search`
- Summary: Search for users
- HTTP: `GET /api/v1/users/search`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--q` (query): keyword
- `--uid` (query, int64): ID of the user to search for
- `--page` (query): page number of results to return (1-based)
- `--limit` (query): page size of results
- Output: list path `data`; columns `type`, `id`, `active`, `avatar_url`, `created`, `description`; response media `application/json`; pagination `offset`
### `gitea user user-unblock-user`
- Summary: Unblock a user
- HTTP: `DELETE /api/v1/user/blocks/{username}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags:
- `--username` (path, required): username of the user to unblock
### `gitea user user-update-avatar`
- Summary: Update Avatar
- HTTP: `POST /api/v1/user/avatar`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: optional
- Flags: none
- Output: response media `application/json`
### `gitea user user-update-o-auth2application`
- Summary: update an OAuth2 Application, this includes regenerating the client secret
- HTTP: `PATCH /api/v1/user/applications/oauth2/{id}`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: required
- Flags:
- `--id` (path, required, int64): application to be updated
- Output: response media `application/json`
### `gitea user user-verify-gpg-key`
- Summary: Verify a GPG key
- HTTP: `POST /api/v1/user/gpg_key_verify`
- Auth: required; accepts: `BasicAuth (http basic)` | `Token (apiKey query token)` | `AccessToken (apiKey query access_token)` | `AuthorizationHeaderToken (apiKey header Authorization)` | `SudoParam (apiKey query sudo)` | `SudoHeader (apiKey header Sudo)` | `TOTPHeader (apiKey header X-GITEA-OTP)`
- Body: none
- Flags: none
- Output: response media `application/json`