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 2022-06-24 11:04:18

ila
Member
Registered: 2022-03-10
Posts: 11

RESTful API usage for add ticket validation

Hi Guys,
I need to send an approval validation request to a user on a ticket using API

I can update it using API if i have already sended the validation request from the website:

$url=$api_url . "/Ticket/".$ticket_id."/TicketValidation/";
method PUT
$input='{ "input": {"status": '.$status.'}}';


BUT I need to send the validation request using API, can someone help me?
Thanks!

Offline

#2 2022-06-24 12:03:51

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

Re: RESTful API usage for add ticket validation

use POST  method and use
$input='   
{"input" :{"tickets_id": $ticket_id,
"users_id_validate":  $userID,
"comment_submission": $myComment"}}';


Trouver la panne avant de réparer...
GLPI10.0.10 (ubuntu 22.04 PHP8.1  Mariadb10.6 ) plugins : comportements 2.7.2 reports 1.16.0 formcreator 2.13.8, datainjection 2.13.4 fields 1.21.6

Offline

Board footer

Powered by FluxBB