> ## Documentation Index
> Fetch the complete documentation index at: https://uafilms.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Clear Cache

> Скидає закешовані результати пошуку стрімів для конкретного медіа та ініціює повторний живий парсинг. Доступний не частіше ніж раз на 2 години після попереднього парсингу.

Invalidates cached streaming sources for a specific movie or TV show, forcing a fresh live search across providers.

<Note>
  **Cooldown policy:** Cache clearing for a specific media item is only permitted at least **2 hours** after it was last parsed.
  Requesting a refresh before the cooldown expires returns HTTP `429 Too Many Requests` with a `Retry-After` header.
</Note>


## OpenAPI

````yaml POST /v1/refresh/{id}
openapi: 3.0.3
info:
  title: UAFilms API
  description: >-
    API агрегатора українського медіа-контенту та OMSS (Open Media Streaming
    Specification) стрімінговий сервер з підтримкою HLS проксі, динамічного
    Server-Sent Events (SSE) парсингу, системи акаунтів та персональних
    API-ключів.
  version: 1.2.0
servers:
  - url: https://films.aartzz.pp.ua
    description: Production Server
  - url: http://localhost:3000
    description: Local Development Server
security: []
paths:
  /v1/refresh/{id}:
    post:
      summary: Очищення кешу парсингу
      description: >-
        Скидає закешовані результати пошуку стрімів для конкретного медіа та
        ініціює повторний живий парсинг. Доступний не частіше ніж раз на 2
        години після попереднього парсингу.
      parameters:
        - name: id
          in: path
          required: true
          description: TMDB ID, IMDb ID або responseId
          schema:
            type: string
            example: '1423191'
        - name: api_key
          in: query
          required: false
          description: API-ключ (альтернатива заголовку x-api-key)
          schema:
            type: string
        - name: turnstile_token
          in: query
          required: false
          description: Токен Cloudflare Turnstile (якщо без API-ключа)
          schema:
            type: string
      responses:
        '200':
          description: Кеш очищено успішно
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    example: OK
                  message:
                    type: string
                    example: Кеш джерел успішно очищено
        '404':
          description: Медіа або ID відповіді не знайдено в кеші
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: >-
            Кулдаун активний (з моменту останнього парсингу пройшло менше 2
            годин)
          headers:
            Retry-After:
              description: Час у секундах до завершення блокування
              schema:
                type: integer
                example: 3600
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              example: TURNSTILE_VERIFICATION_FAILED
            message:
              type: string
              example: >-
                Помилка перевірки Cloudflare Turnstile або перевищено ліміт
                запитів.
            details:
              type: object
              nullable: true
        traceId:
          type: string
          example: c08faa4f-c7e4-4c08-9346-cd988ca94afe

````