# Preload a File

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /snap/preload:
    post:
      summary: Preload a File
      deprecated: false
      description: Pre-load a file to snapbyte cache system
      tags:
        - Snapbyte APIs
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                sign_url:
                  type: string
                  description: Direct download url of the target file
                expires_at:
                  type: number
                  description: >-
                    Expire time of the sign url in milliseconds (Unix
                    timestamps)
                file_name:
                  type: string
                  description: File name
                file_size:
                  type: number
                  description: File size
                file_md5:
                  type: string
                  description: File MD5
                mine_type:
                  type: string
                  description: File Mine Type
                file_id:
                  type: string
                  description: >-
                    A unique identifier that you define when uploading the file.
                    This ID will be used later to retrieve or manage the cached
                    file.
              x-apidog-orders:
                - file_id
                - sign_url
                - expires_at
                - file_name
                - file_size
                - file_md5
                - mine_type
              required:
                - sign_url
                - expires_at
                - file_id
            example:
              file_id: 2220f3ce8a1a9a73bc9910d4180864e023371
              sign_url: https://files.testfile.org/ZIPC/300MB-Corrupt-Testfile.Org.zip
              expires_at: 1851245022000
              file_name: 300MB-Corrupt-Testfile.Org.zip
              file_size: 314572800
              file_md5: d4c746ddad05ea418131fca42f6bd5f6
              mime_type: application/zip
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      id:
                        type: string
                        description: >-
                          Snapbyte File ID, You can save this file ID or ignore
                          it and use your own file_id
                    x-apidog-orders:
                      - id
                    required:
                      - id
                x-apidog-orders:
                  - data
                required:
                  - data
              example:
                success: true
                message: ''
                data:
                  id: 5980853f-81e0-4257-bff2-465856d205de
          headers: {}
          x-apidog-name: Success
      security: []
      x-apidog-folder: Snapbyte APIs
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/991601/apis/api-18930136-run
components:
  schemas: {}
  securitySchemes: {}
servers:
  - url: https://api.snapbyte.io
    description: Prod Env
security: []

```
