Creates a new ride in a traject. Only a dispatcher can call this method.

Request Information

Parameters

NameDescriptionAdditional information
id The Id of the traject

Define this parameter in the request URI.

model A model that describes the ride (see examples below)

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "Name": "sample string 1",
  "StartTime": "2025-12-08T00:56:23.39456+01:00",
  "EndTime": "2025-12-08T00:56:23.39456+01:00",
  "PriorityInTraject": 4,
  "CustomFields": [
    {
      "Name": "sample string 1",
      "Value": "sample string 2",
      "PopUpOnTablet": true
    },
    {
      "Name": "sample string 1",
      "Value": "sample string 2",
      "PopUpOnTablet": true
    },
    {
      "Name": "sample string 1",
      "Value": "sample string 2",
      "PopUpOnTablet": true
    }
  ]
}

application/xml, text/xml

Sample:
<RideRest xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Name>sample string 1</Name>
  <StartTime>2025-12-08T00:56:23.39456+01:00</StartTime>
  <EndTime>2025-12-08T00:56:23.39456+01:00</EndTime>
  <PriorityInTraject>4</PriorityInTraject>
  <CustomFields>
    <CustomFieldRest>
      <Name>sample string 1</Name>
      <Value>sample string 2</Value>
      <PopUpOnTablet>true</PopUpOnTablet>
    </CustomFieldRest>
    <CustomFieldRest>
      <Name>sample string 1</Name>
      <Value>sample string 2</Value>
      <PopUpOnTablet>true</PopUpOnTablet>
    </CustomFieldRest>
    <CustomFieldRest>
      <Name>sample string 1</Name>
      <Value>sample string 2</Value>
      <PopUpOnTablet>true</PopUpOnTablet>
    </CustomFieldRest>
  </CustomFields>
</RideRest>

Response Information

Response body formats

application/json, text/json

Sample:
{
  "Uri": "/trajects/1/rides/1",
  "Id": 1,
  "TrajectUri": "/trajects/1",
  "TrajectId": 1,
  "Name": "Naar Brugge",
  "StartTime": "2025-12-06T22:06:53.3434629+01:00",
  "EndTime": "2025-12-07T00:06:53.3434629+01:00",
  "PriorityInTraject": 1,
  "CustomFields": null
}

application/xml, text/xml

Sample:
<RideRestGet xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Name>Naar Brugge</Name>
  <StartTime>2025-12-06T22:06:53.3434629+01:00</StartTime>
  <EndTime>2025-12-07T00:06:53.3434629+01:00</EndTime>
  <PriorityInTraject>1</PriorityInTraject>
  <Uri>/trajects/1/rides/1</Uri>
  <Id>1</Id>
  <TrajectUri>/trajects/1</TrajectUri>
  <TrajectId>1</TrajectId>
</RideRestGet>