devicetype/insert

Creates new device type.

Request Message

Authorization

Access JSON Web Token (ManageDeviceType)

Message Representation

{
    "action": {string},
    "requestId": {object},
    "deviceType": {
        "name": {string},
        "description": {string}
    }
}

Message Parameters

actionYesstringAction name: devicetype/insert
requestIdNoobjectRequest unique identifier, will be passed back in the response message.
deviceTypeYesobjectDeviceType resource to insert.
deviceType.nameNostringDevice type name.
deviceType.descriptionNostringDevice type description.

Server Message

Message Representation

{
    "action": {string},
    "status": {string},
    "requestId": {object},
    "deviceType": {
        "id": {int}
    }
}

Message Parameters

Property NameTypeDescription
actionstringAction name: devicetype/insert
statusstringOperation execution status (success or error).
requestIdobjectRequest unique identifier as specified in the request message.
deviceType.idintDevice type identifier.