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 }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Resource id. | |
| type | Yes | Resource type. | |
| attributes | No | Attributes to change. | |
| relationships | No | Relationships to change. |