| title | Organizations | GitHub API |
|---|
- TOC {:toc}
List all public organizations for an unauthenticated user. Lists private and public organizations for authenticated users.
GET /users/:user/orgs
List public and private organizations for the 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 => "[email protected]",
:blog => "https://github.com/blog",
:company => "GitHub",
:email => "[email protected]",
:location => "San Francisco",
:name => "github"
%>
<%= headers 200 %> <%= json(:private_org) %>