Changes

Jump to navigation Jump to search
2,802 bytes added ,  18:49, 18 July 2014
Created page with "{{Api_Method_Spec| Description=This method can change the information from a TrustedDevice already registered. |Parameters= {{Api_Parameter| ParamName=token |ParamType=Strin..."
{{Api_Method_Spec|
Description=This method can change the information from a TrustedDevice already registered.

|Parameters=

{{Api_Parameter|
ParamName=token
|ParamType=String
|ParamRequired=required
|ParamDescription=A valid token for identifying the API session context. The token can be anonymous or logged.
}}
{{Api_Parameter|
ParamName=trustedDeviceTypeId
|ParamType=int
|ParamRequired=required
|ParamDescription=The device type id from the device that wants to register. This device typeID should be previously registered on the MiB Tools.
}}
{{Api_Parameter|
ParamName=trustedDeviceId
|ParamType=String
|ParamRequired=required
|ParamDescription=The string that represent some unique information from device and could be used to register a unique id for the instance.
}}
{{Api_Parameter|
ParamName=friendlyName
|ParamType=String
|ParamRequired=required
|ParamDescription=A text to identify the device by a friendly name on the list.
}}
{{Api_Parameter|
ParamName=enabled
|ParamType=bool
|ParamRequired=optional
|ParamDescription=Set the status of the device, true for enabled or false for disabled.
}}
{{Api_Parameter|
ParamName=deviceExternalId
|ParamType=String
|ParamRequired=optional
|ParamDescription=
}}
{{Api_Parameter|
ParamName=deviceManufacturer
|ParamType=String
|ParamRequired=optional
|ParamDescription=
}}
{{Api_Parameter|
ParamName=deviceModel
|ParamType=String
|ParamRequired=optional
|ParamDescription=
}}
{{Api_Parameter|
ParamName= deviceOperatingSystem
|ParamType=String
|ParamRequired=optional
|ParamDescription=
}}
{{Api_Parameter|
ParamName=macAddress
|ParamType=String
|ParamRequired=optional
|ParamDescription=
}}
{{Api_Parameter|
ParamName=clientVersion
|ParamType=String
|ParamRequired=optional
|ParamDescription=
}}



|Returns=
Returns a JSON object containing a bool answer that represent if the action occur well or not.

'''Example:'''

{
: <span style="color: #a11;">"StatusCode"</span>: <span style="color: #164;">0</span>,
: <span style="color: #a11;">"Severity"</span>: <span style="color: #164;">1</span>,
: <span style="color: #a11;">"StatusMessage"</span>: <span style="color: #164;">"OK"</span>,
: <span style="color: #a11;">"Content"</span>: <span style="color: #219;">true</span>
}

|Exceptions=
* [[AuthenticationRequiredException]]
* [[DeviceAlreadyRegisteredToOtherUserException]]
* [[ReachedMaximumNumberOfDevicesException]]
* [[DeviceIsNotRegisteredToTheAuthenticatedUserException]]


|Cache=
This method is not cached.

|KnownIssues=
* None

|VersionHistory=
{{{!}} border="2" style="width:800px;" cellpadding="5" cellspacing="0"
{{!}}- style="background:#88ccff;font-size:110%"
! API Version Number
! Change description
! Changes author
{{!}}- valign="top"
! 1.0
{{!}} Initial method design
{{!}} Harley Cabral
{{!}}}

|SeeAlso=
}}
editor
725

edits

Navigation menu