Invoke Device Services Asynchronously
Invoke services of a device in an asynchronous manner.
Request URL
POST {base_url}/device/openapi/v1/devices/{deviceId}/services/call
Request Parameters
Parameter | Required | Type | Description |
---|---|---|---|
Authorization | Yes | String | The valid access token for making API calls. The format should be Bearer {access_token}. |
Parameter | Required | Type | Description |
---|---|---|---|
deviceId | Yes | Long | The unique ID of this device, which is returned when you add
the device. Note: If you did NOT save the
deviceID, you can query the device's ID using Search Specific Devices.
|
Parameter | Required | Type | Description |
---|---|---|---|
serviceId | Yes | String | The unique ID of the service. Note: To
view the available service IDs of different devices, see
Available services. |
inputs | No | JSON | Input parameters of this service. |
Response Parameters
Parameter | Type | Description |
---|---|---|
status | String | The result of the API request.
|
requestId | String | The unique ID of the request, which can be used to quickly locate the request. |
Examples
- Request example
- Reboot the device with device ID "1748256426492760066".
- Response example
-
HTTP/1.1 200 OK { "status": "Success", "requestId": "4c446ddf993fd3643f5e076498a992b5" }