Overview
Tenants represent clients or customers in the Invernaderos system. Each tenant can have multiple greenhouses, users, and alerts associated with them.Get All Tenants
Query Parameters
Search term to filter tenants by name, email, or company name
Filter by province (e.g., “Almería”, “Granada”)
Filter by active status (true/false)
Response
Unique identifier of the tenant
Unique readable code (e.g., “TNT-00001”)
Tenant name or company name
Contact email address
Contact phone number
Province where the tenant is located
Country where the tenant is located
Whether the tenant is active
Status for UI display (“Activo”, “Pendiente”, “Inactivo”)
Get Tenant by ID
Path Parameters
Unique identifier of the tenant
Response
Returns a single tenant object with the same structure as above.Create Tenant
Request Body
Full name of the client or company
Contact email address
Contact phone number
Province (e.g., “Almería”, “Granada”)
Country name
Initial status (“Activo”, “Pendiente”, “Inactivo”)
Response
Update Tenant
Path Parameters
Unique identifier of the tenant to update
Request Body
All fields are optional. Only provided fields will be updated.Full name of the client or company
Contact email address
Contact phone number
Province
Country name
Geographic coordinates
Status (“Activo”, “Pendiente”, “Inactivo”)
Response
Delete Tenant
Path Parameters
Unique identifier of the tenant to delete
Response
Tenant Configuration
Each tenant in the system can be configured with:- Company details: Name, email, phone, location
- Geographic data: Province, country, GPS coordinates
- Status management: Active, Pending, or Inactive states
- Multi-tenant isolation: All data (greenhouses, users, alerts) is isolated per tenant
Related Resources
- Greenhouse Management - Manage greenhouses for a tenant
- User Management - Manage users for a tenant
- Alert Management - View and manage alerts for a tenant