POST api/Features/NewLineItem
Creates a new Line Item on the same order as the provided session This is used for product selector File New. They are in an existing job for a bom and want to create a new item on the same bom.
Request Information
Parameters
Name | Description | Additional information |
---|---|---|
request | The session for which you want a new line item. |
Define this parameter in the request body. |
Request body formats
application/json, text/json
Sample:
{ "ProductDescription": "sample string 1", "ID": "sample string 2", "UserID": "sample string 3", "HasErrors": true, "HostData": "sample string 5", "Qty": 6, "Designation": "sample string 7", "ProductID": "sample string 8", "SolutionData": "sample string 9", "SolutionDataLegacyXML": "sample string 10", "SolutionDataLegacy": "sample string 11", "Title": "sample string 12", "RelatedID": "sample string 13", "SessionType": "sample string 14", "LineNumber": "sample string 15" }
application/xml, text/xml
Sample:
<Session xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <ProductDescription>sample string 1</ProductDescription> <ID>sample string 2</ID> <UserID>sample string 3</UserID> <HasErrors>true</HasErrors> <HostData>sample string 5</HostData> <Qty>6</Qty> <Designation>sample string 7</Designation> <ProductID>sample string 8</ProductID> <SolutionData>sample string 9</SolutionData> <SolutionDataLegacyXML>sample string 10</SolutionDataLegacyXML> <SolutionDataLegacy>sample string 11</SolutionDataLegacy> <Title>sample string 12</Title> <RelatedID>sample string 13</RelatedID> <SessionType>sample string 14</SessionType> <LineNumber>sample string 15</LineNumber> </Session>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
the updated LineItemHostData
Response body formats
application/json, text/json
Sample:
{ "HostData": "sample string 1", "Title": "sample string 2" }
application/xml, text/xml
Sample:
<LineItemHostData xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <HostData>sample string 1</HostData> <Title>sample string 2</Title> </LineItemHostData>