api.php under the tenant-scoped group.setTeamLead method does NOT exist in TeamsController.php. This endpoint will return a 500 error (missing method) until the controller method is implemented. The Team model has a setTeamLead(User $user) method that assigns the user to the team and sets team_lead_user_id.curl --location 'https://api-dev.commandroom.ai/api/api/teams/12/set-team-lead' \
--header 'Authorization: Bearer {{token}}' \
--header 'X-Tenant-UUID: ' \
--header 'Content-Type: application/json' \
--data '{
"user_id": 1
}'{
"success": true,
"data": {
"id": 1,
"name": "Sample Name",
"team_lead_user_id": 1
}
}