Map Operations
File link, mesh replacement, and thumbnail endpoints, including how to swap a map's textured or raw mesh and update its thumbnail.
Generates a temporary, pre-signed URL for downloading a file from S3
Unique identifier for the file
671b454e33d6dc761ca15156/6756c20336a9794c6effce42/Mesh/TexturedMesh.glbSuccessfully generated pre-signed URL
Pre-signed S3 URL for file download
https://amazonaws.com/671bX-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=%2Faws4_request&X-Amz-Date=20241658753a8c6380ad6d01c217e1ad978d88e2ba6a4&X-Amz-SignedHeaders=host&x-id=GetObjectUnauthorized - Invalid or expired token
File not found
Server error
GET /v1/file?key=text HTTP/1.1
Host: api.multiset.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"url": "https://amazonaws.com/671bX-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=%2Faws4_request&X-Amz-Date=20241658753a8c6380ad6d01c217e1ad978d88e2ba6a4&X-Amz-SignedHeaders=host&x-id=GetObject"
}Replace a map's mesh
Use /vps/map/{mapCode}/mesh-upload-url to replace a map's textured or raw mesh. The flow is:
POST /vps/map/{mapCode}/mesh-upload-urlwith themeshTypeyou want to replace (texturedorraw).PUTthe mesh file to the returneduploadUrl, using thecontentTypefrom the response as yourContent-Typeheader. The URL is valid for 1 hour.
Returns a presigned PUT URL for replacing one of the map's two meshes.
You choose which mesh with meshType. The upload location and content
type are set by the server, so this endpoint can only ever replace the
mesh of the map named in the path.
Upload the file by sending it to the returned uploadUrl with a PUT
request and the Content-Type given in the response. The URL is valid
for one hour.
Replacing a mesh does not affect localization accuracy, which runs on the map's feature data rather than the mesh.
JWT token obtained from the authentication endpoint.
Map code (or map id) of the map whose mesh you are replacing.
MAP_740EYUJTS85ZWhich mesh to replace. textured is the textured mesh, raw is the untextured geometry.
texturedPossible values: Presigned upload URL issued.
MAP_740EYUJTS85ZtexturedPresigned URL. Send the mesh file to it with a PUT request.
Use this exact value as the Content-Type header on your PUT request.
model/gltf-binarySeconds the upload URL stays valid.
3600Bad Request. Missing or invalid meshType, or the map is not active.
Unauthorized. Invalid or expired token.
Forbidden. The map belongs to another account, or your role does not allow write access.
Map not found.
POST /v1/vps/map/{mapCode}/mesh-upload-url HTTP/1.1
Host: api.multiset.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 23
{
"meshType": "textured"
}{
"mapCode": "MAP_740EYUJTS85Z",
"meshType": "textured",
"uploadUrl": "text",
"contentType": "model/gltf-binary",
"expiresIn": 3600
}Update a map's thumbnail
Use PUT /vps/map/{mapCode}/thumbnail to replace a map's thumbnail. Send the image as multipart/form-data in the thumbnail field (JPEG, PNG, or WebP, up to 5 MB).
Replaces the map's thumbnail. Send the image as multipart/form-data
in the thumbnail field (JPEG, PNG, or WebP, up to 5 MB). The map must
be active, and your role must allow write access.
JWT token obtained from the authentication endpoint.
Map code (or map id) of the map whose thumbnail you are replacing.
MAP_740EYUJTS85ZThe new thumbnail image. JPEG, PNG, or WebP, up to 5 MB.
Thumbnail updated.
MAP_740EYUJTS85ZStorage key of the new thumbnail.
665f1b2c3a4d5e6f7a8b9c0d/6660a1b2c3d4e5f6a7b8c9d0/Thumbnail/thumbnail_1759300000000.jpgBad Request. No image was sent, the file is not a JPEG, PNG, or WebP image, more than one file was sent, or the map is not active.
Unauthorized. Invalid or expired token.
Forbidden. The map belongs to another account, or your role does not allow write access.
Map not found.
Payload Too Large. The image is larger than 5 MB.
PUT /v1/vps/map/{mapCode}/thumbnail HTTP/1.1
Host: api.multiset.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: multipart/form-data
Accept: */*
Content-Length: 22
{
"thumbnail": "binary"
}{
"mapCode": "MAP_740EYUJTS85Z",
"thumbnail": "665f1b2c3a4d5e6f7a8b9c0d/6660a1b2c3d4e5f6a7b8c9d0/Thumbnail/thumbnail_1759300000000.jpg"
}JWT token obtained from the authentication endpoint.
The unique map code of the VPS map to delete.
MAP_BTTE1MOXYVT8Pattern: ^MAP_[A-Z0-9]+$VPS map deleted successfully.
No content
Bad Request. Invalid map code format.
Unauthorized.
Map not found.
Internal Server Error.
DELETE /v1/vps/map/{mapCode} HTTP/1.1
Host: api.multiset.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Last updated
Was this helpful?

