feat(conversations): align draft message route

This commit is contained in:
2026-06-06 15:22:18 +08:00
parent 18a2cc5e83
commit 495b194411
9 changed files with 281 additions and 25 deletions
+5 -1
View File
@@ -38,6 +38,7 @@ DELETE /api/v1/accounts/:account_id/contacts/:contact_id/custom_attributes/:attr
DELETE /api/v1/accounts/:account_id/contacts/:contact_id/notes/:note_id
DELETE /api/v1/accounts/:account_id/conversations/:conversation_id
DELETE /api/v1/accounts/:account_id/conversations/:conversation_id/custom_attributes/:attribute_name
DELETE /api/v1/accounts/:account_id/conversations/:conversation_id/draft_messages
DELETE /api/v1/accounts/:account_id/conversations/:conversation_id/draft_messages/:draft_id
DELETE /api/v1/accounts/:account_id/conversations/:conversation_id/labels/:tag_id
DELETE /api/v1/accounts/:account_id/conversations/:conversation_id/messages/:message_id
@@ -216,6 +217,7 @@ GET /api/v1/accounts/:account_id/contacts/search
GET /api/v1/accounts/:account_id/conversations/
GET /api/v1/accounts/:account_id/conversations/:conversation_id
GET /api/v1/accounts/:account_id/conversations/:conversation_id/attachments
GET /api/v1/accounts/:account_id/conversations/:conversation_id/draft_messages
GET /api/v1/accounts/:account_id/conversations/:conversation_id/draft_messages/
GET /api/v1/accounts/:account_id/conversations/:conversation_id/draft_messages/:draft_id
GET /api/v1/accounts/:account_id/conversations/:conversation_id/inbox_assistant
@@ -504,6 +506,7 @@ PATCH /api/v1/accounts/:account_id/companies/:company_id
PATCH /api/v1/accounts/:account_id/contacts/:contact_id
PATCH /api/v1/accounts/:account_id/contacts/:contact_id/notes/:note_id
PATCH /api/v1/accounts/:account_id/conversations/:conversation_id
PATCH /api/v1/accounts/:account_id/conversations/:conversation_id/draft_messages
PATCH /api/v1/accounts/:account_id/conversations/:conversation_id/draft_messages/:draft_id
PATCH /api/v1/accounts/:account_id/conversations/:conversation_id/labels
PATCH /api/v1/accounts/:account_id/conversations/:conversation_id/messages/:message_id
@@ -870,6 +873,7 @@ PUT /api/v1/accounts/:account_id/contacts/:contact_id
PUT /api/v1/accounts/:account_id/contacts/:contact_id/notes/:note_id
PUT /api/v1/accounts/:account_id/conversations/:conversation_id
PUT /api/v1/accounts/:account_id/conversations/:conversation_id/direct_uploads/:upload_uuid
PUT /api/v1/accounts/:account_id/conversations/:conversation_id/draft_messages
PUT /api/v1/accounts/:account_id/conversations/:conversation_id/messages/:message_id
PUT /api/v1/accounts/:account_id/conversations/:conversation_id/participants
PUT /api/v1/accounts/:account_id/conversations/:conversation_id/participants/
@@ -926,4 +930,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: 928
TOTAL: 932
+5 -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: 368 exact, 0 method-compatible, 13 parameter-compatible, 0 missing out of 381 tracked critical routes.
Summary: 372 exact, 0 method-compatible, 13 parameter-compatible, 0 missing out of 385 tracked critical routes.
## Missing Critical Routes
@@ -67,6 +67,7 @@ These routes exist with equivalent method and path shape but different parameter
| DELETE | `/api/v1/accounts/:account_id/contacts/:contact_id` | `/api/v1/accounts/:account_id/contacts/:contact_id` | `api/v1/accounts/contacts#destroy` | `routes.rb:197` | exact |
| DELETE | `/api/v1/accounts/:account_id/contacts/:contact_id/avatar` | `/api/v1/accounts/:account_id/contacts/:contact_id/avatar` | `api/v1/accounts/contacts#avatar` | `routes.rb:208` | exact |
| DELETE | `/api/v1/accounts/:account_id/conversations/:conversation_id` | `/api/v1/accounts/:account_id/conversations/:conversation_id` | `api/v1/accounts/conversations#destroy` | `routes.rb:134` | exact |
| DELETE | `/api/v1/accounts/:account_id/conversations/:conversation_id/draft_messages` | `/api/v1/accounts/:account_id/conversations/:conversation_id/draft_messages` | `api/v1/accounts/conversations/draft_messages#destroy` | `routes.rb:152` | exact |
| DELETE | `/api/v1/accounts/:account_id/conversations/:conversation_id/messages/:message_id` | `/api/v1/accounts/:account_id/conversations/:conversation_id/messages/:message_id` | `api/v1/accounts/conversations/messages#destroy` | `routes.rb:142` | exact |
| DELETE | `/api/v1/accounts/:account_id/conversations/:conversation_id/participants` | `/api/v1/accounts/:account_id/conversations/:conversation_id/participants` | `api/v1/accounts/conversations/participants#destroy` | `routes.rb:150` | exact |
| DELETE | `/api/v1/accounts/:account_id/custom_attribute_definitions/:id` | `/api/v1/accounts/:account_id/custom_attribute_definitions/:id` | `api/v1/accounts/custom_attribute_definitions#destroy` | `routes.rb:250` | exact |
@@ -144,6 +145,7 @@ These routes exist with equivalent method and path shape but different parameter
| GET | `/api/v1/accounts/:account_id/contacts/search` | `/api/v1/accounts/:account_id/contacts/search` | `api/v1/accounts/contacts#search` | `routes.rb:201` | exact |
| GET | `/api/v1/accounts/:account_id/conversations/` | `/api/v1/accounts/:account_id/conversations/` | `api/v1/accounts/conversations#index` | `routes.rb:134` | exact |
| GET | `/api/v1/accounts/:account_id/conversations/:conversation_id` | `/api/v1/accounts/:account_id/conversations/:conversation_id` | `api/v1/accounts/conversations#show` | `routes.rb:134` | exact |
| GET | `/api/v1/accounts/:account_id/conversations/:conversation_id/draft_messages` | `/api/v1/accounts/:account_id/conversations/:conversation_id/draft_messages` | `api/v1/accounts/conversations/draft_messages#show` | `routes.rb:152` | exact |
| GET | `/api/v1/accounts/:account_id/conversations/:conversation_id/inbox_assistant` | `/api/v1/accounts/:account_id/conversations/:conversation_id/inbox_assistant` | `api/v1/accounts/conversations#inbox_assistant` | `routes.rb:165` | exact |
| GET | `/api/v1/accounts/:account_id/conversations/:conversation_id/labels` | `/api/v1/accounts/:account_id/conversations/:conversation_id/labels` | `api/v1/accounts/conversations/labels#index` | `routes.rb:149` | exact |
| GET | `/api/v1/accounts/:account_id/conversations/:conversation_id/messages/` | `/api/v1/accounts/:account_id/conversations/:conversation_id/messages/` | `api/v1/accounts/conversations/messages#index` | `routes.rb:142` | exact |
@@ -252,6 +254,7 @@ These routes exist with equivalent method and path shape but different parameter
| PATCH | `/api/v1/accounts/:account_id/agent_bots/:agent_bot_id` | `/api/v1/accounts/:account_id/agent_bots/:agent_bot_id` | `api/v1/accounts/agent_bots#update` | `routes.rb:94` | exact |
| PATCH | `/api/v1/accounts/:account_id/agent_capacity_policies/:id` | `/api/v1/accounts/:account_id/agent_capacity_policies/:id` | `api/v1/accounts/agent_capacity_policies#update` | `routes.rb:123` | exact |
| PATCH | `/api/v1/accounts/:account_id/canned_responses/:id` | `/api/v1/accounts/:account_id/canned_responses/:id` | `api/v1/accounts/canned_responses#update` | `routes.rb:114` | exact |
| PATCH | `/api/v1/accounts/:account_id/conversations/:conversation_id/draft_messages` | `/api/v1/accounts/:account_id/conversations/:conversation_id/draft_messages` | `api/v1/accounts/conversations/draft_messages#update` | `routes.rb:152` | exact |
| PATCH | `/api/v1/accounts/:account_id/conversations/:conversation_id/participants` | `/api/v1/accounts/:account_id/conversations/:conversation_id/participants` | `api/v1/accounts/conversations/participants#update` | `routes.rb:150` | exact |
| PATCH | `/api/v1/accounts/:account_id/inbox_members/` | `/api/v1/accounts/:account_id/inbox_members/` | `api/v1/accounts/inbox_members#update` | `routes.rb:278` | exact |
| PATCH | `/api/v1/accounts/:account_id/integrations/hooks/:id` | `/api/v1/accounts/:account_id/integrations/hooks/:id` | `api/v1/accounts/integrations/hooks#update` | `routes.rb:346` | exact |
@@ -394,6 +397,7 @@ These routes exist with equivalent method and path shape but different parameter
| PUT | `/api/v1/accounts/:account_id/companies/:company_id` | `/api/v1/accounts/:account_id/companies/:company_id` | `api/v1/accounts/companies#update` | `routes.rb:179` | exact |
| PUT | `/api/v1/accounts/:account_id/contacts/:contact_id` | `/api/v1/accounts/:account_id/contacts/:contact_id` | `api/v1/accounts/contacts#update` | `routes.rb:197` | exact |
| PUT | `/api/v1/accounts/:account_id/conversations/:conversation_id` | `/api/v1/accounts/:account_id/conversations/:conversation_id` | `api/v1/accounts/conversations#update` | `routes.rb:134` | exact |
| PUT | `/api/v1/accounts/:account_id/conversations/:conversation_id/draft_messages` | `/api/v1/accounts/:account_id/conversations/:conversation_id/draft_messages` | `api/v1/accounts/conversations/draft_messages#update` | `routes.rb:152` | exact |
| PUT | `/api/v1/accounts/:account_id/conversations/:conversation_id/messages/:message_id` | `/api/v1/accounts/:account_id/conversations/:conversation_id/messages/:message_id` | `api/v1/accounts/conversations/messages#update` | `routes.rb:142` | exact |
| PUT | `/api/v1/accounts/:account_id/conversations/:conversation_id/participants` | `/api/v1/accounts/:account_id/conversations/:conversation_id/participants` | `api/v1/accounts/conversations/participants#update` | `routes.rb:150` | exact |
| PUT | `/api/v1/accounts/:account_id/custom_attribute_definitions/:id` | `/api/v1/accounts/:account_id/custom_attribute_definitions/:id` | `api/v1/accounts/custom_attribute_definitions#update` | `routes.rb:250` | exact |