update_website
Modify an existing website's configuration in Umami Analytics by updating its domain, display name, or share ID settings.
Instructions
Update an existing website's configuration
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| websiteId | Yes | Website UUID | |
| domain | No | New domain | |
| name | No | New display name | |
| shareId | No | Share ID (set to null to remove) |
Implementation Reference
- src/tools/websites.ts:54-71 (handler)The `update_website` tool is defined and implemented within the `registerWebsiteTools` function in `src/tools/websites.ts`. It takes website details as input and performs a POST request to update the website configuration.
server.tool( "update_website", "Update an existing website's configuration", { websiteId: z.string().describe("Website UUID"), domain: z.string().optional().describe("New domain"), name: z.string().optional().describe("New display name"), shareId: z.string().optional().describe("Share ID (set to null to remove)"), }, async ({ websiteId, domain, name, shareId }) => { const body: Record<string, unknown> = {}; if (domain !== undefined) body.domain = domain; if (name !== undefined) body.name = name; if (shareId !== undefined) body.shareId = shareId; const data = await client.call("POST", `/api/websites/${websiteId}`, body); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] }; } );