Skip to content

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

Package listing

@kody/zendesk

src/update-ticket.ts

11 lines · 464 B · TypeScript
import { updateTicket, parseUpdateTicket } from './tickets.ts'

/**
 * Update a Zendesk ticket. Requires `confirm: true`, or use `dryRun: true`.
 * @example
 * import updateTicket from 'kody:@kody/zendesk/update-ticket'
 * const preview = await updateTicket({ id, status: 'solved', dryRun: true, subdomain: 'acme' })
 */
export default async function updateTicketEntrypoint(params: Record<string, unknown> = {}) {
	return updateTicket(parseUpdateTicket(params))
}