devicetype/insert

Creates new device type.

Authorization

Access JSON Web Token (ManageDeviceType)

Request Topic and Payload

Topic

dh/request

Payload Representation

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

Payload 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.

Response Topic and Payload

Topic

dh/response/devicetype/insert@{clientId}

Payload Representation

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

Payload 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.