POST api/Logging/PostLogging

Request Information

URI Parameters

None.

Body Parameters

Logging
NameDescriptionTypeAdditional information
LoggingId

integer

None.

VehicleId

integer

None.

ActivityId

integer

None.

LocationId

integer

None.

ClientId

integer

None.

Odometer

integer

None.

Stops

integer

None.

Update

string

None.

Comments

string

None.

LoggingDate

date

None.

LocationGeoCode

string

None.

LocationGPS

DbGeography

None.

PracticeId

integer

None.

DriverId

string

None.

AssistantId

string

None.

Longitude

decimal number

None.

Latitude

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "LoggingId": 1,
  "VehicleId": 1,
  "ActivityId": 1,
  "LocationId": 1,
  "ClientId": 1,
  "Odometer": 1,
  "Stops": 1,
  "Update": "sample string 2",
  "Comments": "sample string 3",
  "LoggingDate": "2024-12-21T06:05:02.4587322+00:00",
  "LocationGeoCode": "sample string 4",
  "LocationGPS": null,
  "PracticeId": 1,
  "DriverId": "sample string 5",
  "AssistantId": "sample string 6",
  "Longitude": 1.1,
  "Latitude": 1.1
}

text/html

Sample:
{"LoggingId":1,"VehicleId":1,"ActivityId":1,"LocationId":1,"ClientId":1,"Odometer":1,"Stops":1,"Update":"sample string 2","Comments":"sample string 3","LoggingDate":"2024-12-21T06:05:02.4587322+00:00","LocationGeoCode":"sample string 4","LocationGPS":null,"PracticeId":1,"DriverId":"sample string 5","AssistantId":"sample string 6","Longitude":1.1,"Latitude":1.1}

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Object graph for type 'FleetAPI.DataModel.AspNetRole' contains cycles and cannot be serialized if reference tracking is disabled.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Object graph for type 'FleetAPI.DataModel.AspNetRole' contains cycles and cannot be serialized if reference tracking is disabled.

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

Response Information

Resource Description

Logging
NameDescriptionTypeAdditional information
LoggingId

integer

None.

VehicleId

integer

None.

ActivityId

integer

None.

LocationId

integer

None.

ClientId

integer

None.

Odometer

integer

None.

Stops

integer

None.

Update

string

None.

Comments

string

None.

LoggingDate

date

None.

LocationGeoCode

string

None.

LocationGPS

DbGeography

None.

PracticeId

integer

None.

DriverId

string

None.

AssistantId

string

None.

Longitude

decimal number

None.

Latitude

decimal number

None.

Response Formats

application/json, text/json

Sample:
{
  "LoggingId": 1,
  "VehicleId": 1,
  "ActivityId": 1,
  "LocationId": 1,
  "ClientId": 1,
  "Odometer": 1,
  "Stops": 1,
  "Update": "sample string 2",
  "Comments": "sample string 3",
  "LoggingDate": "2024-12-21T06:05:02.552468+00:00",
  "LocationGeoCode": "sample string 4",
  "LocationGPS": null,
  "PracticeId": 1,
  "DriverId": "sample string 5",
  "AssistantId": "sample string 6",
  "Longitude": 1.1,
  "Latitude": 1.1
}

text/html

Sample:
{"LoggingId":1,"VehicleId":1,"ActivityId":1,"LocationId":1,"ClientId":1,"Odometer":1,"Stops":1,"Update":"sample string 2","Comments":"sample string 3","LoggingDate":"2024-12-21T06:05:02.552468+00:00","LocationGeoCode":"sample string 4","LocationGPS":null,"PracticeId":1,"DriverId":"sample string 5","AssistantId":"sample string 6","Longitude":1.1,"Latitude":1.1}

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Object graph for type 'FleetAPI.DataModel.AspNetRole' contains cycles and cannot be serialized if reference tracking is disabled.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Object graph for type 'FleetAPI.DataModel.AspNetRole' contains cycles and cannot be serialized if reference tracking is disabled.