#335 — Facade API to update specific flexible widget on dashboard
Repo: Twill-AI/facade State: closed | Status: done Assignee: meliascosta
Created: 2025-04-24 · Updated: 2025-06-16
Description
We need to create a similar endpoint to the one created on https://github.com/Twill-AI/facade/issues/326 to fully support widget update.
Implementation details
PATCH /dashboards/{dash_id}/widgets/{w_id} with request body:
{
name: str | null,
code: str | null, // type-specific content
values_update_interval_sec: int | null
}
where all fields are optional and response body:
{
id: int,
owner_id: str, // Supabase's UUIDv4.
origin_llmchat_item_id: int | null, // LLM Chat item ID where widget was created.
serving_llmchat_id: int, // LLM Chat dedicated to widget.
dashboard_position: str, // String representation of size/coordinates/etc.
name: str,
type: str, // table, echarts, kpi, virtualTerminal, transactions, etc.
sql_query: str,
code: str, // type-specific content
values_headers: [str], // Associated column headers.
values_rows: [[object, ...], ...] // Rows 2d array.
values_update_interval_sec: int,
values_updated_at: timestamp,
created_at: timestamp,
updated_at: timestamp,
}
Acceptance criteria
- The API endpoint has been added to facade
- The new endpoint is covered by unit tests
Notes
Add implementation notes, blockers, and context here
Related
Add wikilinks to related people, meetings, or other tickets