Authorizations
The API key to use for authentication. Retrieve your API key from the Miru dashboard.
Query Parameters
The offset of the items to return. An offset of 10 with a limit of 10 returns items 11-20.
x >= 0
The maximum number of items to return. A limit of 15 with an offset of 0 returns items 1-15.
1 <= x <= 100
id:asc
, id:desc
, created_at:desc
, created_at:asc
The deployment ID to filter by.
"dpl_123"
The deployment target status to filter by.
staged
, deployed
, archived
The deployment activity status to filter by.
validating
, needs_review
, staged
, queued
, deployed
, removing
, archived
The deployment error status to filter by.
none
, failed
, retrying
The deployment device ID to filter by.
"dvc_123"
The deployment release ID to filter by.
"rls_123"
Response
Successfully listed the deployments.
list
"list"
The total number of items in the list. By default the total count is not returned. The total count must be expanded (using expand[]=total_count) to get the total number of items in the list.
The maximum number of items to return. A limit of 15 with an offset of 0 returns items 1-15.
1 <= x <= 100
The offset of the items to return. An offset of 10 with a limit of 10 returns items 11-20.
x >= 0
True if there are more items in the list to return. False if there are no more items to return.
false
Hide child attributes
Hide child attributes
deployment
"deployment"
ID of the deployment.
"dpl_123"
The description of the deployment.
"Deployment for the motion control config instance"
This status merges the 'activity_status' and 'error_status' fields, with error states taking precedence over activity states when errors are present. For example, if the activity status is 'deployed' but the error status is 'failed', the status is 'failed'. However, if the error status is 'none' and the activity status is 'deployed', the status is 'deployed'.
validating
, needs_review
, staged
, queued
, deployed
, removing
, archived
, failed
, retrying
Last known activity state of the deployment.
- Validating: the deployment's config instances are being validated with user's custom validation
- Needs review: deployment needs to be reviewed before it can be deployed
- Staged: is ready to be deployed
- Queued: the deployment's config instances are waiting to be received by the device; will be deployed as soon as the device is online
- Deployed: the deployment's config instances are currently available for consumption on the device
- Removing: the deployment's config instances are being removed from the device
- Archived: the deployment is available for historical reference but cannot be deployed and is not active on the device
validating
, needs_review
, staged
, queued
, deployed
, removing
, archived
Last known error state of the deployment.
- None: no errors
- Retrying: an error has been encountered and the agent is retrying to reach the target status
- Failed: a fatal error has been encountered; the deployment is archived and (if deployed) removed from the device
none
, failed
, retrying
Desired state of the deployment.
- Staged: is ready to be deployed
- Deployed: all config instances part of the deployment are available for consumption on the device
- Archived: the deployment is available for historical reference but cannot be deployed and is not active on the device
staged
, deployed
, archived
ID of the device.
"dvc_123"
The version of the release.
"v1.0.0"
Timestamp of when the device release was created.
"2024-01-01T00:00:00Z"
Timestamp of when the device release was last updated.
"2024-01-01T00:00:00Z"
Expand the device using 'expand[]=device' in the query string.
Hide child attributes
Hide child attributes
device
"device"
ID of the device.
"dvc_123"
Name of the device.
"My Device"
The status of the device.
- Inactive: The miru agent has not yet been installed / authenticated
- Activating: The miru agent is currently being installed / authenticated (should only last for a few seconds)
- Online: The miru agent has successfully pinged the server within the last 60 seconds.
- Offline: The miru agent has not successfully pinged the server within the last 60 seconds (e.g. network issues, device is powered off, etc.)
inactive
, activating
, online
, offline
Timestamp of when the device was last made an initial connection (this is not the same as the last time the device was seen).
"2021-01-01T00:00:00Z"
Timestamp of when the device was last disconnected (this is not the same as the last time the device was seen).
"2021-01-01T00:00:00Z"
Timestamp of when the device was created.
"2021-01-01T00:00:00Z"
Timestamp of when the device was last updated.
"2021-01-01T00:00:00Z"
null
Expand the release using 'expand[]=release' in the query string.
Hide child attributes
Hide child attributes
release
"release"
ID of the release.
"rls_123"
The version of the release.
"v1.0.0"
Timestamp of when the release was created.
"2024-01-01T00:00:00Z"
Timestamp of when the release was last updated.
"2024-01-01T00:00:00Z"
Expand the config schemas using 'expand[]=config_schemas' in the query string.
Hide child attributes
Hide child attributes
config_schema
"config_schema"
ID of the config schema.
"cfg_sch_123"
Config schema version for the config type.
2
Hash of the config schema contents.
"1234567890"
The file path to deploy the config instance relative to /srv/miru/config_instances
. v1/motion-control.json
would deploy to /srv/miru/config_instances/v1/motion-control.json
.
"/v1/motion-control.json"
Timestamp of when the config schema was created.
"2021-01-01T00:00:00Z"
Timestamp of when the config schema was last updated.
"2021-01-01T00:00:00Z"
ID of the config type.
"cfg_typ_123"
The config schema's JSON Schema definition.
{
"title": "Robot Features",
"type": "object",
"properties": {
"enable_autonomy": { "type": "boolean", "default": true },
"enable_remote_control": { "type": "boolean", "default": true },
"max_payload_kg": {
"type": "number",
"minimum": 0,
"maximum": 99,
"default": 10
},
"preferred_speed_mode": {
"type": "string",
"enum": ["slow", "normal", "fast"],
"default": "normal"
},
"emergency_stop_sensitivity": {
"type": "number",
"minimum": 0,
"maximum": 1,
"default": 0.8
},
"telemetry": {
"type": "object",
"properties": {
"upload_interval_sec": {
"type": "integer",
"minimum": 10,
"maximum": 600,
"default": 60
},
"heartbeat_interval_sec": {
"type": "integer",
"minimum": 1,
"maximum": 60,
"default": 10
}
},
"required": [
"upload_interval_sec",
"heartbeat_interval_sec"
]
}
},
"required": [
"enable_autonomy",
"enable_remote_control",
"max_payload_kg",
"preferred_speed_mode",
"emergency_stop_sensitivity",
"telemetry"
]
}
Expand the config type using 'expand[]=config_type' in the query string.
Hide child attributes
Hide child attributes
config_type
"config_type"
ID of the config type.
"cfg_123"
Name of the config type.
"My Config Type"
An immutable, code-friendly name for the config type.
"my-config-type"
Timestamp of when the config type was created.
"2021-01-01T00:00:00Z"
Timestamp of when the config type was last updated.
"2021-01-01T00:00:00Z"
null
[]
null
Expand the config instances using 'expand[]=config_instances' in the query string.
Hide child attributes
Hide child attributes
config_instance
"config_instance"
ID of the config instance.
"cfg_inst_123"
Desired state of the config instance.
- Created: config instance is created and can be deployed in the future
- Deployed: config instance is available for consumption on the device
- Removed: config instance is available for historical reference but cannot be deployed and is not active on the device
created
, deployed
, removed
Last known activity state of the config instance.
- Created: config instance has been created and can be deployed in the future
- Queued: config instance is waiting to be received by the device; will be deployed as soon as the device is online
- Deployed: config instance is currently available for consumption on the device
- Removed: the config instance is available for historical reference but cannot be deployed and is not active on the device
created
, queued
, deployed
, removed
Last known error state of the config instance deployment.
- None: there are no errors with the config instance deployment
- Retrying: an error has been encountered and the agent is attempting to try again to reach the target status
- Failed: a fatal error has been encountered; the config instance is archived and (if deployed) removed from the device
none
, failed
, retrying
This status merges the 'activity_status' and 'error_status' fields, with error states taking precedence over activity states when errors are present. For example, if the activity status is 'deployed' but the error status is 'failed', the status is 'failed'. However, if the error status is 'none' and the activity status is 'deployed', the status is 'deployed'.
created
, queued
, deployed
, removed
, failed
, retrying
The file path to deploy the config instance relative to /srv/miru/config_instances
. v1/motion-control.json
would deploy to /srv/miru/config_instances/v1/motion-control.json
.
"/v1/motion-control.json"
The timestamp of when the config instance was created.
"2021-01-01T00:00:00Z"
The timestamp of when the config instance was last updated.
"2021-01-01T00:00:00Z"
ID of the device which the config instance is deployed to.
"dvc_123"
ID of the config schema which the config instance must adhere to.
"cfg_sch_123"
ID of the config type which the config instance (and its schema) is a part of.
"cfg_type_123"
Hide child attributes
Hide child attributes
device
"device"
ID of the device.
"dvc_123"
Name of the device.
"My Device"
The status of the device.
- Inactive: The miru agent has not yet been installed / authenticated
- Activating: The miru agent is currently being installed / authenticated (should only last for a few seconds)
- Online: The miru agent has successfully pinged the server within the last 60 seconds.
- Offline: The miru agent has not successfully pinged the server within the last 60 seconds (e.g. network issues, device is powered off, etc.)
inactive
, activating
, online
, offline
Timestamp of when the device was last made an initial connection (this is not the same as the last time the device was seen).
"2021-01-01T00:00:00Z"
Timestamp of when the device was last disconnected (this is not the same as the last time the device was seen).
"2021-01-01T00:00:00Z"
Timestamp of when the device was created.
"2021-01-01T00:00:00Z"
Timestamp of when the device was last updated.
"2021-01-01T00:00:00Z"
null
Expand the config schema using 'expand[]=config_schema' in the query string.
Hide child attributes
Hide child attributes
config_schema
"config_schema"
ID of the config schema.
"cfg_sch_123"
Config schema version for the config type.
2
Hash of the config schema contents.
"1234567890"
The file path to deploy the config instance relative to /srv/miru/config_instances
. v1/motion-control.json
would deploy to /srv/miru/config_instances/v1/motion-control.json
.
"/v1/motion-control.json"
Timestamp of when the config schema was created.
"2021-01-01T00:00:00Z"
Timestamp of when the config schema was last updated.
"2021-01-01T00:00:00Z"
ID of the config type.
"cfg_typ_123"
The config schema's JSON Schema definition.
{
"title": "Robot Features",
"type": "object",
"properties": {
"enable_autonomy": { "type": "boolean", "default": true },
"enable_remote_control": { "type": "boolean", "default": true },
"max_payload_kg": {
"type": "number",
"minimum": 0,
"maximum": 99,
"default": 10
},
"preferred_speed_mode": {
"type": "string",
"enum": ["slow", "normal", "fast"],
"default": "normal"
},
"emergency_stop_sensitivity": {
"type": "number",
"minimum": 0,
"maximum": 1,
"default": 0.8
},
"telemetry": {
"type": "object",
"properties": {
"upload_interval_sec": {
"type": "integer",
"minimum": 10,
"maximum": 600,
"default": 60
},
"heartbeat_interval_sec": {
"type": "integer",
"minimum": 1,
"maximum": 60,
"default": 10
}
},
"required": [
"upload_interval_sec",
"heartbeat_interval_sec"
]
}
},
"required": [
"enable_autonomy",
"enable_remote_control",
"max_payload_kg",
"preferred_speed_mode",
"emergency_stop_sensitivity",
"telemetry"
]
}
Expand the config type using 'expand[]=config_type' in the query string.
Hide child attributes
Hide child attributes
config_type
"config_type"
ID of the config type.
"cfg_123"
Name of the config type.
"My Config Type"
An immutable, code-friendly name for the config type.
"my-config-type"
Timestamp of when the config type was created.
"2021-01-01T00:00:00Z"
Timestamp of when the config type was last updated.
"2021-01-01T00:00:00Z"
null
null
The configuration values associated with the config instance. Expand the content using 'expand[]=content' in the query string.
{
"enable_autonomy": true,
"enable_remote_control": false,
"max_payload_kg": 8.5,
"preferred_speed_mode": "normal",
"emergency_stop_sensitivity": 0.9,
"telemetry": {
"upload_interval_sec": 45,
"heartbeat_interval_sec": 15
}
}
Expand the config type using 'expand[]=config_type' in the query string.
Hide child attributes
Hide child attributes
config_type
"config_type"
ID of the config type.
"cfg_123"
Name of the config type.
"My Config Type"
An immutable, code-friendly name for the config type.
"my-config-type"
Timestamp of when the config type was created.
"2021-01-01T00:00:00Z"
Timestamp of when the config type was last updated.
"2021-01-01T00:00:00Z"
null