POST api/PackSize/AddPackSize

Request Information

URI Parameters

None.

Body Parameters

AddPackSizeCommandDto
NameDescriptionTypeAdditional information
PackSize

string

None.

UOMId

globally unique identifier

None.

Code

string

None.

MG

string

None.

UserId

string

None.

Request Formats

application/json, text/json

Sample:
{
  "PackSize": "sample string 1",
  "UOMId": "b9bb3cea-a480-49cf-b517-ceb607bb0269",
  "Code": "sample string 3",
  "MG": "sample string 4",
  "UserId": "sample string 5"
}

application/xml, text/xml

Sample:
<AddPackSizeCommandDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BusinessLayer.Modules.PackSizeModel.Model">
  <Code>sample string 3</Code>
  <MG>sample string 4</MG>
  <PackSize>sample string 1</PackSize>
  <UOMId>b9bb3cea-a480-49cf-b517-ceb607bb0269</UOMId>
  <UserId>sample string 5</UserId>
</AddPackSizeCommandDto>

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

Response Information

Resource Description

Response
NameDescriptionTypeAdditional information
Status

None.

Response Formats

application/json, text/json

Sample:
{
  "Status": 0,
  "Message": "sample string 1"
}

application/xml, text/xml

Sample:
<Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Utilities.Common">
  <Message>sample string 1</Message>
  <Status>Failed</Status>
</Response>