Set public organization membership for the authenticated user
The user can publicize their own membership. (A user cannot publicize the membership for another user.)
Note that you’ll need to set Content-Length
to zero when calling out to this endpoint. For more information, see “HTTP verbs.”
Path Parameters
Response
Response
Response
Path Parameters
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