Skip to content

Built for people who want to own their automations. Join the waitlist for an invite.

Package listing

@kody/zendesk

src/create-article.ts

11 lines · 500 B · TypeScript
import { createArticle, parseCreateArticle } from './articles.ts'

/**
 * Create a Help Center article. Requires `confirm: true`, or use `dryRun: true`.
 * @example
 * import createArticle from 'kody:@kody/zendesk/create-article'
 * const preview = await createArticle({ title: 'Reset your password', sectionId: 1, dryRun: true, subdomain: 'acme' })
 */
export default async function createArticleEntrypoint(params: Record<string, unknown> = {}) {
	return createArticle(parseCreateArticle(params))
}