APIs
Stage a device
Python
from miru_server_sdk import Miru client = Miru( api_key="My API Key", ) device = client.devices.stage( device_id="dvc_123", config_instances=[{ "config_schema_id": "cfg_sch_123", "content": { "direction": "forward", "speed": 100, "duration": 10, }, "relative_filepath": "/v1/motion-control.json", }], ) print(device.id)
{ "object": "device", "id": "dvc_123", "name": "My Device", "status": "inactive", "created_at": "2021-01-01T00:00:00Z", "updated_at": "2021-01-01T00:00:00Z" }
The API key to use for authentication. Retrieve your API key from the Miru dashboard.
The unique identifier of the device
"dvc_123"
Successfully staged the device.
The response is of type object.
object