{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/linkbreakers-com/json-schema/linkbreakers-com-media-service-create-replace-upload-body-schema.json",
  "title": "Request to start replacing a media item's file",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/linkbreakers-com-media-api-openapi.yml#/components/schemas/MediaServiceCreateReplaceUploadBody",
  "properties": {
    "fileName": {
      "description": "The new file's name. The media takes it once the replacement completes; visitors download the file under it.",
      "type": "string"
    },
    "mimeType": {
      "description": "The new file's MIME type: image/png, image/jpeg, image/webp, image/svg+xml, application/pdf or video/mp4. The uploaded bytes must be this format.",
      "type": "string"
    },
    "sha256": {
      "description": "Optional: the new file's SHA-256 digest, 64 hexadecimal characters. When given, a file another media\nitem holds is refused at once with 409 MEDIA_ALREADY_EXISTS, the media's own file returns unchanged\ntrue, and storage refuses a PUT whose bytes do not match it, so the PUT must carry the\nx-amz-checksum-sha256 header from upload_headers.",
      "type": "string"
    },
    "size": {
      "description": "The new file's exact size in bytes. The PUT must send exactly this many bytes.",
      "format": "int64",
      "type": "integer"
    }
  },
  "required": [
    "fileName",
    "mimeType",
    "size"
  ],
  "type": "object"
}