POST api/Incident

Saves an incident:

Request Information

URI Parameters

None.

Body Parameters

IncidentModel
NameDescriptionTypeAdditional information
ID

integer

None.

DateOfIncident

date

None.

Area

string

None.

Latitude

decimal number

None.

Longitude

decimal number

None.

GeoAddress

Address as supplied by either cyclist or google (based on lat/long)

string

None.

Description

Incident Description

string

None.

TypeID

integer

None.

TypeDescription

string

None.

CreatedBy

integer

None.

CreatedDate

date

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "DateOfIncident": "2025-09-05T16:09:41.4160685+00:00",
  "Area": "sample string 3",
  "Latitude": 4.1,
  "Longitude": 5.1,
  "GeoAddress": "sample string 6",
  "Description": "sample string 7",
  "TypeID": 8,
  "TypeDescription": "sample string 9",
  "CreatedBy": 10,
  "CreatedDate": "2025-09-05T16:09:41.4160685+00:00"
}

application/xml, text/xml

Sample:
<IncidentModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Hub.Server.Models.DTO">
  <Area>sample string 3</Area>
  <CreatedBy>10</CreatedBy>
  <CreatedDate>2025-09-05T16:09:41.4160685+00:00</CreatedDate>
  <DateOfIncident>2025-09-05T16:09:41.4160685+00:00</DateOfIncident>
  <Description>sample string 7</Description>
  <GeoAddress>sample string 6</GeoAddress>
  <ID>1</ID>
  <Latitude>4.1</Latitude>
  <Longitude>5.1</Longitude>
  <TypeDescription>sample string 9</TypeDescription>
  <TypeID>8</TypeID>
</IncidentModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IncidentModel
NameDescriptionTypeAdditional information
ID

integer

None.

DateOfIncident

date

None.

Area

string

None.

Latitude

decimal number

None.

Longitude

decimal number

None.

GeoAddress

Address as supplied by either cyclist or google (based on lat/long)

string

None.

Description

Incident Description

string

None.

TypeID

integer

None.

TypeDescription

string

None.

CreatedBy

integer

None.

CreatedDate

date

None.

Response Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "DateOfIncident": "2025-09-05T16:09:41.4160685+00:00",
  "Area": "sample string 3",
  "Latitude": 4.1,
  "Longitude": 5.1,
  "GeoAddress": "sample string 6",
  "Description": "sample string 7",
  "TypeID": 8,
  "TypeDescription": "sample string 9",
  "CreatedBy": 10,
  "CreatedDate": "2025-09-05T16:09:41.4160685+00:00"
}

application/xml, text/xml

Sample:
<IncidentModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Hub.Server.Models.DTO">
  <Area>sample string 3</Area>
  <CreatedBy>10</CreatedBy>
  <CreatedDate>2025-09-05T16:09:41.4160685+00:00</CreatedDate>
  <DateOfIncident>2025-09-05T16:09:41.4160685+00:00</DateOfIncident>
  <Description>sample string 7</Description>
  <GeoAddress>sample string 6</GeoAddress>
  <ID>1</ID>
  <Latitude>4.1</Latitude>
  <Longitude>5.1</Longitude>
  <TypeDescription>sample string 9</TypeDescription>
  <TypeID>8</TypeID>
</IncidentModel>