import Whop from '@whop/sdk';
const client = new Whop({
apiKey: process.env['WHOP_API_KEY'], // This is the default and can be omitted
});
const courseChapter = await client.courseChapters.delete('chap_xxxxxxxxxxxxx');
console.log(courseChapter);truePermanently delete a chapter and all of its lessons from a course.
Required permissions:
courses:updateimport Whop from '@whop/sdk';
const client = new Whop({
apiKey: process.env['WHOP_API_KEY'], // This is the default and can be omitted
});
const courseChapter = await client.courseChapters.delete('chap_xxxxxxxxxxxxx');
console.log(courseChapter);trueA company API key, company scoped JWT, app API key, or user OAuth token. You must prepend your key/token with the word 'Bearer', which will look like Bearer ***************************
The unique identifier of the chapter to delete (e.g., "chap_XXXXX").
"chap_xxxxxxxxxxxxx"
A successful response
Represents true or false values.
Was this page helpful?