POST api/Corporation/AddContractorCorporation
Request Information
URI Parameters
None.
Body Parameters
OwnerCorporationListDTOName | Description | Type | Additional information |
---|---|---|---|
CorporationCode | string |
None. |
|
ContractorCorporationList | Collection of OwnerCorporationDTO |
None. |
Request Formats
application/json, text/json
Sample:
{ "CorporationCode": "sample string 1", "ContractorCorporationList": [ { "Id": 1, "CorporationCode": "sample string 2", "Name": "sample string 3", "ValidFlag": true }, { "Id": 1, "CorporationCode": "sample string 2", "Name": "sample string 3", "ValidFlag": true } ] }
application/xml, text/xml
Sample:
<OwnerCorporationListDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ASAP_BL.DTO"> <ContractorCorporationList> <OwnerCorporationDTO> <CorporationCode>sample string 2</CorporationCode> <Id>1</Id> <Name>sample string 3</Name> <ValidFlag>true</ValidFlag> </OwnerCorporationDTO> <OwnerCorporationDTO> <CorporationCode>sample string 2</CorporationCode> <Id>1</Id> <Name>sample string 3</Name> <ValidFlag>true</ValidFlag> </OwnerCorporationDTO> </ContractorCorporationList> <CorporationCode>sample string 1</CorporationCode> </OwnerCorporationListDTO>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
AsapResponseOfOwnerCorporationListDTOName | Description | Type | Additional information |
---|---|---|---|
isSuccess | boolean |
None. |
|
message | string |
None. |
|
jsonObj | OwnerCorporationListDTO |
None. |
|
totalCount | integer |
None. |
Response Formats
application/json, text/json
Sample:
{ "isSuccess": true, "message": "sample string 2", "jsonObj": { "CorporationCode": "sample string 1", "ContractorCorporationList": [ { "Id": 1, "CorporationCode": "sample string 2", "Name": "sample string 3", "ValidFlag": true }, { "Id": 1, "CorporationCode": "sample string 2", "Name": "sample string 3", "ValidFlag": true } ] }, "totalCount": 3 }
application/xml, text/xml
Sample:
<AsapResponseOfOwnerCorporationListDTO9DQd0Pqc xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ASAP_BL.Common"> <isSuccess>true</isSuccess> <jsonObj xmlns:d2p1="http://schemas.datacontract.org/2004/07/ASAP_BL.DTO"> <d2p1:ContractorCorporationList> <d2p1:OwnerCorporationDTO> <d2p1:CorporationCode>sample string 2</d2p1:CorporationCode> <d2p1:Id>1</d2p1:Id> <d2p1:Name>sample string 3</d2p1:Name> <d2p1:ValidFlag>true</d2p1:ValidFlag> </d2p1:OwnerCorporationDTO> <d2p1:OwnerCorporationDTO> <d2p1:CorporationCode>sample string 2</d2p1:CorporationCode> <d2p1:Id>1</d2p1:Id> <d2p1:Name>sample string 3</d2p1:Name> <d2p1:ValidFlag>true</d2p1:ValidFlag> </d2p1:OwnerCorporationDTO> </d2p1:ContractorCorporationList> <d2p1:CorporationCode>sample string 1</d2p1:CorporationCode> </jsonObj> <message>sample string 2</message> <totalCount>3</totalCount> </AsapResponseOfOwnerCorporationListDTO9DQd0Pqc>