Choose a lesson template for a course

Picks one lesson template for a whole course from its outline, so every lesson of the course is built on the same template. For a course whose author chose no template: a build with templateId always uses it. Synchronous. A valid request never fails: when the choice cannot be made, the default template is answered.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
curl -X POST 'https://apis.elai.io/api/v1/videos/assistant/lesson/choose-template' \
  -H 'Authorization: Bearer YOUR_API_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
  "course": {
    "title": "Phishing awareness",
    "language": "en-US"
  },
  "lessons": [
    {
      "title": "Spotting phishing",
      "type": "video"
    },
    {
      "title": "Reporting a suspicious message",
      "type": "text"
    }
  ]
}'
{
  "templateId": "6ab669a59baed24c0ea808a6"
}
Body Params
course
object
required
lessons
array of objects
required
length between 1 and 200
lessons*
string
required
length between 1 and 300
string
length between 0 and 300
objectives
array of strings
length between 0 and 20
objectives
string
enum
required
Allowed:
Responses

message explains why.

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json