UpsertReportedInsightInput

An insight a trusted reporter judged. The caller generates the insight id, so a retry updates the same insight. startedAt, endedAt, reason and severity can change under an existing id; type, version and tbSessionId cannot. A field left out of a later call keeps its stored value.

  • the date-time notation as defined by RFC 3339, section 5.6, for example, 2017-07-21T17:32:28Z

  • The session the insight happened in. The student comes from the session.

  • A registered insight type, for example PhoneUse. Types the platform judges itself are refused.

  • The type's registered version, for example v1.

  • Not before startedAt. Defaults to startedAt on the first call; a later call sets or extends it.

  • Short, parent-safe description. Defaults to Reported by consumer.

  • red reaches the school safety officer; orange is stored and counted but hidden.