PUT api/customer/trip/{tripId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
tripId

integer

Required

Body Parameters

TripUpdateModel
NameDescriptionTypeAdditional information
Vehicle

string

None.

StartTime

date

None.

EndTime

date

None.

FromAddress

string

None.

ToAddress

string

None.

Purpose

string

None.

Km

decimal number

None.

DriveTime

string

None.

ManuallyAddedTrip

boolean

None.

Private

boolean

None.

Lat

decimal number

None.

Lon

decimal number

None.

Lat2

decimal number

None.

Lon2

decimal number

None.

Comment

string

None.

Expenses

decimal number

None.

DriveTimeInt

integer

None.

DriverID

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Vehicle": "sample string 1",
  "StartTime": "2026-03-31T11:08:52.9056381+00:00",
  "EndTime": "2026-03-31T11:08:52.9056381+00:00",
  "FromAddress": "sample string 2",
  "ToAddress": "sample string 3",
  "Purpose": "sample string 4",
  "Km": 1.1,
  "DriveTime": "sample string 5",
  "ManuallyAddedTrip": true,
  "Private": true,
  "Lat": 1.1,
  "Lon": 1.1,
  "Lat2": 1.1,
  "Lon2": 1.1,
  "Comment": "sample string 6",
  "Expenses": 1.1,
  "DriveTimeInt": 1,
  "DriverID": 1
}

application/xml, text/xml

Sample:
<TripUpdateModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Saga.Kjorebok.Backend.Models">
  <Comment>sample string 6</Comment>
  <DriveTime>sample string 5</DriveTime>
  <DriveTimeInt>1</DriveTimeInt>
  <DriverID>1</DriverID>
  <EndTime>2026-03-31T11:08:52.9056381+00:00</EndTime>
  <Expenses>1.1</Expenses>
  <FromAddress>sample string 2</FromAddress>
  <Km>1.1</Km>
  <Lat>1.1</Lat>
  <Lat2>1.1</Lat2>
  <Lon>1.1</Lon>
  <Lon2>1.1</Lon2>
  <ManuallyAddedTrip>true</ManuallyAddedTrip>
  <Private>true</Private>
  <Purpose>sample string 4</Purpose>
  <StartTime>2026-03-31T11:08:52.9056381+00:00</StartTime>
  <ToAddress>sample string 3</ToAddress>
  <Vehicle>sample string 1</Vehicle>
</TripUpdateModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

boolean

Response Formats

application/json, text/json

Sample:
true

application/xml, text/xml

Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>