Bulk update display order for folders and automations within a folder. ## Path Parameters **`folder_id`** string required Folder ID (sfold_ prefixed), or use "root" for root-level items ## Request Body **`items`** array required Array of items to reorder. Each item contains: - `id` (string): Item ID (sfold_ or sauto_ prefixed) - `type` (string): Item type ("folder" or "automation") - `order` (integer): New display order position ## Returns Returns 204 No Content on success. Request ```bash cURL curl -X POST "https://api.aitronos.com/api/v1/streamline/folders/sfold_abc123/reorder" \ -H "X-API-Key: $FREDDY_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "items": [ {"id": "sfold_ghi789", "type": "folder", "order": 0}, {"id": "sauto_jkl012", "type": "automation", "order": 1} ] }' ``` ```python Python import os import requests api_key = os.environ["FREDDY_API_KEY"] folder_id = "sfold_abc123" response = requests.post( f"https://api.aitronos.com/api/v1/streamline/folders/{folder_id}/reorder", headers={"X-API-Key": api_key}, json={ "items": [ {"id": "sfold_ghi789", "type": "folder", "order": 0}, {"id": "sauto_jkl012", "type": "automation", "order": 1} ] } ) if response.status_code == 204: print("Items reordered successfully") ``` ```javascript JavaScript const apiKey = process.env.FREDDY_API_KEY; const folderId = "sfold_abc123"; const response = await fetch( `https://api.aitronos.com/api/v1/streamline/folders/${folderId}/reorder`, { method: "POST", headers: { "X-API-Key": apiKey, "Content-Type": "application/json" }, body: JSON.stringify({ items: [ {id: "sfold_ghi789", type: "folder", order: 0}, {id: "sauto_jkl012", type: "automation", order: 1} ] }) } ); if (response.status === 204) { console.log("Items reordered successfully"); } ``` Response ```text 204 No Content ```