intercom-node icon indicating copy to clipboard operation
intercom-node copied to clipboard

Missing ticket_state_id on ticket update method API v2.11

Open julianCast opened this issue 3 months ago • 0 comments

According to the API Documentation 2.12, we can pass ticket_state_id to update a ticket to a specific state. Since the intercom client uses v.2.11 there is no way to update to a specific state id where we can only pass one of the main states ("in_progress" | "waiting_on_customer" | "resolved").

async updateTicket(params: IntercomUpdateTicketParams): Promise<Ticket> {
    return intercom.tickets.update({
      ticket_id: params.ticketId,
      ticket_attributes: params.ticketAttributes,
      open: params.open,
      state: params.state,
    });
  }

So, for example if we have a case where we have two different states under waiting_on_customer, how to choose which one using this library?

Image

julianCast avatar Sep 05 '25 10:09 julianCast