# ai_analytics_engagement_orgs_courses_time_detail_retrieve Time spent per course in secs in a tree like form Kwargs course_id e.g course-v1:Org+Course4+Run Query Params 1. start_date e.g 2020-10-01 2. end_date e.g 2020-10-10 Endpoint: GET /api/ai-analytics/engagement/orgs/{org}/courses/{course_id}/time/detail Version: 3.59.0-ai-plus Security: PlatformApiKeyAuthentication ## Path parameters: - `course_id` (string, required) - `org` (string, required) ## Query parameters: - `department_id` (integer) When is passed, it allows to filter data for only user content groups for the specified department - `format` (string) Format * - json Enum: "json" - `include_main_platform` (boolean) Include main platform data ## Response 200 fields (application/json): - `data` (array) - `data.average_time` (number, required) Average time spent - `data.display_name` (string, required) Chapter name - `data.id` (string, required) Chapter Id - `data.children` (array) - `data.children.display_name` (string, required) Subsection Display name - `data.children.id` (string, required) Subsection HTML id - `data.children.block_id` (string, required) Subsection block id - `data.children.total_time` (integer) Total time spent - `data.children.total_users` (integer) Total users who accessed the subsection - `data.total_users` (integer) Total users who accessed the chapter - `total` (integer) Total time spent