Skip to main content
Once a user has completed the Learning Path, the system allows the createLearningPathEvaluationSubmission mutation to be called on their behalf. The current API user will be set as an evaluation author. For each user, the evaluation can be submitted only once per single Learning Path revision. Mutation has a several required incoming arguments - lpId which represents the targeted Learning Path ID, and submission that represents EvaluationSubmissionInput object:
PropertyTypeDescription
numericRatingFeedback[NumericRatingFeedback]Optional; The input object that contains the numeric score feedback.
textFeedback[TextFeedback]Optional; The input object that contains a common written text feedback.
The feedback types mentioned above represents a format of how user able to submit the feedback and vary on data which should be sent: NumericRatingFeedback input object:
PropertyTypeDescription
questionIdIDOptional; The reference to feedback question.
ratingFloatRequired; The numeric value that represents a given rating. Should be in range 0-5.
TextFeedback input object:
PropertyTypeDescription
questionIdIDOptional; The optional reference to feedback question.
textStringRequired; The written feedback text. Max text length is 255 characters. All HTML tags will be trimmed.

Submit evaluation

The current API user evaluation can be submitted using the createLearningPathEvaluationSubmission mutation The mutation accepts the following arguments:
ArgumentTypeDescriptionDefault
lpIdIDRequired; The ID of the Learning Path entity that is the target of the evaluation.
submissionEvaluationSubmissionInputRequired; Evaluation submission input object that contains a list of user feedbacks.
mutation createLearningPathEvaluationSubmission {
  createLearningPathEvaluationSubmission(lpId: 23, submission: {
    "numericRatingFeedback": [
      {
        "rating": 5
      }
    ],
    "textFeedback": [
      {
        "text": "The coding labs were very useful. I learned more by trying it myself."
      }
    ],
  }) {
    errors
    response {
      id
    }
  }
}
As a result, the mutation returns a CreateLearningPathEvaluationSubmissionResponse object:
PropertyTypeDescription
errors[Violation]Contains the list of validation errors, if there are any.
responseEvaluationSubmissionThe created evaluation submission object.