import { client } from "../client"; import type { ExamAudience } from "../client"; /** * Announce the exam to another instance. It must teach the exam's own catalog * course, sit under the same academic year, and be a different instance — the * owner is refused with a 400. Answers the whole audience after the write; * re-announcing a standing pair is a no-op. */ export function postExamAudience(examId: string, instanceId: string): Promise { return client(`/exams/${examId}/audience`, { method: "POST", body: { instance: instanceId }, }); }