Set instrument information
Change values for the specified instrument. Currently only the Name of the instrument can be modified.
Requires an API key with the instruments:write
scope.
Path parameters
-
serial
string Required Serial number of the selected instrument
Body
Required
Can pass the whole Instrument object or just an object containing Name
-
type
string Type of instrument
Values are
Noise
,AirQuality
, orVibration
. -
serialNumber
string Serial number of the instrument
-
model
string Model of the instrument
-
name
string Friendly name or description of the instrument
-
image
string(uri) URL of the image for the instrument
-
subscription
object Subscription details for this instrument
Additional properties are allowed.
-
position
object Position of the instrument
Additional properties are allowed.
-
feature
array[string] Additional features available on this instrument
Values are
SIC
,Modem
, orWeather
.
PUT
/control/instruments/{serial}
curl \
--request PUT 'https://api.mycirrus.cloud/v1/control/instruments/QT123456' \
--header "Content-Type: application/json" \
--data '{"name":"My Quantum"}'
Request example
{
"name": "My Quantum"
}
Response examples (400)
Example 1
{
"error": "MissingParam",
"description": "The required parameter StartTime was missing from the request."
}
{
"error": "NotFound",
"description": "The instrument QT123456 could not be found."
}
Response examples (401)
{
"error": "TokenExpired",
"description": "Your access token is invalid or has expired. Try refreshing the token."
}
Response examples (403)
{
"error": "AccessDenied",
"description": "You do not have permission to access this data."
}