Click or drag to resize

MobileDeviceServicesCreateDeviceBundle Method


Creates a new Device Bundle. Will throw error if another Device Bundle with the same name already exists.

Namespace:  IngeniuxCMService
Assembly:  IngeniuxCMService (in IngeniuxCMService.dll) Version: 10.3.169
Syntax
public XHRServiceResponseGeneric<DeviceBundleRepresentation> CreateDeviceBundle(
	DeviceBundleRepresentation data
)

Parameters

data
Type: DeviceBundleRepresentation

The information of the new Device Bundle to create

Examples
Sample JSON input
JavaScript
{
    "data": {
        "Name": "iphone",
        "DeviceIds": ["12280-18117-22901-18092", 
            "12280-18117-22902-18092"],
        "RepresentativeDeviceId": "12280-18117-22901-18092"
    }
}

Return Value

Type: XHRServiceResponseGenericDeviceBundleRepresentation

The information of created Device Bundle

Examples
Sample JSON return
JavaScript
{
    "code": 0,
    "error": null,
    "message": {
        "DeviceIds": null,
        "Devices": [{
            "FullName": "Apple - iPhone (iOS 7.3)",
            "Height": 480,
            "ID": "12280-18117-22901-18092",
            "IsTablet": false,
            "Manufacturer": "Apple",
            "Platform": "iOS",
            "UserAgent": "Mozilla\/5.0 (iPhone; CPU iPhone OS 5_1_1 like Mac OS X) AppleWebKit\/534.46 (KHTML, like Gecko) Mercury\/7.3 Mobile\/9B206 Safari\/7534.48.3",
            "Version": "7.3",
            "Width": 320
        }, {
            "FullName": "Apple - iPhone (iOS 7.4)",
            "Height": 480,
            "ID": "12280-18117-22902-18092",
            "IsTablet": false,
            "Manufacturer": "Apple",
            "Platform": "iOS",
            "UserAgent": "Mozilla\/5.0 (iPhone; CPU iPhone OS 5_1_1 like Mac OS X) AppleWebKit\/534.46 (KHTML, like Gecko) Mercury\/7.4.2 Mobile\/9B206 Safari\/7534.48.3",
            "Version": "7.4",
            "Width": 320
        }],
        "Name": "iphone",
        "RepresentativeDeviceId": "12280-18117-22901-18092",
        "ScreenHeight": 480,
        "ScreenWidth": 320,
        "UserAgent": "Mozilla\/5.0 (iPhone; CPU iPhone OS 5_1_1 like Mac OS X) AppleWebKit\/534.46 (KHTML, like Gecko) Mercury\/7.3 Mobile\/9B206 Safari\/7534.48.3"
    }
}
See Also