Create User
Create a new user in the organization.
Quick Navigation
Endpoint
POST /api/v1/users
Headers
| Header | Required | Description |
|---|---|---|
Authorization | Yes | Bearer <access_token> |
Content-Type | Yes | application/json |
Request Body
{
"email": "newuser@example.com",
"display_name": "New User",
"password": "SecurePassword123!",
"organization_id": 1,
"role_id": 2
}
Response
Success (201)
{
"success": true,
"data": {
"user": {
"id": 124,
"email": "newuser@example.com",
"display_name": "New User"
},
"message": "User created successfully"
},
"message": "User created successfully"
}
Features
- User creation with validation
- Email verification setup
- Default role assignment
- Audit logging
Status
[WARNING] TODO: Not Implemented
This endpoint is defined in the router but the implementation logic is not yet complete.