POST ops/logistics/containers

Request Information

URI Parameters

None.

Body Parameters

ContainerPOST
NameDescriptionTypeAdditional information
ContainerNo

string

None.

Coordinates

Coordinates

None.

Logs

Collection of TransportLog

None.

Position

string

None.

Submitted

date

None.

UserName

string

None.

Request Formats

application/json, text/json

Sample:
{
  "containerNo": "sample string 1",
  "coordinates": null,
  "logs": [
    {
      "logNo": "sample string 1"
    },
    {
      "logNo": "sample string 1"
    }
  ],
  "position": "sample string 2",
  "submitted": "2024-07-27T10:50:13.1955787+02:00",
  "userName": "sample string 4"
}

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

Response Information

Resource Description

None.