POST api/corporate/{corporateId}/company

Request Information

URI Parameters

NameDescriptionTypeAdditional information
corporateId

integer

Required

Body Parameters

CorporateCompanyModel
NameDescriptionTypeAdditional information
CorporateCompanyId

integer

None.

CorporateId

integer

None.

LocalCompanyName

string

None.

CountryId

integer

None.

CountryName

string

None.

NumberOfPlants

integer

None.

Active

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "CorporateCompanyId": 1,
  "CorporateId": 2,
  "LocalCompanyName": "sample string 3",
  "CountryId": 4,
  "CountryName": "sample string 5",
  "NumberOfPlants": 6,
  "Active": true
}

application/xml, text/xml

Sample:
<CorporateCompanyModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ALTAMBS.Business.Entities.Models">
  <Active>true</Active>
  <CorporateCompanyId>1</CorporateCompanyId>
  <CorporateId>2</CorporateId>
  <CountryId>4</CountryId>
  <CountryName>sample string 5</CountryName>
  <LocalCompanyName>sample string 3</LocalCompanyName>
  <NumberOfPlants>6</NumberOfPlants>
</CorporateCompanyModel>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.