pub async fn teams_slash_create_discussion_in_org(
configuration: &Configuration,
org: &str,
team_slug: &str,
teams_create_discussion_in_org_request: TeamsCreateDiscussionInOrgRequest,
) -> Result<TeamDiscussion, Error<TeamsSlashCreateDiscussionInOrgError>>
Expand description
Creates a new discussion post on a team’s page. This endpoint triggers notifications. Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see "Rate limits for the API" and "Best practices for using the REST API." Note: You can also specify a team by org_id
and team_id
using the route POST /organizations/{org_id}/team/{team_id}/discussions
. OAuth app tokens and personal access tokens (classic) need the write:discussion
scope to use this endpoint.