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

# Kling video seçimini temizleme

> Temiz düzenlemeler için CometAPI POST /kling/v1/videos/multi-elements/clear-selection aracılığıyla Kling multimodal video düzenlemede etkin öğe seçimlerini temizleyin.

Bu yardımcı endpoint'i, multimodal bir düzenleme oturumu için mevcut seçim durumunu temizlemek amacıyla kullanın.

## Ne zaman kullanılmalı

* Mevcut seçiminiz yanlışsa ve baştan başlamak istiyorsanız
* Son görevi önizlemeden geçirmek veya göndermeden önce düzenleme bölgesini yeniden oluşturmak istiyorsanız

## İş akışındaki rolü

* Yalnızca [Düzenleme için videoyu başlatma](./initialize-video-for-editing) tarafından oluşturulan `session_id` gerektirir
* Başlatma işleminden döndürülen aynı hesabı ve tam `session_id` değerini kullanın
* Genellikle ardından [Video seçimi ekleme](./add-video-selection) için yeni bir çağrı yapılır

<Tip>
  Tam parametre referansı için [Kling API documentation](https://kling.ai/document-api/apiReference/model/multiElements) sayfasına bakın.
</Tip>


## OpenAPI

````yaml api/openapi/video/kling/multimodal-video-editing/post-clear-video-selection.openapi.json POST /kling/v1/videos/multi-elements/clear-selection
openapi: 3.1.0
info:
  title: Clear Video Selection API
  version: 1.0.0
servers:
  - url: https://api.cometapi.com
security:
  - bearerAuth: []
paths:
  /kling/v1/videos/multi-elements/clear-selection:
    post:
      summary: Clear Video Selection
      operationId: clear_video_selection
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - session_id
              properties:
                session_id:
                  type: string
                  description: Session id returned by the video initialization endpoint.
              default:
                session_id: <session_id>
            examples:
              Default:
                summary: Default
                value:
                  session_id: <session_id>
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                required:
                  - code
                  - message
                properties:
                  code:
                    type: integer
                    description: Response code. `0` means the request succeeded.
                  message:
                    type: string
                    description: Response message.
                  data:
                    type: object
                    description: Route-specific response payload when present.
                    additionalProperties: true
                additionalProperties: true
      x-codeSamples:
        - lang: Shell
          label: Default
          source: >
            curl
            https://api.cometapi.com/kling/v1/videos/multi-elements/clear-selection
            \
              -H "Authorization: Bearer $COMETAPI_KEY" \
              -H "Content-Type: application/json" \
              -d '{
                  "session_id": "<session_id>"
                }'
        - lang: Python
          label: Default
          source: |
            import os
            import requests

            response = requests.post(
                "https://api.cometapi.com/kling/v1/videos/multi-elements/clear-selection",
                headers={"Authorization": "Bearer " + os.environ["COMETAPI_KEY"]},
                json={
                  "session_id": "<session_id>"
                },
            )

            result = response.json()
            print(result.get("code"), result.get("data"))
        - lang: JavaScript
          label: Default
          source: >
            const response = await
            fetch("https://api.cometapi.com/kling/v1/videos/multi-elements/clear-selection",
            {
              method: "POST",
              headers: {
                Authorization: `Bearer ${process.env.COMETAPI_KEY}`,
                "Content-Type": "application/json",
              },
              body: JSON.stringify({
                "session_id": "<session_id>"
              }),
            });


            const result = await response.json();

            console.log(result.code, result.data);
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Bearer token authentication. Use your CometAPI key.

````