POST api/corporate/contact-company

Request Information

URI Parameters

None.

Body Parameters

Collection of ContactCompanyModel
NameDescriptionTypeAdditional information
ContactCompanyId

integer

None.

ContactId

integer

None.

CorporateCompanyId

integer

None.

CorporateId

integer

None.

LocalCompanyName

string

None.

Active

boolean

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "ContactCompanyId": 1,
    "ContactId": 2,
    "CorporateCompanyId": 3,
    "CorporateId": 4,
    "LocalCompanyName": "sample string 5",
    "Active": true
  },
  {
    "ContactCompanyId": 1,
    "ContactId": 2,
    "CorporateCompanyId": 3,
    "CorporateId": 4,
    "LocalCompanyName": "sample string 5",
    "Active": true
  }
]

application/xml, text/xml

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

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.