Remove public organization membership for the authenticated user
Path Parameters
Response
204
Response
Response
Path Parameters
List organization memberships for the authenticated user
Query Parameters
Indicates the state of the memberships to return. Can be either active
or pending
. If not specified, the API returns both active and pending memberships.
Allowed values:activepending
Results per page (max 100)
Default:30
Page number of the results to fetch.
Default:1
Response
application/json
Response
Response
Org Membership
Example:https://api.github.com/orgs/octocat/memberships/defunkt
The state of the member in the organization. The pending
state indicates the user has not yet accepted an invitation.
Allowed values:activepending
Example:active
The user’s membership type in the organization.
Allowed values:adminmemberbilling_manager
Example:admin
Example:https://api.github.com/orgs/octocat
Organization Simple
Show Child Parameters
Simple User
Show Child Parameters
Show Child Parameters
Query Parameters
Get an organization membership for the authenticated user
Path Parameters
Response
application/json
Response
Response
Org Membership
Org Membership
Example:https://api.github.com/orgs/octocat/memberships/defunkt
The state of the member in the organization. The pending
state indicates the user has not yet accepted an invitation.
Allowed values:activepending
Example:active
The user’s membership type in the organization.
Allowed values:adminmemberbilling_manager
Example:admin
Example:https://api.github.com/orgs/octocat
Organization Simple
Show Child Parameters
Simple User
Show Child Parameters
Show Child Parameters
Path Parameters
Update an organization membership for the authenticated user
Path Parameters
Body
application/json
Body
The state that the membership should be in. Only "active"
will be accepted.
Allowed values:active
Response
application/json
Response
Response
Org Membership
Org Membership
Example:https://api.github.com/orgs/octocat/memberships/defunkt
The state of the member in the organization. The pending
state indicates the user has not yet accepted an invitation.
Allowed values:activepending
Example:active
The user’s membership type in the organization.
Allowed values:adminmemberbilling_manager
Example:admin
Example:https://api.github.com/orgs/octocat
Organization Simple
Show Child Parameters
Simple User
Show Child Parameters
Show Child Parameters
Path Parameters
Body
List organizations for the authenticated user
List organizations for the authenticated user.
OAuth scope requirements
This only lists organizations that your authorization allows you to operate on in some way (e.g., you can list teams with read:org
scope, you can publicize your organization membership with user
scope, etc.). Therefore, this API requires at least user
or read:org
scope. OAuth requests with insufficient scope receive a 403 Forbidden
response.
Query Parameters
Results per page (max 100)
Default:30
Page number of the results to fetch.
Default:1
Response
application/json
Response
Response
Organization Simple
Example:github
Example:1
Example:MDEyOk9yZ2FuaXphdGlvbjE=
Example:https://api.github.com/orgs/github
Example:https://api.github.com/orgs/github/repos
Example:https://api.github.com/orgs/github/events
Example:https://api.github.com/orgs/github/hooks
Example:https://api.github.com/orgs/github/issues
Example:https://api.github.com/orgs/github/members{/member}
Example:https://api.github.com/orgs/github/public_members{/member}
Example:https://github.com/images/error/octocat_happy.gif
Example:A great organization