Themes 2
/team/:teamid/type/themes/:charttype
(authenticated)
Get the themes associated with the 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
- member_of
integer page: The desired page
integer pageSize: The desired page size
teamid: The id of the team to act on
charttype: undocumented
/division/:divisionid/type/themes/:charttype
(authenticated)
Get the themes associated with the 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
- member_of
integer page: The desired page
integer pageSize: The desired page size
divisionid: undocumented
charttype: undocumented
/team/:teamid/themes/deleted
(authenticated)
Get the deleted themes associated with the 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
- theme_management
integer page: The desired page
integer pageSize: The desired page size
teamid: The id of the team to act on
/division/:divisionid/themes/deleted
(authenticated)
Get the deleted themes associated with the 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
- theme_management
integer page: The desired page
integer pageSize: The desired page size
divisionid: undocumented
/division/:divisionid/themes/all
(authenticated)
Get all themes associated with the division id (non-deleted)
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
- theme_management
integer page: The desired page
integer pageSize: The desired page size
divisionid: undocumented
/team/:teamid/deleted/themes/all
(authenticated)
Get all themes associated with the team (deleted and non-deleted)
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
- theme_management
integer page: The desired page
integer pageSize: The desired page size
teamid: The id of the team to act on
/team/:teamid/themes/search
Get all the themes within a team! (search)
string query: The search string
integer page: The desired page
integer pageSize: The desired page size
teamid: The id of the team to act on
/division/:divisionid/themes/search
Get all the themes within a division! (search)
string query: The search string
integer page: The desired page
integer pageSize: The desired page size
divisionid: undocumented
/team/:teamid/themes/all
(authenticated)
Get all themes associated with the team (non-deleted)
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
- theme_management
integer page: The desired page
integer pageSize: The desired page size
teamid: The id of the team to act on
/team/:teamid/theme/:themeid
(authenticated)
Get a single theme - 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
- view_charts
teamid: The id of the team to act on
themeid: 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,
// The username for the owner
username: string,
}
/team/:teamid/chart/:chartid/totheme
(authenticated)
Turn a chart into a theme
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
- theme_management
teamid: The id of the team to act on
chartid: The id of the chart to act on
/team/:teamid/chart/:chartid/dupetotheme
(authenticated)
Duplicate a chart as a theme
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
- theme_management
teamid: The id of the team to act on
chartid: The id of the chart to act on
/team/:teamid/theme
(authenticated)
Add a new theme to the 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
- theme_management
{
// The template/theme type
type: string,
// The template/theme name
name: string,
// The division that chart belongs to
division_id: string,
// The template/theme JSON
properties: string,
}
teamid: The id of the team to act on
/teams/:teamid/theme/:themeid
(authenticated)
Update a theme for 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
- theme_management
{
// The type of theme
type: string,
// The theme name
name: string,
// Chart options
properties: json,
}
teamid: The id of the team to act on
themeid: undocumented
/team/:teamid/theme/:themeid/recover
(authenticated)
Recover a theme
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
- theme_management
teamid: The id of the team to act on
themeid: undocumented
/team/:teamid/theme/:themeid
(authenticated)
Remove a theme from 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
- theme_management
teamid: The id of the team to act on
themeid: undocumented