Upload Thumbnail
PUT
/maps/{map_id}/thumbnail/
const url = 'https://example.com/api/maps/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/thumbnail/';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'text/plain'}, body: 'example'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://example.com/api/maps/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/thumbnail/ \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: text/plain' \ --data exampleUpload a base64 thumbnail for a map.
Accepts a data:image/ URI, decodes the base64 payload, writes the image bytes to the configured storage provider, and stores the storage key.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” map_id
required
Map Id
string format: uuid
Request Body required
Section titled “Request Body required ” Media type text/plain
Data Uri
string
Responses
Section titled “ Responses ”Successful Response
Validation Error
Media type application/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Example generated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}