Skip to content

Upload an image for a specific block ​

POSThttps://api-sites.transkribus.eu/v2/sites/{siteId}/versions/{versionId}/pages/{pageId}/blocks/{blockId}/image

Upload an image for a block. The image URL is stored directly in block.config[configKey]. This keeps block images separate from site-level images.

Parameters​

Path Parameters

siteId*
Type
integer
Required
versionId*

Must be a draft version

Type
integer
Required
pageId*
Type
integer
Required
blockId*
Type
integer
Required

Query Parameters

configKey

The config key to store the image URL (e.g., "src", "backgroundImage")

Type
string
Default
"src"

Request Body​

multipart/form-data
Format"binary"

Responses​

Image uploaded and block config updated

Try it out

Playground​

Authorization
Variables
Key
Value
Body

Samples​

Transkribus Developer Platform