> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt # InviteInstructor # Package: onlinePrograms # Namespace: InstructorsService # Method link: https://dev.wix.com/docs/api-reference/business-management/online-programs/instructor-v2/invite-instructor.md ## Permission Scopes: Manage Challenges: SCOPE.CHALLENGES.MANAGE ## Introduction Invite instructor by provided email --- ## REST API ### Schema ``` Method: inviteInstructor Description: Invite instructor by provided email URL: https://www.wixapis.com/v2/instructors/invite Method: POST # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present. Required parameters: email Method parameters: param name: email | type: email | description: Instructor's email to invite | required: true Return type: InviteInstructorResponse EMPTY-OBJECT {} ``` --- ## JavaScript SDK ### Schema ``` Method: wixClientAdmin.onlinePrograms.InstructorsService.inviteInstructor(email) Description: Invite instructor by provided email # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present. Required parameters: email Method parameters: param name: email | type: string | description: Instructor's email to invite | required: true Return type: PROMISE EMPTY-OBJECT {} ``` ### Examples ### inviteInstructor ```javascript import { instructors } from '@wix/online-programs'; async function inviteInstructor(email) { const response = await instructors.inviteInstructor(email); }; ``` ### inviteInstructor (with elevated permissions) ```javascript import { instructors } from '@wix/online-programs'; import { auth } from '@wix/essentials'; async function myInviteInstructorMethod(email) { const elevatedInviteInstructor = auth.elevate(instructors.inviteInstructor); const response = await elevatedInviteInstructor(email); } ``` ### inviteInstructor (self-hosted) Self-hosted SDK calls require you to [create a client](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/about-the-wix-client.md). ```javascript import { createClient } from '@wix/sdk'; import { instructors } from '@wix/online-programs'; // Import the auth strategy for the relevant access type // Import the relevant host module if needed const myWixClient = createClient ({ modules: { instructors }, // Include the auth strategy and host as relevant }); async function inviteInstructor(email) { const response = await myWixClient.instructors.inviteInstructor(email); }; ``` ---