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 2021-06-08 02:00:44

aziz
Member
Registered: 2021-03-30
Posts: 109

add followup ERROR_GLPI_ADD

Hi,everyone
i'm trying to add a ticket followup  to the ticket with idin this case"6" using this post request but it dosen't work 

POST /apirest.php/Ticket/6/TicketFollowup

headers:
> session-token: 6v3lgvr57t0m64bdjihqxxxx
> Content-Type: application/json

body:
| {"input":{ "content":"test1" }}

but i keep getting ERROR_GLPI_ADD

appreciate any solution smile .

Offline

#2 2021-06-08 10:06:30

keepcool5283
Member
Registered: 2013-10-10
Posts: 158

Re: add followup ERROR_GLPI_ADD

Hello,

If you want to add a foolowUp, you must be on TicketFollowup api. So your URL is wrong. You have to type this one :  /apirest.php/TicketFollowup

After in your input you have to indicate the type of Followup (ticket) and the id of the ticket. And of course your content


Apps Android GLPI Management : https://play.google.com/store/apps/deta … fr.dmn.app
Site Web : http://mdu-tech.fr/
GLPI 9.5.5 sur IIS 10 / PHP 8 / MySQL

Offline

#3 2021-06-08 14:04:05

aziz
Member
Registered: 2021-03-30
Posts: 109

Re: add followup ERROR_GLPI_ADD

Thank you so much

Last edited by aziz (2021-06-08 14:04:22)

Offline

#4 2021-06-08 14:27:32

cconard96
Moderator
Registered: 2018-07-31
Posts: 2,408
Website

Re: add followup ERROR_GLPI_ADD

TicketFollowup was deprecated a while ago and I thought it was removed in 9.5. You should use ITILFollowup instead.


GLPI Collaborator and Plugin Developer.
My non-English comments are automated translations. Sorry for any confusion that causes.
Mes commentaires non anglais sont des traductions automatiques. Désolé pour toute confusion qui cause.
Mis comentarios que no están en inglés son traducciones automáticas. Perdón por cualquier confusión que cause.

Offline

#5 2021-06-08 14:49:35

keepcool5283
Member
Registered: 2013-10-10
Posts: 158

Re: add followup ERROR_GLPI_ADD

You're right. Just change TicketFollowup by ITILFollowup in the url


Apps Android GLPI Management : https://play.google.com/store/apps/deta … fr.dmn.app
Site Web : http://mdu-tech.fr/
GLPI 9.5.5 sur IIS 10 / PHP 8 / MySQL

Offline

Board footer

Powered by FluxBB