@kody/intercom
src/update-article.ts
11 lines · 464 B · TypeScriptimport { 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))
}