Hello forum,
We are looking for the way to be able to show notifications (both in text and graphical form) through the regions.
Say we defined a region with text information. I want to be able to send API call from 3-rd party software to change the text that was set in the time of creation/update of the layout containing the region.
EDIT: Just in case it wasn’t clear, the guide and the information below are exclusive to 1.8 API, I don’t think you can do any of those in 1.7.
Regarding images/media files, you can have a look at my guide there is a part with media upload, which with additional parameters can replace existing media file. -
Changing text, actually could prove to be somewhat difficult - it’s not documented at all yet.
In order to edit text in a region, you will need widgetId for that text item
Now, you will need to call GET Layout to get playlistId:
Then call GET playlist to get widgedId you need:
Please keep in mind there might be more widgets on your playlist, in my test there is only the text item to make it clearer.
Now that you have your widgetId, you can use PUT playlist/widget/:widgetId call to change the text it will be like this: