POST TCPv1/Journeys/AddUpdateJourney?Token={Token}&UserID={UserID}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
Token

string

Required

UserID

integer

Required

Body Parameters

AddJourney
NameDescriptionTypeAdditional information
PatientOrderJourneyID

integer

None.

VehicleId

integer

None.

RouteID

integer

None.

StartDate

date

None.

JourneystatusID

integer

None.

OrderTypeID

integer

None.

Comments

string

None.

DriverID

integer

None.

NextJourneyDate

date

None.

IsToDo

boolean

None.

AssignedToUserID

integer

None.

AllocationStatus

boolean

None.

CreatedBy

integer

None.

DepotID

string

None.

HospitalId

string

None.

MinTemperature

decimal number

None.

MaxTemperature

decimal number

None.

MinTemperatureZone2

decimal number

None.

MaxTemperatureZone2

decimal number

None.

IsOnlyCollection

boolean

None.

ServiceTypeId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "PatientOrderJourneyID": 1,
  "VehicleId": 2,
  "RouteID": 3,
  "StartDate": "2026-06-08T00:06:22.9625523+01:00",
  "JourneystatusID": 5,
  "OrderTypeID": 6,
  "Comments": "sample string 7",
  "DriverID": 8,
  "NextJourneyDate": "2026-06-08T00:06:22.9625523+01:00",
  "IsToDo": true,
  "AssignedToUserID": 11,
  "AllocationStatus": true,
  "CreatedBy": 13,
  "DepotID": "sample string 14",
  "HospitalId": "sample string 15",
  "MinTemperature": 16.1,
  "MaxTemperature": 17.1,
  "MinTemperatureZone2": 18.1,
  "MaxTemperatureZone2": 19.1,
  "IsOnlyCollection": true,
  "ServiceTypeId": 21
}

application/xml, text/xml

Sample:
<AddJourney xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SmartTCPWebAPI.Models.SmartAPI">
  <AllocationStatus>true</AllocationStatus>
  <AssignedToUserID>11</AssignedToUserID>
  <Comments>sample string 7</Comments>
  <CreatedBy>13</CreatedBy>
  <DepotID>sample string 14</DepotID>
  <DriverID>8</DriverID>
  <HospitalId>sample string 15</HospitalId>
  <IsOnlyCollection>true</IsOnlyCollection>
  <IsToDo>true</IsToDo>
  <JourneystatusID>5</JourneystatusID>
  <MaxTemperature>17.1</MaxTemperature>
  <MaxTemperatureZone2>19.1</MaxTemperatureZone2>
  <MinTemperature>16.1</MinTemperature>
  <MinTemperatureZone2>18.1</MinTemperatureZone2>
  <NextJourneyDate>2026-06-08T00:06:22.9625523+01:00</NextJourneyDate>
  <OrderTypeID>6</OrderTypeID>
  <PatientOrderJourneyID>1</PatientOrderJourneyID>
  <RouteID>3</RouteID>
  <ServiceTypeId>21</ServiceTypeId>
  <StartDate>2026-06-08T00:06:22.9625523+01:00</StartDate>
  <VehicleId>2</VehicleId>
</AddJourney>

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.