Enviar arquivo como documento
glpi_enviar_documentoUploads a local file as a GLPI document and optionally links it to an item such as a Change. Use it to attach files that must exist as standalone documents rather than timeline entries.
Instructions
ENVIA um arquivo local como Documento do GLPI e, se informado, já o vincula a um item (vincular_itemtype="Change", vincular_id=12). Para anexar a um chamado prefira glpi_anexar_ao_chamado, que aparece na timeline. O arquivo precisa estar numa pasta liberada (GLPIHARBOR_PASTAS_UPLOAD).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"caminho": "<caminho>"
},
"name": "glpi_enviar_documento"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nome | No | ||
| caminho | Yes | ||
| vincular_id | No | ||
| vincular_itemtype | No | ||
| confirmado_pelo_usuario | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||