Widget
Widgets
Add a new Widget to a Playlist
The type of the Widget e.g. text. Media based Widgets like Image are added via POST /playlist/library/assign/{playlistId} call.
The Playlist ID
Optional integer to say which position this assignment should occupy in the list. If more than one media item is being added, this will be the position of the first one.
If the module type provided has a dataType then provide the templateId to use.
successful operation
POST /api/playlist/widget/{type}/{playlistId} HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 38
"displayOrder=1&templateId='text'"successful operation
No content
Edit a widget providing new properties to set on it
The ID of the Widget
Set a duration on this widget, if unchecked the default or library duration will be used.
Duration to use on this widget
An optional name for this widget
Should stats be enabled? On|Off|Inherit
If this widget requires data, should that data be repeated to meet the number of items requested?
If this widget requires data and allows fallback data how should that data be returned? (never, always, empty, error)
Add an additional parameter for each of the properties required this module and its template. Use the moduleProperties and moduleTemplateProperties calls to get a list of properties needed
successful operation
No content
PUT /api/playlist/widget/{id} HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 118
"useDuration=1&duration=1&name='text'&enableStat='text'&isRepeatData=1&showFallback='text'&properties=1"successful operation
No content
Adds In/Out transition to a specified widget
Transition type, available options: in, out
The widget ID to add the transition to
Type of a transition, available Options: fly, fadeIn, fadeOut
Duration of this transition in milliseconds
The direction for this transition, only appropriate for transitions that move, such as fly. Available options: N, NE, E, SE, S, SW, W, NW
successful operation
PUT /api/playlist/widget/transition/{type}/{widgetId} HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 72
"transitionType='text'&transitionDuration=1&transitionDirection=1"successful operation
{
"widgetId": 1,
"playlistId": 1,
"ownerId": 1,
"type": "text",
"duration": 1,
"displayOrder": 1,
"useDuration": 1,
"calculatedDuration": 1,
"createdDt": "text",
"modifiedDt": "text",
"fromDt": 1,
"toDt": 1,
"schemaVersion": 1,
"transitionIn": 1,
"transitionOut": 1,
"transitionDurationIn": 1,
"transitionDurationOut": 1,
"widgetOptions": [
{
"widgetId": 1,
"type": "text",
"option": "text",
"value": "text"
}
],
"mediaIds": [
1
],
"audio": [
{
"widgetId": 1,
"mediaId": 1,
"volume": 1,
"loop": 1
}
],
"permissions": [
{
"permissionId": 1,
"entityId": 1,
"groupId": 1,
"objectId": 1,
"isUser": 1,
"entity": "text",
"objectIdString": "text",
"group": "text",
"view": 1,
"edit": 1,
"delete": 1,
"modifyPermissions": 1
}
],
"playlist": "text"
}Parameters for edting/adding audio file to a specific widget
Id of a widget to which you want to add audio or edit existing audio
Id of a audio file in CMS library you wish to add to a widget
Volume percentage(0-100) for this audio to play at
Flag (0, 1) Should the audio loop if it finishes before the widget has finished?
successful operation
PUT /api/playlist/widget/{widgetId}/audio HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 33
"mediaId=1&volume=1&loop=1"successful operation
{
"widgetId": 1,
"playlistId": 1,
"ownerId": 1,
"type": "text",
"duration": 1,
"displayOrder": 1,
"useDuration": 1,
"calculatedDuration": 1,
"createdDt": "text",
"modifiedDt": "text",
"fromDt": 1,
"toDt": 1,
"schemaVersion": 1,
"transitionIn": 1,
"transitionOut": 1,
"transitionDurationIn": 1,
"transitionDurationOut": 1,
"widgetOptions": [
{
"widgetId": 1,
"type": "text",
"option": "text",
"value": "text"
}
],
"mediaIds": [
1
],
"audio": [
{
"widgetId": 1,
"mediaId": 1,
"volume": 1,
"loop": 1
}
],
"permissions": [
{
"permissionId": 1,
"entityId": 1,
"groupId": 1,
"objectId": 1,
"isUser": 1,
"entity": "text",
"objectIdString": "text",
"group": "text",
"view": 1,
"edit": 1,
"delete": 1,
"modifyPermissions": 1
}
],
"playlist": "text"
}Delete assigned audio widget from specified widget ID
Id of a widget from which you want to delete the audio from
successful operation
No content
DELETE /api/playlist/widget/{widgetId}/audio HTTP/1.1
Accept: */*
successful operation
No content
Control when this Widget is active on this Playlist
Id of a widget to which you want to add audio or edit existing audio
The From Date in Y-m-d H::i:s format
The To Date in Y-m-d H::i:s format
Delete this Widget when it expires?
successful operation
PUT /api/playlist/widget/{widgetId}/expiry HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 50
"fromDt='text'&toDt='text'&deleteOnExpiry=1"successful operation
{
"widgetId": 1,
"playlistId": 1,
"ownerId": 1,
"type": "text",
"duration": 1,
"displayOrder": 1,
"useDuration": 1,
"calculatedDuration": 1,
"createdDt": "text",
"modifiedDt": "text",
"fromDt": 1,
"toDt": 1,
"schemaVersion": 1,
"transitionIn": 1,
"transitionOut": 1,
"transitionDurationIn": 1,
"transitionDurationOut": 1,
"widgetOptions": [
{
"widgetId": 1,
"type": "text",
"option": "text",
"value": "text"
}
],
"mediaIds": [
1
],
"audio": [
{
"widgetId": 1,
"mediaId": 1,
"volume": 1,
"loop": 1
}
],
"permissions": [
{
"permissionId": 1,
"entityId": 1,
"groupId": 1,
"objectId": 1,
"isUser": 1,
"entity": "text",
"objectIdString": "text",
"group": "text",
"view": 1,
"edit": 1,
"delete": 1,
"modifyPermissions": 1
}
],
"playlist": "text"
}Set the Region this Widget is intended for - only suitable for Drawer Widgets
Id of the Widget to set region on
The target regionId
successful operation
No content
PUT /api/playlist/widget/{widgetId}/region HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 25
"targetRegionId='text'"successful operation
No content
Update a widget with elements associated with it
Id of the Widget to set region on
JSON representing the elements assigned to this widget
successful operation
No content
PUT /api/playlist/widget/{widgetId}/elements HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 19
{
"elements": "text"
}successful operation
No content
Get DataType for a Widget according to the widgets module definition
Id of the Widget
A JSON representation of your dataType
successful operation
No content
PUT /api/playlist/widget/{widgetId}/dataType HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 19
{
"dataType": "text"
}successful operation
No content
Return all of the fallback data currently assigned to this Widget
The Widget ID that this data should be added to
successful operation
Class representing widget data
The ID
The Widget ID
Array of data properties depending on the widget data type this data is for
The Display Order
The datetime this entity was created
The datetime this entity was last modified
GET /api/playlist/widget/data/{id} HTTP/1.1
Accept: */*
successful operation
[
{
"id": 1,
"widgetId": 1,
"data": [
"text"
],
"displayOrder": 1,
"createdDt": "text",
"modifiedDt": "text"
}
]Add fallback data to a data Widget
The Widget ID that this data should be added to
A JSON formatted string containing a single data item for this widget's data type
Optional integer to say which position this data should appear if there is more than one data item
successful operation
POST /api/playlist/widget/data/{id} HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 32
"data='text'&displayOrder=1"successful operation
No content
Edit fallback data on a data Widget
The Widget ID that this data is attached to
The ID of the data to be edited
A JSON formatted string containing a single data item for this widget's data type
Optional integer to say which position this data should appear if there is more than one data item
successful operation
No content
PUT /api/playlist/widget/data/{id}/{dataId} HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 32
"data='text'&displayOrder=1"successful operation
No content
Delete fallback data on a data Widget
The Widget ID that this data is attached to
The ID of the data to be deleted
successful operation
No content
DELETE /api/playlist/widget/data/{id}/{dataId} HTTP/1.1
Accept: */*
successful operation
No content
Provide all data to be ordered on a widget
The Widget ID that this data is attached to
Data ID
Desired display order
successful operation
No content
POST /api/playlist/widget/data/{id}/order HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 31
[
{
"dataId": 1,
"displayOrder": 1
}
]successful operation
No content
Last updated
Was this helpful?

