team_slug parameter
Get a discussion comment
Get a specific comment on a team discussion. OAuth access tokens require the read:discussion
scope.
Note: You can also specify a team by org_id
and team_id
using the route GET /organizations/{org_id}/team/{team_id}/discussions/{discussion_number}/comments/{comment_number}
.
Path Parameters
Response
200 application/json
Response
Response
Team Discussion Comment
A reply to a discussion within a team.
Simple User
Show Child Parameters
The main text of the comment.
Example:I agree with this suggestion.
Example:<p>Do you like apples?</p>
The current version of the body content. If provided, this update operation will be rejected if the given version does not match the latest version on the server.
Example:0307116bbf7ced493b8d8a346c650b71
Example:2018-01-15T23:53:58Z
Example:https://api.github.com/organizations/1/team/2403582/discussions/1
Example:https://github.com/orgs/github/teams/justice-league/discussions/1/comments/1
Example:MDIxOlRlYW1EaXNjdXNzaW9uQ29tbWVudDE=
The unique sequence number of a team discussion comment.
Example:42
Example:2018-01-15T23:53:58Z
Example:https://api.github.com/organizations/1/team/2403582/discussions/1/comments/1
Show Child Parameters
Path Parameters
Update a discussion comment
Edits the body text of a discussion comment. OAuth access tokens require the write:discussion
scope.
Note: You can also specify a team by org_id
and team_id
using the route PATCH /organizations/{org_id}/team/{team_id}/discussions/{discussion_number}/comments/{comment_number}
.
Path Parameters
team_slug parameter
Body
application/json
Body
The discussion comment’s body text.
Response
200 application/json
Response
Response
Team Discussion Comment
A reply to a discussion within a team.
Simple User
Show Child Parameters
The main text of the comment.
Example:I agree with this suggestion.
Example:<p>Do you like apples?</p>
The current version of the body content. If provided, this update operation will be rejected if the given version does not match the latest version on the server.
Example:0307116bbf7ced493b8d8a346c650b71
Example:2018-01-15T23:53:58Z
Example:https://api.github.com/organizations/1/team/2403582/discussions/1
Example:https://github.com/orgs/github/teams/justice-league/discussions/1/comments/1
Example:MDIxOlRlYW1EaXNjdXNzaW9uQ29tbWVudDE=
The unique sequence number of a team discussion comment.
Example:42
Example:2018-01-15T23:53:58Z
Example:https://api.github.com/organizations/1/team/2403582/discussions/1/comments/1
Show Child Parameters
Path Parameters
Body
Delete a discussion comment
Deletes a comment on a team discussion. OAuth access tokens require the write:discussion
scope.
Note: You can also specify a team by org_id
and team_id
using the route DELETE /organizations/{org_id}/team/{team_id}/discussions/{discussion_number}/comments/{comment_number}
.
Path Parameters
team_slug parameter
Response
204
Response
Response
Path Parameters
List team members
Team members will include the members of child teams.
To list members in a team, the team must be visible to the authenticated user.
Query Parameters
Filters members returned by their role in the team. Can be one of:
* member
- normal members of the team.
* maintainer
- team maintainers.
* all
- all members of the team.
Allowed values:membermaintainerall
Default:all
Results per page (max 100)
Default:30
Page number of the results to fetch.
Default:1
Path Parameters
team_slug parameter
Response
200 application/json
Response
Response
Simple User
Example:octocat
Example:1
Example:MDQ6VXNlcjE=
Example:https://github.com/images/error/octocat_happy.gif
Example:41d064eb2195891e12d0413f63227ea7
Example:https://api.github.com/users/octocat
Example:https://github.com/octocat
Example:https://api.github.com/users/octocat/followers
Example:https://api.github.com/users/octocat/following{/other_user}
Example:https://api.github.com/users/octocat/gists{/gist_id}
Example:https://api.github.com/users/octocat/starred{/owner}{/repo}
Example:https://api.github.com/users/octocat/subscriptions
Example:https://api.github.com/users/octocat/orgs
Example:https://api.github.com/users/octocat/repos
Example:https://api.github.com/users/octocat/events{/privacy}
Example:https://api.github.com/users/octocat/received_events
Example:User
Example:"2020-07-09T00:17:55Z"
Path Parameters
Query Parameters
Get team membership for a user
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: You can also specify a team by org_id
and team_id
using the route GET /organizations/{org_id}/team/{team_id}/memberships/{username}
.
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 see Create a team.
Path Parameters
team_slug parameter
Response
application/json
Response
Response
Team Membership
Team Membership
The role of the user in the team.
Allowed values:membermaintainer
Default:member
Example:member
The state of the user’s membership in the team.
Allowed values:activepending