You are not logged in.
Pages: 1
I have managed to upload a file, and also to create a followup; but I cannot find how to link the file/document to an existing ticket as a follow up. Could somebody post me an example? I read the api documentation, but it is not clear to me how to do it.
Thanks
Offline
I tried with:
```
{
"input": [{
"document" : 22267,
"itemtype" : "Ticket",
"items_id" : 169882,
"content": "lorem ipsum"
}]
}
```
but no document is added. And with:
```
{
"input": [{
"document" : 22267,
"itemtype" : "Document",
"items_id" : 169882,
"content": "lorem ipsum"
}]
}
```
I get error 400 "you don't have permissions"; but my api user should be allowed to do so.
Offline
I managed to do it. The trick was sending to apirest.php/ITILFollowup a "multipart/form-data" like the one used to upload files; adding
"itemtype":"Ticket",
"items_id": "{$env.ticket_id}",
"content": "text lorem ipsum"
to uploadManifest
Offline
could you share the postman?
GLPI 10.0.10
Installation mode: zip on OREL9
Offline
Pages: 1