{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/compeller-ai/json-schema/compeller-ai-media-upload-url-request-schema.json",
  "title": "MediaUploadUrlRequest",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/compeller-ai-openapi.yml#/components/schemas/MediaUploadUrlRequest",
  "type": "object",
  "properties": {
    "name": {
      "type": "string"
    },
    "file_name": {
      "type": "string",
      "description": "Alias for `name`."
    },
    "mime_type": {
      "type": "string"
    },
    "mimeType": {
      "type": "string",
      "description": "Alias for `mime_type`."
    },
    "type": {
      "type": "string",
      "enum": [
        "audio",
        "image",
        "video",
        "text"
      ]
    },
    "media_type": {
      "type": "string",
      "description": "Alias for `type`."
    },
    "role": {
      "type": "string",
      "enum": [
        "primary",
        "reference"
      ]
    },
    "tags": {
      "oneOf": [
        {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        {
          "type": "string",
          "description": "Comma-separated tags."
        }
      ]
    },
    "workspace_id": {
      "type": "integer",
      "format": "int64"
    },
    "compel_id": {
      "type": "integer",
      "format": "int64",
      "description": "Alias for `workspace_id`."
    },
    "duration_ms": {
      "type": "integer",
      "format": "int64"
    }
  }
}