Mettre à jour un ticket avec l'API Freshdesk

Met à jour un ticket : envoyez uniquement les champs à changer, et tags comme la liste complète que le ticket doit garder. Status 4 le résout et 5 le ferme.

Identifiant
freshdesk_update_ticket

L'appel

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
  }
}

Votre système envoie l'id de la connexion de votre client et les arguments de la tool. Les headers sont les mêmes que pour toute l'API Connect : le token de votre produit et celui de votre client.

Paramètres

Les descriptions des paramètres suivent la documentation officielle de l'app, en anglais.

ParamètreTypeObligatoireDescription
ticket_idintegerOuiId of the ticket, from List tickets or Search tickets.
requester_idintegerNonId of an existing contact as the new requester, from List contacts.
emailstringNonEmail address of the new requester. A new address creates the contact.
phonestringNonPhone number of the new requester. A new number creates the contact, and without email the name becomes mandatory.
unique_external_idstringNonExternal id of the new requester, the id in your own system. A new id creates the contact.
namestringNonName of the requester.
subjectstringNonSubject of the ticket.
descriptionstringNonContent of the ticket, as HTML or plain text.
statusintegerNon2 Open, 3 Pending, 4 Resolved or 5 Closed. Custom statuses of the helpdesk are the choices of the status field in List ticket fields.
priorityintegerNon1 Low, 2 Medium, 3 High or 4 Urgent.Valeurs : 1, 2, 3, 4
sourceintegerNonChannel of the ticket: 1 Email, 2 Portal, 3 Phone, 7 Chat, 9 Feedback widget or 10 Outbound email.Valeurs : 1, 2, 3, 7, 9, 10
typestringNonTicket type, one of the choices of the ticket_type field in List ticket fields, such as Question or Incident.
responder_idintegerNonId of the agent to assign the ticket to, from the choices of the agent field in List ticket fields.
group_idintegerNonId of the group to assign the ticket to, from the choices of the group field in List ticket fields.
product_idintegerNonId of the product of the ticket, from the choices of the product field in List ticket fields.
company_idintegerNonId of the company of the requester, from Search companies. Only with the Multiple Companies feature.
tagsarrayNonFull list of tags the ticket should have, current ones included.
due_bystringNonWhen the ticket is due to be resolved.
fr_due_bystringNonWhen the first response is due.
custom_fieldsobjectNonCustom 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.

Connexions possibles

Votre client connecte son compte Freshdesk une seule fois, avec l'un des modes ci-dessous. La même connexion sert à toutes les tools du toolkit.

Identifiant et mot de passe

Votre client saisit les identifiants de l'app sur un écran de Connect, ou votre système les envoie avec POST /api/customer-toolkits, sans écran.

À la connexion, votre client indique aussi {domain} : l'adresse de son compte sur l'API de l'app.

La réponse

En cas de succès, Connect conserve le statut et le corps de la réponse de l'app. Les erreurs HTTP renvoyées par l'app utilisent l'objet {error, api_error} ; l'authentification ou la validation peuvent échouer avant l'exécution. Le header X-Toolkit-Execution-Id identifie l'exécution enregistrée, consultable avec GET /api/tools/executions/{uuid}.

Prête pour les agents IA

L'input de cette tool est un JSON Schema, disponible via GET /api/tools/freshdesk_update_ticket. Il devient la définition de tool de votre agent sans conversion.

Autres tools Freshdesk

Voir les 13 tools

Toolkits de la même catégorie

Voir les 100 toolkits

Voyez Connect appliqué à votre produit.

Essayez-le pendant 15 jours sans carte, ou présentez votre cas à notre équipe.