Gitea · Capability

Gitea API — admin

Gitea API — admin. 32 operations. Lead operation: Lists All Jobs. Self-contained Naftiko capability covering one Gitea business surface.

Run with Naftiko Giteaadmin

What You Can Do

GET
Listadminworkflowjobs — Lists All Jobs
/v1/admin/actions/jobs
GET
Getadminrunners — Get All Runners
/v1/admin/actions/runners
POST
Admincreaterunnerregistrationtoken — Get a Global Actions Runner Registration Token
/v1/admin/actions/runners/registration-token
GET
Getadminrunner — Get a Global Runner
/v1/admin/actions/runners/{runner-id}
DELETE
Deleteadminrunner — Delete a Global Runner
/v1/admin/actions/runners/{runner-id}
PATCH
Updateadminrunner — Update a Global Runner
/v1/admin/actions/runners/{runner-id}
GET
Listadminworkflowruns — Lists All Runs
/v1/admin/actions/runs
GET
Admincronlist — List Cron Tasks
/v1/admin/cron
POST
Admincronrun — Run Cron Task
/v1/admin/cron/{task}
GET
Admingetallemails — List All Emails
/v1/admin/emails
GET
Adminsearchemails — Search All Emails
/v1/admin/emails/search
GET
Adminlisthooks — List System's Webhooks
/v1/admin/hooks
POST
Admincreatehook — Create a Hook
/v1/admin/hooks
GET
Admingethook — Get a Hook
/v1/admin/hooks/{id}
DELETE
Admindeletehook — Delete a Hook
/v1/admin/hooks/{id}
PATCH
Adminedithook — Update a Hook
/v1/admin/hooks/{id}
GET
Admingetallorgs — List All Organizations
/v1/admin/orgs
GET
Adminunadoptedlist — List Unadopted Repositories
/v1/admin/unadopted
POST
Adminadoptrepository — Adopt Unadopted Files as a Repository
/v1/admin/unadopted/{owner}/{repo}
DELETE
Admindeleteunadoptedrepository — Delete Unadopted Files
/v1/admin/unadopted/{owner}/{repo}
GET
Adminsearchusers — Search Users According Filter Conditions
/v1/admin/users
POST
Admincreateuser — Create a User
/v1/admin/users
DELETE
Admindeleteuser — Delete a User
/v1/admin/users/{username}
PATCH
Adminedituser — Edit an Existing User
/v1/admin/users/{username}
GET
Adminlistuserbadges — List a User's Badges
/v1/admin/users/{username}/badges
POST
Adminadduserbadges — Add a Badge to a User
/v1/admin/users/{username}/badges
DELETE
Admindeleteuserbadges — Remove a Badge from a User
/v1/admin/users/{username}/badges
POST
Admincreatepublickey — Add a Public Key on Behalf of a User
/v1/admin/users/{username}/keys
DELETE
Admindeleteuserpublickey — Delete a User's Public Key
/v1/admin/users/{username}/keys/{id}
POST
Admincreateorg — Create an Organization
/v1/admin/users/{username}/orgs
POST
Adminrenameuser — Rename a User
/v1/admin/users/{username}/rename
POST
Admincreaterepo — Create a Repository on Behalf of a User
/v1/admin/users/{username}/repos

MCP Tools

lists-all-jobs

Lists All Jobs

read-only idempotent
get-all-runners

Get All Runners

read-only idempotent
get-global-actions-runner-registration

Get a Global Actions Runner Registration Token

read-only
get-global-runner

Get a Global Runner

read-only idempotent
delete-global-runner

Delete a Global Runner

idempotent
update-global-runner

Update a Global Runner

idempotent
lists-all-runs

Lists All Runs

read-only idempotent
list-cron-tasks

List Cron Tasks

read-only idempotent
run-cron-task

Run Cron Task

list-all-emails

List All Emails

read-only idempotent
search-all-emails

Search All Emails

read-only idempotent
list-system-s-webhooks

List System's Webhooks

read-only idempotent
create-hook

Create a Hook

get-hook

Get a Hook

read-only idempotent
delete-hook

Delete a Hook

idempotent
update-hook

Update a Hook

idempotent
list-all-organizations

List All Organizations

read-only idempotent
list-unadopted-repositories

List Unadopted Repositories

read-only idempotent
adopt-unadopted-files-repository

Adopt Unadopted Files as a Repository

delete-unadopted-files

Delete Unadopted Files

idempotent
search-users-according-filter-conditions

Search Users According Filter Conditions

read-only idempotent
create-user

Create a User

delete-user

Delete a User

idempotent
edit-existing-user

Edit an Existing User

idempotent
list-user-s-badges

List a User's Badges

read-only idempotent
add-badge-user

Add a Badge to a User

remove-badge-user

Remove a Badge from a User

idempotent
add-public-key-behalf-user

Add a Public Key on Behalf of a User

delete-user-s-public-key

Delete a User's Public Key

idempotent
create-organization

Create an Organization

rename-user

Rename a User

create-repository-behalf-user

Create a Repository on Behalf of a User

Capability Spec

rest-admin.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Gitea API — admin
  description: 'Gitea API — admin. 32 operations. Lead operation: Lists All Jobs. Self-contained Naftiko capability covering
    one Gitea business surface.'
  tags:
  - Gitea
  - admin
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GITEA_API_KEY: GITEA_API_KEY
capability:
  consumes:
  - type: http
    namespace: rest-admin
    baseUri: https://gitea.com/api/v1
    description: Gitea API — admin business capability. Self-contained, no shared references.
    resources:
    - name: admin-actions-jobs
      path: /admin/actions/jobs
      operations:
      - name: listadminworkflowjobs
        method: GET
        description: Lists All Jobs
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: status
          in: query
          type: string
          description: workflow status (pending, queued, in_progress, failure, success, skipped)
        - name: page
          in: query
          type: integer
          description: page number of results to return (1-based)
        - name: limit
          in: query
          type: integer
          description: page size of results
    - name: admin-actions-runners
      path: /admin/actions/runners
      operations:
      - name: getadminrunners
        method: GET
        description: Get All Runners
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: disabled
          in: query
          type: boolean
          description: filter by disabled status (true or false)
    - name: admin-actions-runners-registration-token
      path: /admin/actions/runners/registration-token
      operations:
      - name: admincreaterunnerregistrationtoken
        method: POST
        description: Get a Global Actions Runner Registration Token
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: admin-actions-runners-runner_id
      path: /admin/actions/runners/{runner_id}
      operations:
      - name: getadminrunner
        method: GET
        description: Get a Global Runner
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: runner_id
          in: path
          type: string
          description: id of the runner
          required: true
      - name: deleteadminrunner
        method: DELETE
        description: Delete a Global Runner
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: runner_id
          in: path
          type: string
          description: id of the runner
          required: true
      - name: updateadminrunner
        method: PATCH
        description: Update a Global Runner
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: runner_id
          in: path
          type: string
          description: id of the runner
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: admin-actions-runs
      path: /admin/actions/runs
      operations:
      - name: listadminworkflowruns
        method: GET
        description: Lists All Runs
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: event
          in: query
          type: string
          description: workflow event name
        - name: branch
          in: query
          type: string
          description: workflow branch
        - name: status
          in: query
          type: string
          description: workflow status (pending, queued, in_progress, failure, success, skipped)
        - name: actor
          in: query
          type: string
          description: triggered by user
        - name: head_sha
          in: query
          type: string
          description: triggering sha of the workflow run
        - name: page
          in: query
          type: integer
          description: page number of results to return (1-based)
        - name: limit
          in: query
          type: integer
          description: page size of results
    - name: admin-cron
      path: /admin/cron
      operations:
      - name: admincronlist
        method: GET
        description: List Cron Tasks
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: page
          in: query
          type: integer
          description: page number of results to return (1-based)
        - name: limit
          in: query
          type: integer
          description: page size of results
    - name: admin-cron-task
      path: /admin/cron/{task}
      operations:
      - name: admincronrun
        method: POST
        description: Run Cron Task
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: task
          in: path
          type: string
          description: task to run
          required: true
    - name: admin-emails
      path: /admin/emails
      operations:
      - name: admingetallemails
        method: GET
        description: List All Emails
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: page
          in: query
          type: integer
          description: page number of results to return (1-based)
        - name: limit
          in: query
          type: integer
          description: page size of results
    - name: admin-emails-search
      path: /admin/emails/search
      operations:
      - name: adminsearchemails
        method: GET
        description: Search All Emails
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: q
          in: query
          type: string
          description: keyword
        - name: page
          in: query
          type: integer
          description: page number of results to return (1-based)
        - name: limit
          in: query
          type: integer
          description: page size of results
    - name: admin-hooks
      path: /admin/hooks
      operations:
      - name: adminlisthooks
        method: GET
        description: List System's Webhooks
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: page
          in: query
          type: integer
          description: page number of results to return (1-based)
        - name: limit
          in: query
          type: integer
          description: page size of results
        - name: type
          in: query
          type: string
          description: system, default or both kinds of webhooks
      - name: admincreatehook
        method: POST
        description: Create a Hook
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: admin-hooks-id
      path: /admin/hooks/{id}
      operations:
      - name: admingethook
        method: GET
        description: Get a Hook
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: integer
          description: id of the hook to get
          required: true
      - name: admindeletehook
        method: DELETE
        description: Delete a Hook
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: integer
          description: id of the hook to delete
          required: true
      - name: adminedithook
        method: PATCH
        description: Update a Hook
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: integer
          description: id of the hook to update
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: admin-orgs
      path: /admin/orgs
      operations:
      - name: admingetallorgs
        method: GET
        description: List All Organizations
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: page
          in: query
          type: integer
          description: page number of results to return (1-based)
        - name: limit
          in: query
          type: integer
          description: page size of results
    - name: admin-unadopted
      path: /admin/unadopted
      operations:
      - name: adminunadoptedlist
        method: GET
        description: List Unadopted Repositories
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: page
          in: query
          type: integer
          description: page number of results to return (1-based)
        - name: limit
          in: query
          type: integer
          description: page size of results
        - name: pattern
          in: query
          type: string
          description: pattern of repositories to search for
    - name: admin-unadopted-owner-repo
      path: /admin/unadopted/{owner}/{repo}
      operations:
      - name: adminadoptrepository
        method: POST
        description: Adopt Unadopted Files as a Repository
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: owner
          in: path
          type: string
          description: owner of the repo
          required: true
        - name: repo
          in: path
          type: string
          description: name of the repo
          required: true
      - name: admindeleteunadoptedrepository
        method: DELETE
        description: Delete Unadopted Files
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: owner
          in: path
          type: string
          description: owner of the repo
          required: true
        - name: repo
          in: path
          type: string
          description: name of the repo
          required: true
    - name: admin-users
      path: /admin/users
      operations:
      - name: adminsearchusers
        method: GET
        description: Search Users According Filter Conditions
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: source_id
          in: query
          type: integer
          description: ID of the user's login source to search for
        - name: login_name
          in: query
          type: string
          description: identifier of the user, provided by the external authenticator
        - name: page
          in: query
          type: integer
          description: page number of results to return (1-based)
        - name: limit
          in: query
          type: integer
          description: page size of results
        - name: sort
          in: query
          type: string
          description: sort users by attribute. Supported values are "name", "created", "updated" and "id". Default is "name"
        - name: order
          in: query
          type: string
          description: sort order, either "asc" (ascending) or "desc" (descending). Default is "asc", ignored if "sort" is
            not specified.
        - name: q
          in: query
          type: string
          description: search term (username, full name, email)
        - name: visibility
          in: query
          type: string
          description: visibility filter. Supported values are "public", "limited" and "private".
        - name: is_active
          in: query
          type: boolean
          description: filter active users
        - name: is_admin
          in: query
          type: boolean
          description: filter admin users
        - name: is_restricted
          in: query
          type: boolean
          description: filter restricted users
        - name: is_2fa_enabled
          in: query
          type: boolean
          description: filter 2FA enabled users
        - name: is_prohibit_login
          in: query
          type: boolean
          description: filter login prohibited users
      - name: admincreateuser
        method: POST
        description: Create a User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: admin-users-username
      path: /admin/users/{username}
      operations:
      - name: admindeleteuser
        method: DELETE
        description: Delete a User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: username
          in: path
          type: string
          description: username of the user to delete
          required: true
        - name: purge
          in: query
          type: boolean
          description: purge the user from the system completely
      - name: adminedituser
        method: PATCH
        description: Edit an Existing User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: username
          in: path
          type: string
          description: username of the user whose data is to be edited
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: admin-users-username-badges
      path: /admin/users/{username}/badges
      operations:
      - name: adminlistuserbadges
        method: GET
        description: List a User's Badges
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: username
          in: path
          type: string
          description: username of the user whose badges are to be listed
          required: true
      - name: adminadduserbadges
        method: POST
        description: Add a Badge to a User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: username
          in: path
          type: string
          description: username of the user to whom a badge is to be added
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: admindeleteuserbadges
        method: DELETE
        description: Remove a Badge from a User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: username
          in: path
          type: string
          description: username of the user whose badge is to be deleted
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: admin-users-username-keys
      path: /admin/users/{username}/keys
      operations:
      - name: admincreatepublickey
        method: POST
        description: Add a Public Key on Behalf of a User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: username
          in: path
          type: string
          description: username of the user who is to receive a public key
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: admin-users-username-keys-id
      path: /admin/users/{username}/keys/{id}
      operations:
      - name: admindeleteuserpublickey
        method: DELETE
        description: Delete a User's Public Key
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: username
          in: path
          type: string
          description: username of the user whose public key is to be deleted
          required: true
        - name: id
          in: path
          type: integer
          description: id of the key to delete
          required: true
    - name: admin-users-username-orgs
      path: /admin/users/{username}/orgs
      operations:
      - name: admincreateorg
        method: POST
        description: Create an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: username
          in: path
          type: string
          description: username of the user who will own the created organization
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: admin-users-username-rename
      path: /admin/users/{username}/rename
      operations:
      - name: adminrenameuser
        method: POST
        description: Rename a User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: username
          in: path
          type: string
          description: current username of the user
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: admin-users-username-repos
      path: /admin/users/{username}/repos
      operations:
      - name: admincreaterepo
        method: POST
        description: Create a Repository on Behalf of a User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: username
          in: path
          type: string
          description: username of the user who will own the created repository
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: apikey
      key: access_token
      value: '{{env.GITEA_API_KEY}}'
      placement: query
  exposes:
  - type: rest
    namespace: rest-admin-rest
    port: 8080
    description: REST adapter for Gitea API — admin. One Spectral-compliant resource per consumed operation, prefixed with
      /v1.
    resources:
    - path: /v1/admin/actions/jobs
      name: admin-actions-jobs
      description: REST surface for admin-actions-jobs.
      operations:
      - method: GET
        name: listadminworkflowjobs
        description: Lists All Jobs
        call: rest-admin.listadminworkflowjobs
        with:
          status: rest.status
          page: rest.page
          limit: rest.limit
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/admin/actions/runners
      name: admin-actions-runners
      description: REST surface for admin-actions-runners.
      operations:
      - method: GET
        name: getadminrunners
        description: Get All Runners
        call: rest-admin.getadminrunners
        with:
          disabled: rest.disabled
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/admin/actions/runners/registration-token
      name: admin-actions-runners-registration-token
      description: REST surface for admin-actions-runners-registration-token.
      operations:
      - method: POST
        name: admincreaterunnerregistrationtoken
        description: Get a Global Actions Runner Registration Token
        call: rest-admin.admincreaterunnerregistrationtoken
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/admin/actions/runners/{runner-id}
      name: admin-actions-runners-runner-id
      description: REST surface for admin-actions-runners-runner_id.
      operations:
      - method: GET
        name: getadminrunner
        description: Get a Global Runner
        call: rest-admin.getadminrunner
        with:
          runner_id: rest.runner_id
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleteadminrunner
        description: Delete a Global Runner
        call: rest-admin.deleteadminrunner
        with:
          runner_id: rest.runner_id
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: updateadminrunner
        description: Update a Global Runner
        call: rest-admin.updateadminrunner
        with:
          runner_id: rest.runner_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/admin/actions/runs
      name: admin-actions-runs
      description: REST surface for admin-actions-runs.
      operations:
      - method: GET
        name: listadminworkflowruns
        description: Lists All Runs
        call: rest-admin.listadminworkflowruns
        with:
          event: rest.event
          branch: rest.branch
          status: rest.status
          actor: rest.actor
          head_sha: rest.head_sha
          page: rest.page
          limit: rest.limit
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/admin/cron
      name: admin-cron
      description: REST surface for admin-cron.
      operations:
      - method: GET
        name: admincronlist
        description: List Cron Tasks
        call: rest-admin.admincronlist
        with:
          page: rest.page
          limit: rest.limit
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/admin/cron/{task}
      name: admin-cron-task
      description: REST surface for admin-cron-task.
      operations:
      - method: POST
        name: admincronrun
        description: Run Cron Task
        call: rest-admin.admincronrun
        with:
          task: rest.task
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/admin/emails
      name: admin-emails
      description: REST surface for admin-emails.
      operations:
      - method: GET
        name: admingetallemails
        description: List All Emails
        call: rest-admin.admingetallemails
        with:
          page: rest.page
          limit: rest.limit
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/admin/emails/search
      name: admin-emails-search
      description: REST surface for admin-emails-search.
      operations:
      - method: GET
        name: adminsearchemails
        description: Search All Emails
        call: rest-admin.adminsearchemails
        with:
          q: rest.q
          page: rest.page
          limit: rest.limit
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/admin/hooks
      name: admin-hooks
      description: REST surface for admin-hooks.
      operations:
      - method: GET
        name: adminlisthooks
        description: List System's Webhooks
        call: rest-admin.adminlisthooks
        with:
          page: rest.page
          limit: rest.limit
          type: rest.type
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: admincreatehook
        description: Create a Hook
        call: rest-admin.admincreatehook
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/admin/hooks/{id}
      name: admin-hooks-id
      description: REST surface for admin-hooks-id.
      operations:
      - method: GET
        name: admingethook
        description: Get a Hook
        call: rest-admin.admingethook
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: admindeletehook
        description: Delete a Hook
        call: rest-admin.admindeletehook
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: adminedithook
        description: Update a Hook
        call: rest-admin.adminedithook
        with:
          id: rest.id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/admin/orgs
      name: admin-orgs
      description: REST surface for admin-orgs.
      operations:
      - method: GET
        name: admingetallorgs
        description: List All Organizations
        call: rest-admin.admingetallorgs
        with:
          page: rest.page
          limit: rest.limit
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/admin/unadopted
      name: admin-unadopted
      description: REST surface for admin-unadopted.
      operations:
      - method: GET
        name: adminunadoptedlist
        description: List Unadopted Repositories
        call: rest-admin.adminunadoptedlist
        with:
          page: rest.page
          limit: rest.limit
          pattern: rest.pattern
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/admin/unadopted/{owner}/{repo}
      name: admin-unadopted-owner-repo
      description: REST surface for admin-unadopted-owner-repo.
      operations:
      - method: POST
        name: adminadoptrepository
        description: Adopt Unadopted Files as a Repository
        call: rest-admin.adminadoptrepository
        with:
          owner: rest.owner
          repo: rest.repo
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: admindeleteunadoptedrepository
        description: Delete Unadopted Files
        call: rest-admin.admindeleteunadoptedrepository
        with:
          owner: rest.owner
          repo: rest.repo
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/admin/users
      name: admin-users
      description: REST surface for admin-users.
      operations:
      - method: GET
        name: adminsearchusers
        description: Search Users According Filter Conditions
        call: rest-admin.adminsearchusers
        with:
          source_id: rest.source_id
          login_name: rest.login_name
          page: rest.page
          limit: rest.limit
          sort: rest.sort
          order: rest.order
          q: rest.q
          visibility: rest.visibility
          is_active: rest.is_active
          is_admin: rest.is_admin
          is_restricted: rest.is_restricted
          is_2fa_enabled: rest.is_2fa_enabled
          is_prohibit_login: rest.is_prohibit_login
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: admincreateuser
        description: Create a User
        call: rest-admin.admincreateuser
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/admin/users/{username}
      name: admin-users-username
      description: REST surface for admin-users-username.
      operations:
      - method: DELETE
        name: admindeleteuser
        description: Delete a User
        call: rest-admin.admindeleteuser
        with:
          username: rest.username
          purge: rest.purge
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: adminedituser
        description: Edit an Existing User
        call: rest-admin.adminedituser
        with:
          username: rest.username
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/admin/users/{username}/badges
      name: admin-users-username-badges
      description: REST surface for admin-users-username-badges.
      operations:
      - method: GET
        name: adminlistuserbadges
        description: List a User's Badges
        call: rest-admin.adminlistuserbadges
        with:
          username: rest.username
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: adminadduserbadges
        description: Add a Badge to a User
        call: rest-admin.adminadduserbadges
        with:
          username: rest.username
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: admindeleteuserbadges
        description: Remove a Badge from a User
        call: rest-admin.admindeleteuserbadges
        with:
          username: rest.username
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/admin/users/{username}/keys
      name: admin-users-username-keys
      description: REST surface for admin-users-username-keys.
      operations:
      - method: POST
        name: admincreatepublickey
        description: Add a Public Key on Behalf of a User
        call: rest-admin.admincreatepublickey
        with:
          username: rest.username
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/admin/users/{username}/keys/{id}
      name: admin-users-username-keys-id
      description: REST surface for admin-users-username-keys-id.
      operations:
      - method: DELETE
        name: admindeleteuserpublickey
        description: Delete a User's Public Key
        call: rest-admin.admindeleteuserpublickey
        with:
          username: rest.username
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/admin/users/{username}/orgs
      name: admin-users-username-orgs
      description: REST surface for admin-users-username-orgs.
      operations:
      - method: POST
        name: admincreateorg
        description: Create an Organization
        call: rest-admin.admincreateorg
        with:
          username: rest.username
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/admin/users/{username}/rename
      name: admin-users-username-rename
      description: REST surface for admin-users-username-rename.
      operations:
      - method: POST
        name: adminrenameuser
        description: Rename a User
        call: rest-admin.adminrenameuser
        with:
          username: rest.username
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/admin/users/{username}/repos
      name: admin-users-username-repos
      description: REST surface for admin-users-username-repos.
      operations:
      - method: POST
        name: ad

# --- truncated at 32 KB (43 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/gitea/refs/heads/main/capabilities/rest-admin.yaml