POST api/DeviceCommand/Edit

Add Edit DeviceCommands and Insert Command in Queue

Request Information

URI Parameters

None.

Body Parameters

DeviceCommandsObject
NameDescriptionTypeAdditional information
ID

For Edit mode set value otherwise set = 0

Object

None.

CustomerDeviceID

CustomerDeviceID is required

Object

None.

StandardReply

StandardReply is required. Set value = 0 (false) or 1 (true)

Object

None.

SetRTC

SetRTC is required. Set value = 0 (false) or 1 (true)

Object

None.

SetR3

SetRTC is required. Set value = 0 (false) or 1 (true)

Object

None.

CustomReply

CustomReply is required. Set value = 0 (Off) or 1 (On)

Object

None.

Repeat

Repeat is required. Set value = 0 (false) or 1 (true)

Object

None.

CommandText

Set default value = ""(Blank) Otherwise set appropriate Command text

Object

None.

Status

Set default value = "1"

Object

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": {},
  "CustomerDeviceID": {},
  "StandardReply": {},
  "SetRTC": {},
  "SetR3": {},
  "CustomReply": {},
  "Repeat": {},
  "CommandText": {},
  "Status": {},
  "CreatedBy": {},
  "CreatedDateTime": {},
  "CreatedIp": {},
  "ModifiedBy": {},
  "ModifiedDateTime": {},
  "ModifiedIp": {}
}

application/xml, text/xml

Sample:
<DeviceCommandsObject xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/StrategicAlliance">
  <CommandText />
  <CreatedBy />
  <CreatedDateTime />
  <CreatedIp />
  <CustomReply />
  <CustomerDeviceID />
  <ID />
  <ModifiedBy />
  <ModifiedDateTime />
  <ModifiedIp />
  <Repeat />
  <SetR3 />
  <SetRTC />
  <StandardReply />
  <Status />
</DeviceCommandsObject>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.