One of asc
(ascending) or desc
(descending).
Allowed values:ascdesc
Default:desc
Results per page (max 100)
Default:30
Page number of the results to fetch.
Default:1
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 List discussions
endpoint.
List all discussions on a team’s page. OAuth access tokens require the read:discussion
scope.
One of asc
(ascending) or desc
(descending).
Allowed values:ascdesc
Default:desc
Results per page (max 100)
Default:30
Page number of the results to fetch.
Default:1
Response
A team discussion is a persistent record of a free-form conversation within a team.
Simple User
The main text of the discussion.
Example:Please suggest improvements to our workflow in comments.
Example:<p>Hi! This is an area for us to collaborate as a team</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:0
Example:https://api.github.com/organizations/1/team/2343027/discussions/1/comments
Example:2018-01-25T18:56:31Z
Example:https://github.com/orgs/github/teams/justice-league/discussions/1
Example:MDE0OlRlYW1EaXNjdXNzaW9uMQ==
The unique sequence number of a team discussion.
Example:42
Whether or not this discussion should be pinned for easy retrieval.
Example:true
Whether or not this discussion should be restricted to team members and organization administrators.
Example:true
Example:https://api.github.com/organizations/1/team/2343027
The title of the discussion.
Example:How can we improve our workflow?
Example:2018-01-25T18:56:31Z
Example:https://api.github.com/organizations/1/team/2343027/discussions/1
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 Create a discussion
endpoint.
Creates a new discussion post on a team’s page. OAuth access tokens require the write:discussion
scope.
This endpoint triggers notifications. Creating content too quickly using this endpoint may result in secondary rate limiting. See “Secondary rate limits” and “Dealing with secondary rate limits” for details.
The discussion post’s title.
The discussion post’s body text.
Private posts are only visible to team members, organization owners, and team maintainers. Public posts are visible to all members of the organization. Set to true
to create a private post.
Default:false
Response
A team discussion is a persistent record of a free-form conversation within a team.
Simple User
The main text of the discussion.
Example:Please suggest improvements to our workflow in comments.
Example:<p>Hi! This is an area for us to collaborate as a team</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:0
Example:https://api.github.com/organizations/1/team/2343027/discussions/1/comments
Example:2018-01-25T18:56:31Z
Example:https://github.com/orgs/github/teams/justice-league/discussions/1
Example:MDE0OlRlYW1EaXNjdXNzaW9uMQ==
The unique sequence number of a team discussion.
Example:42
Whether or not this discussion should be pinned for easy retrieval.
Example:true
Whether or not this discussion should be restricted to team members and organization administrators.
Example:true
Example:https://api.github.com/organizations/1/team/2343027
The title of the discussion.
Example:How can we improve our workflow?
Example:2018-01-25T18:56:31Z
Example:https://api.github.com/organizations/1/team/2343027/discussions/1
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 a discussion endpoint.
Get a specific discussion on a team’s page. OAuth access tokens require the read:discussion
scope.
Response
A team discussion is a persistent record of a free-form conversation within a team.
Simple User
The main text of the discussion.
Example:Please suggest improvements to our workflow in comments.
Example:<p>Hi! This is an area for us to collaborate as a team</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:0
Example:https://api.github.com/organizations/1/team/2343027/discussions/1/comments
Example:2018-01-25T18:56:31Z
Example:https://github.com/orgs/github/teams/justice-league/discussions/1
Example:MDE0OlRlYW1EaXNjdXNzaW9uMQ==
The unique sequence number of a team discussion.
Example:42
Whether or not this discussion should be pinned for easy retrieval.
Example:true
Whether or not this discussion should be restricted to team members and organization administrators.
Example:true
Example:https://api.github.com/organizations/1/team/2343027
The title of the discussion.
Example:How can we improve our workflow?
Example:2018-01-25T18:56:31Z
Example:https://api.github.com/organizations/1/team/2343027/discussions/1
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 Update a discussion endpoint.
Edits the title and body text of a discussion post. Only the parameters you provide are updated. OAuth access tokens require the write:discussion
scope.
The discussion post’s title.
The discussion post’s body text.
Response
A team discussion is a persistent record of a free-form conversation within a team.
Simple User
The main text of the discussion.
Example:Please suggest improvements to our workflow in comments.
Example:<p>Hi! This is an area for us to collaborate as a team</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:0
Example:https://api.github.com/organizations/1/team/2343027/discussions/1/comments
Example:2018-01-25T18:56:31Z
Example:https://github.com/orgs/github/teams/justice-league/discussions/1
Example:MDE0OlRlYW1EaXNjdXNzaW9uMQ==
The unique sequence number of a team discussion.
Example:42
Whether or not this discussion should be pinned for easy retrieval.
Example:true
Whether or not this discussion should be restricted to team members and organization administrators.
Example:true
Example:https://api.github.com/organizations/1/team/2343027
The title of the discussion.
Example:How can we improve our workflow?
Example:2018-01-25T18:56:31Z
Example:https://api.github.com/organizations/1/team/2343027/discussions/1
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 Delete a discussion
endpoint.
Delete a discussion from a team’s page. OAuth access tokens require the write:discussion
scope.
Response