POST v1/Agency/{AgencyId}/Contact

Add Agency Contact

Request Information

URI Parameters

NameDescriptionTypeAdditional information
AgencyId

integer

Required

Body Parameters

AgencyContactDTO
NameDescriptionTypeAdditional information
ContactType

AgentSystemEntityTypeEnum

Required

FirstName

string

String length: inclusive between 0 and 30

LastName

string

String length: inclusive between 0 and 30

CommercialName

string

String length: inclusive between 0 and 200

PhoneNumber

string

None.

CellPhoneNumber

string

None.

PhoneExtension

string

String length: inclusive between 0 and 4

EmailAddress

string

None.

Id

Primary Id

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "ContactType": "Unknown",
  "FirstName": "sample string 1",
  "LastName": "sample string 2",
  "CommercialName": "sample string 3",
  "PhoneNumber": "sample string 4",
  "CellPhoneNumber": "sample string 5",
  "PhoneExtension": "sample string 6",
  "EmailAddress": "sample string 7",
  "Id": 8
}

application/xml, text/xml

Sample:
<AgencyContactDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GCApi.Models">
  <Expand></Expand>
  <Expansions xmlns:d2p1="http://schemas.datacontract.org/2004/07/GCApi.Enums" />
  <Id>8</Id>
  <CellPhoneNumber>sample string 5</CellPhoneNumber>
  <CommercialName>sample string 3</CommercialName>
  <ContactType>Unknown</ContactType>
  <EmailAddress>sample string 7</EmailAddress>
  <FirstName>sample string 1</FirstName>
  <LastName>sample string 2</LastName>
  <PhoneExtension>sample string 6</PhoneExtension>
  <PhoneNumber>sample string 4</PhoneNumber>
</AgencyContactDTO>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Add Agency Contact

IdResponseDTO
NameDescriptionTypeAdditional information
Id

Primary Id

integer

None.

WarningMessages

List of warning messages encountered while servicing request

Collection of string

None.

Response Formats

application/json, text/json

Sample:

Sample not available.