GitHub · Capability

GitHub v3 REST API — Orgs

GitHub v3 REST API — Orgs. 49 operations. Lead operation: GitHub List Organizations. Self-contained Naftiko capability covering one Github business surface.

Run with Naftiko GithubOrgs

What You Can Do

GET
Orgslist — GitHub List Organizations
/v1/organizations
GET
Orgslistcustomroles — GitHub Deprecated - List Custom Repository Roles in an Organization
/v1/organizations/{organization-id}/custom-roles
GET
Orgsget — GitHub Get an Organization
/v1/orgs/{org}
PATCH
Orgsupdate — GitHub Update an Organization
/v1/orgs/{org}
DELETE
Orgsdelete — GitHub Delete an Organization
/v1/orgs/{org}
GET
Announcementbannersgetannouncementbannerfororg — GitHub Get Announcement Banner for Organization
/v1/orgs/{org}/announcement
PATCH
Announcementbannerssetannouncementbannerfororg — GitHub Set Announcement Banner for Organization
/v1/orgs/{org}/announcement
DELETE
Announcementbannersremoveannouncementbannerfororg — GitHub Remove Announcement Banner from Organization
/v1/orgs/{org}/announcement
GET
Orgsgetauditlog — GitHub Get the Audit Log for an Organization
/v1/orgs/{org}/audit-log
GET
Orgslistcustomreporoles — GitHub List Custom Repository Roles in an Organization
/v1/orgs/{org}/custom-repository-roles
POST
Orgscreatecustomreporole — GitHub Create a Custom Repository Role
/v1/orgs/{org}/custom-repository-roles
GET
Orgsgetcustomreporole — GitHub Get a Custom Repository Role
/v1/orgs/{org}/custom-repository-roles/{role-id}
PATCH
Orgsupdatecustomreporole — GitHub Update a Custom Repository Role
/v1/orgs/{org}/custom-repository-roles/{role-id}
DELETE
Orgsdeletecustomreporole — GitHub Delete a Custom Repository Role
/v1/orgs/{org}/custom-repository-roles/{role-id}
GET
Orgslistwebhooks — GitHub List Organization Webhooks
/v1/orgs/{org}/hooks
POST
Orgscreatewebhook — GitHub Create an Organization Webhook
/v1/orgs/{org}/hooks
GET
Orgsgetwebhook — GitHub Get an Organization Webhook
/v1/orgs/{org}/hooks/{hook-id}
PATCH
Orgsupdatewebhook — GitHub Update an Organization Webhook
/v1/orgs/{org}/hooks/{hook-id}
DELETE
Orgsdeletewebhook — GitHub Delete an Organization Webhook
/v1/orgs/{org}/hooks/{hook-id}
GET
Orgsgetwebhookconfigfororg — GitHub Get a Webhook Configuration for an Organization
/v1/orgs/{org}/hooks/{hook-id}/config
PATCH
Orgsupdatewebhookconfigfororg — GitHub Update a Webhook Configuration for an Organization
/v1/orgs/{org}/hooks/{hook-id}/config
GET
Orgslistwebhookdeliveries — GitHub List Deliveries for an Organization Webhook
/v1/orgs/{org}/hooks/{hook-id}/deliveries
GET
Orgsgetwebhookdelivery — GitHub Get a Webhook Delivery for an Organization Webhook
/v1/orgs/{org}/hooks/{hook-id}/deliveries/{delivery-id}
POST
Orgsredeliverwebhookdelivery — GitHub Redeliver a Delivery for an Organization Webhook
/v1/orgs/{org}/hooks/{hook-id}/deliveries/{delivery-id}/attempts
POST
Orgspingwebhook — GitHub Ping an Organization Webhook
/v1/orgs/{org}/hooks/{hook-id}/pings
GET
Orgslistappinstallations — GitHub List App Installations for an Organization
/v1/orgs/{org}/installations
GET
Orgslistmembers — GitHub List Organization Members
/v1/orgs/{org}/members
GET
Orgscheckmembershipforuser — GitHub Check Organization Membership for a User
/v1/orgs/{org}/members/{username}
DELETE
Orgsremovemember — GitHub Remove an Organization Member
/v1/orgs/{org}/members/{username}
GET
Orgsgetmembershipforuser — GitHub Get Organization Membership for a User
/v1/orgs/{org}/memberships/{username}
PUT
Orgssetmembershipforuser — GitHub Set Organization Membership for a User
/v1/orgs/{org}/memberships/{username}
DELETE
Orgsremovemembershipforuser — GitHub Remove Organization Membership for a User
/v1/orgs/{org}/memberships/{username}
GET
Orgslistoutsidecollaborators — GitHub List Outside Collaborators for an Organization
/v1/orgs/{org}/outside-collaborators
PUT
Orgsconvertmembertooutsidecollaborator — GitHub Convert an Organization Member to Outside Collaborator
/v1/orgs/{org}/outside-collaborators/{username}
DELETE
Orgsremoveoutsidecollaborator — GitHub Remove Outside Collaborator from an Organization
/v1/orgs/{org}/outside-collaborators/{username}
GET
Orgslistpublicmembers — GitHub List Public Organization Members
/v1/orgs/{org}/public-members
GET
Orgscheckpublicmembershipforuser — GitHub Check Public Organization Membership for a User
/v1/orgs/{org}/public-members/{username}
PUT
Orgssetpublicmembershipforauthenticateduser — GitHub Set Public Organization Membership for the Authenticated User
/v1/orgs/{org}/public-members/{username}
DELETE
Orgsremovepublicmembershipforauthenticateduser — GitHub Remove Public Organization Membership for the Authenticated User
/v1/orgs/{org}/public-members/{username}
GET
Orgslistrepofinegrainedpermissions — GitHub List Repository Fine-grained Permissions for an Organization
/v1/orgs/{org}/repository-fine-grained-permissions
GET
Orgslistsecuritymanagerteams — GitHub List Security Manager Teams
/v1/orgs/{org}/security-managers
PUT
Orgsaddsecuritymanagerteam — GitHub Add a Security Manager Team
/v1/orgs/{org}/security-managers/teams/{team-slug}
DELETE
Orgsremovesecuritymanagerteam — GitHub Remove a Security Manager Team
/v1/orgs/{org}/security-managers/teams/{team-slug}
POST
Orgsenableordisablesecurityproductonallorgrepos — GitHub Enable or Disable a Security Feature for an Organization
/v1/orgs/{org}/{security-product}/{enablement}
GET
Orgslistmembershipsforauthenticateduser — GitHub List Organization Memberships for the Authenticated User
/v1/user/memberships/orgs
GET
Orgsgetmembershipforauthenticateduser — GitHub Get an Organization Membership for the Authenticated User
/v1/user/memberships/orgs/{org}
PATCH
Orgsupdatemembershipforauthenticateduser — GitHub Update an Organization Membership for the Authenticated User
/v1/user/memberships/orgs/{org}
GET
Orgslistforauthenticateduser — GitHub List Organizations for the Authenticated User
/v1/user/orgs
GET
Orgslistforuser — GitHub List Organizations for a User
/v1/users/{username}/orgs

MCP Tools

github-list-organizations

GitHub List Organizations

read-only idempotent
github-deprecated-list-custom-repository

GitHub Deprecated - List Custom Repository Roles in an Organization

read-only idempotent
github-get-organization

GitHub Get an Organization

read-only idempotent
github-update-organization

GitHub Update an Organization

idempotent
github-delete-organization

GitHub Delete an Organization

idempotent
github-get-announcement-banner-organization

GitHub Get Announcement Banner for Organization

read-only idempotent
github-set-announcement-banner-organization

GitHub Set Announcement Banner for Organization

idempotent
github-remove-announcement-banner-organization

GitHub Remove Announcement Banner from Organization

idempotent
github-get-audit-log-organization

GitHub Get the Audit Log for an Organization

read-only idempotent
github-list-custom-repository-roles

GitHub List Custom Repository Roles in an Organization

read-only idempotent
github-create-custom-repository-role

GitHub Create a Custom Repository Role

github-get-custom-repository-role

GitHub Get a Custom Repository Role

read-only idempotent
github-update-custom-repository-role

GitHub Update a Custom Repository Role

idempotent
github-delete-custom-repository-role

GitHub Delete a Custom Repository Role

idempotent
github-list-organization-webhooks

GitHub List Organization Webhooks

read-only idempotent
github-create-organization-webhook

GitHub Create an Organization Webhook

github-get-organization-webhook

GitHub Get an Organization Webhook

read-only idempotent
github-update-organization-webhook

GitHub Update an Organization Webhook

idempotent
github-delete-organization-webhook

GitHub Delete an Organization Webhook

idempotent
github-get-webhook-configuration-organization

GitHub Get a Webhook Configuration for an Organization

read-only idempotent
github-update-webhook-configuration-organization

GitHub Update a Webhook Configuration for an Organization

idempotent
github-list-deliveries-organization-webhook

GitHub List Deliveries for an Organization Webhook

read-only idempotent
github-get-webhook-delivery-organization

GitHub Get a Webhook Delivery for an Organization Webhook

read-only idempotent
github-redeliver-delivery-organization-webhook

GitHub Redeliver a Delivery for an Organization Webhook

github-ping-organization-webhook

GitHub Ping an Organization Webhook

github-list-app-installations-organization

GitHub List App Installations for an Organization

read-only idempotent
github-list-organization-members

GitHub List Organization Members

read-only idempotent
github-check-organization-membership-user

GitHub Check Organization Membership for a User

read-only idempotent
github-remove-organization-member

GitHub Remove an Organization Member

idempotent
github-get-organization-membership-user

GitHub Get Organization Membership for a User

read-only idempotent
github-set-organization-membership-user

GitHub Set Organization Membership for a User

idempotent
github-remove-organization-membership-user

GitHub Remove Organization Membership for a User

idempotent
github-list-outside-collaborators-organization

GitHub List Outside Collaborators for an Organization

read-only idempotent
github-convert-organization-member-outside

GitHub Convert an Organization Member to Outside Collaborator

idempotent
github-remove-outside-collaborator-organization

GitHub Remove Outside Collaborator from an Organization

idempotent
github-list-public-organization-members

GitHub List Public Organization Members

read-only idempotent
github-check-public-organization-membership

GitHub Check Public Organization Membership for a User

read-only idempotent
github-set-public-organization-membership

GitHub Set Public Organization Membership for the Authenticated User

idempotent
github-remove-public-organization-membership

GitHub Remove Public Organization Membership for the Authenticated User

idempotent
github-list-repository-fine-grained

GitHub List Repository Fine-grained Permissions for an Organization

read-only idempotent
github-list-security-manager-teams

GitHub List Security Manager Teams

read-only idempotent
github-add-security-manager-team

GitHub Add a Security Manager Team

idempotent
github-remove-security-manager-team

GitHub Remove a Security Manager Team

idempotent
github-enable-disable-security-feature

GitHub Enable or Disable a Security Feature for an Organization

github-list-organization-memberships-authenticated

GitHub List Organization Memberships for the Authenticated User

read-only idempotent
github-get-organization-membership-authenticated

GitHub Get an Organization Membership for the Authenticated User

read-only idempotent
github-update-organization-membership-authenticated

GitHub Update an Organization Membership for the Authenticated User

idempotent
github-list-organizations-authenticated-user

GitHub List Organizations for the Authenticated User

read-only idempotent
github-list-organizations-user

GitHub List Organizations for a User

read-only idempotent

Capability Spec

github-orgs.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: GitHub v3 REST API — Orgs
  description: 'GitHub v3 REST API — Orgs. 49 operations. Lead operation: GitHub List Organizations. Self-contained Naftiko
    capability covering one Github business surface.'
  tags:
  - Github
  - Orgs
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GITHUB_API_KEY: GITHUB_API_KEY
capability:
  consumes:
  - type: http
    namespace: github-orgs
    baseUri: ''
    description: GitHub v3 REST API — Orgs business capability. Self-contained, no shared references.
    resources:
    - name: organizations
      path: /organizations
      operations:
      - name: orgslist
        method: GET
        description: GitHub List Organizations
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: organizations-organization_id-custom_roles
      path: /organizations/{organization_id}/custom_roles
      operations:
      - name: orgslistcustomroles
        method: GET
        description: GitHub Deprecated - List Custom Repository Roles in an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: organization_id
          in: path
          type: string
          description: The unique identifier of the organization.
          required: true
    - name: orgs-org
      path: /orgs/{org}
      operations:
      - name: orgsget
        method: GET
        description: GitHub Get an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: orgsupdate
        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: orgsdelete
        method: DELETE
        description: GitHub Delete an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: orgs-org-announcement
      path: /orgs/{org}/announcement
      operations:
      - name: announcementbannersgetannouncementbannerfororg
        method: GET
        description: GitHub Get Announcement Banner for Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: announcementbannerssetannouncementbannerfororg
        method: PATCH
        description: GitHub Set Announcement Banner for Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: announcementbannersremoveannouncementbannerfororg
        method: DELETE
        description: GitHub Remove Announcement Banner from Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: orgs-org-audit-log
      path: /orgs/{org}/audit-log
      operations:
      - name: orgsgetauditlog
        method: GET
        description: GitHub Get the Audit Log for an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: orgs-org-custom-repository-roles
      path: /orgs/{org}/custom-repository-roles
      operations:
      - name: orgslistcustomreporoles
        method: GET
        description: GitHub List Custom Repository Roles in an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: orgscreatecustomreporole
        method: POST
        description: GitHub Create a 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-custom-repository-roles-role_id
      path: /orgs/{org}/custom-repository-roles/{role_id}
      operations:
      - name: orgsgetcustomreporole
        method: GET
        description: GitHub Get a Custom Repository Role
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: orgsupdatecustomreporole
        method: PATCH
        description: GitHub Update a 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: orgsdeletecustomreporole
        method: DELETE
        description: GitHub Delete a Custom Repository Role
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: orgs-org-hooks
      path: /orgs/{org}/hooks
      operations:
      - name: orgslistwebhooks
        method: GET
        description: GitHub List Organization Webhooks
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: orgscreatewebhook
        method: POST
        description: GitHub Create an Organization Webhook
        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: orgsgetwebhook
        method: GET
        description: GitHub Get an Organization Webhook
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: orgsupdatewebhook
        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: orgsdeletewebhook
        method: DELETE
        description: GitHub Delete an Organization Webhook
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: orgs-org-hooks-hook_id-config
      path: /orgs/{org}/hooks/{hook_id}/config
      operations:
      - name: orgsgetwebhookconfigfororg
        method: GET
        description: GitHub Get a Webhook Configuration for an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: orgsupdatewebhookconfigfororg
        method: PATCH
        description: GitHub Update a 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-hooks-hook_id-deliveries
      path: /orgs/{org}/hooks/{hook_id}/deliveries
      operations:
      - name: orgslistwebhookdeliveries
        method: GET
        description: GitHub List Deliveries for an Organization Webhook
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: redelivery
          in: query
          type: boolean
    - name: orgs-org-hooks-hook_id-deliveries-delivery_id
      path: /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}
      operations:
      - name: orgsgetwebhookdelivery
        method: GET
        description: GitHub Get a Webhook Delivery for an Organization Webhook
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: orgs-org-hooks-hook_id-deliveries-delivery_id-attempts
      path: /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts
      operations:
      - name: orgsredeliverwebhookdelivery
        method: POST
        description: GitHub Redeliver a Delivery for an Organization Webhook
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: orgs-org-hooks-hook_id-pings
      path: /orgs/{org}/hooks/{hook_id}/pings
      operations:
      - name: orgspingwebhook
        method: POST
        description: GitHub Ping an Organization Webhook
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: orgs-org-installations
      path: /orgs/{org}/installations
      operations:
      - name: orgslistappinstallations
        method: GET
        description: GitHub List App Installations for an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: orgs-org-members
      path: /orgs/{org}/members
      operations:
      - name: orgslistmembers
        method: GET
        description: GitHub List Organization Members
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: filter
          in: query
          type: string
          description: Filter members returned in the list. `2fa_disabled` means that only members without [two-factor authentication](https://github.com/blog/1614-two-factor-authenti
        - name: role
          in: query
          type: string
          description: Filter members returned by their role.
    - name: orgs-org-members-username
      path: /orgs/{org}/members/{username}
      operations:
      - name: orgscheckmembershipforuser
        method: GET
        description: GitHub Check Organization Membership for a User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: orgsremovemember
        method: DELETE
        description: GitHub Remove an Organization Member
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: orgs-org-memberships-username
      path: /orgs/{org}/memberships/{username}
      operations:
      - name: orgsgetmembershipforuser
        method: GET
        description: GitHub Get Organization Membership for a User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: orgssetmembershipforuser
        method: PUT
        description: GitHub Set Organization 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: orgsremovemembershipforuser
        method: DELETE
        description: GitHub Remove Organization Membership for a User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: orgs-org-outside_collaborators
      path: /orgs/{org}/outside_collaborators
      operations:
      - name: orgslistoutsidecollaborators
        method: GET
        description: GitHub List Outside Collaborators for an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: filter
          in: query
          type: string
          description: Filter the list of outside collaborators. `2fa_disabled` means that only outside collaborators without
            [two-factor authentication](https://github.com/blog/1614-
    - name: orgs-org-outside_collaborators-username
      path: /orgs/{org}/outside_collaborators/{username}
      operations:
      - name: orgsconvertmembertooutsidecollaborator
        method: PUT
        description: GitHub Convert an Organization Member to Outside Collaborator
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: orgsremoveoutsidecollaborator
        method: DELETE
        description: GitHub Remove Outside Collaborator from an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: orgs-org-public_members
      path: /orgs/{org}/public_members
      operations:
      - name: orgslistpublicmembers
        method: GET
        description: GitHub List Public Organization Members
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: orgs-org-public_members-username
      path: /orgs/{org}/public_members/{username}
      operations:
      - name: orgscheckpublicmembershipforuser
        method: GET
        description: GitHub Check Public Organization Membership for a User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: orgssetpublicmembershipforauthenticateduser
        method: PUT
        description: GitHub Set Public Organization Membership for the Authenticated User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: orgsremovepublicmembershipforauthenticateduser
        method: DELETE
        description: GitHub Remove Public Organization Membership for the Authenticated User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: orgs-org-repository-fine-grained-permissions
      path: /orgs/{org}/repository-fine-grained-permissions
      operations:
      - name: orgslistrepofinegrainedpermissions
        method: GET
        description: GitHub List Repository Fine-grained Permissions for an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: orgs-org-security-managers
      path: /orgs/{org}/security-managers
      operations:
      - name: orgslistsecuritymanagerteams
        method: GET
        description: GitHub List Security Manager Teams
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: orgs-org-security-managers-teams-team_slug
      path: /orgs/{org}/security-managers/teams/{team_slug}
      operations:
      - name: orgsaddsecuritymanagerteam
        method: PUT
        description: GitHub Add a Security Manager Team
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: orgsremovesecuritymanagerteam
        method: DELETE
        description: GitHub Remove a Security Manager Team
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: orgs-org-security_product-enablement
      path: /orgs/{org}/{security_product}/{enablement}
      operations:
      - name: orgsenableordisablesecurityproductonallorgrepos
        method: POST
        description: GitHub Enable or Disable a Security Feature for an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: user-memberships-orgs
      path: /user/memberships/orgs
      operations:
      - name: orgslistmembershipsforauthenticateduser
        method: GET
        description: GitHub List Organization Memberships for the Authenticated User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: state
          in: query
          type: string
          description: Indicates the state of the memberships to return. If not specified, the API returns both active and
            pending memberships.
    - name: user-memberships-orgs-org
      path: /user/memberships/orgs/{org}
      operations:
      - name: orgsgetmembershipforauthenticateduser
        method: GET
        description: GitHub Get an Organization Membership for the Authenticated User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: orgsupdatemembershipforauthenticateduser
        method: PATCH
        description: GitHub Update an Organization Membership for the Authenticated User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: user-orgs
      path: /user/orgs
      operations:
      - name: orgslistforauthenticateduser
        method: GET
        description: GitHub List Organizations for the Authenticated User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: users-username-orgs
      path: /users/{username}/orgs
      operations:
      - name: orgslistforuser
        method: GET
        description: GitHub List Organizations for a User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
  exposes:
  - type: rest
    namespace: github-orgs-rest
    port: 8080
    description: REST adapter for GitHub v3 REST API — Orgs. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/organizations
      name: organizations
      description: REST surface for organizations.
      operations:
      - method: GET
        name: orgslist
        description: GitHub List Organizations
        call: github-orgs.orgslist
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/organizations/{organization-id}/custom-roles
      name: organizations-organization-id-custom-roles
      description: REST surface for organizations-organization_id-custom_roles.
      operations:
      - method: GET
        name: orgslistcustomroles
        description: GitHub Deprecated - List Custom Repository Roles in an Organization
        call: github-orgs.orgslistcustomroles
        with:
          organization_id: rest.organization_id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}
      name: orgs-org
      description: REST surface for orgs-org.
      operations:
      - method: GET
        name: orgsget
        description: GitHub Get an Organization
        call: github-orgs.orgsget
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: orgsupdate
        description: GitHub Update an Organization
        call: github-orgs.orgsupdate
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: orgsdelete
        description: GitHub Delete an Organization
        call: github-orgs.orgsdelete
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/announcement
      name: orgs-org-announcement
      description: REST surface for orgs-org-announcement.
      operations:
      - method: GET
        name: announcementbannersgetannouncementbannerfororg
        description: GitHub Get Announcement Banner for Organization
        call: github-orgs.announcementbannersgetannouncementbannerfororg
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: announcementbannerssetannouncementbannerfororg
        description: GitHub Set Announcement Banner for Organization
        call: github-orgs.announcementbannerssetannouncementbannerfororg
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: announcementbannersremoveannouncementbannerfororg
        description: GitHub Remove Announcement Banner from Organization
        call: github-orgs.announcementbannersremoveannouncementbannerfororg
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/audit-log
      name: orgs-org-audit-log
      description: REST surface for orgs-org-audit-log.
      operations:
      - method: GET
        name: orgsgetauditlog
        description: GitHub Get the Audit Log for an Organization
        call: github-orgs.orgsgetauditlog
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/custom-repository-roles
      name: orgs-org-custom-repository-roles
      description: REST surface for orgs-org-custom-repository-roles.
      operations:
      - method: GET
        name: orgslistcustomreporoles
        description: GitHub List Custom Repository Roles in an Organization
        call: github-orgs.orgslistcustomreporoles
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: orgscreatecustomreporole
        description: GitHub Create a Custom Repository Role
        call: github-orgs.orgscreatecustomreporole
        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: GET
        name: orgsgetcustomreporole
        description: GitHub Get a Custom Repository Role
        call: github-orgs.orgsgetcustomreporole
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: orgsupdatecustomreporole
        description: GitHub Update a Custom Repository Role
        call: github-orgs.orgsupdatecustomreporole
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: orgsdeletecustomreporole
        description: GitHub Delete a Custom Repository Role
        call: github-orgs.orgsdeletecustomreporole
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/hooks
      name: orgs-org-hooks
      description: REST surface for orgs-org-hooks.
      operations:
      - method: GET
        name: orgslistwebhooks
        description: GitHub List Organization Webhooks
        call: github-orgs.orgslistwebhooks
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: orgscreatewebhook
        description: GitHub Create an Organization Webhook
        call: github-orgs.orgscreatewebhook
        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: GET
        name: orgsgetwebhook
        description: GitHub Get an Organization Webhook
        call: github-orgs.orgsgetwebhook
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: orgsupdatewebhook
        description: GitHub Update an Organization Webhook
        call: github-orgs.orgsupdatewebhook
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: orgsdeletewebhook
        description: GitHub Delete an Organization Webhook
        call: github-orgs.orgsdeletewebhook
        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: GET
        name: orgsgetwebhookconfigfororg
        description: GitHub Get a Webhook Configuration for an Organization
        call: github-orgs.orgsgetwebhookconfigfororg
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: orgsupdatewebhookconfigfororg
        description: GitHub Update a Webhook Configuration for an Organization
        call: github-orgs.orgsupdatewebhookconfigfororg
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/hooks/{hook-id}/deliveries
      name: orgs-org-hooks-hook-id-deliveries
      description: REST surface for orgs-org-hooks-hook_id-deliveries.
      operations:
      - method: GET
        name: orgslistwebhookdeliveries
        description: GitHub List Deliveries for an Organization Webhook
        call: github-orgs.orgslistwebhookdeliveries
        with:
          redelivery: rest.redelivery
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/hooks/{hook-id}/deliveries/{delivery-id}
      name: orgs-org-hooks-hook-id-deliveries-delivery-id
      description: REST surface for orgs-org-hooks-hook_id-deliveries-delivery_id.
      operations:
      - method: GET
        name: orgsgetwebhookdelivery
        description: GitHub Get a Webhook Delivery for an Organization Webhook
        call: github-orgs.orgsgetwebhookdelivery
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/hooks/{hook-id}/deliveries/{delivery-id}/attempts
      name: orgs-org-hooks-hook-id-deliveries-delivery-id-attempts
      description: REST surface for orgs-org-hooks-hook_id-deliveries-delivery_id-attempts.
      operations:
      - method: POST
        name: orgsredeliverwebhookdelivery
        description: GitHub Redeliver a Delivery for an Organization Webhook
        call: github-orgs.orgsredeliverwebhookdelivery
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/hooks/{hook-id}/pings
      name: orgs-org-hooks-hook-id-pings
      description: REST surface for orgs-org-hooks-hook_id-pings.
      operations:
      - method: POST
        name: orgspingwebhook
        description: GitHub Ping an Organization Webhook
        call: github-orgs.orgspingwebhook
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/installations
      name: orgs-org-installations
      description: REST surface for orgs-org-installations.
      operations:
      - method: GET
        name: orgslistappinstallations
        description: GitHub List App Installations for an Organization
        call: github-orgs.orgslistappinstallations
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/members
      name: orgs-org-members
      description: REST surface for orgs-org-members.
      operations:
      - method: GET
        name: orgslistmembers
        description: GitHub List Organization Members
        call: github-orgs.orgslistmembers
        with:
          filter: rest.filter
          role: rest.role
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/members/{username}
      name: orgs-org-members-username
      description: REST surface for orgs-org-members-username.
      operations:
      - method: GET
        name: orgscheckmembershipforuser
        description: GitHub Check Organization Membership for a User
        call: github-orgs.orgscheckmembershipforuser
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: orgsremovemember
        description: GitHub Remove an Organization Member
        call: github-orgs.orgsremovemember
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/memberships/{username}
      name: orgs-org-memberships-username
      description: REST surface for orgs-org-memberships-username.
      operations:
      - method: GET
        name: orgsgetmembershipforuser
        description: GitHub Get Organization Membership for a User
        call: github-orgs.orgsgetmembershipforuser
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: orgssetmembershipforuser
        description: GitHub Set Organization Membership for a User
        call: github-orgs.orgssetmembershipforuser
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: orgsremovemembershipforuser
        description: GitHub Remove Organization Membership for a User
        call: github-orgs.orgsremovemembershipforuser
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/outside-collaborators
      name: orgs-org-outside-collaborators
      description: REST surface for orgs-org-outside_collaborators.
      operations:
      - method: GET
        name: orgslistoutsidecollaborators
        description: GitHub List Outside Collaborators for an Organization
        call: github-orgs.orgslistoutsidecollaborators
        with:
          filter: rest.filter
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/outside-collaborators/{username}
      name: orgs-org-outside-collaborators-username
      description: REST surface for orgs-org-outside_collaborators-username.
      operations:
      - method: PUT
        name: orgsconvertmembertooutsidecollaborator
        description: GitHub Convert an Organization Member to Outside Collaborator
        call: github-orgs.orgsconvertmembertooutsidecollaborator
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: orgsremoveoutsidecollaborator
        description: GitHub Remove Outside Collaborator from an Organization
        call: github-orgs.orgsremoveoutsidecollaborator
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/public-members
      name: orgs-org-public-members
      description: REST surface for orgs-org-public_members.
      operations:
      - method: GET
        name: orgslistpublicmembers
        description: GitHub List Public Organization Members
        call: github-orgs.orgslistpublicmembers
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/public-members/{username}
      name: orgs-org-public-members-username
      description: REST surface for orgs-org-public_members-username.
      operations:
      - method: GET
        name: orgscheckpublicmembershipforuser
        description: GitHub Check Public Organization Membership for a User
        call: github-orgs.orgscheckpublicmembershipforuser
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: orgssetpublicmembershipforauthenticateduser
        description: GitHub Set Public Organization Membership for the Authenticated User
        call: github-or

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