POST api/corporate/{corporateCompanyId}/company-city

Request Information

URI Parameters

NameDescriptionTypeAdditional information
corporateCompanyId

integer

Required

Body Parameters

CorporateCompanyCityModel
NameDescriptionTypeAdditional information
CorporateCompanyCityId

integer

None.

CorporateCompanyId

integer

None.

LocalCompanyName

string

None.

CountryId

integer

None.

CountryName

string

None.

City

string

None.

LocationId

string

None.

Location

string

None.

LocationDetails

string

None.

Latitud

decimal number

None.

Longitud

decimal number

None.

Active

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "CorporateCompanyCityId": 1,
  "CorporateCompanyId": 2,
  "LocalCompanyName": "sample string 3",
  "CountryId": 4,
  "CountryName": "sample string 5",
  "City": "sample string 6",
  "LocationId": "sample string 7",
  "Location": "sample string 8",
  "LocationDetails": "sample string 9",
  "Latitud": 10.0,
  "Longitud": 11.0,
  "Active": true
}

application/xml, text/xml

Sample:
<CorporateCompanyCityModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ALTAMBS.Business.Entities.Models">
  <Active>true</Active>
  <City>sample string 6</City>
  <CorporateCompanyCityId>1</CorporateCompanyCityId>
  <CorporateCompanyId>2</CorporateCompanyId>
  <CountryId>4</CountryId>
  <CountryName>sample string 5</CountryName>
  <Latitud>10</Latitud>
  <LocalCompanyName>sample string 3</LocalCompanyName>
  <Location>sample string 8</Location>
  <LocationDetails>sample string 9</LocationDetails>
  <LocationId>sample string 7</LocationId>
  <Longitud>11</Longitud>
</CorporateCompanyCityModel>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.