# analytics_orgs_time_update_create Update time spent tracking data from client-side events. This endpoint receives time spent data collected on the client side and stores it in the analytics database. It requires a valid authentication token. Methods: POST: Submit time spent tracking data Returns: A response indicating success or failure: { "success": true|false, "message": "Error message if failed" (optional) } Error Responses: 400 Bad Request: If the request data is invalid or the API is disabled Notes: This API must be enabled via the ENABLE_TIME_SPENT_UPDATE_API setting. Endpoint: POST /api/analytics/orgs/{org}/time/update/ Version: 3.59.0-ai-plus Security: PlatformApiKeyAuthentication ## Path parameters: - `org` (string, required) ## Request fields (application/json): - `timestamp` (string, required) Time when the event occurred, ensure it is UTC (ISO 8601 format) - `course_id` (string) Course ID to track time spent - `mentor_uuid` (string) Mentor UUID to track time spent - `block_id` (string) Block ID to track time spent - `count` (integer, required) Time spent in seconds - `url` (string, required) Source URL - `metadata` (any) Additional metadata - `session_uuid` (string) Session UUID to track time spent ## Response 200 fields (application/json): - `success` (boolean) - `message` (any)