{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/putput-io/json-schema/putput-io-presign-response-schema.json",
  "title": "PresignResponse",
  "description": "Response containing the presigned URL and upload metadata.",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/putput-io-openapi.json#/components/schemas/PresignResponse",
  "type": "object",
  "properties": {
    "upload_id": {
      "type": "string",
      "description": "Upload ID. Pass this to POST /api/v1/upload/confirm after uploading."
    },
    "presigned_url": {
      "type": "string",
      "format": "uri",
      "description": "Presigned R2 URL. PUT the file here with the matching Content-Type header. No Authorization header needed."
    },
    "public_name": {
      "type": "string",
      "description": "Server-assigned public path for the file (e.g. \"prefix/upload_id/filename\")."
    },
    "expires_at": {
      "type": "string",
      "format": "date-time",
      "description": "When the presigned URL expires (1 hour from creation)."
    }
  },
  "required": [
    "upload_id",
    "presigned_url",
    "public_name",
    "expires_at"
  ]
}