POST api/Consumption/FromItemContent

Register consumption from item content

Request Information

URI Parameters

None.

Body Parameters

ConsumeFromItemContentParameters
NameDescriptionTypeAdditional information
SystemUserId

globally unique identifier

None.

ClientId

globally unique identifier

None.

ProductionOrderId

globally unique identifier

None.

ItemId

globally unique identifier

None.

ItemContentLocationBalanceId

globally unique identifier

None.

RecipeLineId

globally unique identifier

None.

RecipeType

integer

None.

Quantity

decimal number

None.

NetWeight

decimal number

None.

Comment

string

None.

CommentOnConsumptionOfRestricted

string

None.

Request Formats

application/json, text/json

Sample:
{
  "SystemUserId": "a6cc1dba-17e8-4541-b642-93abda128181",
  "ClientId": "80bf0099-168e-43a5-9047-4163c2a6a5f0",
  "ProductionOrderId": "70c849af-31e4-461e-a31f-50ea56140fe3",
  "ItemId": "21bbda7c-dc5f-430f-bfcf-73d6ad2428e4",
  "ItemContentLocationBalanceId": "9457b8fa-a341-4951-96df-2956f60be7bf",
  "RecipeLineId": "f4d01d06-9d39-46dc-bca3-6dcdec96d946",
  "RecipeType": 7,
  "Quantity": 8.0,
  "NetWeight": 9.0,
  "Comment": "sample string 10",
  "CommentOnConsumptionOfRestricted": "sample string 11"
}

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

Response Information

Resource Description

string

Response Formats

application/json, text/json

Sample:
"sample string 1"