Modify a Liveblog
Send one or more modifications to update a liveblog.
Return value: Tik::Model::Game
Request: POST /api/v5/write/ticker/post_modifications.json
Query Parameters: (none)
Post Document:
{
// local_id of the liveblog (either local_id or ticker_id are required)
"local_id": "",
// ticker_id of the liveblog (either local_id or ticker_id are required)
"ticker_id": "",
// (array[Tik::Model::Modification::UserModification])
"modifications": [],
}
Success Response: Tik::Model::Game
Object
The following modification types can be sent:
Type |
---|
Tik::Model::Modification::UpdateGameMetaInfoModification |
Tik::Model::Modification::UpdateGameMarketplaceInfoModification |
Tik::Model::Modification::UpsertScoreboardModification |
Tik::Model::Modification::UpdateGameStateModification |
Tik::Model::Modification::UpdateGameOptionsModification |
Tik::Model::Modification::DeleteGameModification |
Tik::Model::Modification::UpsertPermissionModification |
Tik::Model::Modification::DeletePermissionModification |
Examples
UpdateGameMetaInfoModification
{
"local_id": "YOUR_GAME_LOCAL_ID",
"modifications": [
{
"_type": "Tik::Model::Modification::UpdateGameMetaInfoModification",
"sportstype": "news",
"meta_info": {
"_type": "Tik::Model::GameMetaInfo::TitleGameMetaInfo",
"title": "Some new title",
"editorial_publishing": false,
"starts_at": 1531985104
}
}
]
}
UpdateGameMarketplaceInfoModification
{
"local_id": "YOUR_GAME_LOCAL_ID",
"modifications": [
{
"_type": "Tik::Model::Modification::UpdateGameMarketplaceInfoModification",
"marketplace_info": {
"_type": "Tik::Model::MarketplaceInfo::BasicMarketplaceInfo",
"pricing": {
"_type": "Tik::Model::Pricing",
"_id": "SOME_EXISTING_PRICING_ID"
},
"detail": "Liveblog Marketplace description",
"cover_image": "https://example.com/image.jpg"
}
}
]
}
UpsertScoreboardModification
{
"local_id": "YOUR_GAME_LOCAL_ID",
"modifications": [
{
"_type": "Tik::Model::Modification::UpsertScoreboardModification",
"scoreboard": {
"_type": "Tik::Model::Content::Scoreboard::TeamGameScoreboard",
"home_team": {
"_type": "Tik::Model::Team",
"_id": "HOMETEAMID"
},
"away_team": {
"_type": "Tik::Model::Team",
"_id": "AWAYTEAMID"
},
"score": {
"_type": "Tik::Model::Content::Scoreboard::ScoreboardScore",
"home_score": "1",
"away_score": "0",
}
}
}
]
}
UpdateGameStateModification
{
"local_id": "YOUR_GAME_LOCAL_ID",
"modifications": [
{
"_type": "Tik::Model::Modification::UpdateGameStateModification",
"state_info": {
"_type": "Tik::Model::GameStateInfo::TimeBasedGameStateInfo",
"timeout": false,
"check_time": 1578920400,
"check_seconds": 1000,
"is_break": false,
"recurrence": 1,
"gamestate": 1
}
}
}
]
}
UpdateGameOptionsModification
{
"local_id": "YOUR_GAME_LOCAL_ID",
"modifications": [
{
"_type": "Tik::Model::Modification::UpdateGameOptionsModification",
"options": {
"_type": "Tik::Model::Options::TimedGameOptions",
"timing_type": "aud",
"regular_phase_length": 45,
"num_regular_phases": 2,
"overtime_phase_length": 15,
"num_overtime_phases": 2
}
}
]
}
DeleteGameModification
{
"local_id": "YOUR_GAME_LOCAL_ID",
"modifications": [
{
"_type": "Tik::Model::Modification::DeleteGameModification",
"local_status": "100"
}
]
}
UpsertPermissionModification
{
"local_id": "YOUR_GAME_LOCAL_ID",
"modifications": [
{
"_type": "Tik::Model::Modification::UpsertPermissionModification",
"permission": {
"permission": "w",
"reftype": "Organization",
"refid": "5e3944cf88cb463364cfd7ce"
}
}
]
}
DeletePermissionModification
{
"local_id": "YOUR_GAME_LOCAL_ID",
"modifications": [
{
"_type": "Tik::Model::Modification::DeletePermissionModification",
"refid": "5e3944cf88cb463364cfd7ce"
}
]
}