POST api/Geofence/InsertUpdateGeofenceAConfig

Request Information

URI Parameters

None.

Body Parameters

GeofenceAlertConfig
NameDescriptionTypeAdditional information
ID

integer

None.

TWID

string

None.

GeofenceName

string

None.

GeofenceSpeedLimit

integer

None.

GeofenceStopLimit

integer

None.

GeofInOut

integer

None.

AlertInterval

integer

None.

GeofPhone

string

None.

GeofEmail

string

None.

GeofIsActive

boolean

None.

GeofAlertTypeID

integer

None.

AddedBy

integer

None.

GeofOptionValue

string

None.

GeofValidity

integer

None.

GeofStartFrom

date

None.

GeofenceAlertValue

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "TWID": "sample string 2",
  "GeofenceName": "sample string 3",
  "GeofenceSpeedLimit": 4,
  "GeofenceStopLimit": 5,
  "GeofInOut": 6,
  "AlertInterval": 7,
  "GeofPhone": "sample string 8",
  "GeofEmail": "sample string 9",
  "GeofIsActive": true,
  "GeofAlertTypeID": 11,
  "AddedBy": 12,
  "GeofOptionValue": "sample string 13",
  "GeofValidity": 14,
  "GeofStartFrom": "2025-09-10T13:40:57.7314667+05:00",
  "GeofenceAlertValue": 16
}

application/xml, text/xml

Sample:
<GeofenceAlertConfig xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TWViewModel">
  <AddedBy>12</AddedBy>
  <AlertInterval>7</AlertInterval>
  <GeofAlertTypeID>11</GeofAlertTypeID>
  <GeofEmail>sample string 9</GeofEmail>
  <GeofInOut>6</GeofInOut>
  <GeofIsActive>true</GeofIsActive>
  <GeofOptionValue>sample string 13</GeofOptionValue>
  <GeofPhone>sample string 8</GeofPhone>
  <GeofStartFrom>2025-09-10T13:40:57.7314667+05:00</GeofStartFrom>
  <GeofValidity>14</GeofValidity>
  <GeofenceAlertValue>16</GeofenceAlertValue>
  <GeofenceName>sample string 3</GeofenceName>
  <GeofenceSpeedLimit>4</GeofenceSpeedLimit>
  <GeofenceStopLimit>5</GeofenceStopLimit>
  <ID>1</ID>
  <TWID>sample string 2</TWID>
</GeofenceAlertConfig>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'GeofenceAlertConfig'.

Response Information

Resource Description

TWJsonResult
NameDescriptionTypeAdditional information
ErrorMsg

string

None.

IsValid

boolean

None.

Result

Object

None.

TotalRows

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "ErrorMsg": "sample string 1",
  "IsValid": true,
  "Result": {},
  "TotalRows": 4
}

application/xml, text/xml

Sample:
<TWJsonResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TWJsonResults">
  <ErrorMsg>sample string 1</ErrorMsg>
  <IsValid>true</IsValid>
  <Result />
  <TotalRows>4</TotalRows>
</TWJsonResult>