Appwrite icon

Appwrite

Interact with Appwrite API

Actions181

Messaging → Update Topic

AI-generated

Overview

This node interacts with the Appwrite API to update a messaging topic. It allows users to modify the name and subscribe permissions of an existing topic by specifying the topic ID. This is useful in scenarios where topic configurations need to be changed dynamically, such as updating access controls or renaming topics in a messaging system.

Use Case Examples

  1. Updating the name of a topic to better reflect its purpose.
  2. Changing the subscribe permissions to restrict or allow different user groups.

Properties

Name Meaning
Topic ID The unique identifier of the topic to update, required to specify which topic to modify.
Name The new name for the topic; if left empty, the current name remains unchanged.
Subscribe Permissions A comma-separated list of permissions defining who can subscribe to the topic; if left empty, current permissions remain unchanged.

Output

JSON

  • topicId - The ID of the updated topic.
  • name - The updated name of the topic.
  • subscribe - The updated subscribe permissions for the topic.

Dependencies

  • Appwrite API key credential for authentication

Troubleshooting

  • Ensure the Topic ID is valid and exists; otherwise, the update will fail.
  • If the API key or project ID is incorrect or missing, authentication errors will occur.
  • Empty 'Name' or 'Subscribe Permissions' fields will keep the current values, so verify if changes are intended.
  • Check network connectivity to the Appwrite endpoint to avoid request failures.

Links

Discussion