Update a Flarum resource
flarum_updatePatch any Flarum resource by type and id. Edit discussions or posts, lock or sticky discussions, approve or hide posts, change user groups.
Instructions
Update (PATCH) any Flarum resource by type and id. Used for editing posts/discussions and for moderation: lock/sticky a discussion, approve/hide a post, change user groups, etc. Example: type="discussions", id="42", attributes={ isLocked: true }.
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": {
"type": "<type>",
"id": "<id>"
},
"name": "flarum_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Resource id. | |
| type | Yes | Resource type. | |
| attributes | No | Attributes to change. | |
| relationships | No | Relationships to change. |