POST api/EmpGeofence/Assign

Request Information

URI Parameters

None.

Body Parameters

GeofenceModel
NameDescriptionTypeAdditional information
Mode

integer

None.

AccId

integer

None.

EmpId

integer

None.

UserId

integer

None.

RoleId

integer

None.

GeofenceName

string

None.

Latitude

decimal number

None.

Longitude

decimal number

None.

Radius

decimal number

None.

State

string

None.

District

string

None.

GeofenceId

integer

None.

GeofenceIds

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Mode": 1,
  "AccId": 2,
  "EmpId": 3,
  "UserId": 4,
  "RoleId": 5,
  "GeofenceName": "sample string 6",
  "Latitude": 7.1,
  "Longitude": 8.1,
  "Radius": 9.1,
  "State": "sample string 10",
  "District": "sample string 11",
  "GeofenceId": 12,
  "GeofenceIds": "sample string 13"
}

application/xml, text/xml

Sample:
<GeofenceModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SWMAPIs.Models">
  <AccId>2</AccId>
  <District>sample string 11</District>
  <EmpId>3</EmpId>
  <GeofenceId>12</GeofenceId>
  <GeofenceIds>sample string 13</GeofenceIds>
  <GeofenceName>sample string 6</GeofenceName>
  <Latitude>7.1</Latitude>
  <Longitude>8.1</Longitude>
  <Mode>1</Mode>
  <Radius>9.1</Radius>
  <RoleId>5</RoleId>
  <State>sample string 10</State>
  <UserId>4</UserId>
</GeofenceModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.