---
search:
  tags:
    - account
    - POST
seo:
  description: >-
    Toggles a favorite for a specific entity (task, project,… Reference for the
    POST /account/favorites/toggle endpoint in the Leadtime Public API API.
sidebar:
  badge: POST
  label: Toggle favorite on/off
title: Toggle favorite on/off
type: openapi-operation
---
Toggles a favorite for a specific entity (task, project, organization, or command). If the entity is currently favorited, it will be removed from favorites. If it is not favorited, it will be added to favorites.

**Entity Types:**
- `Project`: Favorite a project
- `Task`: Favorite a task
- `Organization`: Favorite an organization
- `Command`: Favorite a command (for command palette)

Favorites are user-specific and workspace-scoped. Each user maintains their own list of favorites. When adding a new favorite, it is automatically appended to the end of the favorites list. The response indicates whether the entity is now favorited (`isFavorite: true`) or not (`isFavorite: false`).

<Operation source="api-reference" id="favoritescontroller-toggle" />
