Upload a map
POST /v1/maps/upload
Upload a map image with metadata via multipart/form-data.
Upserts by (projectId, mapId) — if a map with the same ID exists, it is updated.
Requires the resources:write scope (API key or OAuth Bearer token) and the X-Project-Id header.
Unlike other Web API endpoints, this response is flat: mapId and
action sit alongside success rather than nested under data.
A project can hold at most 1,000 maps. Uploading a new mapId to a project at that limit returns 400 with detail “Map limit reached: a project can hold at most 1000 maps. Delete a map or reuse an existing mapId”. Re-uploading an existing mapId (an update) is always allowed. A project above the limit keeps, updates, and deletes existing maps; only new maps are refused.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Header Parameters
Section titled “Header Parameters ”Project UUID (sent as a header for endpoints that don’t include it in the path).
Request Body required
Section titled “Request Body required ”object
Display name for the map (max 255 characters).
Unique map identifier within the project (max 255 characters).
Map image file (PNG, JPEG, or WebP, max 10 MB).
Minimum X coordinate in world space.
Minimum ground coordinate along the second axis in world space (engine Y on Z-up maps; engine Z on Y-up maps).
Maximum X coordinate in world space.
Maximum ground coordinate along the second axis in world space (engine Y on Z-up maps; engine Z on Y-up maps).
Image width in pixels.
Image height in pixels.
Optional minimum height bound (engine Z on Z-up maps; engine Y on Y-up maps). Send together with worldMaxZ; sending only one returns 400. Omitted on update keeps the stored height bounds (see upAxis for the axis-change case).
Optional maximum height bound; must be greater than or equal to worldMinZ. Send together with worldMinZ.
Up axis for the map coordinates. Omitted on create defaults to
z. Omitted on update of a Z-up map keeps z. Omitted on
update of a Y-up map returns 400 “This map is Y-up: resend the
upload with upAxis set, using X/Z ground bounds” (checked before
the image is stored, so the image is not replaced). Any other
value returns 400 “upAxis must be one of: z, y”. For a Y-up map
worldMinY and worldMaxY carry engine Z ground bounds. When
upAxis is sent without height bounds, existing height bounds
are kept if the axis is unchanged and cleared if it changed.
Responses
Section titled “ Responses ”Map updated (existing map with same mapId was found).
object
Map created.
object
Invalid request parameters or body.
RFC 9457 Problem Details. Served with the application/problem+json
media type. error_category, retryable, and retry_after are
Framedash extension members. type always defaults to about:blank,
so it is always present; detail and the extension members are present
only when applicable.
object
Problem type URI; about:blank when no specific type applies.
Short, human-readable summary of the problem type.
HTTP status code.
Human-readable explanation specific to this occurrence.
Extension member categorizing the error.
Extension member; true when retrying may succeed (e.g. 429, 503).
Extension member; suggested retry delay in seconds, when applicable.
Missing or invalid API key.
RFC 9457 Problem Details. Served with the application/problem+json
media type. error_category, retryable, and retry_after are
Framedash extension members. type always defaults to about:blank,
so it is always present; detail and the extension members are present
only when applicable.
object
Problem type URI; about:blank when no specific type applies.
Short, human-readable summary of the problem type.
HTTP status code.
Human-readable explanation specific to this occurrence.
Extension member categorizing the error.
Extension member; true when retrying may succeed (e.g. 429, 503).
Extension member; suggested retry delay in seconds, when applicable.
API key with resources:write scope required.
RFC 9457 Problem Details. Served with the application/problem+json
media type. error_category, retryable, and retry_after are
Framedash extension members. type always defaults to about:blank,
so it is always present; detail and the extension members are present
only when applicable.
object
Problem type URI; about:blank when no specific type applies.
Short, human-readable summary of the problem type.
HTTP status code.
Human-readable explanation specific to this occurrence.
Extension member categorizing the error.
Extension member; true when retrying may succeed (e.g. 429, 503).
Extension member; suggested retry delay in seconds, when applicable.
Rate limit exceeded.
RFC 9457 Problem Details. Served with the application/problem+json
media type. error_category, retryable, and retry_after are
Framedash extension members. type always defaults to about:blank,
so it is always present; detail and the extension members are present
only when applicable.
object
Problem type URI; about:blank when no specific type applies.
Short, human-readable summary of the problem type.
HTTP status code.
Human-readable explanation specific to this occurrence.
Extension member categorizing the error.
Extension member; true when retrying may succeed (e.g. 429, 503).
Extension member; suggested retry delay in seconds, when applicable.
Headers
Section titled “Headers ”Maximum number of requests allowed per hour.
Number of requests remaining in the current window.
Unix timestamp in milliseconds when the rate limit window resets.
Number of seconds to wait before retrying. Present on 429 responses and
on the 503 response of POST /v1/query. For the request rate limit, the
value comes from a sliding window, so honor it on each response rather than
scheduling the retry for the reset time.