set_permissions
Configure DocType permissions by passing the DocType name and a permissions array, controlling user access to ERPNext records.
Instructions
Set permissions for a DocType
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>",
"perms": "<perms>"
},
"name": "set_permissions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| perms | Yes | Permissions array | |
| doctype | Yes | DocType name |