cac8702ed2aa
Create a new learner
Create a new learner.
Request body
The learner's full name.
The learner's unique email address.
The learner's country of employment. Three letter country code.
The learner's state of employment. Two letter state code.
Validation rules:
- Required when country is "USA"
- Must be null or omitted for all other countries
- Empty strings ("") are not allowed
Examples:
- "USA" + "NY" ✅
- "USA" + null ❌
- "CAN" + null ✅
- "CAN" + "ON" ❌ (Canadian provinces not supported)
Whether the learner is a manager.
The unique identifier of a learner.
The department the learner belongs to.
The learner's worker type.
The learner's custom category. Can be populated with any value. For example, the office or city of a learner.
The learner's language. Represented as any Unicode CLDR language documented here: https://cldr.unicode.org/
⚠️ Important: Use language codes (e.g., "en"), not language names (e.g., "English").
✅ Common valid examples:
- "en": English
- "es": Spanish
- "es-419": Spanish (Latin America)
- "es-MX": Spanish (Mexico)
- "zh": Chinese
- "zh-TW": Chinese (Taiwan)
- "zh-Hant-HK": Chinese (traditional, Hong Kong)
- "fr": French
- "de": German
❌ Common invalid examples, which will cause validation errors:
- "English" (use "en" instead)
- "Spanish" (use "es" instead)
- "Chinese" (use "zh" instead)
Example request
{
"name": "First Last",
"email": "first.last@{your-domain}.com",
"country": "USA",
"state": "NY",
"isManager": true,
"managerLearnerId": "abc123def4",
"department": "Engineering",
"workerType": "Full Time",
"customCategory": "Brooklyn",
"language": "en"
}Response
Created
The unique identifier of a learner.
Example response
{
"id": "abc123def4"
}