Update a discussion (Legacy)
Deprecated PATCH
/teams/{team_id}/discussions/{discussion_number} 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 new Update a discussion endpoint.
Edits the title and body text of a discussion post. Only the parameters you provide are updated.
OAuth app tokens and personal access tokens (classic) need the write:discussion scope to use this endpoint.
Parameters
path Path Parameters
| Name | Type |
|---|---|
team_id
required
The unique identifier of the team. | number |
discussion_number
required
The number that identifies the discussion. | number |
Request Body
application/json
{ title?: string;body?: string; }
Responses
200 application/json
Response
interface TeamDiscussion {
author:SimpleUser | null;
body: string;
body_html: string;
body_version: string;
created_at: string;
last_edited_at: string | null;
html_url: string;
node_id: string;
number: number;
pinned: boolean;
private: boolean;
team_url: string;
title: string;
updated_at: string;
url: string;
reactions?:ReactionRollup ;
}
author:
body: string;
body_html: string;
body_version: string;
created_at: string;
last_edited_at: string | null;
html_url: string;
node_id: string;
number: number;
pinned: boolean;
private: boolean;
team_url: string;
title: string;
updated_at: string;
url: string;
reactions?:
}