feat(teams): align frontend update routes

This commit is contained in:
2026-06-06 14:12:57 +08:00
parent 0ed1cfdee5
commit a142a3c4c4
6 changed files with 57 additions and 12 deletions
+8 -1
View File
@@ -94,6 +94,7 @@ DELETE /api/v1/accounts/:account_id/sla_policies/:id
DELETE /api/v1/accounts/:account_id/sla_policies/:id/inboxes/:inbox_id
DELETE /api/v1/accounts/:account_id/tags/:tag_id
DELETE /api/v1/accounts/:account_id/teams/:team_id
DELETE /api/v1/accounts/:account_id/teams/:team_id/team_members
DELETE /api/v1/accounts/:account_id/teams/:team_id/team_members/
DELETE /api/v1/accounts/:account_id/twitter_channels/:twitter_id
DELETE /api/v1/accounts/:account_id/users/:user_id
@@ -362,8 +363,10 @@ GET /api/v1/accounts/:account_id/summary_reports/team
GET /api/v1/accounts/:account_id/tags/
GET /api/v1/accounts/:account_id/tags/:tag_id
GET /api/v1/accounts/:account_id/tags/:tag_id/conversations
GET /api/v1/accounts/:account_id/teams
GET /api/v1/accounts/:account_id/teams/
GET /api/v1/accounts/:account_id/teams/:team_id
GET /api/v1/accounts/:account_id/teams/:team_id/team_members
GET /api/v1/accounts/:account_id/teams/:team_id/team_members/
GET /api/v1/accounts/:account_id/tiktok_channels/
GET /api/v1/accounts/:account_id/twilio_sms_channels/
@@ -530,6 +533,8 @@ PATCH /api/v1/accounts/:account_id/portals/:portal_id/articles/:article_id
PATCH /api/v1/accounts/:account_id/portals/:portal_id/articles/bulk_actions/update_category
PATCH /api/v1/accounts/:account_id/portals/:portal_id/articles/bulk_actions/update_status
PATCH /api/v1/accounts/:account_id/portals/:portal_id/categories/:category_id
PATCH /api/v1/accounts/:account_id/teams/:team_id
PATCH /api/v1/accounts/:account_id/teams/:team_id/team_members
PATCH /api/v1/accounts/:account_id/teams/:team_id/team_members/
PATCH /api/v1/accounts/:account_id/webhooks/:webhook_id
PATCH /api/v1/widget/contact
@@ -729,7 +734,9 @@ POST /api/v1/accounts/:account_id/saml_settings/:id/toggle_active
POST /api/v1/accounts/:account_id/sla_policies
POST /api/v1/accounts/:account_id/sla_policies/:id/inboxes
POST /api/v1/accounts/:account_id/tags/
POST /api/v1/accounts/:account_id/teams
POST /api/v1/accounts/:account_id/teams/
POST /api/v1/accounts/:account_id/teams/:team_id/team_members
POST /api/v1/accounts/:account_id/teams/:team_id/team_members/
POST /api/v1/accounts/:account_id/tiktok_channels/
POST /api/v1/accounts/:account_id/twilio_sms_channels/
@@ -910,4 +917,4 @@ PUT /public/api/v1/csat_survey/:id
PUT /public/api/v1/inboxes/:inbox_id/contacts/:contact_id
PUT /public/api/v1/inboxes/:inbox_id/contacts/:contact_id/conversations/:conversation_id/messages/:message_id
PUT /widget/direct_uploads/:upload_uuid
TOTAL: 912
TOTAL: 919
+2 -1
View File
@@ -7,7 +7,7 @@ Generated from:
This report covers tracked frontend-critical Chatwoot routes from `reference/chatwoot/config/routes.rb`, including API v1 account routes, Captain/Copilot, assignment policies, widget/public APIs, and API v2 reports. Ruby is not installed in the workspace, so Chatwoot routes are sourced from static route declarations instead of `bin/rails routes`.
Summary: 360 exact, 0 method-compatible, 13 parameter-compatible, 0 missing out of 373 tracked critical routes.
Summary: 361 exact, 0 method-compatible, 13 parameter-compatible, 0 missing out of 374 tracked critical routes.
## Missing Critical Routes
@@ -257,6 +257,7 @@ These routes exist with equivalent method and path shape but different parameter
| PATCH | `/api/v1/accounts/:account_id/portals/:portal_id/articles/bulk_actions/update_category` | `/api/v1/accounts/:account_id/portals/:portal_id/articles/bulk_actions/update_category` | `api/v1/accounts/articles/bulk_actions#update_category` | `routes.rb:399` | exact |
| PATCH | `/api/v1/accounts/:account_id/portals/:portal_id/articles/bulk_actions/update_status` | `/api/v1/accounts/:account_id/portals/:portal_id/articles/bulk_actions/update_status` | `api/v1/accounts/articles/bulk_actions#update_status` | `routes.rb:398` | exact |
| PATCH | `/api/v1/accounts/:account_id/portals/:portal_id/categories/:category_id` | `/api/v1/accounts/:account_id/portals/:portal_id/categories/:category_id` | `api/v1/accounts/categories#update` | `routes.rb:392` | exact |
| PATCH | `/api/v1/accounts/:account_id/teams/:team_id` | `/api/v1/accounts/:account_id/teams/:team_id` | `api/v1/accounts/teams#update` | `routes.rb:296` | exact |
| PATCH | `/api/v1/accounts/:account_id/teams/:team_id/team_members/` | `/api/v1/accounts/:account_id/teams/:team_id/team_members/` | `api/v1/accounts/teams/team_members#update` | `routes.rb:300` | exact |
| PATCH | `/api/v1/accounts/:account_id/webhooks/:webhook_id` | `/api/v1/accounts/:account_id/webhooks/:webhook_id` | `api/v1/accounts/webhooks#update` | `routes.rb:342` | exact |
| PATCH | `/api/v1/widget/contact/set_user` | `/api/v1/widget/contact/set_user` | `api/v1/widget/contact#set_user` | `routes.rb:461` | exact |