Skip to content

Latest commit

 

History

History
77 lines (61 loc) · 2.23 KB

File metadata and controls

77 lines (61 loc) · 2.23 KB
title devicetype/insert
slug devicetypeinsert-1
excerpt
hidden false
metadata
image robots
index
createdAt Thu Feb 08 2018 12:55:55 GMT+0000 (Coordinated Universal Time)
updatedAt Thu Feb 08 2018 15:28:18 GMT+0000 (Coordinated Universal Time)

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

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.

Response Topic and Payload

Topic

dh/response/devicetype/insert@{clientId}

Payload Representation

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

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