Update Timing
PUT {{baseUrl}}/v1/timing/:timingUid
Timing might be a misleading name (apologies), but it has nothing to do with scheduling content. Timing is an endpoint that will allow you to set your Applet on device.
Update device Timing with the selected Applet and assign it to the device. You can update the applet version and more.
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
timingUid | string | required | unique Timing identification |
Body
content-type: application/json or application/x-www-form-urlencoded
| Field | Type | Description |
|---|---|---|
appletVersion | string (semver) | version of your applet |
startsAt | Date YYYY-MM-DDTHH:MM:SS.sss | since when the Applet should be set on device e.g. 2017-11-22T09:26:49.246 |
endsAt | Date - YYYY-MM-DDTHH:MM:SS.sss | untill when the Applet should be set on device e.g. 2017-11-22T09:26:49.246 |
configuration | JSON | unique configuration specific to the applet and device, usually your internal ID’s, links to APIs, etc. |
position | number | when more then one Applet is set for device, in which order are they available on the device |
finishEventType | string - ‘DURATION’ , ‘SCREENTAP’ , ‘IDLETIMEOUT’ | Which event is triggering switch between multiple Applets‘DURATION’ – after specific amount of time‘SCREENTAP’ – after display is touched‘IDLETIMEOUT’ – after time of inactivity (without any tapping on display) |
finishEventData | any | used for setting DURATION or IDLE_TIMEOUT values of finishEventType |
Remarks on startsAt and endsAt:
- When you set endsAt to timing, it sticks to device until applet with later startsAt date is in the system. In the most of cases you just set startsAt and endsAt date to the same value.
-
configurationvalues have to be always akey-valuepairs wherevalueis a string. To pass JSON object useJSON.stringify()
HEADERS
| Key | Datatype | Required | Description |
|---|---|---|---|
x-auth | string | Authorization key and token | |
Content-Type | string | ||
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{}