GitHub · Capability

GitHub v3 REST API — Teams

GitHub v3 REST API — Teams. 63 operations. Lead operation: GitHub Get an External Group. Self-contained Naftiko capability covering one Github business surface.

Run with Naftiko GithubTeams

What You Can Do

GET
Teamsexternalidpgroupinfofororg — GitHub Get an External Group
/v1/orgs/{org}/external-group/{group-id}
GET
Teamslistexternalidpgroupsfororg — GitHub List External Groups in an Organization
/v1/orgs/{org}/external-groups
GET
Teamslist — GitHub List Teams
/v1/orgs/{org}/teams
POST
Teamscreate — GitHub Create a Team
/v1/orgs/{org}/teams
GET
Teamsgetbyname — GitHub Get a Team by Name
/v1/orgs/{org}/teams/{team-slug}
PATCH
Teamsupdateinorg — GitHub Update a Team
/v1/orgs/{org}/teams/{team-slug}
DELETE
Teamsdeleteinorg — GitHub Delete a Team
/v1/orgs/{org}/teams/{team-slug}
GET
Teamslistdiscussionsinorg — GitHub List Discussions
/v1/orgs/{org}/teams/{team-slug}/discussions
POST
Teamscreatediscussioninorg — GitHub Create a Discussion
/v1/orgs/{org}/teams/{team-slug}/discussions
GET
Teamsgetdiscussioninorg — GitHub Get a Discussion
/v1/orgs/{org}/teams/{team-slug}/discussions/{discussion-number}
PATCH
Teamsupdatediscussioninorg — GitHub Update a Discussion
/v1/orgs/{org}/teams/{team-slug}/discussions/{discussion-number}
DELETE
Teamsdeletediscussioninorg — GitHub Delete a Discussion
/v1/orgs/{org}/teams/{team-slug}/discussions/{discussion-number}
GET
Teamslistdiscussioncommentsinorg — GitHub List Discussion Comments
/v1/orgs/{org}/teams/{team-slug}/discussions/{discussion-number}/comments
POST
Teamscreatediscussioncommentinorg — GitHub Create a Discussion Comment
/v1/orgs/{org}/teams/{team-slug}/discussions/{discussion-number}/comments
GET
Teamsgetdiscussioncommentinorg — GitHub Get a Discussion Comment
/v1/orgs/{org}/teams/{team-slug}/discussions/{discussion-number}/comments/{comment-number}
PATCH
Teamsupdatediscussioncommentinorg — GitHub Update a Discussion Comment
/v1/orgs/{org}/teams/{team-slug}/discussions/{discussion-number}/comments/{comment-number}
DELETE
Teamsdeletediscussioncommentinorg — GitHub Delete a Discussion Comment
/v1/orgs/{org}/teams/{team-slug}/discussions/{discussion-number}/comments/{comment-number}
GET
Teamslistlinkedexternalidpgroupstoteamfororg — GitHub List a Connection Between an External Group and a Team
/v1/orgs/{org}/teams/{team-slug}/external-groups
PATCH
Teamslinkexternalidpgrouptoteamfororg — GitHub Update the Connection Between an External Group and a Team
/v1/orgs/{org}/teams/{team-slug}/external-groups
DELETE
Teamsunlinkexternalidpgroupfromteamfororg — GitHub Remove the Connection Between an External Group and a Team
/v1/orgs/{org}/teams/{team-slug}/external-groups
GET
Teamslistmembersinorg — GitHub List Team Members
/v1/orgs/{org}/teams/{team-slug}/members
GET
Teamsgetmembershipforuserinorg — GitHub Get Team Membership for a User
/v1/orgs/{org}/teams/{team-slug}/memberships/{username}
PUT
Teamsaddorupdatemembershipforuserinorg — GitHub Add or Update Team Membership for a User
/v1/orgs/{org}/teams/{team-slug}/memberships/{username}
DELETE
Teamsremovemembershipforuserinorg — GitHub Remove Team Membership for a User
/v1/orgs/{org}/teams/{team-slug}/memberships/{username}
GET
Teamslistprojectsinorg — GitHub List Team Projects
/v1/orgs/{org}/teams/{team-slug}/projects
GET
Teamscheckpermissionsforprojectinorg — GitHub Check Team Permissions for a Project
/v1/orgs/{org}/teams/{team-slug}/projects/{project-id}
PUT
Teamsaddorupdateprojectpermissionsinorg — GitHub Add or Update Team Project Permissions
/v1/orgs/{org}/teams/{team-slug}/projects/{project-id}
DELETE
Teamsremoveprojectinorg — GitHub Remove a Project from a Team
/v1/orgs/{org}/teams/{team-slug}/projects/{project-id}
GET
Teamslistreposinorg — GitHub List Team Repositories
/v1/orgs/{org}/teams/{team-slug}/repos
GET
Teamscheckpermissionsforrepoinorg — GitHub Check Team Permissions for a Repository
/v1/orgs/{org}/teams/{team-slug}/repos/{owner}/{repo}
PUT
Teamsaddorupdaterepopermissionsinorg — GitHub Add or Update Team Repository Permissions
/v1/orgs/{org}/teams/{team-slug}/repos/{owner}/{repo}
DELETE
Teamsremoverepoinorg — GitHub Remove a Repository from a Team
/v1/orgs/{org}/teams/{team-slug}/repos/{owner}/{repo}
GET
Teamslistchildinorg — GitHub List Child Teams
/v1/orgs/{org}/teams/{team-slug}/teams
GET
Teamsgetlegacy — GitHub Get a Team (Legacy)
/v1/teams/{team-id}
PATCH
Teamsupdatelegacy — GitHub Update a Team (Legacy)
/v1/teams/{team-id}
DELETE
Teamsdeletelegacy — GitHub Delete a Team (Legacy)
/v1/teams/{team-id}
GET
Teamslistdiscussionslegacy — GitHub List Discussions (Legacy)
/v1/teams/{team-id}/discussions
POST
Teamscreatediscussionlegacy — GitHub Create a Discussion (Legacy)
/v1/teams/{team-id}/discussions
GET
Teamsgetdiscussionlegacy — GitHub Get a Discussion (Legacy)
/v1/teams/{team-id}/discussions/{discussion-number}
PATCH
Teamsupdatediscussionlegacy — GitHub Update a Discussion (Legacy)
/v1/teams/{team-id}/discussions/{discussion-number}
DELETE
Teamsdeletediscussionlegacy — GitHub Delete a Discussion (Legacy)
/v1/teams/{team-id}/discussions/{discussion-number}
GET
Teamslistdiscussioncommentslegacy — GitHub List Discussion Comments (Legacy)
/v1/teams/{team-id}/discussions/{discussion-number}/comments
POST
Teamscreatediscussioncommentlegacy — GitHub Create a Discussion Comment (Legacy)
/v1/teams/{team-id}/discussions/{discussion-number}/comments
GET
Teamsgetdiscussioncommentlegacy — GitHub Get a Discussion Comment (Legacy)
/v1/teams/{team-id}/discussions/{discussion-number}/comments/{comment-number}
PATCH
Teamsupdatediscussioncommentlegacy — GitHub Update a Discussion Comment (Legacy)
/v1/teams/{team-id}/discussions/{discussion-number}/comments/{comment-number}
DELETE
Teamsdeletediscussioncommentlegacy — GitHub Delete a Discussion Comment (Legacy)
/v1/teams/{team-id}/discussions/{discussion-number}/comments/{comment-number}
GET
Teamslistmemberslegacy — GitHub List Team Members (Legacy)
/v1/teams/{team-id}/members
GET
Teamsgetmemberlegacy — GitHub Get Team Member (Legacy)
/v1/teams/{team-id}/members/{username}
PUT
Teamsaddmemberlegacy — GitHub Add Team Member (Legacy)
/v1/teams/{team-id}/members/{username}
DELETE
Teamsremovememberlegacy — GitHub Remove Team Member (Legacy)
/v1/teams/{team-id}/members/{username}
GET
Teamsgetmembershipforuserlegacy — GitHub Get Team Membership for a User (Legacy)
/v1/teams/{team-id}/memberships/{username}
PUT
Teamsaddorupdatemembershipforuserlegacy — GitHub Add or Update Team Membership for a User (Legacy)
/v1/teams/{team-id}/memberships/{username}
DELETE
Teamsremovemembershipforuserlegacy — GitHub Remove Team Membership for a User (Legacy)
/v1/teams/{team-id}/memberships/{username}
GET
Teamslistprojectslegacy — GitHub List Team Projects (Legacy)
/v1/teams/{team-id}/projects
GET
Teamscheckpermissionsforprojectlegacy — GitHub Check Team Permissions for a Project (Legacy)
/v1/teams/{team-id}/projects/{project-id}
PUT
Teamsaddorupdateprojectpermissionslegacy — GitHub Add or Update Team Project Permissions (Legacy)
/v1/teams/{team-id}/projects/{project-id}
DELETE
Teamsremoveprojectlegacy — GitHub Remove a Project from a Team (Legacy)
/v1/teams/{team-id}/projects/{project-id}
GET
Teamslistreposlegacy — GitHub List Team Repositories (Legacy)
/v1/teams/{team-id}/repos
GET
Teamscheckpermissionsforrepolegacy — GitHub Check Team Permissions for a Repository (Legacy)
/v1/teams/{team-id}/repos/{owner}/{repo}
PUT
Teamsaddorupdaterepopermissionslegacy — GitHub Add or Update Team Repository Permissions (Legacy)
/v1/teams/{team-id}/repos/{owner}/{repo}
DELETE
Teamsremoverepolegacy — GitHub Remove a Repository from a Team (Legacy)
/v1/teams/{team-id}/repos/{owner}/{repo}
GET
Teamslistchildlegacy — GitHub List Child Teams (Legacy)
/v1/teams/{team-id}/teams
GET
Teamslistforauthenticateduser — GitHub List Teams for the Authenticated User
/v1/user/teams

MCP Tools

github-get-external-group

GitHub Get an External Group

read-only idempotent
github-list-external-groups-organization

GitHub List External Groups in an Organization

read-only idempotent
github-list-teams

GitHub List Teams

read-only idempotent
github-create-team

GitHub Create a Team

github-get-team-name

GitHub Get a Team by Name

read-only idempotent
github-update-team

GitHub Update a Team

idempotent
github-delete-team

GitHub Delete a Team

idempotent
github-list-discussions

GitHub List Discussions

read-only idempotent
github-create-discussion

GitHub Create a Discussion

github-get-discussion

GitHub Get a Discussion

read-only idempotent
github-update-discussion

GitHub Update a Discussion

idempotent
github-delete-discussion

GitHub Delete a Discussion

idempotent
github-list-discussion-comments

GitHub List Discussion Comments

read-only idempotent
github-create-discussion-comment

GitHub Create a Discussion Comment

github-get-discussion-comment

GitHub Get a Discussion Comment

read-only idempotent
github-update-discussion-comment

GitHub Update a Discussion Comment

idempotent
github-delete-discussion-comment

GitHub Delete a Discussion Comment

idempotent
github-list-connection-between-external

GitHub List a Connection Between an External Group and a Team

read-only idempotent
github-update-connection-between-external

GitHub Update the Connection Between an External Group and a Team

idempotent
github-remove-connection-between-external

GitHub Remove the Connection Between an External Group and a Team

idempotent
github-list-team-members

GitHub List Team Members

read-only idempotent
github-get-team-membership-user

GitHub Get Team Membership for a User

read-only idempotent
github-add-update-team-membership

GitHub Add or Update Team Membership for a User

idempotent
github-remove-team-membership-user

GitHub Remove Team Membership for a User

idempotent
github-list-team-projects

GitHub List Team Projects

read-only idempotent
github-check-team-permissions-project

GitHub Check Team Permissions for a Project

read-only idempotent
github-add-update-team-project

GitHub Add or Update Team Project Permissions

idempotent
github-remove-project-team

GitHub Remove a Project from a Team

idempotent
github-list-team-repositories

GitHub List Team Repositories

read-only idempotent
github-check-team-permissions-repository

GitHub Check Team Permissions for a Repository

read-only idempotent
github-add-update-team-repository

GitHub Add or Update Team Repository Permissions

idempotent
github-remove-repository-team

GitHub Remove a Repository from a Team

idempotent
github-list-child-teams

GitHub List Child Teams

read-only idempotent
github-get-team-legacy

GitHub Get a Team (Legacy)

read-only idempotent
github-update-team-legacy

GitHub Update a Team (Legacy)

idempotent
github-delete-team-legacy

GitHub Delete a Team (Legacy)

idempotent
github-list-discussions-legacy

GitHub List Discussions (Legacy)

read-only idempotent
github-create-discussion-legacy

GitHub Create a Discussion (Legacy)

github-get-discussion-legacy

GitHub Get a Discussion (Legacy)

read-only idempotent
github-update-discussion-legacy

GitHub Update a Discussion (Legacy)

idempotent
github-delete-discussion-legacy

GitHub Delete a Discussion (Legacy)

idempotent
github-list-discussion-comments-legacy

GitHub List Discussion Comments (Legacy)

read-only idempotent
github-create-discussion-comment-legacy

GitHub Create a Discussion Comment (Legacy)

github-get-discussion-comment-legacy

GitHub Get a Discussion Comment (Legacy)

read-only idempotent
github-update-discussion-comment-legacy

GitHub Update a Discussion Comment (Legacy)

idempotent
github-delete-discussion-comment-legacy

GitHub Delete a Discussion Comment (Legacy)

idempotent
github-list-team-members-legacy

GitHub List Team Members (Legacy)

read-only idempotent
github-get-team-member-legacy

GitHub Get Team Member (Legacy)

read-only idempotent
github-add-team-member-legacy

GitHub Add Team Member (Legacy)

idempotent
github-remove-team-member-legacy

GitHub Remove Team Member (Legacy)

idempotent
github-get-team-membership-user-2

GitHub Get Team Membership for a User (Legacy)

read-only idempotent
github-add-update-team-membership-2

GitHub Add or Update Team Membership for a User (Legacy)

idempotent
github-remove-team-membership-user-2

GitHub Remove Team Membership for a User (Legacy)

idempotent
github-list-team-projects-legacy

GitHub List Team Projects (Legacy)

read-only idempotent
github-check-team-permissions-project-2

GitHub Check Team Permissions for a Project (Legacy)

read-only idempotent
github-add-update-team-project-2

GitHub Add or Update Team Project Permissions (Legacy)

idempotent
github-remove-project-team-legacy

GitHub Remove a Project from a Team (Legacy)

idempotent
github-list-team-repositories-legacy

GitHub List Team Repositories (Legacy)

read-only idempotent
github-check-team-permissions-repository-2

GitHub Check Team Permissions for a Repository (Legacy)

read-only idempotent
github-add-update-team-repository-2

GitHub Add or Update Team Repository Permissions (Legacy)

idempotent
github-remove-repository-team-legacy

GitHub Remove a Repository from a Team (Legacy)

idempotent
github-list-child-teams-legacy

GitHub List Child Teams (Legacy)

read-only idempotent
github-list-teams-authenticated-user

GitHub List Teams for the Authenticated User

read-only idempotent

Capability Spec

github-teams.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: GitHub v3 REST API — Teams
  description: 'GitHub v3 REST API — Teams. 63 operations. Lead operation: GitHub Get an External Group. Self-contained Naftiko
    capability covering one Github business surface.'
  tags:
  - Github
  - Teams
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GITHUB_API_KEY: GITHUB_API_KEY
capability:
  consumes:
  - type: http
    namespace: github-teams
    baseUri: ''
    description: GitHub v3 REST API — Teams business capability. Self-contained, no shared references.
    resources:
    - name: orgs-org-external-group-group_id
      path: /orgs/{org}/external-group/{group_id}
      operations:
      - name: teamsexternalidpgroupinfofororg
        method: GET
        description: GitHub Get an External Group
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: orgs-org-external-groups
      path: /orgs/{org}/external-groups
      operations:
      - name: teamslistexternalidpgroupsfororg
        method: GET
        description: GitHub List External Groups in an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: page
          in: query
          type: integer
          description: Page token
        - name: display_name
          in: query
          type: string
          description: Limits the list to groups containing the text in the group name
    - name: orgs-org-teams
      path: /orgs/{org}/teams
      operations:
      - name: teamslist
        method: GET
        description: GitHub List Teams
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: teamscreate
        method: POST
        description: GitHub Create a Team
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: orgs-org-teams-team_slug
      path: /orgs/{org}/teams/{team_slug}
      operations:
      - name: teamsgetbyname
        method: GET
        description: GitHub Get a Team by Name
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: teamsupdateinorg
        method: PATCH
        description: GitHub Update a Team
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: teamsdeleteinorg
        method: DELETE
        description: GitHub Delete a Team
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: orgs-org-teams-team_slug-discussions
      path: /orgs/{org}/teams/{team_slug}/discussions
      operations:
      - name: teamslistdiscussionsinorg
        method: GET
        description: GitHub List Discussions
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: pinned
          in: query
          type: string
          description: Pinned discussions only filter
      - name: teamscreatediscussioninorg
        method: POST
        description: GitHub Create a Discussion
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: orgs-org-teams-team_slug-discussions-discussion_number
      path: /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}
      operations:
      - name: teamsgetdiscussioninorg
        method: GET
        description: GitHub Get a Discussion
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: teamsupdatediscussioninorg
        method: PATCH
        description: GitHub Update a Discussion
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: teamsdeletediscussioninorg
        method: DELETE
        description: GitHub Delete a Discussion
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: orgs-org-teams-team_slug-discussions-discussion_number-comments
      path: /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments
      operations:
      - name: teamslistdiscussioncommentsinorg
        method: GET
        description: GitHub List Discussion Comments
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: teamscreatediscussioncommentinorg
        method: POST
        description: GitHub Create a Discussion Comment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: orgs-org-teams-team_slug-discussions-discussion_number-comments-comment_number
      path: /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}
      operations:
      - name: teamsgetdiscussioncommentinorg
        method: GET
        description: GitHub Get a Discussion Comment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: teamsupdatediscussioncommentinorg
        method: PATCH
        description: GitHub Update a Discussion Comment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: teamsdeletediscussioncommentinorg
        method: DELETE
        description: GitHub Delete a Discussion Comment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: orgs-org-teams-team_slug-external-groups
      path: /orgs/{org}/teams/{team_slug}/external-groups
      operations:
      - name: teamslistlinkedexternalidpgroupstoteamfororg
        method: GET
        description: GitHub List a Connection Between an External Group and a Team
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: teamslinkexternalidpgrouptoteamfororg
        method: PATCH
        description: GitHub Update the Connection Between an External Group and a Team
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: teamsunlinkexternalidpgroupfromteamfororg
        method: DELETE
        description: GitHub Remove the Connection Between an External Group and a Team
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: orgs-org-teams-team_slug-members
      path: /orgs/{org}/teams/{team_slug}/members
      operations:
      - name: teamslistmembersinorg
        method: GET
        description: GitHub List Team Members
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: role
          in: query
          type: string
          description: Filters members returned by their role in the team.
    - name: orgs-org-teams-team_slug-memberships-username
      path: /orgs/{org}/teams/{team_slug}/memberships/{username}
      operations:
      - name: teamsgetmembershipforuserinorg
        method: GET
        description: GitHub Get Team Membership for a User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: teamsaddorupdatemembershipforuserinorg
        method: PUT
        description: GitHub Add or Update Team Membership for a User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: teamsremovemembershipforuserinorg
        method: DELETE
        description: GitHub Remove Team Membership for a User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: orgs-org-teams-team_slug-projects
      path: /orgs/{org}/teams/{team_slug}/projects
      operations:
      - name: teamslistprojectsinorg
        method: GET
        description: GitHub List Team Projects
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: orgs-org-teams-team_slug-projects-project_id
      path: /orgs/{org}/teams/{team_slug}/projects/{project_id}
      operations:
      - name: teamscheckpermissionsforprojectinorg
        method: GET
        description: GitHub Check Team Permissions for a Project
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: teamsaddorupdateprojectpermissionsinorg
        method: PUT
        description: GitHub Add or Update Team Project Permissions
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: teamsremoveprojectinorg
        method: DELETE
        description: GitHub Remove a Project from a Team
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: orgs-org-teams-team_slug-repos
      path: /orgs/{org}/teams/{team_slug}/repos
      operations:
      - name: teamslistreposinorg
        method: GET
        description: GitHub List Team Repositories
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: orgs-org-teams-team_slug-repos-owner-repo
      path: /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}
      operations:
      - name: teamscheckpermissionsforrepoinorg
        method: GET
        description: GitHub Check Team Permissions for a Repository
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: teamsaddorupdaterepopermissionsinorg
        method: PUT
        description: GitHub Add or Update Team Repository Permissions
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: teamsremoverepoinorg
        method: DELETE
        description: GitHub Remove a Repository from a Team
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: orgs-org-teams-team_slug-teams
      path: /orgs/{org}/teams/{team_slug}/teams
      operations:
      - name: teamslistchildinorg
        method: GET
        description: GitHub List Child Teams
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: teams-team_id
      path: /teams/{team_id}
      operations:
      - name: teamsgetlegacy
        method: GET
        description: GitHub Get a Team (Legacy)
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: teamsupdatelegacy
        method: PATCH
        description: GitHub Update a Team (Legacy)
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: teamsdeletelegacy
        method: DELETE
        description: GitHub Delete a Team (Legacy)
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: teams-team_id-discussions
      path: /teams/{team_id}/discussions
      operations:
      - name: teamslistdiscussionslegacy
        method: GET
        description: GitHub List Discussions (Legacy)
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: teamscreatediscussionlegacy
        method: POST
        description: GitHub Create a Discussion (Legacy)
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: teams-team_id-discussions-discussion_number
      path: /teams/{team_id}/discussions/{discussion_number}
      operations:
      - name: teamsgetdiscussionlegacy
        method: GET
        description: GitHub Get a Discussion (Legacy)
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: teamsupdatediscussionlegacy
        method: PATCH
        description: GitHub Update a Discussion (Legacy)
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: teamsdeletediscussionlegacy
        method: DELETE
        description: GitHub Delete a Discussion (Legacy)
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: teams-team_id-discussions-discussion_number-comments
      path: /teams/{team_id}/discussions/{discussion_number}/comments
      operations:
      - name: teamslistdiscussioncommentslegacy
        method: GET
        description: GitHub List Discussion Comments (Legacy)
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: teamscreatediscussioncommentlegacy
        method: POST
        description: GitHub Create a Discussion Comment (Legacy)
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: teams-team_id-discussions-discussion_number-comments-comment_number
      path: /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}
      operations:
      - name: teamsgetdiscussioncommentlegacy
        method: GET
        description: GitHub Get a Discussion Comment (Legacy)
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: teamsupdatediscussioncommentlegacy
        method: PATCH
        description: GitHub Update a Discussion Comment (Legacy)
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: teamsdeletediscussioncommentlegacy
        method: DELETE
        description: GitHub Delete a Discussion Comment (Legacy)
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: teams-team_id-members
      path: /teams/{team_id}/members
      operations:
      - name: teamslistmemberslegacy
        method: GET
        description: GitHub List Team Members (Legacy)
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: role
          in: query
          type: string
          description: Filters members returned by their role in the team.
    - name: teams-team_id-members-username
      path: /teams/{team_id}/members/{username}
      operations:
      - name: teamsgetmemberlegacy
        method: GET
        description: GitHub Get Team Member (Legacy)
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: teamsaddmemberlegacy
        method: PUT
        description: GitHub Add Team Member (Legacy)
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: teamsremovememberlegacy
        method: DELETE
        description: GitHub Remove Team Member (Legacy)
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: teams-team_id-memberships-username
      path: /teams/{team_id}/memberships/{username}
      operations:
      - name: teamsgetmembershipforuserlegacy
        method: GET
        description: GitHub Get Team Membership for a User (Legacy)
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: teamsaddorupdatemembershipforuserlegacy
        method: PUT
        description: GitHub Add or Update Team Membership for a User (Legacy)
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: teamsremovemembershipforuserlegacy
        method: DELETE
        description: GitHub Remove Team Membership for a User (Legacy)
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: teams-team_id-projects
      path: /teams/{team_id}/projects
      operations:
      - name: teamslistprojectslegacy
        method: GET
        description: GitHub List Team Projects (Legacy)
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: teams-team_id-projects-project_id
      path: /teams/{team_id}/projects/{project_id}
      operations:
      - name: teamscheckpermissionsforprojectlegacy
        method: GET
        description: GitHub Check Team Permissions for a Project (Legacy)
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: teamsaddorupdateprojectpermissionslegacy
        method: PUT
        description: GitHub Add or Update Team Project Permissions (Legacy)
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: teamsremoveprojectlegacy
        method: DELETE
        description: GitHub Remove a Project from a Team (Legacy)
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: teams-team_id-repos
      path: /teams/{team_id}/repos
      operations:
      - name: teamslistreposlegacy
        method: GET
        description: GitHub List Team Repositories (Legacy)
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: teams-team_id-repos-owner-repo
      path: /teams/{team_id}/repos/{owner}/{repo}
      operations:
      - name: teamscheckpermissionsforrepolegacy
        method: GET
        description: GitHub Check Team Permissions for a Repository (Legacy)
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: teamsaddorupdaterepopermissionslegacy
        method: PUT
        description: GitHub Add or Update Team Repository Permissions (Legacy)
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: teamsremoverepolegacy
        method: DELETE
        description: GitHub Remove a Repository from a Team (Legacy)
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: teams-team_id-teams
      path: /teams/{team_id}/teams
      operations:
      - name: teamslistchildlegacy
        method: GET
        description: GitHub List Child Teams (Legacy)
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: user-teams
      path: /user/teams
      operations:
      - name: teamslistforauthenticateduser
        method: GET
        description: GitHub List Teams for the Authenticated User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
  exposes:
  - type: rest
    namespace: github-teams-rest
    port: 8080
    description: REST adapter for GitHub v3 REST API — Teams. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/orgs/{org}/external-group/{group-id}
      name: orgs-org-external-group-group-id
      description: REST surface for orgs-org-external-group-group_id.
      operations:
      - method: GET
        name: teamsexternalidpgroupinfofororg
        description: GitHub Get an External Group
        call: github-teams.teamsexternalidpgroupinfofororg
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/external-groups
      name: orgs-org-external-groups
      description: REST surface for orgs-org-external-groups.
      operations:
      - method: GET
        name: teamslistexternalidpgroupsfororg
        description: GitHub List External Groups in an Organization
        call: github-teams.teamslistexternalidpgroupsfororg
        with:
          page: rest.page
          display_name: rest.display_name
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/teams
      name: orgs-org-teams
      description: REST surface for orgs-org-teams.
      operations:
      - method: GET
        name: teamslist
        description: GitHub List Teams
        call: github-teams.teamslist
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: teamscreate
        description: GitHub Create a Team
        call: github-teams.teamscreate
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/teams/{team-slug}
      name: orgs-org-teams-team-slug
      description: REST surface for orgs-org-teams-team_slug.
      operations:
      - method: GET
        name: teamsgetbyname
        description: GitHub Get a Team by Name
        call: github-teams.teamsgetbyname
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: teamsupdateinorg
        description: GitHub Update a Team
        call: github-teams.teamsupdateinorg
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: teamsdeleteinorg
        description: GitHub Delete a Team
        call: github-teams.teamsdeleteinorg
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/teams/{team-slug}/discussions
      name: orgs-org-teams-team-slug-discussions
      description: REST surface for orgs-org-teams-team_slug-discussions.
      operations:
      - method: GET
        name: teamslistdiscussionsinorg
        description: GitHub List Discussions
        call: github-teams.teamslistdiscussionsinorg
        with:
          pinned: rest.pinned
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: teamscreatediscussioninorg
        description: GitHub Create a Discussion
        call: github-teams.teamscreatediscussioninorg
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/teams/{team-slug}/discussions/{discussion-number}
      name: orgs-org-teams-team-slug-discussions-discussion-number
      description: REST surface for orgs-org-teams-team_slug-discussions-discussion_number.
      operations:
      - method: GET
        name: teamsgetdiscussioninorg
        description: GitHub Get a Discussion
        call: github-teams.teamsgetdiscussioninorg
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: teamsupdatediscussioninorg
        description: GitHub Update a Discussion
        call: github-teams.teamsupdatediscussioninorg
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: teamsdeletediscussioninorg
        description: GitHub Delete a Discussion
        call: github-teams.teamsdeletediscussioninorg
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/teams/{team-slug}/discussions/{discussion-number}/comments
      name: orgs-org-teams-team-slug-discussions-discussion-number-comments
      description: REST surface for orgs-org-teams-team_slug-discussions-discussion_number-comments.
      operations:
      - method: GET
        name: teamslistdiscussioncommentsinorg
        description: GitHub List Discussion Comments
        call: github-teams.teamslistdiscussioncommentsinorg
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: teamscreatediscussioncommentinorg
        description: GitHub Create a Discussion Comment
        call: github-teams.teamscreatediscussioncommentinorg
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/teams/{team-slug}/discussions/{discussion-number}/comments/{comment-number}
      name: orgs-org-teams-team-slug-discussions-discussion-number-comments-comment-number
      description: REST surface for orgs-org-teams-team_slug-discussions-discussion_number-comments-comment_number.
      operations:
      - method: GET
        name: teamsgetdiscussioncommentinorg
        description: GitHub Get a Discussion Comment
        call: github-teams.teamsgetdiscussioncommentinorg
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: teamsupdatediscussioncommentinorg
        description: GitHub Update a Discussion Comment
        call: github-teams.teamsupdatediscussioncommentinorg
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: teamsdeletediscussioncommentinorg
        description: GitHub Delete a Discussion Comment
        call: github-teams.teamsdeletediscussioncommentinorg
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/teams/{team-slug}/external-groups
      name: orgs-org-teams-team-slug-external-groups
      description: REST surface for orgs-org-teams-team_slug-external-groups.
      operations:
      - method: GET
        name: teamslistlinkedexternalidpgroupstoteamfororg
        description: GitHub List a Connection Between an External Group and a Team
        call: github-teams.teamslistlinkedexternalidpgroupstoteamfororg
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: teamslinkexternalidpgrouptoteamfororg
        description: GitHub Update the Connection Between an External Group and a Team
        call: github-teams.teamslinkexternalidpgrouptoteamfororg
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: teamsunlinkexternalidpgroupfromteamfororg
        description: GitHub Remove the Connection Between an External Group and a Team
        call: github-teams.teamsunlinkexternalidpgroupfromteamfororg
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/teams/{team-slug}/members
      name: orgs-org-teams-team-slug-members
      description: REST surface for orgs-org-teams-team_slug-members.
      operations:
      - method: GET
        name: teamslistmembersinorg
        description: GitHub List Team Members
        call: github-teams.teamslistmembersinorg
        with:
          role: rest.role
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/teams/{team-slug}/memberships/{username}
      name: orgs-org-teams-team-slug-memberships-username
      description: REST surface for orgs-org-teams-team_slug-memberships-username.
      operations:
      - method: GET
        name: teamsgetmembershipforuserinorg
        description: GitHub Get Team Membership for a User
        call: github-teams.teamsgetmembershipforuserinorg
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: teamsaddorupdatemembershipforuserinorg
        description: GitHub Add or Update Team Membership for a User
        call: github-teams.teamsaddorupdatemembershipforuserinorg
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: teamsremovemembershipforuserinorg
        description: GitHub Remove Team Membership for a User
        call: github-teams.teamsremovemembershipforuserinorg
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/teams/{team-slug}/projects
      name: orgs-org-teams-team-slug-projects
      description: REST surface for orgs-org-teams-team_slug-projects.
      operations:
      - method: GET
        name: teamslistprojectsinorg
        description: GitHub List Team Projects
        call: github-teams.teamslistprojectsinorg
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/teams/{team-slug}/projects/{project-id}
      name: orgs-org-teams-team-slug-projects-project-id
      description: REST surface for orgs-org-teams-team_slug-projects-project_id.
      operations:
      - method: GET
        name: teamscheckpermissionsforproj

# --- truncated at 32 KB (64 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/github/refs/heads/main/capabilities/github-teams.yaml