Skip to main content
POST
/
v1
/
organizations
/
{organizationId}
/
projects
/
{projectId}
/
saved-searches
/
{id}
/
favorite
Toggle Favorite
curl --request POST \
  --url https://api.example.com/v1/organizations/{organizationId}/projects/{projectId}/saved-searches/{id}/favorite
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

{
  "id": "ss123",
  "favorited": true
}
When unfavoriting:
{
  "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/v1/organizations/org123/projects/proj456/saved-searches/ss123/favorite" \
  -H "Authorization: Bearer YOUR_API_KEY"