Actions181
- Account Actions
- Get Account
- Create Account
- Update Email
- Update Name
- Update Password
- Update Phone
- Update Status
- Get Preferences
- Update Preferences
- List Sessions
- Delete Sessions
- Get Session
- Update Session
- Delete Session
- Create Anonymous Session
- Create Email/Password Session
- Create Magic URL Session
- Create OAuth2 Session
- Create Phone Session
- Create Session from Token
- Create JWT
- Create Magic URL
- Create Phone Token
- Create Email Verification
- Update Email Verification
- Create Phone Verification
- Update Phone Verification
- Create Password Recovery
- Update Password Recovery
- Create Recovery
- Update Recovery
- Update MFA
- Create MFA Authenticator
- Update MFA Authenticator
- Delete MFA Authenticator
- Create MFA Challenge
- Update MFA Challenge
- Attribute Actions
- Avatars Actions
- Collection Actions
- Database Actions
- Document Actions
- Functions Actions
- Index Actions
- Locale Actions
- Messaging Actions
- Sites Actions
- Storage Actions
- Teams Actions
- Users Actions
Messaging → Create Topic
AI-generatedOverview
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
- Creating a topic for a chat room where users can subscribe to receive messages.
- 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
- Appwrite Messaging API Documentation - Official documentation for Appwrite Messaging API, including topic creation details.