POST api/Geofence/ChangeFenceStatus

Modify the using state of the fence

Request Information

Body Parameters

required parameter

FenceStatusChangeModel
NameDescriptionTypeAdditional information
FenceId

Crawl id

integer

None.

InUse

Using state true for use, false is closed

boolean

None.

DeviceId

Device id

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:
{
  "FenceId": 1,
  "InUse": true,
  "DeviceId": 3,
  "Token": "sample string 4",
  "Language": "sample string 5",
  "AppId": "sample string 6"
}

application/xml, text/xml

Sample:
<FenceStatusChangeModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ParModel">
  <AppId>sample string 6</AppId>
  <Language>sample string 5</Language>
  <Token>sample string 4</Token>
  <DeviceId>3</DeviceId>
  <FenceId>1</FenceId>
  <InUse>true</InUse>
</FenceStatusChangeModel>

Response Information

Resource Description

State status code:
0. Indicates success
1100. device does not exist
4000. failure

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>