v4.8.0
OpenAPI 3.0.2
MapTiler Server Admin API
Client Libraries
MapTiler Server Admin API
Creates a new tileset ingest.
JSON containing file name and file size for new tile ingest
Tileset file name
Size of the uploading file
curl http://localhost:3650/api/v1/admin/tiles/ingest \
--request POST \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic username:password' \
--data '{
"filename": "maptiler-osm.mbtiles",
"size": 6930432
}'
{
"id": "b4362feb-6573-451e-b707-cada462c37f7",
"document_id": "86e2836d-d30e-4767-85f0-12a33bed2393",
"filename": "maptiler-osm.mbtiles",
"size": 6930432,
"state": "upload",
"upload_url": "http://localhost:3650/api/v1/admin/tiles/ingest/b4362feb-6573-451e-b707-cada462c37f7/upload",
"errors": [
{
"message": "Error message"
}
]
}OK
Gets information about the given tileset ingest.
Identifier of the ingesting tileset
curl http://localhost:3650/api/v1/admin/tiles/ingest/b4362feb-6573-451e-b707-cada462c37f7 \
--header 'Authorization: Basic username:password'
{
"id": "b142543e-ffa2-4994-acbc-825012e75a97",
"name": "maptiler-osm",
"title": "Maptiler OSM Data",
"fileName": "maptiler-osm.mbtiles",
"published": true,
"type": "mbtiles",
"tileType": "vector",
"urls": {
"embeddable": "http://localhost:3650/api/tiles/maptiler-osm",
"ogcTiles": "http://localhost:3650/api/tiles/maptiler-osm/tiles",
"tilejson": "http://localhost:3650/api/tiles/maptiler-osm/tiles.json",
"wmts": "http://localhost:3650/api/tiles/maptiler-osm/WMTSCapabilities.xml",
"xyz": "http://localhost:3650/api/tiles/maptiler-osm/{z}/{x}/{y}"
}
}OK
Uploads sent data to the given tileset ingest.
Identifier of the ingesting tileset
A binary file
OK, file is completely uploaded
curl http://localhost:3650/api/v1/admin/tiles/ingest/b4362feb-6573-451e-b707-cada462c37f7/upload \
--request PUT
OK, file is completely uploaded
Processes the data of given tileset ingest and creates a tileset with given document_id
Identifier of the ingesting tileset
curl http://localhost:3650/api/v1/admin/tiles/ingest/b4362feb-6573-451e-b707-cada462c37f7/process \
--request POST \
--header 'Authorization: Basic username:password'
{
"id": "b142543e-ffa2-4994-acbc-825012e75a97",
"name": "maptiler-osm",
"title": "Maptiler OSM Data",
"fileName": "maptiler-osm.mbtiles",
"published": true,
"type": "mbtiles",
"tileType": "vector",
"urls": {
"embeddable": "http://localhost:3650/api/tiles/maptiler-osm",
"ogcTiles": "http://localhost:3650/api/tiles/maptiler-osm/tiles",
"tilejson": "http://localhost:3650/api/tiles/maptiler-osm/tiles.json",
"wmts": "http://localhost:3650/api/tiles/maptiler-osm/WMTSCapabilities.xml",
"xyz": "http://localhost:3650/api/tiles/maptiler-osm/{z}/{x}/{y}"
}
}OK