GitHub · Capability

GitHub Teams API — Update

GitHub Teams API — Update. 14 operations. Lead operation: GitHub Update Ldap Mapping for Team. Self-contained Naftiko capability covering one Github business surface.

Run with Naftiko GithubUpdate

What You Can Do

PATCH
Updateldapmappingforteam — GitHub Update Ldap Mapping for Team
/v1/admin/ldap/teams/{team-id}/mapping
PATCH
Updateteam — GitHub Update Team
/v1/orgs/{org}/teams/{team-slug}
PATCH
Updatediscussion — GitHub Update Discussion
/v1/orgs/{org}/teams/{team-slug}/discussions/{discussion-number}
PATCH
Updatediscussioncomment — GitHub Update Discussion Comment
/v1/orgs/{org}/teams/{team-slug}/discussions/{discussion-number}/comments/{comment-number}
PATCH
Updatetheconnectionbetweenanexternalgroupandteam — GitHub Update the Connection Between an External Group and Team
/v1/orgs/{org}/teams/{team-slug}/external-groups
PUT
Addorupdateteammembershipforuser — GitHub Add or Update Team Membership for User
/v1/orgs/{org}/teams/{team-slug}/memberships/{username}
PUT
Addorupdateteamprojectpermissions — GitHub Add or Update Team Project Permissions
/v1/orgs/{org}/teams/{team-slug}/projects/{project-id}
PUT
Addorupdateteamrepositorypermissions — GitHub Add or Update Team Repository Permissions
/v1/orgs/{org}/teams/{team-slug}/repos/{owner}/{repo}
PATCH
Updateteamlegacy — GitHub Update Team (legacy)
/v1/teams/{team-id}
PATCH
Updatediscussionlegacy — GitHub Update Discussion (legacy)
/v1/teams/{team-id}/discussions/{discussion-number}
PATCH
Updatediscussioncommentlegacy — GitHub Update Discussion Comment (legacy)
/v1/teams/{team-id}/discussions/{discussion-number}/comments/{comment-number}
PUT
Addorupdateteammembershipforuserlegacy — GitHub Add or Update Team Membership for User (legacy)
/v1/teams/{team-id}/memberships/{username}
PUT
Addorupdateteamprojectpermissionslegacy — GitHub Add or Update Team Project Permissions (legacy)
/v1/teams/{team-id}/projects/{project-id}
PUT
Addorupdateteamrepositorypermissionslegacy — GitHub Add or Update Team Repository Permissions (legacy)
/v1/teams/{team-id}/repos/{owner}/{repo}

MCP Tools

github-update-ldap-mapping-team

GitHub Update Ldap Mapping for Team

idempotent
github-update-team

GitHub Update Team

idempotent
github-update-discussion

GitHub Update Discussion

idempotent
github-update-discussion-comment

GitHub Update Discussion Comment

idempotent
github-update-connection-between-external

GitHub Update the Connection Between an External Group and Team

idempotent
github-add-update-team-membership

GitHub Add or Update Team Membership for User

idempotent
github-add-update-team-project

GitHub Add or Update Team Project Permissions

idempotent
github-add-update-team-repository

GitHub Add or Update Team Repository Permissions

idempotent
github-update-team-legacy

GitHub Update Team (legacy)

idempotent
github-update-discussion-legacy

GitHub Update Discussion (legacy)

idempotent
github-update-discussion-comment-legacy

GitHub Update Discussion Comment (legacy)

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

GitHub Add or Update Team Membership for User (legacy)

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

GitHub Add or Update Team Project Permissions (legacy)

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

GitHub Add or Update Team Repository Permissions (legacy)

idempotent

Capability Spec

teams-update.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: GitHub Teams API — Update
  description: 'GitHub Teams API — Update. 14 operations. Lead operation: GitHub Update Ldap Mapping for Team. Self-contained
    Naftiko capability covering one Github business surface.'
  tags:
  - Github
  - Update
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GITHUB_API_KEY: GITHUB_API_KEY
capability:
  consumes:
  - type: http
    namespace: teams-update
    baseUri: ''
    description: GitHub Teams API — Update business capability. Self-contained, no shared references.
    resources:
    - name: admin-ldap-teams-team_id-mapping
      path: /admin/ldap/teams/{team_id}/mapping
      operations:
      - name: updateldapmappingforteam
        method: PATCH
        description: GitHub Update Ldap Mapping for 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: updateteam
        method: PATCH
        description: GitHub Update Team
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: orgs-org-teams-team_slug-discussions-discussion_number
      path: /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}
      operations:
      - name: updatediscussion
        method: PATCH
        description: GitHub Update Discussion
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - 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: updatediscussioncomment
        method: PATCH
        description: GitHub Update 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-external-groups
      path: /orgs/{org}/teams/{team_slug}/external-groups
      operations:
      - name: updatetheconnectionbetweenanexternalgroupandteam
        method: PATCH
        description: GitHub Update the Connection Between an External Group and 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-memberships-username
      path: /orgs/{org}/teams/{team_slug}/memberships/{username}
      operations:
      - name: addorupdateteammembershipforuser
        method: PUT
        description: GitHub Add or Update Team Membership for User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: orgs-org-teams-team_slug-projects-project_id
      path: /orgs/{org}/teams/{team_slug}/projects/{project_id}
      operations:
      - name: addorupdateteamprojectpermissions
        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: orgs-org-teams-team_slug-repos-owner-repo
      path: /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}
      operations:
      - name: addorupdateteamrepositorypermissions
        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: teams-team_id
      path: /teams/{team_id}
      operations:
      - name: updateteamlegacy
        method: PATCH
        description: GitHub Update Team (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: updatediscussionlegacy
        method: PATCH
        description: GitHub Update Discussion (legacy)
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: teams-team_id-discussions-discussion_number-comments-comment_number
      path: /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}
      operations:
      - name: updatediscussioncommentlegacy
        method: PATCH
        description: GitHub Update 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-memberships-username
      path: /teams/{team_id}/memberships/{username}
      operations:
      - name: addorupdateteammembershipforuserlegacy
        method: PUT
        description: GitHub Add or Update Team Membership for User (legacy)
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: teams-team_id-projects-project_id
      path: /teams/{team_id}/projects/{project_id}
      operations:
      - name: addorupdateteamprojectpermissionslegacy
        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: teams-team_id-repos-owner-repo
      path: /teams/{team_id}/repos/{owner}/{repo}
      operations:
      - name: addorupdateteamrepositorypermissionslegacy
        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
    authentication:
      type: bearer
      token: '{{env.GITHUB_API_KEY}}'
  exposes:
  - type: rest
    namespace: teams-update-rest
    port: 8080
    description: REST adapter for GitHub Teams API — Update. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/admin/ldap/teams/{team-id}/mapping
      name: admin-ldap-teams-team-id-mapping
      description: REST surface for admin-ldap-teams-team_id-mapping.
      operations:
      - method: PATCH
        name: updateldapmappingforteam
        description: GitHub Update Ldap Mapping for Team
        call: teams-update.updateldapmappingforteam
        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: PATCH
        name: updateteam
        description: GitHub Update Team
        call: teams-update.updateteam
        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: PATCH
        name: updatediscussion
        description: GitHub Update Discussion
        call: teams-update.updatediscussion
        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: PATCH
        name: updatediscussioncomment
        description: GitHub Update Discussion Comment
        call: teams-update.updatediscussioncomment
        with:
          body: rest.body
        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: PATCH
        name: updatetheconnectionbetweenanexternalgroupandteam
        description: GitHub Update the Connection Between an External Group and Team
        call: teams-update.updatetheconnectionbetweenanexternalgroupandteam
        with:
          body: rest.body
        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: PUT
        name: addorupdateteammembershipforuser
        description: GitHub Add or Update Team Membership for User
        call: teams-update.addorupdateteammembershipforuser
        with:
          body: rest.body
        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: PUT
        name: addorupdateteamprojectpermissions
        description: GitHub Add or Update Team Project Permissions
        call: teams-update.addorupdateteamprojectpermissions
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/teams/{team-slug}/repos/{owner}/{repo}
      name: orgs-org-teams-team-slug-repos-owner-repo
      description: REST surface for orgs-org-teams-team_slug-repos-owner-repo.
      operations:
      - method: PUT
        name: addorupdateteamrepositorypermissions
        description: GitHub Add or Update Team Repository Permissions
        call: teams-update.addorupdateteamrepositorypermissions
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/teams/{team-id}
      name: teams-team-id
      description: REST surface for teams-team_id.
      operations:
      - method: PATCH
        name: updateteamlegacy
        description: GitHub Update Team (legacy)
        call: teams-update.updateteamlegacy
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/teams/{team-id}/discussions/{discussion-number}
      name: teams-team-id-discussions-discussion-number
      description: REST surface for teams-team_id-discussions-discussion_number.
      operations:
      - method: PATCH
        name: updatediscussionlegacy
        description: GitHub Update Discussion (legacy)
        call: teams-update.updatediscussionlegacy
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/teams/{team-id}/discussions/{discussion-number}/comments/{comment-number}
      name: teams-team-id-discussions-discussion-number-comments-comment-number
      description: REST surface for teams-team_id-discussions-discussion_number-comments-comment_number.
      operations:
      - method: PATCH
        name: updatediscussioncommentlegacy
        description: GitHub Update Discussion Comment (legacy)
        call: teams-update.updatediscussioncommentlegacy
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/teams/{team-id}/memberships/{username}
      name: teams-team-id-memberships-username
      description: REST surface for teams-team_id-memberships-username.
      operations:
      - method: PUT
        name: addorupdateteammembershipforuserlegacy
        description: GitHub Add or Update Team Membership for User (legacy)
        call: teams-update.addorupdateteammembershipforuserlegacy
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/teams/{team-id}/projects/{project-id}
      name: teams-team-id-projects-project-id
      description: REST surface for teams-team_id-projects-project_id.
      operations:
      - method: PUT
        name: addorupdateteamprojectpermissionslegacy
        description: GitHub Add or Update Team Project Permissions (legacy)
        call: teams-update.addorupdateteamprojectpermissionslegacy
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/teams/{team-id}/repos/{owner}/{repo}
      name: teams-team-id-repos-owner-repo
      description: REST surface for teams-team_id-repos-owner-repo.
      operations:
      - method: PUT
        name: addorupdateteamrepositorypermissionslegacy
        description: GitHub Add or Update Team Repository Permissions (legacy)
        call: teams-update.addorupdateteamrepositorypermissionslegacy
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: teams-update-mcp
    port: 9090
    transport: http
    description: MCP adapter for GitHub Teams API — Update. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: github-update-ldap-mapping-team
      description: GitHub Update Ldap Mapping for Team
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: teams-update.updateldapmappingforteam
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: github-update-team
      description: GitHub Update Team
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: teams-update.updateteam
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: github-update-discussion
      description: GitHub Update Discussion
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: teams-update.updatediscussion
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: github-update-discussion-comment
      description: GitHub Update Discussion Comment
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: teams-update.updatediscussioncomment
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: github-update-connection-between-external
      description: GitHub Update the Connection Between an External Group and Team
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: teams-update.updatetheconnectionbetweenanexternalgroupandteam
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: github-add-update-team-membership
      description: GitHub Add or Update Team Membership for User
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: teams-update.addorupdateteammembershipforuser
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: github-add-update-team-project
      description: GitHub Add or Update Team Project Permissions
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: teams-update.addorupdateteamprojectpermissions
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: github-add-update-team-repository
      description: GitHub Add or Update Team Repository Permissions
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: teams-update.addorupdateteamrepositorypermissions
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: github-update-team-legacy
      description: GitHub Update Team (legacy)
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: teams-update.updateteamlegacy
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: github-update-discussion-legacy
      description: GitHub Update Discussion (legacy)
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: teams-update.updatediscussionlegacy
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: github-update-discussion-comment-legacy
      description: GitHub Update Discussion Comment (legacy)
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: teams-update.updatediscussioncommentlegacy
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: github-add-update-team-membership-2
      description: GitHub Add or Update Team Membership for User (legacy)
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: teams-update.addorupdateteammembershipforuserlegacy
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: github-add-update-team-project-2
      description: GitHub Add or Update Team Project Permissions (legacy)
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: teams-update.addorupdateteamprojectpermissionslegacy
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: github-add-update-team-repository-2
      description: GitHub Add or Update Team Repository Permissions (legacy)
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: teams-update.addorupdateteamrepositorypermissionslegacy
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.