For the moment Opigno Enterprise API provides possibility to retrieve attempt results only for the current API user.

Attempt API object

Any user attempt for activity, module or training is represented by the Attempt object:
PropertyTypeDescription
idIDRequired; contains the unique identified of the attempt.
lpRevisionIdStringRequired; represents the associated revision ID of the learning path.
lpAttemptContextIdStringRequired; contains a context ID associated with the attempt.
cta[Cta]A list of call-to-actions (CTAs) available for the attempt.
metricsAttemptMetricsPerformance and progress metrics for the attempt, such as score, progress and status.
AttemptMetrics object:
PropertyTypeDescription
statusAttemptStatusThe current status of the attempt. Possible options: IN_PROGRESS, COMPLETED, PASSED, FAILED, EXPIRED.
globalScoreIntThe overall score achieved in the attempt, returned as a percentage (0-100).
progressIntThe overall score achieved in the attempt, returned as a percentage (0-100).

Get the training attempt data

The latest training attempt data for the current API user can be retrieved by using getLearningPath query:
query getLearningPath {
  getLearningPath(lpId: 23) {
    training {
      attempt {
        metrics {
          status
          progress
          globalScore
        }
      }
    }
  }
}