# DeviceBodySpec

## Properties

### autoPreloadLatestSoftware
- **Type**: boolean (Optional)
- **Default**: false
- **Description**: Whether the device should automatically preload the latest available software version.

### availableNetworks
- **Type**: list of objects [AvailableNetworkFragment](https://docs.mediakind.com/api-reference/fleets-api/schemas/availablenetworkfragment) (Required)
- **Description**: The list of networks available to the device and, optionally, the interfaces they are connected to. Leave the available networks list empty to give the device access to all of the networks with routes to the device's site.

### interfaceName
- **Type**: string (Required)
- **Pattern**: [^\s\/]{1,16}
- **Description**: The name of the device interface that will be connected to the network.

### networkName
- **Type**: string (Required)
- **Pattern**: ^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$ 
- **Description**: The name of the network that will be made available to this device.

### desiredSoftwareVersion
- **Type**: string (Optional)
- **Description**: The desired version of software that should be running on the device. (<= 255 characters)

### geolocation
- **Type**: object [GeolocationFragment](https://docs.mediakind.com/api-reference/fleets-api/schemas/geolocationfragment) (Optional)

#### Properties

##### coordinates
- **Type**: list of doubles (Required)
- **Description**: Co-ordinates that describe the geolocation (ISO 6709), an array of two floating point numbers [latitude(North - South), longitude(East - West)]. Set an empty array to clear the geolocation.

##### locationId
- **Type**: string (Optional)
- **Pattern**: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
- **Description**: The location id is the identity of the actual device that will be associated with this record. This can be used instead of the `shortCode` field when registering an on-prem device.

### preloadSoftwareVersion
- **Type**: string (Optional)
- **Description**: A version of the software that should be preloaded on the device. (<= 255 characters)

### shortCode
- **Type**: string (Optional)
- **Description**: The short code from a device's web user interface, used to on-board the device. The short code expires quickly, so it should be used immediately after it is generated. (8-8 characters)

### siteName
- **Type**: string (Optional)
- **Pattern**: ^([a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)?$ 
- **Description**: The name of the site where the device is located.
