FoundryDeviceModels

Get device models

Get a list of device models

SecurityAuthToken
Request
query Parameters
limit
string
offset
string
manufacturer
string
model
string
profile_name
string
profile_variant
string
update_compatible_android_api_level_begin
string
update_compatible_android_api_level_end
string
header Parameters
X-Esper-Tenant-Id
required
string <uuid>
X-Esper-Legacy-User-Id
required
string
X-SCAPI-Private-URL
required
string
Responses
200

List of DeviceModels associated with the TenantId coming from the header

401

Unauthorized

500

Internal server error

get/api/v1/foundry/device-models
Request samples
Response samples
application/json
{
  • "code": 0,
  • "content": {
    }
}

Update Tenant Device Model

Update a Tenant Device Model based on given parameters

SecurityAuthToken
Request
path Parameters
device_model_id
required
string <uuid>

An UUID specifying the Device Model

header Parameters
X-Esper-Tenant-Id
required
string <uuid>
X-Esper-Legacy-User-Id
required
string
X-SCAPI-Private-URL
required
string
Request Body schema: application/json
required
auto_update
boolean

Enables/disables automatic updates for the device model. The other properties (latest and locked_build_id) are processed only if autoupdate is set to true.

latest
boolean

Configures foundry service to automatically lock to the latest approved build (whenever available) if set to true.

locked_build_id
string

Specifies the UUID of the build which needs to be locked for automatic updates.

Responses
200

Updated

400

Bad Request

401

Unauthorized

403

locked_build_id not approved

404

DeviceModel not found

put/api/v1/foundry/device-models/{device_model_id}
Request samples
application/json
{
  • "auto_update": true,
  • "latest": true,
  • "locked_build_id": "string"
}
Response samples
application/json
{
  • "data": {
    }
}