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
Query Parameters
List organizations for a user
List public organization memberships for the specified user.
This method only lists public memberships, regardless of authentication. If you need to fetch all of the organization memberships (public and private) for the authenticated user, use the List organizations for the authenticated user API instead.
Query Parameters
Results per page (max 100)
Default:30
Page number of the results to fetch.
Default:1
Path Parameters
Response
200 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
Path Parameters
Query Parameters
List organization projects
Lists the projects in an organization. Returns a 404 Not Found
status if projects are disabled in the organization. If you do not have sufficient privileges to perform this action, a 401 Unauthorized
or 410 Gone
status is returned.
Query Parameters
Indicates the state of the projects to return. Can be either open
, closed
, or all
.
Allowed values:openclosedall
Default:open
Results per page (max 100)
Default:30
Page number of the results to fetch.
Default:1
Path Parameters
Response
application/json
Response
Response
Projects are a way to organize columns and cards of work.
Example:https://api.github.com/repos/api-playground/projects-test
Example:https://api.github.com/projects/1002604
Example:https://github.com/api-playground/projects-test/projects/12
Example:https://api.github.com/projects/1002604/columns
Example:1002604
Example:MDc6UHJvamVjdDEwMDI2MDQ=
Name of the project
Example:Week One Sprint
Body of the project
Example:This project represents the sprint of the first week in January
Example:1
State of the project; either ‘open’ or ‘closed’
Example:open
Simple User
Show Child Parameters
Example:2011-04-10T20:09:31Z
Example:2014-03-03T18:58:10Z
The baseline permission that all organization members have on this project. Only present if owner is an organization.
Allowed values:readwriteadminnone
Whether or not this project can be seen by everyone. Only present if owner is an organization.