APIs
Update a device by ID
cURL
curl --request PATCH \ --url https://{host}/{version}/devices/{device_id} \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <api-key>' \ --data '{ "name": "Robot 1" }'
{ "object": "device", "id": "dvc_123", "name": "My Device", "status": "inactive", "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 updated the device.
The response is of type object.
object
Was this page helpful?