Upload tenant logo (PNG/JPEG/WebP/AVIF/SVG, ≤2MB)
PUT
/v1/tenants/{id}/logo
const url = 'https://api.emite.cr/v1/tenants/example/logo';const form = new FormData();form.append('logo', 'file');
const options = {method: 'PUT', headers: {Authorization: 'Bearer <token>'}};
options.body = form;
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://api.emite.cr/v1/tenants/example/logo \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: multipart/form-data' \ --form logo=@fileServer 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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typemultipart/form-data
object
logo
string format: binary
Responses
Section titled “Responses”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.