POST https://api.eloomi.com/v3/courses
| Parameter name | Value | Description | Additional |
|---|---|---|---|
| ClientId | string | Provided by eloomi |
Required |
| Authorization | string | Look in the documentation for the authentication endpoint on how to construct this |
Required |
{
"active": "integer",
"customAttributes": {
"{key}": "string"
},
"description": "string",
"expected_duration": "number",
"name": "string",
"points": "number",
"price": "string",
"reference_number": "string",
"reward": "number",
"type": "string"
}
| Name | Example | Description | Additional |
|---|---|---|---|
| active |
Flag to indicate if the course is active Possible values are:
|
Optional | |
| customAttributes | Optional | ||
| customAttributes.{key} |
Can contain multiple keys. Exact names and values depend on platform |
Optional | |
| description | "Short course on how to be GDPR compliant" |
A description of the course |
Optional |
| expected_duration | 115 |
Expected time to finish the course in minutes |
Optional |
| name | "GDPR Compliance" |
Course name as it appears in eloomi |
Required |
| points | 25 |
The amount of points a user gets upon course completion |
Optional |
| price |
The price of the course if applicable |
Optional | |
| reference_number |
A reference number of the course |
Optional | |
| reward | 1 |
A flag that indicates whether or not points are enabled for this course Possible values are:
|
Optional |
| type |
Type of course. Possible values are:
|
Optional |
The following HTTP status codes may be returned, optionally with a response resource.
| Status code | Description | Resource |
|---|---|---|
| 200 | OK Course created |
CourseSuccess |
| 400 | Bad Request Request contained invalid data |
GenericSuccess |
| 401 | Unauthorized Not allowed |
ErrorSuccess |