DTV Play

Method: get

dtvplay_commands#archives

URL: /management/dtvplay_commands/archives.json

Parameters:

{
“term”: ” “
}

Return:


Method: get

dtvplay_commands#collection_groups

URL: /management/dtvplay_commands/collection_groups.json

Parameters:

{
“collection_type”: “”,  #channel|subchannel|category
“term”: “”
}

Return:


Method: get

dtvplay_commands#types

URL: /management/dtvplay_commands/types.json

Parameters:

Return:

{
“dtvplay_command”: null,
“name”: null,
“action_type”: null
}

Method: get|post ?

dtvplay_commands#polling

URL: /management/dtvplay_commands/polling.json

Parameters:

Return:


Method: post

dtvplay_commands#deactivate

URL: /management/dtvplay_commands/id/deactivate.json

Return:

{
“dtvplay_command”: {
“id”: 1,
“name”: “teste”,
“type”: “video_carousel”,
“value”: {
“subtitle”: “teste”,
“items”: [
{
“type”: “video”,
“id”: 1,
“name”: “2023-05-22 13-40-28.mp4_14830273-xkyrsfs17vo”,
“thumb_url”: “https://d20w2wsa6ocqck.cloudfront.net/leilane/account1-i8/video/1/thumb_2023-05-22_13-40-28-1686760474.png”
}
]
},
“start_at”: 1689186954,
“end_at”: null,
“auto_trigger”: false
}
}

Method: post

dtvplay_commands#activate

URL: /management/dtvplay_commands/:id/activate.json

Return:

{
“dtvplay_command”: {
“id”: 1,
“name”: “teste”,
“type”: “video_carousel”,
“value”: {
“subtitle”: “teste”,
“items”: [
{
“type”: “video”,
“id”: 1,
“name”: “2023-05-22 13-40-28.mp4_14830273-xkyrsfs17vo”,
“thumb_url”: “https://d20w2wsa6ocqck.cloudfront.net/leilane/account1-i8/video/1/thumb_2023-05-22_13-40-28-1686760474.png”
}
]
},
“start_at”: 1689186954,
“end_at”: null,
“auto_trigger”: false
}
}

Method: get

dtvplay_commands#index

URL: /management/dtvplay_commands.json

Parameters:

{
“dtvplay_command_page”: integer
}

Return:

{
“dtvplay_commands”: [
{
“id”: 1,
“name”: “teste”,
“type”: “video_carousel”,
“value”: {
“subtitle”: “teste”,
“items”: [
{
“type”: “video”,
“id”: 1,
“name”: “2023-05-22 13-40-28.mp4_14830273-xkyrsfs17vo”,
“thumb_url”: “https://d20w2wsa6ocqck.cloudfront.net/leilane/account1-i8/video/1/thumb_2023-05-22_13-40-28-1686760474.png”
}
]
},
“start_at”: 1689186954,
“end_at”: null,
“auto_trigger”: false
}
],
“dtvplay_commands_pagination”: {
“current”: 1,
“last”: true
}
}

Method: post ?

dtvplay_commands#create

URL: /management/dtvplay_commands.json

Parameters:

{
“name”: “teste3”,
“action_type”: “video_carousel”,
“description”: “aaaaaa”,
“start_date”: null,
“end_date”: null,
“auto_trigger”: false,
“enabled”: false,
“test_mode”: true,
“action_value”: “aaaaaaa”
}

Return:


Method: get

dtvplay_commands#show

URL: /management/dtvplay_commands/:id.json

Return:

{
“page”: “dtvplay_command”,
“dtvplay_command”: {
“id”: 1,
“name”: “teste”,
“type”: “video_carousel”,
“value”: {
“subtitle”: “teste”,
“items”: [
{
“type”: “video”,
“id”: 1,
“name”: “2023-05-22 13-40-28.mp4_14830273-xkyrsfs17vo”,
“thumb_url”: “https://d20w2wsa6ocqck.cloudfront.net/leilane/account1-i8/video/1/thumb_2023-05-22_13-40-28-1686760474.png”
}
]
},
“start_at”: 1689186954,
“end_at”: null,
“auto_trigger”: false
},
“pagination”: {
“current”: 1,
“last”: true
}
}

Method: put ?

dtvplay_commands#update

URL: /management/dtvplay_commands/:id.json

Parameters:

Return:


Method: delete

dtvplay_commands#destroy

URL: /management/dtvplay_commands/:id.json

Return:

{
“error”: boolean
}