Admin APIs/Team Management
Create Team Member
POST
/admin/teamsBearer token required
ADMINContent-Type:
application/jsonRequest Example
JSON
{
"name": "Support Agent",
"email": "support@fleet.co",
"mobilePrefix": "+91",
"mobileNumber": "9876543210",
"username": "support_agent",
"password": "TeamP@ss123"
}Code Examples
curl -X POST 'https://<your-domain>:3001/admin/teams' \
-H 'Authorization: Bearer <token>' \
-H 'Content-Type: application/json' \
-d '{
"name": "Support Agent",
"email": "support@fleet.co",
"mobilePrefix": "+91",
"mobileNumber": "9876543210",
"username": "support_agent",
"password": "TeamP@ss123"
}'