Appwrite icon

Appwrite

Interact with Appwrite API

Actions181

Messaging → Create Topic

AI-generated

Overview

This node operation creates a new messaging topic in the Appwrite platform. It is useful for setting up communication channels where messages can be published and subscribed to by different users or systems. For example, it can be used to create topics for chat applications, notification systems, or event-driven architectures.

Use Case Examples

  1. Creating a topic for a chat room where users can subscribe to receive messages.
  2. Setting up a topic for system notifications that multiple services can subscribe to.

Properties

Name Meaning
Topic ID Unique identifier for the topic to be created. Using unique() generates a unique ID automatically.
Name The display name of the topic.
Subscribe Permissions Comma-separated list of permissions defining who can subscribe to the topic, e.g., users, guests.

Output

JSON

  • topicId - The unique identifier of the created topic.
  • name - The name of the created topic.
  • subscribe - The list of subscribe permissions set for the topic.

Dependencies

  • Appwrite API key credential for authentication

Troubleshooting

  • Ensure the Appwrite API credentials (endpoint, project ID, API key) are correctly configured to avoid authentication errors.
  • Verify that the Topic ID is unique to prevent conflicts when creating a new topic.
  • Check the format of the subscribe permissions; it should be a comma-separated string without invalid characters.

Links

Discussion