Create Entity
Custom create entity method that sends NATS message to frontegghook service.
Body·
Input model for creating a new user.
Extends UserInfoBase with required fields for user creation. First name is required, all other fields are optional.
- Type: stringfirst
Name requiredFirst Name - User's given name or first name (required)
- Type: integernullablearea
Of Responsibility Area of Responsibility ID - The functional area this user is responsible for. References the area_of_responsibility lookup table
- Type: stringnullableavatar
Url Avatar URL - URL to the user's profile picture or avatar image
- Type: integernullabledepartment
Department ID - The department this user belongs to. References the departments lookup table
- Type: stringnullabledisplay
Name Display Name - Friendly name shown in the UI. If not provided, defaults to 'First Last'
- Type: stringnullableemail
Email Address - User's primary email address. Must be unique across the account. Used for authentication and notifications
- Type: array of stringnullablegroup
Ids Group IDs - List of group IDs this user belongs to. Can be provided as comma-separated string or array
- Type: stringnullablejob
Title Job Title - User's position or title within the organization
- Type: stringnullablelast
Name Last Name - User's family name or surname
- Type: stringnullablemanager
Id Manager ID - User ID of this user's direct manager. Must start with 'u-'. Used for organizational hierarchy
- Type: integernullablequota
Plan Quota Plan ID - The quota/target plan assigned to this user. Determines performance metrics and goals
- Type: integernullablerole
Role ID - User's role determining permissions and access levels. References the roles lookup table
Responses
- application/json
- application/json
curl https://crm.dreamhub.ai/api/v1/users/ \
--request POST \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
--data '{
"lastName": "Smith",
"displayName": "John Smith",
"department": 1,
"areaOfResponsibility": 1,
"email": "john.smith@company.com",
"role": 1,
"jobTitle": "Account Executive",
"userLanguage": "en",
"avatarUrl": "https://example.com/avatars/user123.jpg",
"groupIds": [
"g-sales",
"g-enterprise"
],
"quotaPlan": 1,
"managerId": "u-manager123",
"timezone": "America/New_York",
"firstName": "John"
}'
{
"id": "string",
"matched": false
}
