Get a team (Legacy)
Deprecated GET
/teams/{team_id} https://api.github.com
[!WARNING] Endpoint closing down notice: This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the Get a team by name endpoint.
Parameters
path Path Parameters
| Name | Type |
|---|---|
team_id
required
The unique identifier of the team. | number |
Responses
200 application/json
Response
interface TeamFull {
id: number;
node_id: string;
url: string;
html_url: string;
name: string;
slug: string;
description: string | null;
privacy?: "closed" | "secret";
notification_setting?: "notifications_enabled" | "notifications_disabled";
permission: string;
members_url: string;
repositories_url: string;
parent?:TeamSimple | null;
members_count: number;
repos_count: number;
created_at: string;
updated_at: string;
organization:TeamOrganization ;
ldap_dn?:LdapDn ;
type: "enterprise" | "organization";
organization_id?: number;
enterprise_id?: number;
}
id: number;
node_id: string;
url: string;
html_url: string;
name: string;
slug: string;
description: string | null;
privacy?: "closed" | "secret";
notification_setting?: "notifications_enabled" | "notifications_disabled";
permission: string;
members_url: string;
repositories_url: string;
parent?:
members_count: number;
repos_count: number;
created_at: string;
updated_at: string;
organization:
ldap_dn?:
type: "enterprise" | "organization";
organization_id?: number;
enterprise_id?: number;
}
Client Errors
404 application/json
Resource not found
interface BasicError {
message?: string;
documentation_url?: string;
url?: string;
status?: string;
}
message?: string;
documentation_url?: string;
url?: string;
status?: string;
}