Stage or deploy a new deployment.
| Scope | Required |
|---|---|
deployments:write | Yes |
deployments:stage | Required if staging a deployment. |
deployments:deploy | Required if deploying a deployment. |
The API key to use for authentication. Retrieve your API key from the Miru dashboard.
The fields to expand in the deployment.
device, release, config_instances Desired state of the deployment.
If custom validation is enabled for the release, the deployment must pass validation before fulfilling the target status.
staged, deployed The description of the deployment.
"Deployment for the motion control config instance"
The release ID which this deployment adheres to.
"rls_123"
The ID of the device that the deployment is being created for.
"dvc_123"
The new config instances to create for this deployment. A deployment must have exactly one config instance for each config schema in the deployment's release. If less config instances are provided than the number of schemas, the deployment will 'transfer' config instances from the deployment it is patched from. Archived config instances cannot be transferred.
The ID of the deployment that this deployment was patched from.
"dpl_123"
Successfully created the deployment.
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, needs_review, staged, queued, deployed, removing, archived Last known error state of the deployment.
none, failed, retrying Desired state of the deployment.
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.
null
Expand the release using 'expand[]=release' in the query string.
null
Expand the config instances using 'expand[]=config_instances' in the query string.