{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/kinetune-com/json-schema/kinetune-com-upload-schema.json",
  "title": "Upload",
  "x-generated": "2026-11-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/kinetune-com-v1-openapi.json#/components/schemas/Upload",
  "type": "object",
  "properties": {
    "upload_url": {
      "type": "string",
      "description": "PUT the file's bytes here, with the headers below, within the hour"
    },
    "method": {
      "type": "string",
      "const": "PUT"
    },
    "headers": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "type": "string"
      },
      "description": "Send these with the PUT (content-type); content-length must be size_bytes"
    },
    "file_url": {
      "type": "string",
      "description": "Once the file is sent: pass it in the *_url field (audio_url, cover_art_url, file_url, photo_urls, image_url) within a day"
    },
    "upload_expires_at": {
      "type": "string"
    },
    "file_expires_at": {
      "type": "string"
    },
    "uploads_per_day": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    }
  },
  "required": [
    "upload_url",
    "method",
    "headers",
    "file_url",
    "upload_expires_at",
    "file_expires_at",
    "uploads_per_day"
  ],
  "additionalProperties": {}
}