POST api/v1/lpa/documents/hierarchy/create

Request Information

URI Parameters

None.

Body Parameters

Collection of LPADocHierarchyMDL
NameDescriptionTypeAdditional information
docId

string

None.

docType

string

None.

children

Collection of LPADocHierarchyMDL

None.

CustomFields

Dictionary of string [key] and Object [value]

None.

Request Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: Self referencing loop detected with type 'FTSMDLClassLibrary.WebAPIMDL.LPA.LPADocHierarchyMDL'. Path '[0].children'.

text/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: Self referencing loop detected with type 'FTSMDLClassLibrary.WebAPIMDL.LPA.LPADocHierarchyMDL'. Path '[0].children'.

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Object graph for type 'FTSMDLClassLibrary.WebAPIMDL.LPA.LPADocHierarchyMDL' contains cycles and cannot be serialized if reference tracking is disabled.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Object graph for type 'FTSMDLClassLibrary.WebAPIMDL.LPA.LPADocHierarchyMDL' contains cycles and cannot be serialized if reference tracking is disabled.

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 'List`1'.

Response Information

Resource Description

LogisticsDocumentMDL
NameDescriptionTypeAdditional information
DocNumber

string

None.

response

integer

None.

message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "DocNumber": "sample string 1",
  "response": 2,
  "message": "sample string 3"
}

application/xml, text/xml

Sample:
<LogisticsDocumentMDL xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FTSMDLClassLibrary.WebAPIMDL.LPA">
  <DocNumber>sample string 1</DocNumber>
  <message>sample string 3</message>
  <response>2</response>
</LogisticsDocumentMDL>