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 2018-05-23 18:25:30

nvnam
Guest
Registered: 2017-10-20
Posts: 10

How to update or deleted user assigned in ticket API

I want to update or delete user assigned in a ticket. but it only works when I input id parameter in table glpi_tickets_users

$fields='{ "input": {"id": '.$id.' ,"users_id": 2,"type": "2","use_notification": "1"}}';

How to get ID table glpi_tickets_users from API or another way to update or deleted?
Thanks.

Offline

#2 2018-05-23 18:37:44

LaDenrée
HELPER
Registered: 2012-11-19
Posts: 3,975

Re: How to update or deleted user assigned in ticket API

look here :
http://forum.glpi-project.org/viewtopic.php?id=159941

it's about groups but it can be easily modified for users


Trouver la panne avant de réparer...
*GLPI 9.1.6+fusion9.1+1.1+behaviours1.5.0+reports+fields+appliances+pdf+badges+formcreator2.5.2 PHP7.0 Mariadb10
*GLPI 9.2.3(behaviours1.5.2+fusion9.2+1.0+applicatifs2.3.0+dashboard 0.8.9)hebergé sur serveur mutualisé.
*GLPI 9.3 RC2 en test (ubuntu 16.04 mariadb 10.2.4)

Offline

#3 2018-05-23 18:59:12

nvnam
Guest
Registered: 2017-10-20
Posts: 10

Re: How to update or deleted user assigned in ticket API

Thank you so much.

Offline

Board footer

Powered by FluxBB