update_document
Update specific fields on an existing ERPNext document by specifying the document type, name, and data containing the values to change.
Instructions
Update fields on an existing document.
data: field values to change, e.g. {"status": "Closed"}.
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": {
"doctype": "<doctype>",
"name": "<name>",
"data": "<data>"
},
"name": "update_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| name | Yes | ||
| doctype | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||