mirror of
https://github.com/flarum/framework.git
synced 2025-01-20 02:42:44 +08:00
f61d834a76
* Enable parent to be set during creation via API Sets the parent ID as long as it exists and is a top-level primary tag. If it's not, it'll simply be ignored. Position is set automatically to be one higher than the current highest, or 0 if parent has no children. Example data (in addition to the usual attributes): ``` "relationships": { "parent": { "data": { "id": 1 } } } ``` * Add support for creating top-level tags To set a top-level primary tag, pass parent id of 0 For a secondary tag, pass null or remove it from the request To set as a child, pass the parent tag's id |
||
---|---|---|
.. | ||
tags |