Hi All,
this may turn out to be a feature request, but ill ask for help first
USE CASE - modify the style sheet dependant on a value so that I can dynamically change the look of a Table in Data Set View
API I am trying to use PUT /playlist/widget/{widgetId}?datasetview
I am trying to work with the API to edit a dataSetView module, the edit I want to do requires me to modify the style sheet associated with the widget. When I look at the swagger documentation I see that I can over ride the template , using the override Template flag.
However I cant see where / how I would insert a style sheet via an API,
even though if I get the json from:
url = f"http://dtmgc.xibo.co.uk/api/layout"
headers = {âAuthorizationâ:"Bearer "+ GetAccessToken()}
params ={âlayoutâ :layout_name ,
âembedâ: âregions,playlists,widgetsâ
}
api_response = requests.request(âGETâ,url,params=params, headers=headers)
print(api_response.text)
I can see at
âregionsâ
âregionPlaylistâ
âwidgetsâ
âwidgetoptionâ
âwidgetIdâ: 14608,
âtypeâ: âcdataâ,
âoptionâ: âstyleSheetâ,
âvalueâ: âtable.DataSetTable {STYLE SHEET IS HERE }â
Am i missing something ? is there a better way to do this ?