PUT api/Alert/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

Alert
NameDescriptionTypeAdditional information
AlertID

integer

None.

Latitude

decimal number

None.

Longitude

decimal number

None.

Description

string

None.

DepartmentID

integer

None.

PostedOn

string

None.

Username

string

None.

Address

string

None.

NearbyPlace

string

None.

Request Formats

application/json, text/json

Sample:
{
  "AlertID": 1,
  "Latitude": 2.0,
  "Longitude": 3.0,
  "Description": "sample string 4",
  "DepartmentID": 5,
  "PostedOn": "sample string 6",
  "Username": "sample string 7",
  "Address": "sample string 8",
  "NearbyPlace": "sample string 9"
}

application/xml, text/xml

Sample:
<Alert xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/mPigeonAPI.Models">
  <Address>sample string 8</Address>
  <AlertID>1</AlertID>
  <DepartmentID>5</DepartmentID>
  <Description>sample string 4</Description>
  <Latitude>2</Latitude>
  <Longitude>3</Longitude>
  <NearbyPlace>sample string 9</NearbyPlace>
  <PostedOn>sample string 6</PostedOn>
  <Username>sample string 7</Username>
</Alert>

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 'Alert'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.