Tables

post

/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

  1. create_chart
Accepted Body Arguments

{
// table config
The: data,
}
Accepted Restful Arguments

teamid: The id of the team to act on

get

/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

  1. create_chart
Accepted Restful Arguments

teamid: The id of the team to act on
tableid: undocumented
Returns

{
// 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,
}

post

/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

  1. create_chart
Accepted Body Arguments

{
// The table body
data: json,
}
Accepted Restful Arguments

teamid: The id of the team to act on
tableid: undocumented

post

/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

  1. publish
Accepted Body Arguments

{
// whether to notify us if you want this project to be in the inspired section.
inspired: boolean,
}
Accepted Restful Arguments

teamid: The id of the team to act on
tableid: undocumented

post

/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

  1. create_chart
Accepted Body Arguments

{
// The table name
name: string,
// If the table is deleted or not
private: boolean,
}
Accepted Restful Arguments

teamid: The id of the team to act on
tableid: undocumented

post

/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

  1. duplicate_chart
Accepted Body Arguments

{
// Is a theme
is_theme: string,
}
Accepted Restful Arguments

teamid: The id of the team to act on
tableid: undocumented

Did you find what you were looking for? Thank you! There was a problem submitting your feedback. Please try again later.