Documentation

Level 1 · Connected

Floor plan and photos

Each floor's SVG, with every unit's id, and the centre's photos.

The floor plan

PUT /facilities/{facilityId}/floor-plan, with version and its floors: each floor's id, name (“Ground floor”) and svg.

  • It's your software's SVG, the same its websites use: the portal cleans it and only colours it by status. It never redraws it.
  • Only shapes and text: no scripts, images, links or external fonts. Up to 2 MB per floor and 10 floors.
  • Each unit's shape carries data-unit-id with its id. A shape with a data-unit-id that isn't any unit blocks the floor plan (unknown_unit_in_plan); a unit without a shape doesn't, with the unit_not_in_plan warning.
  • A Twin or a Triple is one spot drawn as two or three shapes, one per locker, each with its own data-unit-id, so each can be picked. Qbox's floor plan editor splits the spot along its long side, starting with the lower one: from left to right in a wide spot, from bottom to top in a long one.
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 600 320">
  <g data-unit-id="T-021">
    <rect x="20" y="20" width="120" height="120" fill="#fff" stroke="#1F1B18"/>
    <text x="80" y="88" text-anchor="middle">21</text>
  </g>
</svg>

The SVG goes as text inside the JSON:

jq -n --rawfile svg ground-floor.svg \
  '{version: "p-2026-11-08", floors: [{id: "P0", name: "Ground floor", svg: $svg}]}' |
curl -X PUT https://api.findqbox.com/connect/v1/facilities/madrid-01/floor-plan \
  -H "Authorization: Bearer $TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  --data-binary @-

Photos

  • PUT /facilities/{facilityId}/photos/{photoId}, with the image as the body (Content-Type: image/jpeg, image/png or image/webp), up to 15 MB and at least 800 px on the long side. The portal reworks it: straightened, resized and without metadata.
  • PUT /facilities/{facilityId}/photos, with version and photos: each one's id and, if you like, its caption, in display order. Those not included are removed. Up to 20.
  • We don't download them from a URL: that way nobody hotlinks them and we don't have to trust an outside server.
curl -X PUT https://api.findqbox.com/connect/v1/facilities/madrid-01/photos/photo-1 \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: image/jpeg" \
  --data-binary @corridor.jpg

If your software sends no photos or description, the operator can add them in Qbox. What your software sends takes precedence.

Questions? Write to us at team@findqbox.com.