Github API - Test Config

GET /teams/{team_id}/memberships/{username}
users
teams

Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new Get team membership for a user endpoint.

Team members will include the members of child teams.

To get a user's membership with a team, the team must be visible to the authenticated user.

Note:
The response contains the state of the membership and the member's role.

The role for organization owners is set to maintainer. For more information about maintainer roles, see Create a team.
Get team membership for a user (Legacy)

Arguments
key team-id

team-id [scalar]

The unique identifier of the team.

API:
Github Open API
(version: 1.1.4)

key username

username [scalar]

The handle for the GitHub user account.

API:
Github Open API
(version: 1.1.4)

Returns
200 application/json team-membership

team-membership [object]

Team Membership

Attributes
role string

The role of the user in the team.

state string

The state of the user's membership in the team.

url string

API:
Github Open API
(version: 1.1.4)
404 not_found

not_found [scalar]

Resource not found

API:
Github Open API
(version: 1.1.4)
API:
Github Open API
(version: 1.1.4)