API Reference
Stage a device
cURL
curl --request POST \ --url https://{host}/{version}/devices/{device_id}/stage \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <api-key>' \ --data '{ "config_instances": [ { "relative_filepath": "/v1/motion-control.json", "content": { "direction": "forward", "speed": 100, "duration": 10 }, "config_schema_id": "cfg_sch_123" } ] }'
{ "object": "device", "id": "dvc_123", "name": "My Device", "status": "inactive", "last_connected_at": "2021-01-01T00:00:00Z", "last_disconnected_at": "2021-01-01T00:00:00Z", "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