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
Member
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: 6,287

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

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

nvnam
Member
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