Chart 2
/chart/templates/:uuid
(authenticated)
Generate embed/inject snippets for a chart uuid
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.
uuid: undocumented
/profile/charts/collab
(authenticated)
Get all the charts for which the user is a collaborator
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.
integer page: The desired page
integer pageSize: The desired page size
/chart/accessto/:uuid
(authenticated)
Check if a user has permission to edit a chart
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.
uuid: undocumented
/public/charts/search
Get all the charts! (search)
string query: The search string
integer page: The desired page
integer pageSize: The desired page size
/:teamid/data/:dataid
Updates data info
{
// The data
data: json,
// live or not
live: bool,
// referenced or not
referenced: bool,
// name of data
name: string,
}
teamid: The id of the team to act on
dataid: undocumented
/:teamid/data
Creates new data info
{
// data
The: details,
//
live: live,
//
name: name,
//
provider: provider,
}
teamid: The id of the team to act on
/:teamid/data
Get all data by team
integer page: The desired page
integer pageSize: The desired page size
teamid: The id of the team to act on
/data/:hash
hash: undocumented
/public/charts
Get all charts
integer page: The desired page
integer pageSize: The desired page size
/team/:teamid/chart
(authenticated)
Create a new chart
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
{
// dataId
The: dataId,
// charts data is referenced or not
whether: referenced,
}
teamid: The id of the team to act on
/team/:teamid/chart/:chartid/views
(authenticated)
Get the view history for a chart
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
- view_history
integer page: The desired page
integer pageSize: The desired page size
teamid: The id of the team to act on
chartid: The id of the chart to act on
/show/chart/:uuid/:version
Get a single public chart version.
uuid: undocumented
version: undocumented
{
// The hash of the chart
uuid: number,
// The view counter for the chart
view_count: number,
// The chart version
version: number,
// The timestamp for this version
creation_time: date,
// The chart data
data: json,
// The URL for the latest thumbnail
thumbnail_url: string,
// The username for the owner
username: string,
}
/show/chart/:uuid
Get a single public chart - fetches the latest version.
uuid: undocumented
{
// The hash of the chart
uuid: number,
// The view counter for the chart
view_count: number,
// The chart version
version: number,
// The timestamp for this version
creation_time: date,
// The chart data
data: json,
// The URL for the latest thumbnail
thumbnail_url: string,
}
/team/:teamid/chart/:chartid
Get a single chart - fetches the latest version
teamid: The id of the team to act on
chartid: The id of the chart to act on
{
// The ID of the chart
chart_id: number,
// The view counter for the chart
view_count: number,
// The chart version
version: number,
// The timestamp for this version
creation_time: date,
// The chart data
data: json,
// The URL for the latest thumbnail
thumbnail_url: string,
// Wether or not the chart is private
private: boolean,
// The username for the owner
username: string,
}
/team/:teamid/chart/:chartid/:versionid
Get a single chart - with a specified version
teamid: The id of the team to act on
chartid: The id of the chart to act on
versionid: undocumented
{
// The ID of the chart
chart_id: number,
// The view counter for the chart
view_count: number,
// The chart version
version: number,
// The timestamp for this version
creation_time: date,
// The chart data
data: json,
// The URL for the latest thumbnail
thumbnail_url: string,
// Wether or not the chart is private
private: boolean,
// The username for the owner
username: string,
}
/chart/:chartid/:versionid
Get a single chart - with a specified version, only works for public charts
chartid: The id of the chart to act on
versionid: undocumented
{
// The ID of the chart
chart_id: number,
// The view counter for the chart
view_count: number,
// The chart version
version: number,
// The timestamp for this version
creation_time: date,
// The chart data
data: json,
// The URL for the latest thumbnail
thumbnail_url: string,
// Wether or not the chart is private
private: boolean,
// The username for the owner
username: string,
}
/team/:teamid/charts
(authenticated)
Get all the charts a user has access to in a given team
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
- view_charts
integer page: The desired page
integer pageSize: The desired page size
teamid: The id of the team to act on
/team/:teamid/charts/published
(authenticated)
Get all published charts a user has access to in a given team
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
- view_charts
integer page: The desired page
integer pageSize: The desired page size
teamid: The id of the team to act on
/team/:teamid/division/charts/all
(authenticated)
Get all the charts a user has access to in a given team with no division set
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
- view_charts
integer page: The desired page
integer pageSize: The desired page size
teamid: The id of the team to act on
/division/:divisionid/charts
(authenticated)
Get all the charts a user has access to in a given division
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
- view_charts
integer page: The desired page
integer pageSize: The desired page size
divisionid: undocumented
/division/:divisionid/charts/deleted
(authenticated)
Get all the deleted charts in a team
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
- chart_trash
integer page: The desired page
integer pageSize: The desired page size
divisionid: undocumented
/team/:teamid/charts/deleted
(authenticated)
Get all the deleted charts in a team
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
- chart_trash
integer page: The desired page
integer pageSize: The desired page size
teamid: The id of the team to act on
/team/:teamid/charts/public
Get all the public charts of a team
integer page: The desired page
integer pageSize: The desired page size
teamid: The id of the team to act on
/team/:teamid/chart/:chartid
Delete a chart
teamid: The id of the team to act on
chartid: The id of the chart to act on
/team/:teamid/chart/:chartid/recover
Undelete a chart
teamid: The id of the team to act on
chartid: The id of the chart to act on
/team/:teamid/chart/:chartid/duplicate
(authenticated)
Duplicate chart
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
{
// If chart is a theme
is_theme: string,
}
teamid: The id of the team to act on
chartid: The id of the chart to act on
/team/:teamid/chartmeta/:chartid
Update chart meta
{
// The chart name
name: string,
// If the chart is private or not
private: boolean,
// The charts tags including new ones to add
tags: string,
}
teamid: The id of the team to act on
chartid: The id of the chart to act on
/team/:teamid/chartdivision/:chartid
(authenticated)
Update chart division
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
- subteam_management
{
// The division id to change to
division: string,
}
teamid: The id of the team to act on
chartid: The id of the chart to act on
/team/:teamid/chart/:chartid
Update a chart version
{
// The chart body
data: json,
// The dataId
dataId: integer,
// If the data is live
live: bool,
}
teamid: The id of the team to act on
chartid: The id of the chart to act on
/team/:teamid/division/charts/all/search
Get all the charts within a team with no divisions! (search)
string query: The search string
string tags: The tags string
string creator: The creator
integer page: The desired page
integer pageSize: The desired page size
teamid: The id of the team to act on
/team/:teamid/charts/search
Get all the charts within a team! (search)
string query: The search string
string tags: The tags string
string creator: The creator
integer page: The desired page
integer pageSize: The desired page size
teamid: The id of the team to act on
/division/:divisionid/charts/search
Get all the charts within a division! (search)
string query: The search string
string tags: The tags string
string creator: The creator
integer page: The desired page
integer pageSize: The desired page size
divisionid: undocumented
/charts/:teamid/tags
Get all the chart tags
teamid: The id of the team to act on
/public/popularcharts
Get most popular charts
/private/chart/:chartid
Get private chart
{
// Password for the chart
password: string,
}
chartid: The id of the chart to act on
/share/:uuid
Get private chart
uuid: undocumented