curl -X POST "https://api.hitler.app/api/users" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"email": "newuser@acme.com",
"name": "Jane Smith",
"role": "employee"
}'
{
"id": "user-uuid-new",
"email": "newuser@acme.com",
"name": "Jane Smith",
"role": "employee",
"isActive": true,
"organizationId": "org-uuid",
"createdAt": "2024-01-15T10:00:00.000Z"
}
Create a new user in the organization
curl -X POST "https://api.hitler.app/api/users" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"email": "newuser@acme.com",
"name": "Jane Smith",
"role": "employee"
}'
{
"id": "user-uuid-new",
"email": "newuser@acme.com",
"name": "Jane Smith",
"role": "employee",
"isActive": true,
"organizationId": "org-uuid",
"createdAt": "2024-01-15T10:00:00.000Z"
}
employee, manager, admincurl -X POST "https://api.hitler.app/api/users" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"email": "newuser@acme.com",
"name": "Jane Smith",
"role": "employee"
}'
{
"id": "user-uuid-new",
"email": "newuser@acme.com",
"name": "Jane Smith",
"role": "employee",
"isActive": true,
"organizationId": "org-uuid",
"createdAt": "2024-01-15T10:00:00.000Z"
}