Skip to main content
A training can be restarted only in two cases:
  1. A new revision has been published.
  2. A certificate that was acquired for the training is expired.
If a training can be restarted, an infoMessage object will be returned under LearningPath:
query getLearningPath {
  getLearningPath(lpId: 40) {
    infoMessage {
      type
      title
      description
      status
      cta {
        title
        actionId
        arguments {
          key
          value
        }
      }
    }
  }
}

createLpAttempt mutation

To restart a training, createLpAttempt mutation should be executed. The list of arguments will be returned in cta object under infoMessage. The mutation accepts the following arguments:
ParameterTypeDescription
lpIdIDRequired. ID of the learning path that should be restarted.
forceNewBooleanShould be set to true. Indicates whether a new attempt should be forcibly created, even if an active attempt already exists.
  mutation createLpAttempt {
    createLpAttempt(lpId: 40, forceNew: true) {
      response {
        cta {
        actionId
        arguments {
          key
          value
        }
      }
    }
  }
}
I