# Truncate Timeseries table
This endpoint truncates a given Timeseries table.
Method | Path | Operation* |
---|---|---|
DELETE | /account/services/timeseries/{timeseries}/data | truncate_timeseries_table |
*
In order for a user to perform the "truncate_timeseries_table" operation, the "truncate_timeseries_table" permission must be included in the list of allowed actions in the statement of the user's role.
# Request
Parameter | Type | In | Description |
---|---|---|---|
timeseries required | string | path | Name of the Timeseries table. It must be unique in the context of an account and must match the regular expression(opens new window) ^[a-z_][0-9a-z_]{0,63}$ . |
In our example, we send a request to truncate the Timeseries table with the name air_quality_index
.
# Response
Attribute | Type | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
stats | dictionary | Timeseries table stats.
| |||||||||||||||
dimensions | dictionary | Dictionary containing a list of dimension names and a list of data types of the corresponding dimensions.
| |||||||||||||||
measurements | dictionary | Dictionary containing a list of measurement column names and a list of data types of the corresponding measurement columns.
| |||||||||||||||
defaults | dictionary | Dictionary containing templates for |
Attribute | Type | Description |
---|---|---|
measurement | string | Template that determines the name of the measurement column to store the Entry value. Provided default template is used if no default template is defined in the "timeseries" property of a Ledger's Entry. The template follows the Python string str.format() convention (see Format String Syntax(opens new window)). |
dimensions | dictionary | Template that determines the value for each of the dimensions. Provided default template is used if no default template is defined in the "timeseries" property of a Ledger's Entry. The template follows the Python string str.format() convention (see Format String Syntax(opens new window)). |
timestamp | string | Template that determines the value of the timestamp. |
^([1-9][0-9]{0,2}[DWMY])|(INF)$
.^([1-9][0-9]{0,2}[DWMY])|(INF)$
.# 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?