Skip to content

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

Package listing

@kody/intercom

src/update-article.ts

11 lines · 464 B · TypeScript
import { parseUpdateArticle, updateArticle } from './articles.ts'

/**
 * Update an Intercom article. Requires `confirm: true`, or use `dryRun: true`.
 * @example
 * import updateArticle from 'kody:@kody/intercom/update-article'
 * const preview = await updateArticle({ id, title: 'Updated title', dryRun: true })
 */
export default async function updateArticleEntrypoint(params: Record<string, unknown> = {}) {
	return updateArticle(parseUpdateArticle(params))
}