{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/putput-io/json-schema/putput-io-upload-url-request-schema.json",
  "title": "UploadUrlRequest",
  "description": "Request body for uploading a file from a URL.",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/putput-io-openapi.json#/components/schemas/UploadUrlRequest",
  "type": "object",
  "properties": {
    "url": {
      "type": "string",
      "format": "uri",
      "description": "URL to fetch the file from. Must be publicly accessible."
    },
    "filename": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255,
      "description": "Override filename. If omitted, inferred from the URL path."
    },
    "visibility": {
      "type": "string",
      "enum": [
        "public",
        "private"
      ],
      "default": "public",
      "description": "File visibility. \"private\" requires a Pro plan."
    },
    "prefix": {
      "type": "string",
      "maxLength": 200,
      "description": "Optional path prefix for organizing files."
    },
    "metadata": {
      "type": "object",
      "additionalProperties": {
        "type": "string",
        "maxLength": 1024
      },
      "maxProperties": 10,
      "description": "Key-value metadata. Max 10 keys."
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 50
      },
      "maxItems": 10,
      "description": "Tags for categorization."
    },
    "expires_at": {
      "type": "string",
      "format": "date-time",
      "description": "ISO 8601 datetime when the file should be automatically deleted."
    }
  },
  "required": [
    "url"
  ]
}