The Table to Text API expects the table submitted to be of a certain structure. Which columns you need depends on which category of endpoints you are calling: Single Asset Single Metric, Single Asset Multi Metric, or Multi Asset Single Metric.
Column Name | Data Type | Example | Endpoint Category |
---|---|---|---|
asset_id. This is the key the value is associated with. | character | "Ben Simmons" | 1. single asset single metric 2. single asset multi metric 3. multi asset single metric |
time. The time period the value is bound to. | time. format: YYYY-MM-DD or YYYY-MM-DD HH:MM:SS | "2021-04-09" | 1. single asset single metric 2. single asset multi metric |
value | numeric | 14 | 1. single asset single metric 2. multi asset single metric |
name. The name of the metric; every row in the table can have the same value for this column. | character | "points" | 1. single asset single metric 2. multi asset single metric |
asset_class. The broader asset class the asset rolls up into; every row in the table can have the same value for this column. | character | "NBA players" | 1. single asset single metric 2. single asset multi metric 3. multi asset single metric |