Skip to main content
POST
/
app
/
v1
/
organizations
/
{organizationId}
/
projects
/
{projectId}
/
saved-searches
/
{id}
/
favorite
Toggle Favorite
curl --request POST \
  --url https://api.example.com/app/v1/organizations/{organizationId}/projects/{projectId}/saved-searches/{id}/favorite

Documentation Index

Fetch the complete documentation index at: https://docs.metabind.ai/llms.txt

Use this file to discover all available pages before exploring further.

Toggles the favorite status of a saved search for the current user. If the search is already favorited, it will be unfavorited, and vice versa.

Path Parameters

organizationId
string
required
Organization ID
projectId
string
required
Project ID
id
string
required
Saved search ID

Response

{
  "data": {
    "id": "ss123",
    "favorited": true
  }
}
When unfavoriting:
{
  "data": {
    "id": "ss123",
    "favorited": false
  }
}

Error Responses

Saved Search Not Found

{
  "error": {
    "code": "NOT_FOUND",
    "message": "Saved search not found"
  }
}

Code Examples

curl -X POST "https://api.metabind.ai/app/v1/organizations/org123/projects/proj456/saved-searches/ss123/favorite" \
  -H "Authorization: Bearer YOUR_JWT"