POST
/
devices
/
{device_id}
/
stage
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"
}

Authorizations

X-API-Key
string
header
required

The API key to use for authentication. Retrieve your API key from the Miru dashboard.

Path Parameters

device_id
string
required

The unique identifier of the device

Example:

"dvc_123"

Body

application/json

Response

200 - application/json

Successfully staged the device.

The response is of type object.