{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/caliuapp-com/json-schema/caliuapp-com-upload-link-schema.json",
  "title": "UploadLink",
  "x-generated": "2026-11-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/caliuapp-com-openapi.json#/components/schemas/UploadLink",
  "type": "object",
  "properties": {
    "upload_url": {
      "type": "string",
      "description": "PUT the raw file bytes here, with a Content-Length. Single use, expires after an hour."
    },
    "method": {
      "type": "string",
      "enum": [
        "PUT"
      ]
    },
    "attachment_id": {
      "type": "string"
    },
    "download_url": {
      "type": "string",
      "description": "Where the file will be, for note markdown."
    },
    "content_type": {
      "type": "string"
    },
    "expires_at": {
      "type": "string"
    },
    "max_bytes": {
      "type": "number"
    }
  },
  "required": [
    "upload_url",
    "method",
    "attachment_id",
    "download_url",
    "content_type",
    "expires_at",
    "max_bytes"
  ]
}