Maps
Add Layer Endpoint
Add a layer to a map.
Declared on both slash variants directly so neither emits a 307. FastAPI's default redirect_slashes builds a relative Location header that resolves against the request's Host header, leaking the in-container api:8000 hostname through Vite's dev proxy. The canonical (OpenAPI-published) form is the no-slash sub-collection convention documented in the GeoLens API guide (https://docs.getgeolens.com/guides/api/); the trailing-slash form is a hidden alias for callers that send the slash.
post/maps/{map_id}/layers
Request
- The document declares no server URL.
- Auth: one of:
- OAuth 2 (password, token URL /api/auth/login)
- API key in header X-Api-Key
- API key in query parameter api_key
Path parameters
map_idstring uuid required
Request body
Response
Successful Response
Changes
No recorded changes to this operation across all 50 revisions of this API.