Create a Flarum resource
flarum_createCreate Flarum discussions, posts, or other resources via JSON:API by specifying the resource type and attributes, with optional relationships.
Instructions
Create any Flarum resource via JSON:API. Provide the resource type, its attributes, and optional relationships. Requires an API key whose user has permission. Example: type="discussions", attributes={ title, content }, relationships={ tags: { data: [{ type: "tags", id: "1" }] } }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Resource type, e.g. "discussions", "posts". | |
| attributes | Yes | Resource attributes. | |
| relationships | No | JSON:API relationships object. |