POST ops/daily/production

Request Information

URI Parameters

None.

Body Parameters

DailyProduction
NameDescriptionTypeAdditional information
ActivityId

integer

None.

CompartmentId

integer

None.

Coordinates

Coordinates

None.

ProductionItems

Collection of ProductionItemPOST

None.

Submitted

date

None.

UserName

string

None.

Request Formats

application/json, text/json

Sample:
{
  "activityId": 1,
  "compartmentId": 2,
  "coordinates": null,
  "productionItems": [
    {
      "count": 1,
      "id": 2,
      "unitId": 3
    },
    {
      "count": 1,
      "id": 2,
      "unitId": 3
    }
  ],
  "submitted": "2024-07-27T15:15:09.4604749+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 'DailyProduction'.

Response Information

Resource Description

None.