Layouts
/team/:teamid/story
(authenticated)
Create a new story
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
{
// story config
The: data,
}
teamid: The id of the team to act on
/team/:teamid/story/:storyid
(authenticated)
Get a single story - 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
- create_chart
teamid: The id of the team to act on
storyid: undocumented
{
// The ID of the story
story_id: number,
// The story version
version: number,
// The timestamp for this version
creation_time: date,
// The story data
data: json,
// The username for the owner
username: string,
}
/team/:teamid/story/:storyid
(authenticated)
Update a story 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
- create_chart
{
// The story body
data: json,
}
teamid: The id of the team to act on
storyid: undocumented
/team/:teamid/story/:storyid/embed
(authenticated)
Generates embed and inject scripts for a given story
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
{
// whether to notify us if you want this project to be in the inspired section.
inspired: boolean,
}
teamid: The id of the team to act on
storyid: undocumented
/team/:teamid/storymeta/:storyid
(authenticated)
Update story 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
- create_chart
{
// The story name
name: string,
// If the story is deleted or not
private: boolean,
}
teamid: The id of the team to act on
storyid: undocumented
/team/:teamid/story/:storyid/duplicate
(authenticated)
Duplicate story
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
{
// Is a theme
is_theme: string,
}
teamid: The id of the team to act on
storyid: undocumented