{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/postzen-dev/json-schema/postzen-dev-media-presign-request-schema.json",
  "title": "MediaPresignRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/postzen-dev-media-api-openapi.yml#/components/schemas/MediaPresignRequest",
  "type": "object",
  "required": [
    "filename",
    "contentType"
  ],
  "properties": {
    "filename": {
      "type": "string",
      "description": "Original file name. PostZen sanitizes it for storage."
    },
    "contentType": {
      "type": "string",
      "enum": [
        "image/jpeg",
        "image/jpg",
        "image/png",
        "image/webp",
        "image/gif",
        "video/mp4",
        "video/mpeg",
        "video/quicktime",
        "video/avi",
        "video/x-msvideo",
        "video/webm",
        "video/x-m4v",
        "application/pdf"
      ]
    },
    "size": {
      "type": "integer",
      "minimum": 0,
      "maximum": 5368709120,
      "description": "File size in bytes."
    },
    "profileId": {
      "type": "string",
      "description": "Optional profile scope. If provided, the API key must have access to the profile."
    }
  }
}