Create a new table group from a data model
Bearer token authentication. Include the token in the Authorization header:
Authorization: Bearer <your-token>
Table group import data including version, group configuration, and table definitions
{
"version": 1,
"group": {
"group_name": "Marketing Analytics",
"ds_id": "GAWA",
"table_prefix": "MKT"
},
"tables": [
{
"table_name": "SESSIONS",
"table_partition": "date",
"fields": [
"session_id",
"date",
"users"
]
}
],
"fields": [
{
"field_id": "session_id",
"target_name": "session_id"
},
{
"field_id": "date",
"target_name": "session_date"
},
{
"field_id": "users",
"target_name": "user_count"
}
]
}Data model version for the received data
Table group name
Data source ID
Prefix to table names. Enforced into upper snake case. Maximum length is 15 characters. Appended with an underscore.
List of table objects
Table name. Enforced into upper snake case.
Table partition. Either date or none.
Data source report type. Required for some data sources.
List of field IDs for the table
List of field objects
Field ID that appears in one of the table objects
Field name in target table. Defaults to field ID in lower snake case.
Table group imported successfully
API request ID
Supermetrics table group ID
Table group name
Full URL to the resource
Table Group Import Error
Unauthorized - invalid or missing authentication
API request ID
Error code
Error message
Error description
Table Group Not Found
Table Group Name Conflict
Unprocessable Entity - request validation failed
API request ID
Error code
Error message
Error description
Too Many Requests - rate limit exceeded
API request ID
Error code
Error message
Error description
Table Group Create Failed