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 CodeError CodeDescription
401HTTP_401Unauthorized
404HTTP_404Not Found
403HTTP_403Forbidden
404HTTP_404Not Found
500HTTP_500Internal Server Error
401HTTP_401Unauthorized
403HTTP_403Forbidden
429HTTP_429Error
422HTTP_422Error
500HTTP_500Internal Server Error
500HTTP_500Internal Server Error

Example Request

curl -X PATCH "https://api.allurelms.com/tenant/settings" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'