Gitea · Capability

Gitea API — organization

Gitea API — organization. 67 operations. Lead operation: Create a Repository in an Organization. Self-contained Naftiko capability covering one Gitea business surface.

Run with Naftiko Giteaorganization

What You Can Do

POST
Createorgrepodeprecated — Create a Repository in an Organization
/v1/org/{org}/repos
GET
Orggetall — Get List of Organizations
/v1/orgs
POST
Orgcreate — Create an Organization
/v1/orgs
GET
Orgget — Get an Organization
/v1/orgs/{org}
DELETE
Orgdelete — Delete an Organization
/v1/orgs/{org}
PATCH
Orgedit — Edit an Organization
/v1/orgs/{org}
GET
Getorgworkflowjobs — Get Org-Level Workflow Jobs
/v1/orgs/{org}/actions/jobs
GET
Getorgrunners — Get Org-Level Runners
/v1/orgs/{org}/actions/runners
POST
Orgcreaterunnerregistrationtoken — Get an Organization's Actions Runner Registration Token
/v1/orgs/{org}/actions/runners/registration-token
GET
Getorgrunner — Get an Org-Level Runner
/v1/orgs/{org}/actions/runners/{runner-id}
DELETE
Deleteorgrunner — Delete an Org-Level Runner
/v1/orgs/{org}/actions/runners/{runner-id}
PATCH
Updateorgrunner — Update an Org-Level Runner
/v1/orgs/{org}/actions/runners/{runner-id}
GET
Getorgworkflowruns — Get Org-Level Workflow Runs
/v1/orgs/{org}/actions/runs
GET
Orglistactionssecrets — List an Organization's Actions Secrets
/v1/orgs/{org}/actions/secrets
PUT
Updateorgsecret — Create or Update a Secret Value in an Organization
/v1/orgs/{org}/actions/secrets/{secretname}
DELETE
Deleteorgsecret — Delete a Secret in an Organization
/v1/orgs/{org}/actions/secrets/{secretname}
GET
Getorgvariableslist — Get an Org-Level Variables List
/v1/orgs/{org}/actions/variables
GET
Getorgvariable — Get an Org-Level Variable
/v1/orgs/{org}/actions/variables/{variablename}
PUT
Updateorgvariable — Update an Org-Level Variable
/v1/orgs/{org}/actions/variables/{variablename}
POST
Createorgvariable — Create an Org-Level Variable
/v1/orgs/{org}/actions/variables/{variablename}
DELETE
Deleteorgvariable — Delete an Org-Level Variable
/v1/orgs/{org}/actions/variables/{variablename}
GET
Orglistactivityfeeds — List an Organization's Activity Feeds
/v1/orgs/{org}/activities/feeds
POST
Orgupdateavatar — Update Avatar
/v1/orgs/{org}/avatar
DELETE
Orgdeleteavatar — Delete Avatar
/v1/orgs/{org}/avatar
GET
Organizationlistblocks — List Users Blocked by the Organization
/v1/orgs/{org}/blocks
GET
Organizationcheckuserblock — Check if a User Is Blocked by the Organization
/v1/orgs/{org}/blocks/{username}
PUT
Organizationblockuser — Block a User
/v1/orgs/{org}/blocks/{username}
DELETE
Organizationunblockuser — Unblock a User
/v1/orgs/{org}/blocks/{username}
GET
Orglisthooks — List an Organization's Webhooks
/v1/orgs/{org}/hooks
POST
Orgcreatehook — Create a Hook
/v1/orgs/{org}/hooks
GET
Orggethook — Get a Hook
/v1/orgs/{org}/hooks/{id}
DELETE
Orgdeletehook — Delete a Hook
/v1/orgs/{org}/hooks/{id}
PATCH
Orgedithook — Update a Hook
/v1/orgs/{org}/hooks/{id}
GET
Orglistlabels — List an Organization's Labels
/v1/orgs/{org}/labels
POST
Orgcreatelabel — Create a Label for an Organization
/v1/orgs/{org}/labels
GET
Orggetlabel — Get a Single Label
/v1/orgs/{org}/labels/{id}
DELETE
Orgdeletelabel — Delete a Label
/v1/orgs/{org}/labels/{id}
PATCH
Orgeditlabel — Update a Label
/v1/orgs/{org}/labels/{id}
GET
Orglistmembers — List an Organization's Members
/v1/orgs/{org}/members
GET
Orgismember — Check if a User Is a Member of an Organization
/v1/orgs/{org}/members/{username}
DELETE
Orgdeletemember — Remove a Member from an Organization
/v1/orgs/{org}/members/{username}
GET
Orglistpublicmembers — List an Organization's Public Members
/v1/orgs/{org}/public-members
GET
Orgispublicmember — Check if a User Is a Public Member of an Organization
/v1/orgs/{org}/public-members/{username}
PUT
Orgpublicizemember — Publicize a User's Membership
/v1/orgs/{org}/public-members/{username}
DELETE
Orgconcealmember — Conceal a User's Membership
/v1/orgs/{org}/public-members/{username}
POST
Renameorg — Rename an Organization
/v1/orgs/{org}/rename
GET
Orglistrepos — List an Organization's Repos
/v1/orgs/{org}/repos
POST
Createorgrepo — Create a Repository in an Organization
/v1/orgs/{org}/repos
DELETE
Orgdeleterepos — Delete All Repositories in an Organization
/v1/orgs/{org}/repos
GET
Orglistteams — List an Organization's Teams
/v1/orgs/{org}/teams
POST
Orgcreateteam — Create a Team
/v1/orgs/{org}/teams
GET
Teamsearch — Search for Teams Within an Organization
/v1/orgs/{org}/teams/search
GET
Orggetteam — Get a Team
/v1/teams/{id}
DELETE
Orgdeleteteam — Delete a Team
/v1/teams/{id}
PATCH
Orgeditteam — Edit a Team
/v1/teams/{id}
GET
Orglistteamactivityfeeds — List a Team's Activity Feeds
/v1/teams/{id}/activities/feeds
GET
Orglistteammembers — List a Team's Members
/v1/teams/{id}/members
GET
Orglistteammember — List a Particular Member of Team
/v1/teams/{id}/members/{username}
PUT
Orgaddteammember — Add a Team Member
/v1/teams/{id}/members/{username}
DELETE
Orgremoveteammember — Remove a Team Member
/v1/teams/{id}/members/{username}
GET
Orglistteamrepos — List a Team's Repos
/v1/teams/{id}/repos
GET
Orglistteamrepo — List a Particular Repo of Team
/v1/teams/{id}/repos/{org}/{repo}
PUT
Orgaddteamrepository — Add a Repository to a Team
/v1/teams/{id}/repos/{org}/{repo}
DELETE
Orgremoveteamrepository — Remove a Repository from a Team
/v1/teams/{id}/repos/{org}/{repo}
GET
Orglistcurrentuserorgs — List the Current User's Organizations
/v1/user/orgs
GET
Orglistuserorgs — List a User's Organizations
/v1/users/{username}/orgs
GET
Orggetuserpermissions — Get User Permissions in Organization
/v1/users/{username}/orgs/{org}/permissions

MCP Tools

create-repository-organization

Create a Repository in an Organization

get-list-organizations

Get List of Organizations

read-only idempotent
create-organization

Create an Organization

get-organization

Get an Organization

read-only idempotent
delete-organization

Delete an Organization

idempotent
edit-organization

Edit an Organization

idempotent
get-org-level-workflow-jobs

Get Org-Level Workflow Jobs

read-only idempotent
get-org-level-runners

Get Org-Level Runners

read-only idempotent
get-organization-s-actions-runner-registration

Get an Organization's Actions Runner Registration Token

read-only
get-org-level-runner

Get an Org-Level Runner

read-only idempotent
delete-org-level-runner

Delete an Org-Level Runner

idempotent
update-org-level-runner

Update an Org-Level Runner

idempotent
get-org-level-workflow-runs

Get Org-Level Workflow Runs

read-only idempotent
list-organization-s-actions-secrets

List an Organization's Actions Secrets

read-only idempotent
create-update-secret-value-organization

Create or Update a Secret Value in an Organization

idempotent
delete-secret-organization

Delete a Secret in an Organization

idempotent
get-org-level-variables-list

Get an Org-Level Variables List

read-only idempotent
get-org-level-variable

Get an Org-Level Variable

read-only idempotent
update-org-level-variable

Update an Org-Level Variable

idempotent
create-org-level-variable

Create an Org-Level Variable

delete-org-level-variable

Delete an Org-Level Variable

idempotent
list-organization-s-activity-feeds

List an Organization's Activity Feeds

read-only idempotent
update-avatar

Update Avatar

delete-avatar

Delete Avatar

idempotent
list-users-blocked-organization

List Users Blocked by the Organization

read-only idempotent
check-if-user-is-blocked

Check if a User Is Blocked by the Organization

read-only idempotent
block-user

Block a User

idempotent
unblock-user

Unblock a User

idempotent
list-organization-s-webhooks

List an Organization'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-organization-s-labels

List an Organization's Labels

read-only idempotent
create-label-organization

Create a Label for an Organization

get-single-label

Get a Single Label

read-only idempotent
delete-label

Delete a Label

idempotent
update-label

Update a Label

idempotent
list-organization-s-members

List an Organization's Members

read-only idempotent
check-if-user-is-member

Check if a User Is a Member of an Organization

read-only idempotent
remove-member-organization

Remove a Member from an Organization

idempotent
list-organization-s-public-members

List an Organization's Public Members

read-only idempotent
check-if-user-is-public

Check if a User Is a Public Member of an Organization

read-only idempotent
publicize-user-s-membership

Publicize a User's Membership

idempotent
conceal-user-s-membership

Conceal a User's Membership

idempotent
rename-organization

Rename an Organization

list-organization-s-repos

List an Organization's Repos

read-only idempotent
create-repository-organization-2

Create a Repository in an Organization

delete-all-repositories-organization

Delete All Repositories in an Organization

idempotent
list-organization-s-teams

List an Organization's Teams

read-only idempotent
create-team

Create a Team

search-teams-within-organization

Search for Teams Within an Organization

read-only idempotent
get-team

Get a Team

read-only idempotent
delete-team

Delete a Team

idempotent
edit-team

Edit a Team

idempotent
list-team-s-activity-feeds

List a Team's Activity Feeds

read-only idempotent
list-team-s-members

List a Team's Members

read-only idempotent
list-particular-member-team

List a Particular Member of Team

read-only idempotent
add-team-member

Add a Team Member

idempotent
remove-team-member

Remove a Team Member

idempotent
list-team-s-repos

List a Team's Repos

read-only idempotent
list-particular-repo-team

List a Particular Repo of Team

read-only idempotent
add-repository-team

Add a Repository to a Team

idempotent
remove-repository-team

Remove a Repository from a Team

idempotent
list-current-user-s-organizations

List the Current User's Organizations

read-only idempotent
list-user-s-organizations

List a User's Organizations

read-only idempotent
get-user-permissions-organization

Get User Permissions in Organization

read-only idempotent

Capability Spec

rest-organization.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Gitea API — organization
  description: 'Gitea API — organization. 67 operations. Lead operation: Create a Repository in an Organization. Self-contained
    Naftiko capability covering one Gitea business surface.'
  tags:
  - Gitea
  - organization
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GITEA_API_KEY: GITEA_API_KEY
capability:
  consumes:
  - type: http
    namespace: rest-organization
    baseUri: https://gitea.com/api/v1
    description: Gitea API — organization business capability. Self-contained, no shared references.
    resources:
    - name: org-org-repos
      path: /org/{org}/repos
      operations:
      - name: createorgrepodeprecated
        method: POST
        description: Create a Repository in an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: org
          in: path
          type: string
          description: name of organization
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: orgs
      path: /orgs
      operations:
      - name: orggetall
        method: GET
        description: Get List of 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: orgcreate
        method: POST
        description: Create an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: orgs-org
      path: /orgs/{org}
      operations:
      - name: orgget
        method: GET
        description: Get an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: org
          in: path
          type: string
          description: name of the organization to get
          required: true
      - name: orgdelete
        method: DELETE
        description: Delete an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: org
          in: path
          type: string
          description: organization that is to be deleted
          required: true
      - name: orgedit
        method: PATCH
        description: Edit an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: org
          in: path
          type: string
          description: name of the organization to edit
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: orgs-org-actions-jobs
      path: /orgs/{org}/actions/jobs
      operations:
      - name: getorgworkflowjobs
        method: GET
        description: Get Org-Level Workflow Jobs
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: org
          in: path
          type: string
          description: name of the organization
          required: true
        - 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: orgs-org-actions-runners
      path: /orgs/{org}/actions/runners
      operations:
      - name: getorgrunners
        method: GET
        description: Get Org-Level Runners
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: org
          in: path
          type: string
          description: name of the organization
          required: true
        - name: disabled
          in: query
          type: boolean
          description: filter by disabled status (true or false)
    - name: orgs-org-actions-runners-registration-token
      path: /orgs/{org}/actions/runners/registration-token
      operations:
      - name: orgcreaterunnerregistrationtoken
        method: POST
        description: Get an Organization's Actions Runner Registration Token
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: org
          in: path
          type: string
          description: name of the organization
          required: true
    - name: orgs-org-actions-runners-runner_id
      path: /orgs/{org}/actions/runners/{runner_id}
      operations:
      - name: getorgrunner
        method: GET
        description: Get an Org-Level Runner
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: org
          in: path
          type: string
          description: name of the organization
          required: true
        - name: runner_id
          in: path
          type: string
          description: id of the runner
          required: true
      - name: deleteorgrunner
        method: DELETE
        description: Delete an Org-Level Runner
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: org
          in: path
          type: string
          description: name of the organization
          required: true
        - name: runner_id
          in: path
          type: string
          description: id of the runner
          required: true
      - name: updateorgrunner
        method: PATCH
        description: Update an Org-Level Runner
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: org
          in: path
          type: string
          description: name of the organization
          required: true
        - 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: orgs-org-actions-runs
      path: /orgs/{org}/actions/runs
      operations:
      - name: getorgworkflowruns
        method: GET
        description: Get Org-Level Workflow Runs
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: org
          in: path
          type: string
          description: name of the organization
          required: true
        - 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: orgs-org-actions-secrets
      path: /orgs/{org}/actions/secrets
      operations:
      - name: orglistactionssecrets
        method: GET
        description: List an Organization's Actions Secrets
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: org
          in: path
          type: string
          description: name of the organization
          required: true
        - 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: orgs-org-actions-secrets-secretname
      path: /orgs/{org}/actions/secrets/{secretname}
      operations:
      - name: updateorgsecret
        method: PUT
        description: Create or Update a Secret Value in an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: org
          in: path
          type: string
          description: name of organization
          required: true
        - name: secretname
          in: path
          type: string
          description: name of the secret
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: deleteorgsecret
        method: DELETE
        description: Delete a Secret in an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: org
          in: path
          type: string
          description: name of organization
          required: true
        - name: secretname
          in: path
          type: string
          description: name of the secret
          required: true
    - name: orgs-org-actions-variables
      path: /orgs/{org}/actions/variables
      operations:
      - name: getorgvariableslist
        method: GET
        description: Get an Org-Level Variables List
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: org
          in: path
          type: string
          description: name of the organization
          required: true
        - 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: orgs-org-actions-variables-variablename
      path: /orgs/{org}/actions/variables/{variablename}
      operations:
      - name: getorgvariable
        method: GET
        description: Get an Org-Level Variable
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: org
          in: path
          type: string
          description: name of the organization
          required: true
        - name: variablename
          in: path
          type: string
          description: name of the variable
          required: true
      - name: updateorgvariable
        method: PUT
        description: Update an Org-Level Variable
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: org
          in: path
          type: string
          description: name of the organization
          required: true
        - name: variablename
          in: path
          type: string
          description: name of the variable
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: createorgvariable
        method: POST
        description: Create an Org-Level Variable
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: org
          in: path
          type: string
          description: name of the organization
          required: true
        - name: variablename
          in: path
          type: string
          description: name of the variable
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: deleteorgvariable
        method: DELETE
        description: Delete an Org-Level Variable
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: org
          in: path
          type: string
          description: name of the organization
          required: true
        - name: variablename
          in: path
          type: string
          description: name of the variable
          required: true
    - name: orgs-org-activities-feeds
      path: /orgs/{org}/activities/feeds
      operations:
      - name: orglistactivityfeeds
        method: GET
        description: List an Organization's Activity Feeds
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: org
          in: path
          type: string
          description: name of the org
          required: true
        - name: date
          in: query
          type: string
          description: the date of the activities to be found
        - 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: orgs-org-avatar
      path: /orgs/{org}/avatar
      operations:
      - name: orgupdateavatar
        method: POST
        description: Update Avatar
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: org
          in: path
          type: string
          description: name of the organization
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: orgdeleteavatar
        method: DELETE
        description: Delete Avatar
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: org
          in: path
          type: string
          description: name of the organization
          required: true
    - name: orgs-org-blocks
      path: /orgs/{org}/blocks
      operations:
      - name: organizationlistblocks
        method: GET
        description: List Users Blocked by the Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: org
          in: path
          type: string
          description: name of the organization
          required: true
        - 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: orgs-org-blocks-username
      path: /orgs/{org}/blocks/{username}
      operations:
      - name: organizationcheckuserblock
        method: GET
        description: Check if a User Is Blocked by the Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: org
          in: path
          type: string
          description: name of the organization
          required: true
        - name: username
          in: path
          type: string
          description: username of the user to check
          required: true
      - name: organizationblockuser
        method: PUT
        description: Block a User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: org
          in: path
          type: string
          description: name of the organization
          required: true
        - name: username
          in: path
          type: string
          description: username of the user to block
          required: true
        - name: note
          in: query
          type: string
          description: optional note for the block
      - name: organizationunblockuser
        method: DELETE
        description: Unblock a User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: org
          in: path
          type: string
          description: name of the organization
          required: true
        - name: username
          in: path
          type: string
          description: username of the user to unblock
          required: true
    - name: orgs-org-hooks
      path: /orgs/{org}/hooks
      operations:
      - name: orglisthooks
        method: GET
        description: List an Organization's Webhooks
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: org
          in: path
          type: string
          description: name of the organization
          required: true
        - 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: orgcreatehook
        method: POST
        description: Create a Hook
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: org
          in: path
          type: string
          description: name of the organization
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: orgs-org-hooks-id
      path: /orgs/{org}/hooks/{id}
      operations:
      - name: orggethook
        method: GET
        description: Get a Hook
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: org
          in: path
          type: string
          description: name of the organization
          required: true
        - name: id
          in: path
          type: integer
          description: id of the hook to get
          required: true
      - name: orgdeletehook
        method: DELETE
        description: Delete a Hook
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: org
          in: path
          type: string
          description: name of the organization
          required: true
        - name: id
          in: path
          type: integer
          description: id of the hook to delete
          required: true
      - name: orgedithook
        method: PATCH
        description: Update a Hook
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: org
          in: path
          type: string
          description: name of the organization
          required: true
        - 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: orgs-org-labels
      path: /orgs/{org}/labels
      operations:
      - name: orglistlabels
        method: GET
        description: List an Organization's Labels
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: org
          in: path
          type: string
          description: name of the organization
          required: true
        - 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: orgcreatelabel
        method: POST
        description: Create a Label for an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: org
          in: path
          type: string
          description: name of the organization
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: orgs-org-labels-id
      path: /orgs/{org}/labels/{id}
      operations:
      - name: orggetlabel
        method: GET
        description: Get a Single Label
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: org
          in: path
          type: string
          description: name of the organization
          required: true
        - name: id
          in: path
          type: integer
          description: id of the label to get
          required: true
      - name: orgdeletelabel
        method: DELETE
        description: Delete a Label
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: org
          in: path
          type: string
          description: name of the organization
          required: true
        - name: id
          in: path
          type: integer
          description: id of the label to delete
          required: true
      - name: orgeditlabel
        method: PATCH
        description: Update a Label
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: org
          in: path
          type: string
          description: name of the organization
          required: true
        - name: id
          in: path
          type: integer
          description: id of the label to edit
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: orgs-org-members
      path: /orgs/{org}/members
      operations:
      - name: orglistmembers
        method: GET
        description: List an Organization's Members
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: org
          in: path
          type: string
          description: name of the organization
          required: true
        - 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: orgs-org-members-username
      path: /orgs/{org}/members/{username}
      operations:
      - name: orgismember
        method: GET
        description: Check if a User Is a Member of an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: org
          in: path
          type: string
          description: name of the organization
          required: true
        - name: username
          in: path
          type: string
          description: username of the user to check for an organization membership
          required: true
      - name: orgdeletemember
        method: DELETE
        description: Remove a Member from an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: org
          in: path
          type: string
          description: name of the organization
          required: true
        - name: username
          in: path
          type: string
          description: username of the user to remove from the organization
          required: true
    - name: orgs-org-public_members
      path: /orgs/{org}/public_members
      operations:
      - name: orglistpublicmembers
        method: GET
        description: List an Organization's Public Members
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: org
          in: path
          type: string
          description: name of the organization
          required: true
        - 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: orgs-org-public_members-username
      path: /orgs/{org}/public_members/{username}
      operations:
      - name: orgispublicmember
        method: GET
        description: Check if a User Is a Public Member of an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: org
          in: path
          type: string
          description: name of the organization
          required: true
        - name: username
          in: path
          type: string
          description: username of the user to check for a public organization membership
          required: true
      - name: orgpublicizemember
        method: PUT
        description: Publicize a User's Membership
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: org
          in: path
          type: string
          description: name of the organization
          required: true
        - name: username
          in: path
          type: string
          description: username of the user whose membership is to be publicized
          required: true
      - name: orgconcealmember
        method: DELETE
        description: Conceal a User's Membership
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: org
          in: path
          type: string
          description: name of the organization
          required: true
        - name: username
          in: path
          type: string
          description: username of the user whose membership is to be concealed
          required: true
    - name: orgs-org-rename
      path: /orgs/{org}/rename
      operations:
      - name: renameorg
        method: POST
        description: Rename an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: org
          in: path
          type: string
          description: existing org name
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: orgs-org-repos
      path: /orgs/{org}/repos
      operations:
      - name: orglistrepos
        method: GET
        description: List an Organization's Repos
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: org
          in: path
          type: string
          description: name of the organization
          required: true
        - 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: createorgrepo
        method: POST
        description: Create a Repository in an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: org
          in: path
          type: string
          description: name of organization
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: orgdeleterepos
        method: DELETE
        description: Delete All Repositories in an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: org
          in: path
          type: string
          description: name of the organization
          required: true
    - name: orgs-org-teams
      path: /orgs/{org}/teams
      operations:
      - name: orglistteams
        method: GET
        description: List an Organization's Teams
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: org
          in: path
          type: string
          description: name of the organization
          required: true
        - 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: orgcreateteam
        method: POST
        description: Create a Team
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: org
          in: path
          type: string
          description: name of the organization
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: orgs-org-teams-search
      path: /orgs/{org}/teams/search
      operations:
      - name: teamsearch
        method: GET
        description: Search for Teams Within an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: org
          in: path
          type: string
          description: name of the organization
          required: true
        - name: q
          in: query
          type: string
          description: keywords to search
        - name: include_desc
          in: query
          type: boolean
          description: include search within team description (defaults to true)
        - name: page
          in: query
          type: integer
          description: page number of results to return

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