Actualizar ticket en Freshdesk, con una API

Actualiza un ticket: envía solo los campos a cambiar, y tags como la lista completa que el ticket debe conservar. Status 4 lo resuelve y 5 lo cierra.

Identificador
freshdesk_update_ticket

La llamada

POST https://connect.reportei.com/api/tools/freshdesk_update_ticket/execute
Authorization: Bearer <merchant token>
x-customer-token: <customer token>
Content-Type: application/json
Accept: application/json

{
  "customer_toolkit": "<connection UUID>",
  "arguments": {
    "ticket_id": 1
  }
}

Tu sistema envía el id de la conexión de tu cliente y los argumentos de la tool. Los headers son los mismos de toda la API de Connect: el token de tu producto y el token de tu cliente.

Parámetros

Las descripciones de los parámetros siguen la documentación oficial de la app, en inglés.

ParámetroTipoObligatorioDescripción
ticket_idintegerSíId of the ticket, from List tickets or Search tickets.
requester_idintegerNoId of an existing contact as the new requester, from List contacts.
emailstringNoEmail address of the new requester. A new address creates the contact.
phonestringNoPhone number of the new requester. A new number creates the contact, and without email the name becomes mandatory.
unique_external_idstringNoExternal id of the new requester, the id in your own system. A new id creates the contact.
namestringNoName of the requester.
subjectstringNoSubject of the ticket.
descriptionstringNoContent of the ticket, as HTML or plain text.
statusintegerNo2 Open, 3 Pending, 4 Resolved or 5 Closed. Custom statuses of the helpdesk are the choices of the status field in List ticket fields.
priorityintegerNo1 Low, 2 Medium, 3 High or 4 Urgent.Valores: 1, 2, 3, 4
sourceintegerNoChannel of the ticket: 1 Email, 2 Portal, 3 Phone, 7 Chat, 9 Feedback widget or 10 Outbound email.Valores: 1, 2, 3, 7, 9, 10
typestringNoTicket type, one of the choices of the ticket_type field in List ticket fields, such as Question or Incident.
responder_idintegerNoId of the agent to assign the ticket to, from the choices of the agent field in List ticket fields.
group_idintegerNoId of the group to assign the ticket to, from the choices of the group field in List ticket fields.
product_idintegerNoId of the product of the ticket, from the choices of the product field in List ticket fields.
company_idintegerNoId of the company of the requester, from Search companies. Only with the Multiple Companies feature.
tagsarrayNoFull list of tags the ticket should have, current ones included.
due_bystringNoWhen the ticket is due to be resolved.
fr_due_bystringNoWhen the first response is due.
custom_fieldsobjectNoCustom field values keyed by the name of each custom field in List ticket fields, for example cf_order_number. Dates go as YYYY-MM-DD.

Conexiones posibles

Tu cliente conecta su cuenta de Freshdesk una sola vez, con uno de los modos de abajo. La misma conexión sirve para todas las tools del toolkit.

Usuario y contraseña

Tu cliente ingresa las credenciales de la app en una pantalla de Connect, o tu sistema las envía con POST /api/customer-toolkits, sin pantalla.

Al conectar, tu cliente también indica {domain}: la dirección de su cuenta en la API de la app.

La respuesta

Si la llamada tiene éxito, Connect conserva el status y el cuerpo de la respuesta de la app. Los errores HTTP devueltos por la app usan el objeto {error, api_error}; la autenticación o validación pueden fallar antes de la ejecución. El header X-Toolkit-Execution-Id identifica la ejecución registrada, disponible en GET /api/tools/executions/{uuid}.

Lista para agentes de IA

El input de esta tool es un JSON Schema, disponible en GET /api/tools/freshdesk_update_ticket. Se convierte en la definición de tool de tu agente sin conversión.

Otras tools de Freshdesk

Ver las 13 tools

Toolkits de la misma categoría

Ver los 100 toolkits

Mira Connect aplicado a tu producto.

Pruébalo durante 15 días sin tarjeta, o cuéntale tu caso a nuestro equipo.