channel_folders: Add support to update channel folders.

Fixes part of #31972.
This commit is contained in:
Sahil Batra
2025-05-07 19:21:08 +05:30
committed by Tim Abbott
parent e93667cc06
commit 5de0f265bd
14 changed files with 534 additions and 6 deletions

View File

@@ -45,7 +45,11 @@ from zerver.views.auth import (
start_social_login,
start_social_signup,
)
from zerver.views.channel_folders import create_channel_folder, get_channel_folders
from zerver.views.channel_folders import (
create_channel_folder,
get_channel_folders,
update_channel_folder,
)
from zerver.views.compatibility import check_global_compatibility
from zerver.views.custom_profile_fields import (
create_realm_custom_profile_field,
@@ -533,6 +537,7 @@ v1_api_and_json_patterns = [
),
rest_path("channel_folders/create", POST=create_channel_folder),
rest_path("channel_folders", GET=get_channel_folders),
rest_path("channel_folders/<int:channel_folder_id>", PATCH=update_channel_folder),
# topic-muting -> zerver.views.user_topics
# (deprecated and will be removed once clients are migrated to use '/user_topics')
rest_path("users/me/subscriptions/muted_topics", PATCH=update_muted_topic),