You are not logged in.
Pages: 1
Hello everyone,
I had this working for a while to get (then remove) ticket's actors :
$ticket_users = Invoke-RestMethod -Uri "$($AppURL)/Ticket/$($ticketNumber)/ticket_user" -Headers @{"session-token"=$SessionToken.session_token;"App-Token" = "$AppToken"} -ContentType "application/json" -Method get
Now it seems like "ticket_user" is not used anymore, since we moved from 9.4.4 to 10.0.0.3.
I read some CommonITILActor, which actually doesn't give me a 400 Bad Request but doesn't show anything either.
If there is a documentation about this update I would gladly take it.
Offline
Ok, so Ticket_User instead of ticket_user apparently did the trick...
Offline
The API is case sensitive when it comes to the item type names. The case must match as it is in the code file names (the files in the src folder).
There is a new API implementation that is less strict and easier to use in the works. You can track its development here:
https://github.com/glpi-project/glpi/pull/12221
It is currently planned to be included in the 10.1.0 release (No ETA yet).
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
Pages: 1