latestOpenAPI 3.1.02026-08-1013317298.0 KB

d94e0e0f1821

Favorites

Add/remove place from favorites ๐Ÿ”’

Add or remove a place from the authenticated user's favorites list.

Idempotent: Calling this endpoint with the same favorite status multiple times has the same effect as calling it once.

Returns updated favorite count for the place and current user status.

patch/places/{place_id}/favorites

Path parameters

place_idstring uuid required

UUID of the place

Request body

favoritesboolean required

Set to true to add place to favorites, false to remove. Idempotent - safe to call multiple times.

Response

Favorite status updated successfully

okboolean