You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2019-06-11 11:36:17

Khodabocusnabeel
Member
Registered: 2019-05-15
Posts: 4

Link Knowbaseitem to Ticket via API.

Hello everybody,

I want to know if there is a way to link a knowledge base item to a ticket via API ? Is it possible?

Offline

#2 2019-06-17 21:39:06

LaDenrée
HELPER
Registered: 2012-11-19
Posts: 6,287

Re: Link Knowbaseitem to Ticket via API.

use curl POST  method with url and payload as here :

$knowbaseitem=18;
$ticketid=2852;

$url="/knowbaseitem/".$knowbaseitem."/knowbaseitem_item";
$fields = '{"input": { "knowbaseitems_id":'.$knowbaseitem.',"itemtype":"Ticket","items_id":'.$ticketid.'}}'  ;

Trouver la panne avant de réparer...
GLPI10.0.16 (ubuntu 22.04 PHP8.1  Mariadb10.6 ) plugins : comportements 2.7.3 reports 1.16.0 formcreator 2.13.9, datainjection 2.13.5 fields 1.21.9

Offline

Board footer

Powered by FluxBB