PATCH /tenant/settings
PATCH /tenant/settings
GET /api/tenant/settings Verify authentication with Clerk Get user's profile to check role and get tenant_id Only admins can view tenant settings Fetch tenant settings Return settings with defaults for missing fields PATCH /api/tenant/settings Verify authentication and admin role with Clerk Apply rate limiting for API mutations Parse and validate body Build update object (only include fields that were provided) Update tenant settings Add rate limit headers
Endpoint
PATCH /tenant/settings
Authentication
This endpoint requires authentication. Include your authentication token in the request headers.
Error Responses
| Status Code | Error Code | Description |
|---|---|---|
| 401 | HTTP_401 | Unauthorized |
| 404 | HTTP_404 | Not Found |
| 403 | HTTP_403 | Forbidden |
| 404 | HTTP_404 | Not Found |
| 500 | HTTP_500 | Internal Server Error |
| 401 | HTTP_401 | Unauthorized |
| 403 | HTTP_403 | Forbidden |
| 429 | HTTP_429 | Error |
| 422 | HTTP_422 | Error |
| 500 | HTTP_500 | Internal Server Error |
| 500 | HTTP_500 | Internal Server Error |
Example Request
curl -X PATCH "https://api.allurelms.com/tenant/settings" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'