POST api/company/corporateentities

Request Information

URI Parameters

None.

Body Parameters

Collection of CompanyCorporateLegalEntitiesSubModel
NameDescriptionTypeAdditional information
CompanyCorporateLegalEntitiesId

integer

None.

CompanyLegalEntityId

integer

None.

CorporateLegalEntitiesId

integer

None.

CorporateLegalEntities

string

None.

Active

boolean

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "CompanyCorporateLegalEntitiesId": 1,
    "CompanyLegalEntityId": 2,
    "CorporateLegalEntitiesId": 3,
    "CorporateLegalEntities": "sample string 4",
    "Active": true
  },
  {
    "CompanyCorporateLegalEntitiesId": 1,
    "CompanyLegalEntityId": 2,
    "CorporateLegalEntitiesId": 3,
    "CorporateLegalEntities": "sample string 4",
    "Active": true
  }
]

application/xml, text/xml

Sample:
<ArrayOfCompanyCorporateLegalEntitiesSubModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ALTAMBS.Business.Entities.SubModels">
  <CompanyCorporateLegalEntitiesSubModel>
    <Active>true</Active>
    <CompanyCorporateLegalEntitiesId>1</CompanyCorporateLegalEntitiesId>
    <CompanyLegalEntityId>2</CompanyLegalEntityId>
    <CorporateLegalEntities>sample string 4</CorporateLegalEntities>
    <CorporateLegalEntitiesId>3</CorporateLegalEntitiesId>
  </CompanyCorporateLegalEntitiesSubModel>
  <CompanyCorporateLegalEntitiesSubModel>
    <Active>true</Active>
    <CompanyCorporateLegalEntitiesId>1</CompanyCorporateLegalEntitiesId>
    <CompanyLegalEntityId>2</CompanyLegalEntityId>
    <CorporateLegalEntities>sample string 4</CorporateLegalEntities>
    <CorporateLegalEntitiesId>3</CorporateLegalEntitiesId>
  </CompanyCorporateLegalEntitiesSubModel>
</ArrayOfCompanyCorporateLegalEntitiesSubModel>

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

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.