ThingsBoard · Schema

ThingsBoard Tenant

A JSON value representing the tenant.

IoTInternet of ThingsDevice ManagementTelemetryOpen SourceApache 2.0MQTTLwM2MCoAPRule EngineDashboardsEdgeMulti-tenantJavaSpring

Properties

Name Type Description
id object JSON object with the tenant Id. Specify this field to update the tenant. Referencing non-existing tenant Id will cause error. Omit this field to create new tenant.
createdTime integer Timestamp of the tenant creation, in milliseconds
country string Country
state string State
city string City
address string Address Line 1
address2 string Address Line 2
zip string Zip code
phone string Phone number
email string Email
title string Title of the tenant
region string Geo region of the tenant
tenantProfileId object JSON object with Tenant Profile Id
version integer
name string Name of the tenant. Read-only, duplicated from title for backward compatibility
additionalInfo object Additional parameters of the device
View JSON Schema on GitHub

JSON Schema

thingsboard-tenant-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/thingsboard/refs/heads/main/json-schema/thingsboard-tenant-schema.json",
  "title": "ThingsBoard Tenant",
  "description": "A JSON value representing the tenant.",
  "type": "object",
  "properties": {
    "id": {
      "$ref": "#/components/schemas/TenantId",
      "description": "JSON object with the tenant Id. Specify this field to update the tenant. Referencing non-existing tenant Id will cause error. Omit this field to create new tenant."
    },
    "createdTime": {
      "type": "integer",
      "format": "int64",
      "description": "Timestamp of the tenant creation, in milliseconds",
      "example": 1609459200000,
      "readOnly": true
    },
    "country": {
      "type": "string",
      "description": "Country",
      "example": "US"
    },
    "state": {
      "type": "string",
      "description": "State",
      "example": "NY"
    },
    "city": {
      "type": "string",
      "description": "City",
      "example": "New York"
    },
    "address": {
      "type": "string",
      "description": "Address Line 1",
      "example": 42
    },
    "address2": {
      "type": "string",
      "description": "Address Line 2"
    },
    "zip": {
      "type": "string",
      "description": "Zip code",
      "example": 10004
    },
    "phone": {
      "type": "string",
      "description": "Phone number",
      "example": "+1(415)777-7777"
    },
    "email": {
      "type": "string",
      "description": "Email",
      "example": "[email protected]"
    },
    "title": {
      "type": "string",
      "description": "Title of the tenant",
      "example": "Company A"
    },
    "region": {
      "type": "string",
      "description": "Geo region of the tenant",
      "example": "North America"
    },
    "tenantProfileId": {
      "$ref": "#/components/schemas/TenantProfileId",
      "description": "JSON object with Tenant Profile Id"
    },
    "version": {
      "type": "integer",
      "format": "int64"
    },
    "name": {
      "type": "string",
      "description": "Name of the tenant. Read-only, duplicated from title for backward compatibility",
      "example": "Company A",
      "readOnly": true
    },
    "additionalInfo": {
      "$ref": "#/components/schemas/JsonNode",
      "description": "Additional parameters of the device"
    }
  },
  "required": [
    "title"
  ]
}