Link document to item
glpi_create_document_itemLinks a document to a GLPI item such as a Ticket or KnowbaseItem by attaching the document ID to the target item type and item ID.
Instructions
Create a link between a document and an item (Ticket, KnowbaseItem, etc.).
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": {
"documents_id": "<documents_id>",
"itemtype": "<itemtype>",
"items_id": "<items_id>"
},
"name": "glpi_create_document_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items_id | Yes | Target item ID | |
| itemtype | Yes | Target item type, e.g. Ticket, KnowbaseItem | |
| documents_id | Yes | Document ID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| replayed | No | True when an identical recent create was returned instead of repeated |