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

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.