Classify activity
classify_activityFill in the classification of an activity that is still empty: its educational level, its knowledge area and its labels. It is the step that set_activity_content asks for when its result lists "level", "area" or "labels" in next_step.fields; the values come from next_step.catalog and from what the activity is about. It only fills what is empty and never changes a value already set: when the user asks to change the level, the area or the labels, use set_activity_audience, add_label or remove_label.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| area | No | Knowledge area id, from next_step.catalog.areas. | |
| level | No | Educational level as {"kind": "course"|"age", "value": number, "subject": number}. Kind course takes the id of a course of next_step.catalog.levels, the courses of the education system of the user; add "subject" only with a subject id that a previous call returned in "subjects". Kind age takes a recommended age from 1 to 21, only when the catalog has no courses or none fits (adults, general public). | |
| labels | No | Labels (tags) about the topic of the content, in the content language: lowercase, one topic each, 3 to 6. The course and the area become labels on their own, so never repeat them here. | |
| activity_id | Yes | Id of the activity. |