Tool
Switch project
The Switch Project tool by PostHog allows users to seamlessly change the active project within their analytics environment. This feature ensures efficient management and quick switching between multiple projects without disrupting workflow.
Features
- Easily switch the active project from the default project with a simple command.
- Supports multiple projects within a single account for streamlined analytics management.
- Ensures idempotent operation to avoid unintended side effects when switching projects.
- Strict input validation requiring a valid project ID to maintain accuracy and security.
- Designed to be used only when explicitly requested, preserving the default project setting otherwise.
Benefits
- Improves user efficiency by enabling quick project changes without manual navigation.
- Reduces errors by validating project IDs before switching.
- Maintains consistent analytics tracking by preventing accidental project switches.
- Supports better organization of analytics data across different projects.
- Enhances user control over their analytics environment with a clear and simple interface.
Description
Change the active project from the default project. You should only use this tool if the user asks you to change the project - otherwise, the default project will be used.
Parameters
1 parameter
| Name | Type | Description |
|---|---|---|
| projectIdrequired | integer | — |