Back to User Management
Create User
Registers a new user in the system.
Request Details
body Parameters
Field | Type | Required | Description |
---|---|---|---|
id | string | Yes | Unique identifier for the user |
name | string | Yes | Full name of the user |
string | Yes | Email address of the user | |
password | string | Yes | User's password (write-only) |
createdAt | string date-time | No | Timestamp when the user was created |
updatedAt | string date-time | No | Timestamp when the user was last updated |
lastLogin | string date-time | No | Timestamp of the user's last login |
settings | object UserSettings | No | User-specific settings. See UserSettings schema. |
Sample Request & Response
POST
/usersRegisters a new user in the system.
Sample Request
Headers:
{
"Content-Type": "application/json",
"Authorization": "Bearer <YOUR_AUTH_TOKEN>"
}
Body:
{
"name": "John Doe",
"email": "john.doe@example.com",
"password": "securepassword123"
}
Sample Response (201)
{
"id": "usr_abc123xyz",
"name": "John Doe",
"email": "john.doe@example.com",
"createdAt": "2024-07-24T10:00:00Z"
}