POST api/collections/agencies/duplicates
Check for duplications before insert CollectionsAgent
Request Information
URI Parameters
None.
Body Parameters
CollectionsAgencyViewModelName | Description | Type | Additional information |
---|---|---|---|
Id |
|
integer |
None. |
Name |
|
string |
Required String length: inclusive between 3 and 100 |
Phone |
|
string |
Required String length: inclusive between 5 and 50 |
|
string |
Required String length: inclusive between 5 and 100 |
|
CreatedBy |
|
integer |
None. |
CreatedOn |
|
date |
None. |
ModifiedBy |
|
integer |
None. |
ModifiedOn |
|
date |
None. |
Address |
|
AddressViewModel |
None. |
Agents |
|
Collection of CollectionsAgentViewModel |
None. |
Request Formats
application/json, text/json
{ "id": 1, "name": "sample string 2", "phone": "sample string 3", "email": "sample string 4", "createdBy": 5, "createdOn": "2025-04-03T17:57:36.6594-04:00", "modifiedBy": 1, "modifiedOn": "2025-04-03T17:57:36.6594-04:00", "address": { "addressId": 1, "address1": "sample string 2", "address2": "sample string 3", "city": "sample string 4", "state": "sample string 5", "zipCode": "sample string 6", "country": "sample string 7" }, "agents": [ { "id": 1, "contactName": "sample string 2", "phone": "sample string 3", "email": "sample string 4", "notes": "sample string 5", "createdBy": 6, "createdOn": "2025-04-03T17:57:36.6594-04:00", "modifiedBy": 1, "modifiedOn": "2025-04-03T17:57:36.6594-04:00", "agencyId": 8, "isMarkedToBeDeleted": true, "isLinkedToBuilding": true }, { "id": 1, "contactName": "sample string 2", "phone": "sample string 3", "email": "sample string 4", "notes": "sample string 5", "createdBy": 6, "createdOn": "2025-04-03T17:57:36.6594-04:00", "modifiedBy": 1, "modifiedOn": "2025-04-03T17:57:36.6594-04:00", "agencyId": 8, "isMarkedToBeDeleted": true, "isLinkedToBuilding": true } ] }
application/xml, text/xml
<CollectionsAgencyViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.ViewModels.Collections"> <Address xmlns:d2p1="http://schemas.datacontract.org/2004/07/CamAcctApi.ViewModels"> <Address1 xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.ViewModels.Address">sample string 2</Address1> <Address2 xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.ViewModels.Address">sample string 3</Address2> <City xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.ViewModels.Address">sample string 4</City> <Country xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.ViewModels.Address">sample string 7</Country> <State xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.ViewModels.Address">sample string 5</State> <ZipCode xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.ViewModels.Address">sample string 6</ZipCode> <d2p1:AddressId>1</d2p1:AddressId> </Address> <Agents> <CollectionsAgentViewModel> <AgencyId>8</AgencyId> <ContactName>sample string 2</ContactName> <CreatedBy>6</CreatedBy> <CreatedOn>2025-04-03T17:57:36.6594-04:00</CreatedOn> <Email>sample string 4</Email> <Id>1</Id> <IsLinkedToBuilding>true</IsLinkedToBuilding> <IsMarkedToBeDeleted>true</IsMarkedToBeDeleted> <ModifiedBy>1</ModifiedBy> <ModifiedOn>2025-04-03T17:57:36.6594-04:00</ModifiedOn> <Notes>sample string 5</Notes> <Phone>sample string 3</Phone> </CollectionsAgentViewModel> <CollectionsAgentViewModel> <AgencyId>8</AgencyId> <ContactName>sample string 2</ContactName> <CreatedBy>6</CreatedBy> <CreatedOn>2025-04-03T17:57:36.6594-04:00</CreatedOn> <Email>sample string 4</Email> <Id>1</Id> <IsLinkedToBuilding>true</IsLinkedToBuilding> <IsMarkedToBeDeleted>true</IsMarkedToBeDeleted> <ModifiedBy>1</ModifiedBy> <ModifiedOn>2025-04-03T17:57:36.6594-04:00</ModifiedOn> <Notes>sample string 5</Notes> <Phone>sample string 3</Phone> </CollectionsAgentViewModel> </Agents> <CreatedBy>5</CreatedBy> <CreatedOn>2025-04-03T17:57:36.6594-04:00</CreatedOn> <Email>sample string 4</Email> <Id>1</Id> <ModifiedBy>1</ModifiedBy> <ModifiedOn>2025-04-03T17:57:36.6594-04:00</ModifiedOn> <Name>sample string 2</Name> <Phone>sample string 3</Phone> </CollectionsAgencyViewModel>
application/x-www-form-urlencoded
Response Information
Resource Description
Collection of DetailedCollectionsAgentViewModelName | Description | Type | Additional information |
---|---|---|---|
AgentId |
|
integer |
None. |
ContactName |
|
string |
Required String length: inclusive between 3 and 200 |
Phone |
|
string |
Required String length: inclusive between 5 and 50 |
|
string |
Required String length: inclusive between 5 and 50 |
|
Notes |
|
string |
String length: inclusive between 0 and 300 |
CreatedBy |
|
integer |
None. |
CreatedOn |
|
date |
None. |
ModifiedBy |
|
integer |
None. |
ModifiedOn |
|
date |
None. |
AgencyId |
|
integer |
None. |
AgencyName |
|
string |
Required String length: inclusive between 3 and 100 |
AgencyPhone |
|
string |
Required String length: inclusive between 5 and 50 |
AgencyEmail |
|
string |
Required String length: inclusive between 5 and 100 |
AddressId |
|
integer |
None. |
Address1 |
|
string |
Required String length: inclusive between 3 and 50 |
Address2 |
|
string |
String length: inclusive between 0 and 50 |
City |
|
string |
Required String length: inclusive between 3 and 50 |
State |
|
string |
Required String length: inclusive between 2 and 50 |
ZipCode |
|
string |
Required String length: inclusive between 5 and 50 |
Country |
|
string |
String length: inclusive between 0 and 50 |
AddressTypeId |
|
integer |
None. |
Response Formats
application/json, text/json
[ { "agentId": 1, "contactName": "sample string 2", "phone": "sample string 3", "email": "sample string 4", "notes": "sample string 5", "createdBy": 6, "createdOn": "2025-04-03T17:57:36.6594-04:00", "modifiedBy": 1, "modifiedOn": "2025-04-03T17:57:36.6594-04:00", "agencyId": 8, "agencyName": "sample string 9", "agencyPhone": "sample string 10", "agencyEmail": "sample string 11", "addressId": 12, "address1": "sample string 13", "address2": "sample string 14", "city": "sample string 15", "state": "sample string 16", "zipCode": "sample string 17", "country": "sample string 18", "addressTypeId": 19 }, { "agentId": 1, "contactName": "sample string 2", "phone": "sample string 3", "email": "sample string 4", "notes": "sample string 5", "createdBy": 6, "createdOn": "2025-04-03T17:57:36.6594-04:00", "modifiedBy": 1, "modifiedOn": "2025-04-03T17:57:36.6594-04:00", "agencyId": 8, "agencyName": "sample string 9", "agencyPhone": "sample string 10", "agencyEmail": "sample string 11", "addressId": 12, "address1": "sample string 13", "address2": "sample string 14", "city": "sample string 15", "state": "sample string 16", "zipCode": "sample string 17", "country": "sample string 18", "addressTypeId": 19 } ]
application/xml, text/xml
<ArrayOfDetailedCollectionsAgentViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.ViewModels.Collections"> <DetailedCollectionsAgentViewModel> <Address1>sample string 13</Address1> <Address2>sample string 14</Address2> <AddressId>12</AddressId> <AddressTypeId>19</AddressTypeId> <AgencyEmail>sample string 11</AgencyEmail> <AgencyId>8</AgencyId> <AgencyName>sample string 9</AgencyName> <AgencyPhone>sample string 10</AgencyPhone> <AgentId>1</AgentId> <City>sample string 15</City> <ContactName>sample string 2</ContactName> <Country>sample string 18</Country> <CreatedBy>6</CreatedBy> <CreatedOn>2025-04-03T17:57:36.6594-04:00</CreatedOn> <Email>sample string 4</Email> <ModifiedBy>1</ModifiedBy> <ModifiedOn>2025-04-03T17:57:36.6594-04:00</ModifiedOn> <Notes>sample string 5</Notes> <Phone>sample string 3</Phone> <State>sample string 16</State> <ZipCode>sample string 17</ZipCode> </DetailedCollectionsAgentViewModel> <DetailedCollectionsAgentViewModel> <Address1>sample string 13</Address1> <Address2>sample string 14</Address2> <AddressId>12</AddressId> <AddressTypeId>19</AddressTypeId> <AgencyEmail>sample string 11</AgencyEmail> <AgencyId>8</AgencyId> <AgencyName>sample string 9</AgencyName> <AgencyPhone>sample string 10</AgencyPhone> <AgentId>1</AgentId> <City>sample string 15</City> <ContactName>sample string 2</ContactName> <Country>sample string 18</Country> <CreatedBy>6</CreatedBy> <CreatedOn>2025-04-03T17:57:36.6594-04:00</CreatedOn> <Email>sample string 4</Email> <ModifiedBy>1</ModifiedBy> <ModifiedOn>2025-04-03T17:57:36.6594-04:00</ModifiedOn> <Notes>sample string 5</Notes> <Phone>sample string 3</Phone> <State>sample string 16</State> <ZipCode>sample string 17</ZipCode> </DetailedCollectionsAgentViewModel> </ArrayOfDetailedCollectionsAgentViewModel>