Embed 2
post
/team/:teamid/chart/:chartid/:version/embed
(authenticated)
Generates embed and inject scripts for the anonymous user
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
Accepted Body Arguments
{
// whether chart is private or not
private: bool,
// password for the private chart.
password: string,
}
Accepted Restful Arguments
teamid: The id of the team to act on
chartid: The id of the chart to act on
version: undocumented
post
/team/:teamid/chart/:chartid/embed
(authenticated)
Generates embed and inject scripts for a given 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
- publish
Accepted Body Arguments
{
// whether chart is private or not
private: bool,
// password for the private chart.
password: string,
}
Accepted Restful Arguments
teamid: The id of the team to act on
chartid: The id of the chart to act on