1. Operations
2. appliance
3. techpreview
4. timesync

## appliance techpreview timesync: set

Set time synchronization configuration.

### Request:

#### HTTP request

PUT https://{server}/rest/appliance/techpreview/timesync

#### Request Body Structure:

- JSON
- XML

{
"config": {
"mode": "Disabled"
}
}
<?xml version="1.0" ?>
<ns0:Set-Input xmlns:ns0="http://vmware.com/appliance/techpreview/timesync" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<config>
<mode>Disabled</mode>
</config>
</ns0:Set-Input>

#### Request Body Parameters:

Name | Type | Description
--- | --- | ---
bold = required
config | time_sync_config | Time synchronization configuration.
config.mode | string | Time synchronization mode. Mode can have one of the TimeSyncMode enumeration values. Defines different timsync modes Value is one of: Disabled: Time synchronization is disabled. NTP: NTP-based time synchronization. host: VMware Tool-based time synchronization.

### Response:

#### HTTP Status Code: 200

None

#### Errors:

HTTP Status Code | Type | Description
--- | --- | ---
500 | error | Generic error