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

# Update Download Job

> Update or modify a download job configuration

Retry a failed download job. Use this endpoint to re-attempt a download that encountered an error during processing.

<CodeGroup>
  ```python Python theme={null}
  import requests

  response = requests.post(
      "https://api.videodb.io/download/download-abc123",
      headers={"x-access-token": "your_api_key"}
  )

  result = response.json()
  print(f"Download ID: {result.get('download_id')}")
  print("Retry initiated")
  ```

  ```javascript Node.js theme={null}
  const response = await fetch(
      "https://api.videodb.io/download/download-abc123",
      {
          method: "POST",
          headers: {
              "x-access-token": "your_api_key"
          }
      }
  );

  const result = await response.json();
  console.log(`Download ID: ${result.download_id}`);
  console.log('Retry initiated');
  ```
</CodeGroup>

<Note>
  * Use this endpoint to retry downloads that are in `error` status
  * Creates a new processing request with the same parameters
  * Returns immediately—use Get Download Status to track progress
  * Failed downloads may have encountered temporary issues (network, timeout)
</Note>

<CardGroup cols={2}>
  <Card title="Get Download Status" icon="search" href="/api-reference/downloads/get_download">
    Check the current download status
  </Card>

  <Card title="Delete Download" icon="trash" href="/api-reference/downloads/delete_download">
    Cancel a download job
  </Card>
</CardGroup>


## OpenAPI

````yaml POST /download/{download_id}
openapi: 3.0.3
info:
  title: VideoDB Server API
  description: >
    VideoDB Server API for video, audio, and image processing with AI
    capabilities.

    This API provides comprehensive video management, search, indexing, and
    AI-powered features.
  version: 1.0.0
  contact:
    name: VideoDB Support
    url: https://videodb.io
  license:
    name: MIT
    url: https://opensource.org/licenses/MIT
servers:
  - url: https://api.videodb.io
    description: Production server
  - url: https://staging-api.videodb.io
    description: Staging server
security:
  - ApiKeyAuth: []
tags:
  - name: Authentication
    description: User authentication and API key management
  - name: Collections
    description: Collection management operations
  - name: Videos
    description: Video upload, processing, and management
  - name: Audio
    description: Audio management operations
  - name: Images
    description: Image management operations
  - name: Search
    description: Content search and indexing
  - name: AI Generation
    description: AI-powered content generation
  - name: Billing
    description: Billing and usage management
  - name: RTStream
    description: Real-time streaming operations
  - name: Utilities
    description: Utility endpoints
  - name: Meeting
    description: Meeting recording and management
  - name: Capture
    description: Capture session management for recording streams
  - name: Editor
    description: Timeline editor operations
  - name: Transcode
    description: Media transcoding operations
  - name: Assets
    description: Cross-collection asset listing
paths:
  /download/{download_id}:
    post:
      summary: Retry download
      parameters:
        - name: download_id
          in: path
          required: true
          schema:
            type: string
            example: download-12345
      responses:
        '200':
          description: Download retry initiated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AsyncResponse'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    AsyncResponse:
      type: object
      properties:
        success:
          type: boolean
          example: true
        status:
          type: string
          enum:
            - processing
            - done
            - failed
          example: processing
        data:
          type: object
          properties:
            id:
              type: string
              example: job-123
            output_url:
              type: string
              example: https://api.videodb.io/async-response/job-123
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-access-token
      description: API key for authentication (sk-xxx format)

````