Devices - Move
Starts an asynchronous operation to move the specified device into the specified DeviceGroup.
PUT https://prod.core.sphere.azure.net/v2/tenants/{tenantId}/devices/{deviceId}/devicegroup
URI Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
|
device
|
path | True |
string |
The device's ID. |
|
tenant
|
path | True |
string (uuid) |
The Azure Sphere tenant ID. |
Request Body
| Name | Type | Description |
|---|---|---|
| body |
string |
The ID of the DeviceGroup to which the device is to be assigned. |
Responses
| Name | Type | Description |
|---|---|---|
| 202 Accepted |
Successfully started the operation. |
Definitions
| Name | Description |
|---|---|
|
Error |
|
| Operation |
ErrorResponse
| Name | Type | Description |
|---|---|---|
| Code |
enum:
|
Gets the code. |
| Message |
string |
Gets the human readable error message. |
Operation
| Name | Type | Description |
|---|---|---|
| CompletedDateUTC |
string |
Gets the date in UTC that the operation completed. |
| CreatedDateUTC |
string |
Gets the operation creation date in UTC. |
| DetailsLocation |
string |
Gets the location for getting details of the operation. |
| Error | ||
| OperationId |
string |
Gets the unique operation identifier. |
| OperationType |
enum:
|
Gets the operation type identifier. |
| ResourceLocation |
string |
Gets the location of resources created during the execution of the operation. |
| StartedDateUTC |
string |
Gets the date in UTC that the operation started processing. |
| State |
enum:
|
Gets the state of the operation. |
| TenantId |
string |
Gets the tenant identifier. |