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:
| Property | Type | Description |
|---|---|---|
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. |
NumericRatingFeedback input object:
| Property | Type | Description |
|---|---|---|
questionId | ID | Optional; The reference to feedback question. |
rating | Float | Required; The numeric value that represents a given rating. Should be in range 0-5. |
TextFeedback input object:
| Property | Type | Description |
|---|---|---|
questionId | ID | Optional; The optional reference to feedback question. |
text | String | Required; 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 thecreateLearningPathEvaluationSubmission mutation
The mutation accepts the following arguments:
| Argument | Type | Description | Default |
|---|---|---|---|
lpId | ID | Required; The ID of the Learning Path entity that is the target of the evaluation. | — |
submission | EvaluationSubmissionInput | Required; Evaluation submission input object that contains a list of user feedbacks. | — |
CreateLearningPathEvaluationSubmissionResponse object:
| Property | Type | Description |
|---|---|---|
errors | [Violation] | Contains the list of validation errors, if there are any. |
response | EvaluationSubmission | The created evaluation submission object. |