POST api/Command/SetMutePeriod

Set up mute time (special device special interfaceHW)

Request Information

Body Parameters

SaveMutePeriodModel
NameDescriptionTypeAdditional information
ObjId

item id

integer

None.

DeviceId

device id

integer

None.

StartTime

starting time

string

None.

EndTime

ending time

string

None.

Cycle

repetition period -1 :without repetition 1 :Monday 2 :Tuesday 3 :Wednesday 4 :Tursday 5 :Friday 6 :Saturday 7 :Sunday

string

None.

Label

Target

string

None.

IsActive

switch

boolean

None.

Action

motion refer to ContactAction Add = 1, // add Update = 2, // amend Deleted = 3 //delete ContactAction

integer

None.

ObjType

object type

integer

None.

Token

Get it after logging in Token

string

None.

Language

Language Option

string

None.

AppId

APP Application Identifier

string

None.

Request Formats

application/json, text/json

Sample:
{
  "ObjId": 1,
  "DeviceId": 2,
  "StartTime": "sample string 3",
  "EndTime": "sample string 4",
  "Cycle": "sample string 5",
  "Label": "sample string 6",
  "IsActive": true,
  "Action": 8,
  "ObjType": 9,
  "Token": "sample string 10",
  "Language": "sample string 11",
  "AppId": "sample string 12"
}

application/xml, text/xml

Sample:
<SaveMutePeriodModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ParModel">
  <AppId>sample string 12</AppId>
  <Language>sample string 11</Language>
  <Token>sample string 10</Token>
  <Action>8</Action>
  <Cycle>sample string 5</Cycle>
  <DeviceId>2</DeviceId>
  <EndTime>sample string 4</EndTime>
  <IsActive>true</IsActive>
  <Label>sample string 6</Label>
  <ObjId>1</ObjId>
  <ObjType>9</ObjType>
  <StartTime>sample string 3</StartTime>
</SaveMutePeriodModel>

Response Information

Resource Description

NormalResult
NameDescriptionTypeAdditional information
Message

Message [in most cases, the message can be used as a prompt]

string

None.

State

status code

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Message": "sample string 1",
  "State": 2
}

application/xml, text/xml

Sample:
<NormalResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ResModel">
  <State>2</State>
  <Message>sample string 1</Message>
</NormalResult>