GitHub · Capability

GitHub Org API — Update

GitHub Org API — Update. 16 operations. Lead operation: GitHub Update an Organization. Self-contained Naftiko capability covering one Github business surface.

Run with Naftiko GithubUpdate

What You Can Do

PATCH
Updateanorganization — GitHub Update an Organization
/v1/orgs/{org}
PATCH
Updateselfhostedrunnergroupforanorganization — GitHub Update Self-hosted Runner Group for an Organization
/v1/orgs/{org}/actions/runner-groups/{runner-group-id}
PUT
Createorupdateanorganizationsecret — GitHub Create or Update an Organization Secret
/v1/orgs/{org}/actions/secrets/{secret-name}
PATCH
Updateanorganizationvariable — GitHub Update an Organization Variable
/v1/orgs/{org}/actions/variables/{name}
PATCH
Updatecustomrepositoryrole — GitHub Update Custom Repository Role
/v1/orgs/{org}/custom-repository-roles/{role-id}
PUT
Createorupdateanorganizationsecret — GitHub Create or Update an Organization Secret
/v1/orgs/{org}/dependabot/secrets/{secret-name}
PATCH
Updateanorganizationwebhook — GitHub Update an Organization Webhook
/v1/orgs/{org}/hooks/{hook-id}
PATCH
Updatewebhookconfigurationforanorganization — GitHub Update Webhook Configuration for an Organization
/v1/orgs/{org}/hooks/{hook-id}/config
PATCH
Updateprereceivehookenforcementforanorganization — GitHub Update Pre-receive Hook Enforcement for an Organization
/v1/orgs/{org}/pre-receive-hooks/{pre-receive-hook-id}
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}

MCP Tools

github-update-organization

GitHub Update an Organization

idempotent
github-update-self-hosted-runner

GitHub Update Self-hosted Runner Group for an Organization

idempotent
github-create-update-organization-secret

GitHub Create or Update an Organization Secret

idempotent
github-update-organization-variable

GitHub Update an Organization Variable

idempotent
github-update-custom-repository-role

GitHub Update Custom Repository Role

idempotent
github-create-update-organization-secret-2

GitHub Create or Update an Organization Secret

idempotent
github-update-organization-webhook

GitHub Update an Organization Webhook

idempotent
github-update-webhook-configuration-organization

GitHub Update Webhook Configuration for an Organization

idempotent
github-update-pre-receive-hook

GitHub Update Pre-receive Hook Enforcement for an Organization

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

Capability Spec

organizations-update.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: GitHub Org API — Update
  description: 'GitHub Org API — Update. 16 operations. Lead operation: GitHub Update an Organization. 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: organizations-update
    baseUri: ''
    description: GitHub Org API — Update business capability. Self-contained, no shared references.
    resources:
    - name: orgs-org
      path: /orgs/{org}
      operations:
      - name: updateanorganization
        method: PATCH
        description: GitHub Update an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: orgs-org-actions-runner-groups-runner_group_id
      path: /orgs/{org}/actions/runner-groups/{runner_group_id}
      operations:
      - name: updateselfhostedrunnergroupforanorganization
        method: PATCH
        description: GitHub Update Self-hosted Runner Group for 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-actions-secrets-secret_name
      path: /orgs/{org}/actions/secrets/{secret_name}
      operations:
      - name: createorupdateanorganizationsecret
        method: PUT
        description: GitHub Create or Update an Organization Secret
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: orgs-org-actions-variables-name
      path: /orgs/{org}/actions/variables/{name}
      operations:
      - name: updateanorganizationvariable
        method: PATCH
        description: GitHub Update an Organization Variable
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: orgs-org-custom-repository-roles-role_id
      path: /orgs/{org}/custom-repository-roles/{role_id}
      operations:
      - name: updatecustomrepositoryrole
        method: PATCH
        description: GitHub Update Custom Repository Role
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: orgs-org-dependabot-secrets-secret_name
      path: /orgs/{org}/dependabot/secrets/{secret_name}
      operations:
      - name: createorupdateanorganizationsecret
        method: PUT
        description: GitHub Create or Update an Organization Secret
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: orgs-org-hooks-hook_id
      path: /orgs/{org}/hooks/{hook_id}
      operations:
      - name: updateanorganizationwebhook
        method: PATCH
        description: GitHub Update an Organization Webhook
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: orgs-org-hooks-hook_id-config
      path: /orgs/{org}/hooks/{hook_id}/config
      operations:
      - name: updatewebhookconfigurationforanorganization
        method: PATCH
        description: GitHub Update Webhook Configuration for an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: orgs-org-pre-receive-hooks-pre_receive_hook_id
      path: /orgs/{org}/pre-receive-hooks/{pre_receive_hook_id}
      operations:
      - name: updateprereceivehookenforcementforanorganization
        method: PATCH
        description: GitHub Update Pre-receive Hook Enforcement for an Organization
        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
      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
    authentication:
      type: bearer
      token: '{{env.GITHUB_API_KEY}}'
  exposes:
  - type: rest
    namespace: organizations-update-rest
    port: 8080
    description: REST adapter for GitHub Org API — Update. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/orgs/{org}
      name: orgs-org
      description: REST surface for orgs-org.
      operations:
      - method: PATCH
        name: updateanorganization
        description: GitHub Update an Organization
        call: organizations-update.updateanorganization
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/actions/runner-groups/{runner-group-id}
      name: orgs-org-actions-runner-groups-runner-group-id
      description: REST surface for orgs-org-actions-runner-groups-runner_group_id.
      operations:
      - method: PATCH
        name: updateselfhostedrunnergroupforanorganization
        description: GitHub Update Self-hosted Runner Group for an Organization
        call: organizations-update.updateselfhostedrunnergroupforanorganization
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/actions/secrets/{secret-name}
      name: orgs-org-actions-secrets-secret-name
      description: REST surface for orgs-org-actions-secrets-secret_name.
      operations:
      - method: PUT
        name: createorupdateanorganizationsecret
        description: GitHub Create or Update an Organization Secret
        call: organizations-update.createorupdateanorganizationsecret
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/actions/variables/{name}
      name: orgs-org-actions-variables-name
      description: REST surface for orgs-org-actions-variables-name.
      operations:
      - method: PATCH
        name: updateanorganizationvariable
        description: GitHub Update an Organization Variable
        call: organizations-update.updateanorganizationvariable
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/custom-repository-roles/{role-id}
      name: orgs-org-custom-repository-roles-role-id
      description: REST surface for orgs-org-custom-repository-roles-role_id.
      operations:
      - method: PATCH
        name: updatecustomrepositoryrole
        description: GitHub Update Custom Repository Role
        call: organizations-update.updatecustomrepositoryrole
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/dependabot/secrets/{secret-name}
      name: orgs-org-dependabot-secrets-secret-name
      description: REST surface for orgs-org-dependabot-secrets-secret_name.
      operations:
      - method: PUT
        name: createorupdateanorganizationsecret
        description: GitHub Create or Update an Organization Secret
        call: organizations-update.createorupdateanorganizationsecret
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/hooks/{hook-id}
      name: orgs-org-hooks-hook-id
      description: REST surface for orgs-org-hooks-hook_id.
      operations:
      - method: PATCH
        name: updateanorganizationwebhook
        description: GitHub Update an Organization Webhook
        call: organizations-update.updateanorganizationwebhook
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/hooks/{hook-id}/config
      name: orgs-org-hooks-hook-id-config
      description: REST surface for orgs-org-hooks-hook_id-config.
      operations:
      - method: PATCH
        name: updatewebhookconfigurationforanorganization
        description: GitHub Update Webhook Configuration for an Organization
        call: organizations-update.updatewebhookconfigurationforanorganization
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/pre-receive-hooks/{pre-receive-hook-id}
      name: orgs-org-pre-receive-hooks-pre-receive-hook-id
      description: REST surface for orgs-org-pre-receive-hooks-pre_receive_hook_id.
      operations:
      - method: PATCH
        name: updateprereceivehookenforcementforanorganization
        description: GitHub Update Pre-receive Hook Enforcement for an Organization
        call: organizations-update.updateprereceivehookenforcementforanorganization
        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: organizations-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: organizations-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: organizations-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: organizations-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: organizations-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: organizations-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: organizations-update.addorupdateteamrepositorypermissions
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: organizations-update-mcp
    port: 9090
    transport: http
    description: MCP adapter for GitHub Org API — Update. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: github-update-organization
      description: GitHub Update an Organization
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: organizations-update.updateanorganization
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: github-update-self-hosted-runner
      description: GitHub Update Self-hosted Runner Group for an Organization
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: organizations-update.updateselfhostedrunnergroupforanorganization
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: github-create-update-organization-secret
      description: GitHub Create or Update an Organization Secret
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: organizations-update.createorupdateanorganizationsecret
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: github-update-organization-variable
      description: GitHub Update an Organization Variable
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: organizations-update.updateanorganizationvariable
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: github-update-custom-repository-role
      description: GitHub Update Custom Repository Role
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: organizations-update.updatecustomrepositoryrole
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: github-create-update-organization-secret-2
      description: GitHub Create or Update an Organization Secret
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: organizations-update.createorupdateanorganizationsecret
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: github-update-organization-webhook
      description: GitHub Update an Organization Webhook
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: organizations-update.updateanorganizationwebhook
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: github-update-webhook-configuration-organization
      description: GitHub Update Webhook Configuration for an Organization
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: organizations-update.updatewebhookconfigurationforanorganization
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: github-update-pre-receive-hook
      description: GitHub Update Pre-receive Hook Enforcement for an Organization
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: organizations-update.updateprereceivehookenforcementforanorganization
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: github-update-team
      description: GitHub Update Team
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: organizations-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: organizations-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: organizations-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: organizations-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: organizations-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: organizations-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: organizations-update.addorupdateteamrepositorypermissions
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.