POST /tenant/logo
POST /tenant/logo
2MB POST /api/tenant/logo Verify authentication and admin role with Clerk Logo upload is account-level admin only (super_admin) Apply rate limiting for file uploads Parse form data Validate file type Validate file size Generate unique filename Convert File to ArrayBuffer for upload Sanitize SVG files to remove potential XSS vectors Allow SVG
Endpoint
POST /tenant/logo
Authentication
This endpoint requires authentication. Include your authentication token in the request headers.
Error Responses
| Status Code | Error Code | Description |
|---|---|---|
| 401 | HTTP_401 | Unauthorized |
| 403 | HTTP_403 | Forbidden |
| 429 | HTTP_429 | Error |
| 400 | HTTP_400 | Bad Request |
| 400 | HTTP_400 | Bad Request |
| 400 | HTTP_400 | Bad Request |
| 500 | HTTP_500 | Internal Server Error |
| 500 | HTTP_500 | Internal Server Error |
| 500 | HTTP_500 | Internal Server Error |
Example Request
curl -X POST "https://api.allurelms.com/tenant/logo" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'