add_team_website
Add a website to a team in Umami Analytics by specifying team and website IDs for access management.
Instructions
Add a website to a team
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| teamId | Yes | Team UUID | |
| websiteId | Yes | Website UUID to add to the team |
Implementation Reference
- src/tools/teams.ts:179-190 (handler)The implementation of the 'add_team_website' tool, which handles adding a website to a team by making a POST request to the API.
server.tool( "add_team_website", "Add a website to a team", { teamId: z.string().describe("Team UUID"), websiteId: z.string().describe("Website UUID to add to the team"), }, async ({ teamId, websiteId }) => { const data = await client.call("POST", `/api/teams/${teamId}/websites`, { websiteId }); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] }; } );