Skip to content

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

Package listing

@kody/zendesk

src/add-ticket-comment.ts

11 lines · 520 B · TypeScript
import { addTicketComment, parseAddTicketComment } from './tickets.ts'

/**
 * Add a comment to a Zendesk ticket. Requires `confirm: true`, or use `dryRun: true`.
 * @example
 * import addTicketComment from 'kody:@kody/zendesk/add-ticket-comment'
 * const preview = await addTicketComment({ id, comment: 'Looking into this.', dryRun: true, subdomain: 'acme' })
 */
export default async function addTicketCommentEntrypoint(params: Record<string, unknown> = {}) {
	return addTicketComment(parseAddTicketComment(params))
}