Update a Flarum resource
flarum_updateUpdate any Flarum resource by type and id to edit posts, moderate discussions, change user groups, and more.
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. |