Skip to main content

details

Creates, updates, deletes, gets or lists a details resource.

Overview

Namedetails
TypeResource
Idgithub.teams.details

Fields

The following fields are returned by SELECT queries:

Response

NameDatatypeDescription
idintegerUnique identifier of the team
namestringName of the team (example: Developers)
enterprise_idintegerUnique identifier of the enterprise to which this team belongs
node_idstring (example: MDQ6VGVhbTE=)
organization_idintegerUnique identifier of the organization to which this team belongs
created_atstring (date-time) (example: 2017-07-14T16:53:42Z)
descriptionstring (example: A great team.)
html_urlstring (uri) (example: https://github.com/orgs/rails/teams/core)
ldap_dnstringThe distinguished name (DN) of the LDAP entry to map to a team. (example: cn=Enterprise Ops,ou=teams,dc=github,dc=com)
members_countinteger
members_urlstring (example: https://api.github.com/organizations/1/team/1/members{/member})
notification_settingstringThe notification setting the team has set (notifications_enabled, notifications_disabled) (example: notifications_enabled)
organizationobjectTeam Organization (title: Team Organization)
parentobjectGroups of organization members that gives permissions on specified repositories. (title: Team Simple)
permissionstringPermission that the team will have for its repositories (example: push)
privacystringThe level of privacy this team should have (closed, secret) (example: closed)
repos_countinteger
repositories_urlstring (uri) (example: https://api.github.com/organizations/1/team/1/repos)
slugstring (example: justice-league)
typestringThe ownership type of the team (enterprise, organization)
updated_atstring (date-time) (example: 2017-08-17T12:37:15Z)
urlstring (uri)URL for the team (example: https://api.github.com/organizations/1/team/1)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_by_nameselectorg, team_slugGets a team using the team's slug. To create the slug, GitHub replaces special characters in the name string, changes all words to lowercase, and replaces spaces with a - separator. For example, "My TEam Näme" would become my-team-name.

> [!NOTE]
> You can also specify a team by org_id and team_id using the route GET /organizations/{org_id}/team/{team_id}.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
orgstringThe organization name. The name is not case sensitive.
team_slugstringThe slug of the team name.

SELECT examples

Gets a team using the team's slug. To create the slug, GitHub replaces special characters in the name string, changes all words to lowercase, and replaces spaces with a - separator. For example, "My TEam Näme" would become my-team-name.

> [!NOTE]
> You can also specify a team by org_id and team_id using the route GET /organizations/{org_id}/team/{team_id}.

SELECT
id,
name,
enterprise_id,
node_id,
organization_id,
created_at,
description,
html_url,
ldap_dn,
members_count,
members_url,
notification_setting,
organization,
parent,
permission,
privacy,
repos_count,
repositories_url,
slug,
type,
updated_at,
url
FROM github.teams.details
WHERE org = '{{ org }}' -- required
AND team_slug = '{{ team_slug }}' -- required
;