Function: setQuestionStatus()
function setQuestionStatus(
context,
siteUrl,
questionId,
status
): Promise<{
changed: string;
questionId: number;
status: "ready" | "draft";
}>;
Defined in: areas/questions/banks.ts:450
Sets a question ready (quizzes can use it) or draft, as the bank's status menu does, through its service.
Parameters
| Parameter | Type |
|---|---|
context | BrowserContext |
siteUrl | string |
questionId | number |
status | "ready" | "draft" |
Returns
Promise<{
changed: string;
questionId: number;
status: "ready" | "draft";
}>