mirror of
https://github.com/chatwoot/chatwoot.git
synced 2026-06-13 21:01:16 +08:00
The Platform API was returning the bot's `name` value for the `outgoing_url` field across all agent bot endpoints (index, show, create, update). A typo in the `_agent_bot.json.jbuilder` partial used `resource.name` instead of `resource.outgoing_url`. Closes #13787 ## What changed - `app/views/platform/api/v1/models/_agent_bot.json.jbuilder`: corrected `resource.name` → `resource.outgoing_url` on the `outgoing_url` field. ## How to reproduce 1. Create an agent bot via `POST /platform/api/v1/agent_bots` with a distinct `outgoing_url`. 2. Call `GET /platform/api/v1/agent_bots/:id`. 3. Before this fix the `outgoing_url` in the response equals the bot's `name`; after the fix it equals the value set at creation. ## Tests Added `outgoing_url` assertions to the existing GET index and GET show request specs so the regression is covered. |
||
|---|---|---|
| .. | ||
| android_app | ||
| api | ||
| apple_app | ||
| dashboard | ||
| devise | ||
| fields | ||
| icons | ||
| installation/onboarding | ||
| layouts | ||
| mailers | ||
| microsoft | ||
| platform/api/v1 | ||
| public/api/v1 | ||
| super_admin | ||
| survey/responses | ||
| widget_tests | ||
| widgets | ||