Themes 2

get

/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

  1. member_of
Accepted Query Arguments

integer page: The desired page
integer pageSize: The desired page size
Accepted Restful Arguments

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

get

/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

  1. member_of
Accepted Query Arguments

integer page: The desired page
integer pageSize: The desired page size
Accepted Restful Arguments

divisionid: undocumented
charttype: undocumented

get

/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

  1. theme_management
Accepted Query Arguments

integer page: The desired page
integer pageSize: The desired page size
Accepted Restful Arguments

teamid: The id of the team to act on

get

/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

  1. theme_management
Accepted Query Arguments

integer page: The desired page
integer pageSize: The desired page size
Accepted Restful Arguments

divisionid: undocumented

get

/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

  1. theme_management
Accepted Query Arguments

integer page: The desired page
integer pageSize: The desired page size
Accepted Restful Arguments

divisionid: undocumented

get

/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

  1. theme_management
Accepted Query Arguments

integer page: The desired page
integer pageSize: The desired page size
Accepted Restful Arguments

teamid: The id of the team to act on

get

/team/:teamid/themes/search

Get all the themes within a team! (search)

Accepted Query Arguments

string query: The search string
integer page: The desired page
integer pageSize: The desired page size
Accepted Restful Arguments

teamid: The id of the team to act on

get

/division/:divisionid/themes/search

Get all the themes within a division! (search)

Accepted Query Arguments

string query: The search string
integer page: The desired page
integer pageSize: The desired page size
Accepted Restful Arguments

divisionid: undocumented

get

/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

  1. theme_management
Accepted Query Arguments

integer page: The desired page
integer pageSize: The desired page size
Accepted Restful Arguments

teamid: The id of the team to act on

get

/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

  1. view_charts
Accepted Restful Arguments

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

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

post

/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

  1. theme_management
Accepted Restful Arguments

teamid: The id of the team to act on
chartid: The id of the chart to act on

post

/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

  1. theme_management
Accepted Restful Arguments

teamid: The id of the team to act on
chartid: The id of the chart to act on

post

/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

  1. theme_management
Accepted Body Arguments

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

teamid: The id of the team to act on

post

/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

  1. theme_management
Accepted Body Arguments

{
// The type of theme
type: string,
// The theme name
name: string,
// Chart options
properties: json,
}
Accepted Restful Arguments

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

post

/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

  1. theme_management
Accepted Restful Arguments

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

delete

/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

  1. theme_management
Accepted Restful Arguments

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

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