Tables
/team/:teamid/table (authenticated)
Create a new table
Note:Requires sending an authentication token either in the sessionid query argument,
or in the X-API-Key header. The token is returned from the login route.
Required Team Permissions
- create_chart
{
// table config
The: data,
}
teamid: The id of the team to act on
/team/:teamid/table/:tableid (authenticated)
Get a single table - fetches the latest version
Note:Requires sending an authentication token either in the sessionid query argument,
or in the X-API-Key header. The token is returned from the login route.
Required Team Permissions
- create_chart
teamid: The id of the team to act on
tableid: undocumented
{
// The ID of the table
table_id: number,
// The table version
version: number,
// The timestamp for this version
creation_time: date,
// The table data
data: json,
// The username for the owner
username: string,
}
/team/:teamid/table/:tableid (authenticated)
Update a table version
Note:Requires sending an authentication token either in the sessionid query argument,
or in the X-API-Key header. The token is returned from the login route.
Required Team Permissions
- create_chart
{
// The table body
data: json,
}
teamid: The id of the team to act on
tableid: undocumented
/team/:teamid/table/:tableid/embed (authenticated)
Generates embed and inject scripts for a given table
Note:Requires sending an authentication token either in the sessionid query argument,
or in the X-API-Key header. The token is returned from the login route.
Required Team Permissions
- publish
{
// whether to notify us if you want this project to be in the inspired section.
inspired: boolean,
}
teamid: The id of the team to act on
tableid: undocumented
/team/:teamid/tablemeta/:tableid (authenticated)
Update table meta
Note:Requires sending an authentication token either in the sessionid query argument,
or in the X-API-Key header. The token is returned from the login route.
Required Team Permissions
- create_chart
{
// The table name
name: string,
// If the table is deleted or not
private: boolean,
}
teamid: The id of the team to act on
tableid: undocumented
/team/:teamid/table/:tableid/duplicate (authenticated)
Duplicate table
Note:Requires sending an authentication token either in the sessionid query argument,
or in the X-API-Key header. The token is returned from the login route.
Required Team Permissions
- duplicate_chart
{
// Is a theme
is_theme: string,
}
teamid: The id of the team to act on
tableid: undocumented