Skip to content

Upload tenant logo (PNG/JPEG/WebP/AVIF/SVG, ≤2MB)

PUT
/v1/tenants/{id}/logo
curl --request PUT \
--url https://api.emite.cr/v1/tenants/example/logo \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form logo=@file

Server re-encodes to PNG (sRGB, 800×800 max, no ICC profile). PNG output is chosen over the input format to preserve transparency and avoid JPEG artifacts on logo edges, and to give pdfmake a single predictable format. Replaces any existing logo.

id
required
string
Media typemultipart/form-data
object
logo
string format: binary
Media typeapplication/json
object
logoStorageKey
required

Storage key of the new logo (a PNG, whatever format was uploaded) — the company's logoStorageKey from now on. GET /tenants/{id}/logo/raw serves the image.

string
Example
{
"logoStorageKey": "tenants/01a00c73-5c09-7bb5-8b9e-d91c43bd61dc/logo-mgx3k2a1.png"
}

Missing file, wrong MIME, > 2MB, or an image that cannot be decoded.