POST ops/logistics/load

Request Information

URI Parameters

None.

Body Parameters

TransportLoad
NameDescriptionTypeAdditional information
Coordinates

Coordinates

None.

DeliveryNote

string

None.

Logs

Collection of TransportLog

None.

Stacks

Collection of TransportStack

None.

Submitted

date

None.

Tally

integer

None.

TrailerId

integer

None.

TruckId

integer

None.

UserName

string

None.

Weight

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "coordinates": null,
  "deliveryNote": "sample string 1",
  "logs": [
    {
      "logNo": "sample string 1"
    },
    {
      "logNo": "sample string 1"
    }
  ],
  "stacks": [
    {
      "stackNo": "sample string 1"
    },
    {
      "stackNo": "sample string 1"
    }
  ],
  "submitted": "2024-02-21T06:53:30.5908368+02:00",
  "tally": 3,
  "trailerId": 4,
  "truckId": 5,
  "userName": "sample string 6",
  "weight": 7
}

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Type 'MTO.Coordinates' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute. If the type is a collection, consider marking it with the CollectionDataContractAttribute. See the Microsoft .NET Framework documentation for other supported types.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Type 'MTO.Coordinates' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute. If the type is a collection, consider marking it with the CollectionDataContractAttribute. See the Microsoft .NET Framework documentation for other supported types.

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

Response Information

Resource Description

None.