---
search:
  tags:
    - projects
    - POST
seo:
  description: >-
    Toggles the completion status of a todo… Reference for the POST
    /projects/{projectId}/items/{itemId}/todos/{id}/toggle endpoint in the
    Leadtime Public API API.
sidebar:
  badge: POST
  label: Toggle todo completion status
title: Toggle todo completion status
type: openapi-operation
---
Toggles the completion status of a todo item within a project component item. Updates the isDone status, sets doneBy to the current user, and updates doneUpdatedAt timestamp. This endpoint uses the processComponentsTodos permission, allowing users to toggle todo completion without requiring full component management permissions. After toggling, the system recalculates conditions and marks the project configuration as changed.

<Operation source="api-reference" id="projectcomponentscontroller-toggletodo" />
