bookmarks_move
Move a bookmark or folder to another folder or position while preserving its ID; folders move with all contents. Provide profile_id and bookmark_id, plus parent_id or index to set the destination.
Instructions
Move a bookmark or folder into another folder, or to another position
The bookmark keeps its ID, unlike deleting and recreating it. A folder moves with everything in it. Give at least one of parent_id and index. Use bookmarks_list to find IDs and the current index of each entry.
Firefox refuses to move the hidden bookmark root, or a folder into itself or one of its own subfolders.
profile_id is required: obtain it from profiles_list. All object IDs are local to that profile; never reuse them in another profile.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | No | Position in the destination folder, counting from 0. It is the final position: in the same folder, moving index 0 to index 2 leaves it third. An index past the end means the last place. Omit it to put the item at the end of parent_id. | |
| parent_id | No | Folder to move it into. It must be a folder; a bookmark or separator ID is refused. Omit it to reorder within the current folder. | |
| profile_id | Yes | ||
| bookmark_id | Yes | ID of the bookmark or folder to move. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |