Skip to main content
POST
/
v1
/
organizations
/
{organizationId}
/
projects
/
{projectId}
/
folders
/
{id}
/
items
Move Folder Items
curl --request POST \
  --url https://api.example.com/v1/organizations/{organizationId}/projects/{projectId}/folders/{id}/items \
  --header 'Content-Type: application/json' \
  --data '
{
  "items": [
    "<string>"
  ]
}
'
Moves multiple saved searches to a target folder. The saved searches being moved must have a type that matches the target folder’s type.

Path Parameters

organizationId
string
required
Organization ID
projectId
string
required
Project ID
id
string
required
Target folder ID

Request Body

items
string[]
required
Array of saved search IDs to move

Example Request

{
  "items": ["ss123", "ss456"]
}

Response

Returns arrays of successfully moved and failed items.
{
  "moved": ["ss123", "ss456"],
  "failed": []
}

Partial Success Response

{
  "moved": ["ss123"],
  "failed": [
    {
      "id": "ss456",
      "error": {
        "code": "TYPE_MISMATCH",
        "message": "Cannot move asset saved search to content folder"
      }
    }
  ]
}

Error Responses

Folder Not Found

{
  "error": {
    "code": "NOT_FOUND",
    "message": "Folder not found"
  }
}

Type Mismatch

{
  "error": {
    "code": "TYPE_MISMATCH",
    "message": "Cannot move asset saved search to content folder",
    "details": {
      "folderId": "folder123",
      "folderType": "content",
      "itemId": "ss456",
      "itemType": "asset"
    }
  }
}

Code Examples

curl -X POST "https://api.metabind.ai/v1/organizations/org123/projects/proj456/folders/folder123/items" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "items": ["ss123", "ss456"]
  }'