| title | Organizations | GitHub API |
|---|
- TOC {:toc}
If you make an unauthenticated call, you will list all public memberships in organizations for any user. If you make an authenticated call, you will also list hidden memberships in organizations, but only for the currently authenticated user.
GET /users/:username/orgs
List both hidden and public memberships in organizations for the currently authenticated user.
GET /user/orgs
<%= headers 200, :pagination => default_pagination_rels %> <%= json(:org) { |h| [h] } %>
GET /orgs/:org
<%= headers 200 %> <%= json(:full_org) %>
PATCH /orgs/:org
| Name | Type | Description |
|---|---|---|
billing_email |
string |
Billing email address. This address is not publicized. |
company |
string |
The company name. |
email |
string |
The publicly visible email address. |
location |
string |
The location. |
name |
string |
The shorthand name of the company. |
<%= json
:billing_email => "support@github.com",
:blog => "https://github.com/blog",
:company => "GitHub",
:email => "support@github.com",
:location => "San Francisco",
:name => "github"
%>
<%= headers 200 %> <%= json(:private_org) %>