Discourse Extended icon

Discourse Extended

Read and manage Discourse AI artifacts, categories, posts, topics, personal messages, uploads, and Data Explorer queries

Topic → Set Status

AI-generated

Summary

Update or toggle the status of a Discourse topic, such as closing, archiving, pinning, or toggling visibility.

Inputs

  • topicId (required) — The ID or URL of the Discourse topic whose status is being modified.
  • status — The topic status to set or toggle (Archived, Closed, Pinned, Pinned Globally, or Visible). Defaults to Closed.
  • enabled — Whether to enable or disable the specified status state. Defaults to true.
  • until — Optional expiration timestamp when setting 'pinned' or 'pinned_globally' status.

Output shape

a single record

Returns the response from Discourse indicating the result of the status change for the specified topic.

Examples

Example 1: Close a topic to prevent further replies

Set Topic ID or URL to topic ID, Status to 'Closed', and Enabled to true.

Example 2: Pin a topic until a specific expiration date

Set Topic ID or URL to topic ID, Status to 'Pinned', Enabled to true, and specify an absolute timestamp in Until.

Links

Discussion