InternalServerError (server fault)
An internal failure at the fault of the server.
Throws
BadRequestError (client fault)
An error at the fault of the client sending invalid input.
Throws
NotFoundError (client fault)
An error due to the client attempting to access a missing
resource.
Throws
NotAuthorizedError (client fault)
An error due to the client not being authorized to access the
resource.
Throws
NotAuthenticatedError (client fault)
An error due to the client not being authenticated.
Throws
ValidationError (client fault)
A standard error for input validation failures.
This should be thrown by services when a member of the input structure
falls outside of the modeled or documented constraints.
Base exception class for all service exceptions from Apiv2 service.
Example: An MCQ Question
// constinput = { name:"The name of the MCQ step", questionId:"question-id", source: { multipleChoice: { answerOrder:"index-order", answers: [ { answer:"An option, text in markdown.", hint:"Read the answer to find out which one is correct" }, { answer:"The correct answer, must be given exactly once.", isCorrect:true } ], question:"The question text in markdown" } }, templateId:"template-id", tenantId:"tenant-id" }; constcommand = newPutPearsonQuestionCommand(input); constresponse = awaitclient.send(command); /* response is { /* metadata only */ } */
Example: A Select All Question
// constinput = { name:"The name of the Select All Question step", questionId:"question-id", source: { selectAll: { answerOrder:"random-order", answers: [ { answer:"Option 1, this one is correct", isCorrect:true }, { answer:"Option 2, this one is wrong", isCorrect:false }, { answer:"Option 3, this one is also correct", isCorrect:true } ], question:"The question text in markdown" } }, templateId:"template-id", tenantId:"tenant-id" }; constcommand = newPutPearsonQuestionCommand(input); constresponse = awaitclient.send(command); /* response is { /* metadata only */ } */
Create a new person template question.
Example
Use a bare-bones client and the command you need to make an API call.
Param: PutPearsonQuestionCommandInput
PutPearsonQuestionCommandInput
Returns
PutPearsonQuestionCommandOutput
See
inputshape.responseshape.configshape.Throws
InternalServerError (server fault) An internal failure at the fault of the server.
Throws
BadRequestError (client fault) An error at the fault of the client sending invalid input.
Throws
NotFoundError (client fault) An error due to the client attempting to access a missing resource.
Throws
NotAuthorizedError (client fault) An error due to the client not being authorized to access the resource.
Throws
NotAuthenticatedError (client fault) An error due to the client not being authenticated.
Throws
ValidationError (client fault) A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
Throws
Apiv2ServiceException
Base exception class for all service exceptions from Apiv2 service.
Example: An MCQ Question
Example: A Select All Question