Update Device Time, Date and Timezone
PUT {{baseUrl}}/v1/device/:deviceUid/time
Request change device time by deviceUid
Parameters
Field | Type | Required | Description |
---|---|---|---|
deviceUid | string | required | Unique Device Identification |
Body
content-type: application/json
or application/x-www-form-urlencoded
Field | Type | Description |
---|---|---|
time | datetime - YYYY-MM-DDTHH:MM:SS | Set current device date & time e.g. 2017-11-22T09:26:49 Input must be without timezone offset. The offset will be taken from the timezone parameter Accepted formats are: - YYYY-MM-DDTHH:MM:SS.mmm (2017-11-22T09:26:49.345) - YYYY-MM-DDTHH:MM:SS (2017-11-22T09:26:49) - YYYY-MM-DDT:HH:MM (2017-11-22T09:26) Will be set as 2017-11-22T09:26:00 - UNIX timestamp (1616140800000) - SQL TIMESTAMP (2013-01-01 00:00:00.000) |
timezone | string - {Continent}/{City} | Set device timezone by the IANA - List of all timezones can be found here - but read more about Tizen below. |
ntpServer | string | Optional NTP server, e.g.: pool.ntp.org |
Remarks
Setting NTP server and timezone has side effects:
Platform | Side effect |
---|---|
Tizen | After calling this API, display Reboots! Tizen has limited set of available timezones |
RaspberryPi | After calling this API, RPi Reboots backend server which can take up to 60 seconds! During the reboot no JS API is available. Always wait for Promise resolution. |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
x-auth | string | Authorization key and token | |
Content-Type | string | ||
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{}