PUT trajects/{id}/transporter
Assigns a transporter to the traject and sends a mail to this transporter. Only a dispatcher can call this method.
Request Information
Parameters
| Name | Description | Additional information |
|---|---|---|
| id | The id of te traject |
Define this parameter in the request URI. |
| model | A simple model containing a transporter ID |
Define this parameter in the request body. |
Request body formats
application/json, text/json
Sample:
{
"TransporterId": 1
}
application/xml, text/xml
Sample:
<AssignTransporterRest xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <TransporterId>1</TransporterId> </AssignTransporterRest>
Response Information
Returns: An updated traject model
Response body formats
application/json, text/json
Sample:
{
"Uri": "/trajects/1",
"Id": 1,
"DispatcherId": 5,
"TransporterId": 3,
"State": 1,
"Name": "Brugge - Oostende",
"StartDate": "2025-12-06T20:06:53.3434629+01:00",
"Description": "Traject van brugge naar Oostende",
"CustomFields": null
}
application/xml, text/xml
Sample:
<TrajectRestGet xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Name>Brugge - Oostende</Name> <StartDate>2025-12-06T20:06:53.3434629+01:00</StartDate> <Description>Traject van brugge naar Oostende</Description> <Uri>/trajects/1</Uri> <Id>1</Id> <DispatcherId>5</DispatcherId> <TransporterId>3</TransporterId> <State>EditMode</State> </TrajectRestGet>
