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

action

Yes

string

Action name: devicetype/insert

requestId

No

object

Request unique identifier, will be passed back in the response message.

deviceType

Yes

object

DeviceType resource to insert.

deviceType.name

No

string

Device type name.

deviceType.description

No

string

Device type description.

Server Message

Message Representation

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

Message Parameters

Property Name

Type

Description

action

string

Action name: devicetype/insert

status

string

Operation execution status (success or error).

requestId

object

Request unique identifier as specified in the request message.

deviceType.id

int

Device type identifier.