Update device
PUT {{baseUrl}}/api/v2/devices/:id
Update all of the information for a specific device. You obtain the authorization token needed to execute the request using POST /auth/login. You pass the authorization token in the request header. You obtain the device ID using GET /devices. You pass the device ID in the path of the request. You provide the information used to update the specific device in the body parameter of the request.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
fields | null | Comma-separated, top-level field whitelist that allows the client to selectively retrieve part of the response model. If specified, extra filtering is applied, and for top-level object (if root model is an array, each array element), only the listed fields are kept in the response. For example, "id,elements" keeps only the "id" field and whole "elements" array field, omitting all other fields in the top-level response model. |
Request Body
{"name"=>"Generic iPhone (Changes)", "description"=>"This is a device of type iPhone.", "deviceType"=>"iphone", "transmitter"=>{"id"=>"F9583A8998014B4B906B5EAF7C361B33"}, "deviceProperties"=>{"iphone"=>{"appId"=>"com.microstrategy.dossier.iphone", "port"=>2199, "feedbackServicePort"=>2219}}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
X-MSTR-AuthToken | string | (Required) Authorization token |