> ## Documentation Index
> Fetch the complete documentation index at: https://docs2.speech.palatine.ru/llms.txt
> Use this file to discover all available pages before exploring further.

# Task Done

> Помечает задачу как завершённую и удаляет её данные из кэша.



## OpenAPI

````yaml post /api/v1/diarization/task_done/{task_id}
openapi: 3.1.0
info:
  title: Palatine Cloud API
  description: >-
    Облачный API для транскрипции аудио, диаризации, анализа тональности и AI
    суммаризации
  version: 2.0.0
servers:
  - url: https://api.palatine.ru
    description: Продакшн сервер
security: []
paths:
  /api/v1/diarization/task_done/{task_id}:
    post:
      tags:
        - Diarization polling API
      summary: Task Done
      description: Помечает задачу как завершённую и удаляет её данные из кэша.
      operationId: task_done_api_v1_diarization_task_done__task_id__post
      parameters:
        - name: task_id
          in: path
          required: true
          schema:
            type: string
            title: Task Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TaskDoneResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    TaskDoneResponse:
      properties:
        status:
          type: boolean
          title: Status
          description: Статус выполнения операции
        message:
          type: string
          title: Message
          description: Сообщение о результате операции
      type: object
      required:
        - status
        - message
      title: TaskDoneResponse
      description: Модель ответа для эндпоинта отметки задачи как выполненной
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````