Interface PutPearsonCodingQuestionSource

The data to create a coding question.

interface PutPearsonCodingQuestionSource {
    assignmentId: number;
    viewCorrectAnswer: boolean;
}

Properties

assignmentId: number

The assignment id from which we should retrieve the contents of this question.

This assignment should have a published ATv2 snapshot.

Assignment description will become the question statement. Assignment editor template will become the starter code template. Test submission will become the correct answer / solution.

viewCorrectAnswer: boolean

Whether viewing the solution to the question is enabled.