POST ops/logistics/weight

Request Information

URI Parameters

None.

Body Parameters

TransportWeighPOST
NameDescriptionTypeAdditional information
Coordinates

Coordinates

None.

DeliveryNote

string

None.

DepotId

integer

None.

Submitted

date

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",
  "depotId": 2,
  "submitted": "2024-07-27T08:54:42.4217801+02:00",
  "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 'TransportWeighPOST'.

Response Information

Resource Description

None.