Overview
The CreateTeamCommand creates a new team within a workspace for organizing members and projects.
Example
{ "commandId": "cmd_team_456", "commandType": "CreateTeamCommand", "timestamp": "2025-12-11T14:00:00Z", "version": "1.0.0", "data": { "workspaceId": "ws_acme_corp", "name": "Engineering", "description": "Product engineering team", "visibility": "public", "createdBy": { "userId": "usr_john_doe", "name": "John Doe" } }}Validation Rules
- Team name must be unique within workspace
- Name must be 2-50 characters
- Creator must be workspace member
- Visibility must be ‘public’ or ‘private’
Results
Success: TeamCreated event is published