Endpoint
Authentication
Requires a Personal API Access Token with admin privileges.Header
Request
Headers
| Header | Value | Required |
|---|---|---|
| Authorization | Bearer | Yes |
| Content-Type | multipart/form-data | Yes |
Path Parameters
None.Form Data
| Parameter | Type | Required | Description |
|---|---|---|---|
| file | file | Yes | MMDB file (MaxMind GeoIP2 database file) |
| fileName | string | No | File name (if not provided, uses original filename or “geolocation.mmdb”) |
Notes
filemust be a valid MMDB filefilemust not be emptyfileNameis optional (uses original filename if not provided)- MMDB file format: MaxMind GeoIP2 database format (.mmdb)
Response
Success Response (200 OK)
Error Response (400 Bad Request)
Error Response (401 Unauthorized)
cURL Example
Example 1: Upload MMDB File
Example 2: Upload MMDB File without File Name
Notes and Warnings
- Admin Only:
- This endpoint requires admin privileges
- Only sysAdmin users can upload MMDB files
- MMDB File Format:
- File must be in MaxMind GeoIP2 database format (.mmdb)
- Common files: GeoLite2-City.mmdb, GeoLite2-Country.mmdb
- File Size:
- Large MMDB files may take time to upload
- Ensure sufficient storage space
- Automatic Deployment:
- MMDB file is automatically deployed to all environments
- Deployment results are returned in the response
- File Replacement:
- Uploading a new file replaces the existing one
- Previous file is overwritten
Related Documentation
- Enable Geolocation - Enable geolocation functionality
- Disable Geolocation - Disable geolocation functionality

