# Create Indexes table
This endpoint creates one or more Indexes tables.
Method | Path | Operation* |
---|---|---|
POST | /account/services/indexes | create_indexes_table |
*
In order for a user to perform the "create_indexes_table" operation, the "create_indexes_table" permission must be included in the list of allowed actions in the statement of the user's role.
# Request
Parameter | Type | In | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
properties | dictionary | body | Dictionary containing a list of property names and a list of data types of the properties.
| |||||||||
rule | string | body | Rule used to select Twins that should be present in the given Indexes table. This rule is evaluated when the Ledger is changed. Itis not evaluated when a user or a Twin are changed. | |||||||||
templates | dictionary | body | Dictionary containing templates for "properties" in form of key-value pairs:- key: property name, - value: template. The templates follow the Python string str.format() convention (see Format String Syntax(opens new window)). |
IMPORTANT NOTE
If the data types of a property and an Entry value do not match, it will not result in an error. The value will be null in the Indexes table.
# Response
Attribute | Type | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
stats | dictionary | Indexes table stats.
| |||||||||||||||
properties | dictionary | Dictionary containing a list of property names and a list of data types of the properties.
| |||||||||||||||
rule | string | Rule used to select Twins that should be present in the given Indexes table. This rule is evaluated when the Ledger is changed. It is not evaluated when a user or a Twin are changed. | |||||||||||||||
templates | dictionary | Dictionary containing templates for "properties" in form of key-value pairs:- key: property name, - value: template. The templates follow the Python string str.format() convention (see Format String Syntax(opens new window)). | |||||||||||||||
database | string | Database UUID. |
# Status codes
Requests to this endpoint result in generic status codes. For a comprehensive list of status codes, please consult the Status codes section.
Was this article helpful?