Create Timing
POST {{baseUrl}}/v1/timing
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.
Create new Timing record for deploying selected Applet and to the target device.
Parameters
Field | Type | Required | Description |
---|---|---|---|
no query parameters |
Body
content-type: application/json or application/x-www-form-urlencoded
Field | Type | Description |
---|---|---|
deviceUid | string | Unique device identification |
appletUid | string | Applet unique identification |
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 the device until the applet with the later startsAt date is in the system. In most cases you will set startsAt and endsAt date to the same value.
-
configuration
values have to be always akey
-value
pairs wherevalue
is 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
{}