Skip to main content
POST
/
api
/
saved-items
/
toggle-standalone
Toggle Standalone Save
curl --request POST \
  --url https://api.example.com/api/saved-items/toggle-standalone

Authentication

Requires authentication via session cookie.

Request Body

{
  "content_type": "recipe",
  "content_id": "uuid"
}

Behavior

Current StateAction
Not saved at allCreates a new saved_items record (standalone)
Saved standalone (not in collections)Deletes the saved_items record
In collections onlyNo-op — returns current state
Items that are in collections cannot be toggled to standalone because removing the saved_items record would break collection links.

Response

{
  "isStandaloneSaved": true,
  "savedItemId": "uuid"
}

Error Responses

StatusCodeDescription
400VALIDATION_ERRORMissing or invalid parameters
401UNAUTHORIZEDNot authenticated